~ubuntu-branches/debian/experimental/nfs-utils/experimental

« back to all changes in this revision

Viewing changes to autom4te.cache/output.0

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-07-08 14:26:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708142640-r171kjj2a13gy2kz
Tags: 1:1.0.9-1
* Updated co-mantainer mail address.
* New upstream release.
  - Added 'mount.nfs' utility which can be used as a mount helper
    to mount nfs filesystems. It does not yet support 'user' mounts.
  - Makefile/autoconf tidyups
  - No compiles with no warnings
  - deleted debian/* at request of debian maintainer
  - deleted assorted other unused files
  - mountd can be run multi-threaded for configurations with many hundreds
    of clients (mountd -t 20).  Default is single-threaded
  - Support for selection NFS version to be exported, and protocol to
    use.  This requires kernel patches that should be in linux 2.6.19.
  - Use 65534 rather than -2 for default anon.  This makes no difference in many
    cases, but is important in some.
  - New utility 'rpcdebug' for controlled kernel 'debug' options for nfs and nfsd.
  - nfsstat reports NFSv4 operation statistics that should be available in
    linux 2.6.18.
  - assorted other fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
@%:@! /bin/sh
2
 
@%:@ Guess values for system-dependent variables and create Makefiles.
3
 
@%:@ Generated by GNU Autoconf 2.59e for linux nfs-utils 1.0.9-pre1.
4
 
@%:@
5
 
@%:@ Report bugs to <nfs@lists.sf.net>.
6
 
@%:@ 
7
 
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
 
@%:@ This configure script is free software; the Free Software Foundation
10
 
@%:@ gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
14
 
 
15
 
# Be Bourne compatible
16
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
 
  emulate sh
18
 
  NULLCMD=:
19
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
 
  # is contrary to our usage.  Disable this feature.
21
 
  alias -g '${1+"$@"}'='"$@"'
22
 
  setopt NO_GLOB_SUBST
23
 
else
24
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25
 
fi
26
 
BIN_SH=xpg4; export BIN_SH # for Tru64
27
 
DUALCASE=1; export DUALCASE # for MKS sh
28
 
 
29
 
 
30
 
# PATH needs CR
31
 
# Avoid depending upon Character Ranges.
32
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35
 
as_cr_digits='0123456789'
36
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
37
 
 
38
 
# The user is always right.
39
 
if test "${PATH_SEPARATOR+set}" != set; then
40
 
  echo "#! /bin/sh" >conf$$.sh
41
 
  echo  "exit 0"   >>conf$$.sh
42
 
  chmod +x conf$$.sh
43
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44
 
    PATH_SEPARATOR=';'
45
 
  else
46
 
    PATH_SEPARATOR=:
47
 
  fi
48
 
  rm -f conf$$.sh
49
 
fi
50
 
 
51
 
# Support unset when possible.
52
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53
 
  as_unset=unset
54
 
else
55
 
  as_unset=false
56
 
fi
57
 
 
58
 
 
59
 
# IFS
60
 
# We need space, tab and new line, in precisely that order.  Quoting is
61
 
# there to prevent editors from complaining about space-tab.
62
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63
 
# splitting by setting IFS to empty value.)
64
 
as_nl='
65
 
'
66
 
IFS=" ""        $as_nl"
67
 
 
68
 
# Find who we are.  Look in the path if we contain no directory separator.
69
 
case $0 in
70
 
  *[\\/]* ) as_myself=$0 ;;
71
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72
 
for as_dir in $PATH
73
 
do
74
 
  IFS=$as_save_IFS
75
 
  test -z "$as_dir" && as_dir=.
76
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77
 
done
78
 
IFS=$as_save_IFS
79
 
 
80
 
     ;;
81
 
esac
82
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
83
 
# in which case we are not to be found in the path.
84
 
if test "x$as_myself" = x; then
85
 
  as_myself=$0
86
 
fi
87
 
if test ! -f "$as_myself"; then
88
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89
 
  { (exit 1); exit 1; }
90
 
fi
91
 
 
92
 
# Work around bugs in pre-3.0 UWIN ksh.
93
 
for as_var in ENV MAIL MAILPATH
94
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95
 
done
96
 
PS1='$ '
97
 
PS2='> '
98
 
PS4='+ '
99
 
 
100
 
# NLS nuisances.
101
 
for as_var in \
102
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104
 
  LC_TELEPHONE LC_TIME
105
 
do
106
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107
 
    eval $as_var=C; export $as_var
108
 
  else
109
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110
 
  fi
111
 
done
112
 
 
113
 
# Required to use basename.
114
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
115
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116
 
  as_expr=expr
117
 
else
118
 
  as_expr=false
119
 
fi
120
 
 
121
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122
 
  as_basename=basename
123
 
else
124
 
  as_basename=false
125
 
fi
126
 
 
127
 
 
128
 
# Name of the executable.
129
 
as_me=`$as_basename -- "$0" ||
130
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131
 
         X"$0" : 'X\(//\)$' \| \
132
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133
 
echo X/"$0" |
134
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
135
 
            s//\1/
136
 
            q
137
 
          }
138
 
          /^X\/\(\/\/\)$/{
139
 
            s//\1/
140
 
            q
141
 
          }
142
 
          /^X\/\(\/\).*/{
143
 
            s//\1/
144
 
            q
145
 
          }
146
 
          s/.*/./; q'`
147
 
 
148
 
# CDPATH.
149
 
$as_unset CDPATH
150
 
 
151
 
 
152
 
if test "x$CONFIG_SHELL" = x; then
153
 
  if (eval ":") 2>/dev/null; then
154
 
  as_have_required=yes
155
 
else
156
 
  as_have_required=no
157
 
fi
158
 
 
159
 
  if test $as_have_required = yes &&     (eval ":
160
 
(as_func_return () {
161
 
  (exit \$1)
162
 
}
163
 
as_func_success () {
164
 
  as_func_return 0
165
 
}
166
 
as_func_failure () {
167
 
  as_func_return 1
168
 
}
169
 
as_func_ret_success () {
170
 
  return 0
171
 
}
172
 
as_func_ret_failure () {
173
 
  return 1
174
 
}
175
 
 
176
 
exitcode=0
177
 
if as_func_success; then
178
 
  :
179
 
else
180
 
  exitcode=1
181
 
  echo as_func_success failed.
182
 
fi
183
 
 
184
 
if as_func_failure; then
185
 
  exitcode=1
186
 
  echo as_func_failure succeeded.
187
 
fi
188
 
 
189
 
if as_func_ret_success; then
190
 
  :
191
 
else
192
 
  exitcode=1
193
 
  echo as_func_ret_success failed.
194
 
fi
195
 
 
196
 
if as_func_ret_failure; then
197
 
  exitcode=1
198
 
  echo as_func_ret_failure succeeded.
199
 
fi
200
 
 
201
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202
 
  :
203
 
else
204
 
  exitcode=1
205
 
  echo positional parameters were not saved.
206
 
fi
207
 
 
208
 
test \$exitcode = 0) || { (exit 1); exit 1; }
209
 
 
210
 
(
211
 
  as_lineno_1=\$LINENO
212
 
  as_lineno_2=\$LINENO
213
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215
 
") 2> /dev/null; then
216
 
  :
217
 
else
218
 
  as_candidate_shells=
219
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
 
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
 
do
222
 
  IFS=$as_save_IFS
223
 
  test -z "$as_dir" && as_dir=.
224
 
  case $as_dir in
225
 
         /*)
226
 
           for as_base in sh bash ksh sh5; do
227
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228
 
           done;;
229
 
       esac
230
 
done
231
 
IFS=$as_save_IFS
232
 
 
233
 
 
234
 
      for as_shell in $as_candidate_shells $SHELL; do
235
 
         # Try only shells which exist, to save several forks.
236
 
         if test -f "$as_shell" &&
237
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
238
 
# Be Bourne compatible
239
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240
 
  emulate sh
241
 
  NULLCMD=:
242
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243
 
  # is contrary to our usage.  Disable this feature.
244
 
  alias -g '${1+"$@"}'='"$@"'
245
 
  setopt NO_GLOB_SUBST
246
 
else
247
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248
 
fi
249
 
BIN_SH=xpg4; export BIN_SH # for Tru64
250
 
DUALCASE=1; export DUALCASE # for MKS sh
251
 
 
252
 
:
253
 
_ASEOF
254
 
}; then
255
 
  CONFIG_SHELL=$as_shell
256
 
               as_have_required=yes
257
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
258
 
# Be Bourne compatible
259
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
 
  emulate sh
261
 
  NULLCMD=:
262
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263
 
  # is contrary to our usage.  Disable this feature.
264
 
  alias -g '${1+"$@"}'='"$@"'
265
 
  setopt NO_GLOB_SUBST
266
 
else
267
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268
 
fi
269
 
BIN_SH=xpg4; export BIN_SH # for Tru64
270
 
DUALCASE=1; export DUALCASE # for MKS sh
271
 
 
272
 
:
273
 
(as_func_return () {
274
 
  (exit $1)
275
 
}
276
 
as_func_success () {
277
 
  as_func_return 0
278
 
}
279
 
as_func_failure () {
280
 
  as_func_return 1
281
 
}
282
 
as_func_ret_success () {
283
 
  return 0
284
 
}
285
 
as_func_ret_failure () {
286
 
  return 1
287
 
}
288
 
 
289
 
exitcode=0
290
 
if as_func_success; then
291
 
  :
292
 
else
293
 
  exitcode=1
294
 
  echo as_func_success failed.
295
 
fi
296
 
 
297
 
if as_func_failure; then
298
 
  exitcode=1
299
 
  echo as_func_failure succeeded.
300
 
fi
301
 
 
302
 
if as_func_ret_success; then
303
 
  :
304
 
else
305
 
  exitcode=1
306
 
  echo as_func_ret_success failed.
307
 
fi
308
 
 
309
 
if as_func_ret_failure; then
310
 
  exitcode=1
311
 
  echo as_func_ret_failure succeeded.
312
 
fi
313
 
 
314
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
315
 
  :
316
 
else
317
 
  exitcode=1
318
 
  echo positional parameters were not saved.
319
 
fi
320
 
 
321
 
test $exitcode = 0) || { (exit 1); exit 1; }
322
 
 
323
 
(
324
 
  as_lineno_1=$LINENO
325
 
  as_lineno_2=$LINENO
326
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
327
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
 
 
329
 
_ASEOF
330
 
}; then
331
 
  break
332
 
fi
333
 
 
334
 
fi
335
 
 
336
 
      done
337
 
 
338
 
      if test "x$CONFIG_SHELL" != x; then
339
 
  for as_var in BASH_ENV ENV
340
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341
 
        done
342
 
        export CONFIG_SHELL
343
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344
 
fi
345
 
 
346
 
 
347
 
    if test $as_have_required = no; then
348
 
  echo This script requires a shell more modern than all the
349
 
      echo shells that I found on your system.  Please install a
350
 
      echo modern shell, or manually run the script under such a
351
 
      echo shell if you do have one.
352
 
      { (exit 1); exit 1; }
353
 
fi
354
 
 
355
 
    
356
 
fi
357
 
 
358
 
fi
359
 
 
360
 
 
361
 
 
362
 
(eval "as_func_return () {
363
 
  (exit \$1)
364
 
}
365
 
as_func_success () {
366
 
  as_func_return 0
367
 
}
368
 
as_func_failure () {
369
 
  as_func_return 1
370
 
}
371
 
as_func_ret_success () {
372
 
  return 0
373
 
}
374
 
as_func_ret_failure () {
375
 
  return 1
376
 
}
377
 
 
378
 
exitcode=0
379
 
if as_func_success; then
380
 
  :
381
 
else
382
 
  exitcode=1
383
 
  echo as_func_success failed.
384
 
fi
385
 
 
386
 
if as_func_failure; then
387
 
  exitcode=1
388
 
  echo as_func_failure succeeded.
389
 
fi
390
 
 
391
 
if as_func_ret_success; then
392
 
  :
393
 
else
394
 
  exitcode=1
395
 
  echo as_func_ret_success failed.
396
 
fi
397
 
 
398
 
if as_func_ret_failure; then
399
 
  exitcode=1
400
 
  echo as_func_ret_failure succeeded.
401
 
fi
402
 
 
403
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404
 
  :
405
 
else
406
 
  exitcode=1
407
 
  echo positional parameters were not saved.
408
 
fi
409
 
 
410
 
test \$exitcode = 0") || {
411
 
  echo No shell found that supports shell functions.
412
 
  echo Please tell autoconf@gnu.org about your system,
413
 
  echo including any error possibly output before this
414
 
  echo message
415
 
}
416
 
 
417
 
 
418
 
 
419
 
  as_lineno_1=$LINENO
420
 
  as_lineno_2=$LINENO
421
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
422
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
 
 
424
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
426
 
  # line-number line after each line using $LINENO; the second 'sed'
427
 
  # does the real work.  The second script uses 'N' to pair each
428
 
  # line-number line with the line containing $LINENO, and appends
429
 
  # trailing '-' during substitution so that $LINENO is not a special
430
 
  # case at line end.
431
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
433
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
434
 
  sed -n '
435
 
    p
436
 
    /[$]LINENO/=
437
 
  ' <$as_myself |
438
 
    sed '
439
 
      s/[$]LINENO.*/&-/
440
 
      t lineno
441
 
      b
442
 
      :lineno
443
 
      N
444
 
      :loop
445
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446
 
      t loop
447
 
      s/-\n.*//
448
 
    ' >$as_me.lineno &&
449
 
  chmod +x "$as_me.lineno" ||
450
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451
 
   { (exit 1); exit 1; }; }
452
 
 
453
 
  # Don't try to exec as it changes $[0], causing all sort of problems
454
 
  # (the dirname of $[0] is not the place where we might find the
455
 
  # original and so on.  Autoconf is especially sensitive to this).
456
 
  . "./$as_me.lineno"
457
 
  # Exit status is that of the last command.
458
 
  exit
459
 
}
460
 
 
461
 
 
462
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463
 
  as_dirname=dirname
464
 
else
465
 
  as_dirname=false
466
 
fi
467
 
 
468
 
ECHO_C= ECHO_N= ECHO_T=
469
 
case `echo -n x` in
470
 
-n*)
471
 
  case `echo 'x\c'` in
472
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473
 
  *)   ECHO_C='\c';;
474
 
  esac;;
475
 
*)
476
 
  ECHO_N='-n';;
477
 
esac
478
 
 
479
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
480
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
481
 
  as_expr=expr
482
 
else
483
 
  as_expr=false
484
 
fi
485
 
 
486
 
rm -f conf$$ conf$$.exe conf$$.file
487
 
if test -d conf$$.dir; then
488
 
  rm -f conf$$.dir/conf$$.file
489
 
else
490
 
  rm -f conf$$.dir
491
 
  mkdir conf$$.dir
492
 
fi
493
 
echo >conf$$.file
494
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
495
 
  as_ln_s='ln -s'
496
 
  # ... but there are two gotchas:
497
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499
 
  # In both cases, we have to default to `cp -p'.
500
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501
 
    as_ln_s='cp -p'
502
 
elif ln conf$$.file conf$$ 2>/dev/null; then
503
 
  as_ln_s=ln
504
 
else
505
 
  as_ln_s='cp -p'
506
 
fi
507
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508
 
rmdir conf$$.dir 2>/dev/null
509
 
 
510
 
if mkdir -p . 2>/dev/null; then
511
 
  as_mkdir_p=:
512
 
else
513
 
  test -d ./-p && rmdir ./-p
514
 
  as_mkdir_p=false
515
 
fi
516
 
 
517
 
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518
 
# systems may use methods other than mode bits to determine executability.
519
 
cat >conf$$.file <<_ASEOF
520
 
#! /bin/sh
521
 
exit 0
522
 
_ASEOF
523
 
chmod +x conf$$.file
524
 
if test -x conf$$.file >/dev/null 2>&1; then
525
 
  as_executable_p="test -x"
526
 
else
527
 
  as_executable_p=:
528
 
fi
529
 
rm -f conf$$.file
530
 
 
531
 
# Sed expression to map a string onto a valid CPP name.
532
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
 
 
534
 
# Sed expression to map a string onto a valid variable name.
535
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
 
 
537
 
 
538
 
 
539
 
 
540
 
# Check that we are running under the correct shell.
541
 
SHELL=${CONFIG_SHELL-/bin/sh}
542
 
 
543
 
case X$ECHO in
544
 
X*--fallback-echo)
545
 
  # Remove one level of quotation (which was required for Make).
546
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547
 
  ;;
548
 
esac
549
 
 
550
 
echo=${ECHO-echo}
551
 
if test "X$1" = X--no-reexec; then
552
 
  # Discard the --no-reexec flag, and continue.
553
 
  shift
554
 
elif test "X$1" = X--fallback-echo; then
555
 
  # Avoid inline document here, it may be left over
556
 
  :
557
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558
 
  # Yippee, $echo works!
559
 
  :
560
 
else
561
 
  # Restart under the correct shell.
562
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
563
 
fi
564
 
 
565
 
if test "X$1" = X--fallback-echo; then
566
 
  # used as fallback echo
567
 
  shift
568
 
  cat <<EOF
569
 
$*
570
 
EOF
571
 
  exit 0
572
 
fi
573
 
 
574
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
575
 
# if CDPATH is set.
576
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
 
 
578
 
if test -z "$ECHO"; then
579
 
if test "X${echo_test_string+set}" != Xset; then
580
 
# find a string as large as possible, as long as the shell can cope with it
581
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584
 
       echo_test_string=`eval $cmd` &&
585
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586
 
    then
587
 
      break
588
 
    fi
589
 
  done
590
 
fi
591
 
 
592
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
595
 
  :
596
 
else
597
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
598
 
  # backslashes.  This makes it impossible to quote backslashes using
599
 
  #   echo "$something" | sed 's/\\/\\\\/g'
600
 
  #
601
 
  # So, first we look for a working echo in the user's PATH.
602
 
 
603
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604
 
  for dir in $PATH /usr/ucb; do
605
 
    IFS="$lt_save_ifs"
606
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
610
 
      echo="$dir/echo"
611
 
      break
612
 
    fi
613
 
  done
614
 
  IFS="$lt_save_ifs"
615
 
 
616
 
  if test "X$echo" = Xecho; then
617
 
    # We didn't find a better echo, so look for alternatives.
618
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
621
 
      # This shell has a builtin print -r that does the trick.
622
 
      echo='print -r'
623
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
625
 
      # If we have ksh, try running configure again with it.
626
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627
 
      export ORIGINAL_CONFIG_SHELL
628
 
      CONFIG_SHELL=/bin/ksh
629
 
      export CONFIG_SHELL
630
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631
 
    else
632
 
      # Try using printf.
633
 
      echo='printf %s\n'
634
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
637
 
        # Cool, printf works
638
 
        :
639
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640
 
           test "X$echo_testing_string" = 'X\t' &&
641
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
643
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644
 
        export CONFIG_SHELL
645
 
        SHELL="$CONFIG_SHELL"
646
 
        export SHELL
647
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
648
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649
 
           test "X$echo_testing_string" = 'X\t' &&
650
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
652
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
653
 
      else
654
 
        # maybe with a smaller string...
655
 
        prev=:
656
 
 
657
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659
 
          then
660
 
            break
661
 
          fi
662
 
          prev="$cmd"
663
 
        done
664
 
 
665
 
        if test "$prev" != 'sed 50q "$0"'; then
666
 
          echo_test_string=`eval $prev`
667
 
          export echo_test_string
668
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669
 
        else
670
 
          # Oops.  We lost completely, so just stick with echo.
671
 
          echo=echo
672
 
        fi
673
 
      fi
674
 
    fi
675
 
  fi
676
 
fi
677
 
fi
678
 
 
679
 
# Copy echo and quote the copy suitably for passing to libtool from
680
 
# the Makefile, instead of quoting the original, which is used later.
681
 
ECHO=$echo
682
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684
 
fi
685
 
 
686
 
 
687
 
 
688
 
 
689
 
tagnames=${tagnames+${tagnames},}CXX
690
 
 
691
 
tagnames=${tagnames+${tagnames},}F77
692
 
 
693
 
exec 7<&0 </dev/null 6>&1
694
 
 
695
 
# Name of the host.
696
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697
 
# so uname gets run too.
698
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
 
 
700
 
#
701
 
# Initializations.
702
 
#
703
 
ac_default_prefix=/usr/local
704
 
ac_clean_files=
705
 
ac_config_libobj_dir=.
706
 
LIB@&t@OBJS=
707
 
cross_compiling=no
708
 
subdirs=
709
 
MFLAGS=
710
 
MAKEFLAGS=
711
 
SHELL=${CONFIG_SHELL-/bin/sh}
712
 
 
713
 
# Identity of this package.
714
 
PACKAGE_NAME='linux nfs-utils'
715
 
PACKAGE_TARNAME='nfs-utils'
716
 
PACKAGE_VERSION='1.0.9-pre1'
717
 
PACKAGE_STRING='linux nfs-utils 1.0.9-pre1'
718
 
PACKAGE_BUGREPORT='nfs@lists.sf.net'
719
 
 
720
 
ac_unique_file="tools/getiversion/getiversion.c"
721
 
ac_default_prefix=/usr
722
 
ac_unique_file="support/include/config.h.in"
723
 
# Factoring default headers for most tests.
724
 
ac_includes_default="\
725
 
#include <stdio.h>
726
 
#if HAVE_SYS_TYPES_H
727
 
# include <sys/types.h>
728
 
#endif
729
 
#if HAVE_SYS_STAT_H
730
 
# include <sys/stat.h>
731
 
#endif
732
 
#if STDC_HEADERS
733
 
# include <stdlib.h>
734
 
# include <stddef.h>
735
 
#else
736
 
# if HAVE_STDLIB_H
737
 
#  include <stdlib.h>
738
 
# endif
739
 
#endif
740
 
#if HAVE_STRING_H
741
 
# if !STDC_HEADERS && HAVE_MEMORY_H
742
 
#  include <memory.h>
743
 
# endif
744
 
# include <string.h>
745
 
#endif
746
 
#if HAVE_STRINGS_H
747
 
# include <strings.h>
748
 
#endif
749
 
#if HAVE_INTTYPES_H
750
 
# include <inttypes.h>
751
 
#endif
752
 
#if HAVE_STDINT_H
753
 
# include <stdint.h>
754
 
#endif
755
 
#if HAVE_UNISTD_H
756
 
# include <unistd.h>
757
 
#endif"
758
 
 
759
 
ac_subst_vars='SHELL
760
 
PATH_SEPARATOR
761
 
PACKAGE_NAME
762
 
PACKAGE_TARNAME
763
 
PACKAGE_VERSION
764
 
PACKAGE_STRING
765
 
PACKAGE_BUGREPORT
766
 
exec_prefix
767
 
prefix
768
 
program_transform_name
769
 
bindir
770
 
sbindir
771
 
libexecdir
772
 
datarootdir
773
 
datadir
774
 
sysconfdir
775
 
sharedstatedir
776
 
localstatedir
777
 
includedir
778
 
oldincludedir
779
 
docdir
780
 
infodir
781
 
htmldir
782
 
dvidir
783
 
pdfdir
784
 
psdir
785
 
libdir
786
 
localedir
787
 
mandir
788
 
DEFS
789
 
ECHO_C
790
 
ECHO_N
791
 
ECHO_T
792
 
LIBS
793
 
build_alias
794
 
host_alias
795
 
target_alias
796
 
build
797
 
build_cpu
798
 
build_vendor
799
 
build_os
800
 
host
801
 
host_cpu
802
 
host_vendor
803
 
host_os
804
 
INSTALL_PROGRAM
805
 
INSTALL_SCRIPT
806
 
INSTALL_DATA
807
 
CYGPATH_W
808
 
PACKAGE
809
 
VERSION
810
 
ACLOCAL
811
 
AUTOCONF
812
 
AUTOMAKE
813
 
AUTOHEADER
814
 
MAKEINFO
815
 
install_sh
816
 
STRIP
817
 
INSTALL_STRIP_PROGRAM
818
 
mkdir_p
819
 
AWK
820
 
SET_MAKE
821
 
am__leading_dot
822
 
AMTAR
823
 
am__tar
824
 
am__untar
825
 
RELEASE
826
 
statedir
827
 
statduser
828
 
enable_nfsv3
829
 
IDMAPD
830
 
enable_nfsv4
831
 
CONFIG_NFSV4_TRUE
832
 
CONFIG_NFSV4_FALSE
833
 
GSSD
834
 
SVCGSSD
835
 
enable_gss
836
 
CONFIG_GSS_TRUE
837
 
CONFIG_GSS_FALSE
838
 
kprefix
839
 
secure_statd
840
 
CONFIG_RQUOTAD_TRUE
841
 
CONFIG_RQUOTAD_FALSE
842
 
CONFIG_MOUNT_TRUE
843
 
CONFIG_MOUNT_FALSE
844
 
CC
845
 
CFLAGS
846
 
LDFLAGS
847
 
CPPFLAGS
848
 
ac_ct_CC
849
 
EXEEXT
850
 
OBJEXT
851
 
DEPDIR
852
 
am__include
853
 
am__quote
854
 
AMDEP_TRUE
855
 
AMDEP_FALSE
856
 
AMDEPBACKSLASH
857
 
CCDEPMODE
858
 
am__fastdepCC_TRUE
859
 
am__fastdepCC_FALSE
860
 
LIBWRAP
861
 
HAVE_LIBWRAP
862
 
HAVE_TCP_WRAPPER
863
 
CXX
864
 
CXXFLAGS
865
 
ac_ct_CXX
866
 
CXXDEPMODE
867
 
am__fastdepCXX_TRUE
868
 
am__fastdepCXX_FALSE
869
 
CPP
870
 
LN_S
871
 
GREP
872
 
EGREP
873
 
ECHO
874
 
AR
875
 
RANLIB
876
 
CXXCPP
877
 
F77
878
 
FFLAGS
879
 
ac_ct_F77
880
 
LIBTOOL
881
 
CC_FOR_BUILD
882
 
LD
883
 
PKG_CONFIG
884
 
RPCSECGSS_CFLAGS
885
 
RPCSECGSS_LIBS
886
 
GSSAPI_CFLAGS
887
 
GSSAPI_LIBS
888
 
LIBSOCKET
889
 
LIBNSL
890
 
LIBCRYPT
891
 
LIBBSD
892
 
KRBDIR
893
 
KRBLIBS
894
 
KRBCFLAGS
895
 
K5VERS
896
 
ALLOCA
897
 
LIB@&t@OBJS
898
 
CFLAGS_FOR_BUILD
899
 
CXXFLAGS_FOR_BUILD
900
 
CPPFLAGS_FOR_BUILD
901
 
LDFLAGS_FOR_BUILD
902
 
AM_CPPFLAGS
903
 
AM_CFLAGS
904
 
ACLOCAL_AMFLAGS
905
 
LTLIBOBJS'
906
 
ac_subst_files=''
907
 
      ac_precious_vars='build_alias
908
 
host_alias
909
 
target_alias
910
 
CC
911
 
CFLAGS
912
 
LDFLAGS
913
 
CPPFLAGS
914
 
CXX
915
 
CXXFLAGS
916
 
CCC
917
 
CPP
918
 
CXXCPP
919
 
F77
920
 
FFLAGS
921
 
PKG_CONFIG
922
 
RPCSECGSS_CFLAGS
923
 
RPCSECGSS_LIBS
924
 
GSSAPI_CFLAGS
925
 
GSSAPI_LIBS'
926
 
 
927
 
 
928
 
# Initialize some variables set by options.
929
 
ac_init_help=
930
 
ac_init_version=false
931
 
# The variables have the same names as the options, with
932
 
# dashes changed to underlines.
933
 
cache_file=/dev/null
934
 
exec_prefix=NONE
935
 
no_create=
936
 
no_recursion=
937
 
prefix=NONE
938
 
program_prefix=NONE
939
 
program_suffix=NONE
940
 
program_transform_name=s,x,x,
941
 
silent=
942
 
site=
943
 
srcdir=
944
 
verbose=
945
 
x_includes=NONE
946
 
x_libraries=NONE
947
 
 
948
 
# Installation directory options.
949
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
950
 
# and all the variables that are supposed to be based on exec_prefix
951
 
# by default will actually change.
952
 
# Use braces instead of parens because sh, perl, etc. also accept them.
953
 
# (The list follows the same order as the GNU Coding Standards.)
954
 
bindir='${exec_prefix}/bin'
955
 
sbindir='${exec_prefix}/sbin'
956
 
libexecdir='${exec_prefix}/libexec'
957
 
datarootdir='${prefix}/share'
958
 
datadir='${datarootdir}'
959
 
sysconfdir='${prefix}/etc'
960
 
sharedstatedir='${prefix}/com'
961
 
localstatedir='${prefix}/var'
962
 
includedir='${prefix}/include'
963
 
oldincludedir='/usr/include'
964
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965
 
infodir='${datarootdir}/info'
966
 
htmldir='${docdir}'
967
 
dvidir='${docdir}'
968
 
pdfdir='${docdir}'
969
 
psdir='${docdir}'
970
 
libdir='${exec_prefix}/lib'
971
 
localedir='${datarootdir}/locale'
972
 
mandir='${datarootdir}/man'
973
 
 
974
 
ac_prev=
975
 
ac_dashdash=
976
 
for ac_option
977
 
do
978
 
  # If the previous option needs an argument, assign it.
979
 
  if test -n "$ac_prev"; then
980
 
    eval $ac_prev=\$ac_option
981
 
    ac_prev=
982
 
    continue
983
 
  fi
984
 
 
985
 
  case $ac_option in
986
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987
 
  *)    ac_optarg=yes ;;
988
 
  esac
989
 
 
990
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
991
 
 
992
 
  case $ac_dashdash$ac_option in
993
 
  --)
994
 
    ac_dashdash=yes ;;
995
 
 
996
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
997
 
    ac_prev=bindir ;;
998
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999
 
    bindir=$ac_optarg ;;
1000
 
 
1001
 
  -build | --build | --buil | --bui | --bu)
1002
 
    ac_prev=build_alias ;;
1003
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004
 
    build_alias=$ac_optarg ;;
1005
 
 
1006
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1007
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008
 
    ac_prev=cache_file ;;
1009
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011
 
    cache_file=$ac_optarg ;;
1012
 
 
1013
 
  --config-cache | -C)
1014
 
    cache_file=config.cache ;;
1015
 
 
1016
 
  -datadir | --datadir | --datadi | --datad)
1017
 
    ac_prev=datadir ;;
1018
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019
 
    datadir=$ac_optarg ;;
1020
 
 
1021
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022
 
  | --dataroo | --dataro | --datar)
1023
 
    ac_prev=datarootdir ;;
1024
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026
 
    datarootdir=$ac_optarg ;;
1027
 
 
1028
 
  -disable-* | --disable-*)
1029
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030
 
    # Reject names that are not valid shell variable names.
1031
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1032
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033
 
   { (exit 1); exit 1; }; }
1034
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1035
 
    eval enable_$ac_feature=no ;;
1036
 
 
1037
 
  -docdir | --docdir | --docdi | --doc | --do)
1038
 
    ac_prev=docdir ;;
1039
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040
 
    docdir=$ac_optarg ;;
1041
 
 
1042
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043
 
    ac_prev=dvidir ;;
1044
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045
 
    dvidir=$ac_optarg ;;
1046
 
 
1047
 
  -enable-* | --enable-*)
1048
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049
 
    # Reject names that are not valid shell variable names.
1050
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052
 
   { (exit 1); exit 1; }; }
1053
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1054
 
    eval enable_$ac_feature=\$ac_optarg ;;
1055
 
 
1056
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058
 
  | --exec | --exe | --ex)
1059
 
    ac_prev=exec_prefix ;;
1060
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062
 
  | --exec=* | --exe=* | --ex=*)
1063
 
    exec_prefix=$ac_optarg ;;
1064
 
 
1065
 
  -gas | --gas | --ga | --g)
1066
 
    # Obsolete; use --with-gas.
1067
 
    with_gas=yes ;;
1068
 
 
1069
 
  -help | --help | --hel | --he | -h)
1070
 
    ac_init_help=long ;;
1071
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072
 
    ac_init_help=recursive ;;
1073
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074
 
    ac_init_help=short ;;
1075
 
 
1076
 
  -host | --host | --hos | --ho)
1077
 
    ac_prev=host_alias ;;
1078
 
  -host=* | --host=* | --hos=* | --ho=*)
1079
 
    host_alias=$ac_optarg ;;
1080
 
 
1081
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082
 
    ac_prev=htmldir ;;
1083
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084
 
  | --ht=*)
1085
 
    htmldir=$ac_optarg ;;
1086
 
 
1087
 
  -includedir | --includedir | --includedi | --included | --include \
1088
 
  | --includ | --inclu | --incl | --inc)
1089
 
    ac_prev=includedir ;;
1090
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1092
 
    includedir=$ac_optarg ;;
1093
 
 
1094
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1095
 
    ac_prev=infodir ;;
1096
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097
 
    infodir=$ac_optarg ;;
1098
 
 
1099
 
  -libdir | --libdir | --libdi | --libd)
1100
 
    ac_prev=libdir ;;
1101
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102
 
    libdir=$ac_optarg ;;
1103
 
 
1104
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105
 
  | --libexe | --libex | --libe)
1106
 
    ac_prev=libexecdir ;;
1107
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108
 
  | --libexe=* | --libex=* | --libe=*)
1109
 
    libexecdir=$ac_optarg ;;
1110
 
 
1111
 
  -localedir | --localedir | --localedi | --localed | --locale)
1112
 
    ac_prev=localedir ;;
1113
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114
 
    localedir=$ac_optarg ;;
1115
 
 
1116
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1117
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1118
 
    ac_prev=localstatedir ;;
1119
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121
 
    localstatedir=$ac_optarg ;;
1122
 
 
1123
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124
 
    ac_prev=mandir ;;
1125
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126
 
    mandir=$ac_optarg ;;
1127
 
 
1128
 
  -nfp | --nfp | --nf)
1129
 
    # Obsolete; use --without-fp.
1130
 
    with_fp=no ;;
1131
 
 
1132
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133
 
  | --no-cr | --no-c | -n)
1134
 
    no_create=yes ;;
1135
 
 
1136
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138
 
    no_recursion=yes ;;
1139
 
 
1140
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142
 
  | --oldin | --oldi | --old | --ol | --o)
1143
 
    ac_prev=oldincludedir ;;
1144
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147
 
    oldincludedir=$ac_optarg ;;
1148
 
 
1149
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150
 
    ac_prev=prefix ;;
1151
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152
 
    prefix=$ac_optarg ;;
1153
 
 
1154
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155
 
  | --program-pre | --program-pr | --program-p)
1156
 
    ac_prev=program_prefix ;;
1157
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159
 
    program_prefix=$ac_optarg ;;
1160
 
 
1161
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162
 
  | --program-suf | --program-su | --program-s)
1163
 
    ac_prev=program_suffix ;;
1164
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166
 
    program_suffix=$ac_optarg ;;
1167
 
 
1168
 
  -program-transform-name | --program-transform-name \
1169
 
  | --program-transform-nam | --program-transform-na \
1170
 
  | --program-transform-n | --program-transform- \
1171
 
  | --program-transform | --program-transfor \
1172
 
  | --program-transfo | --program-transf \
1173
 
  | --program-trans | --program-tran \
1174
 
  | --progr-tra | --program-tr | --program-t)
1175
 
    ac_prev=program_transform_name ;;
1176
 
  -program-transform-name=* | --program-transform-name=* \
1177
 
  | --program-transform-nam=* | --program-transform-na=* \
1178
 
  | --program-transform-n=* | --program-transform-=* \
1179
 
  | --program-transform=* | --program-transfor=* \
1180
 
  | --program-transfo=* | --program-transf=* \
1181
 
  | --program-trans=* | --program-tran=* \
1182
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1183
 
    program_transform_name=$ac_optarg ;;
1184
 
 
1185
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186
 
    ac_prev=pdfdir ;;
1187
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188
 
    pdfdir=$ac_optarg ;;
1189
 
 
1190
 
  -psdir | --psdir | --psdi | --psd | --ps)
1191
 
    ac_prev=psdir ;;
1192
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193
 
    psdir=$ac_optarg ;;
1194
 
 
1195
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196
 
  | -silent | --silent | --silen | --sile | --sil)
1197
 
    silent=yes ;;
1198
 
 
1199
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200
 
    ac_prev=sbindir ;;
1201
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202
 
  | --sbi=* | --sb=*)
1203
 
    sbindir=$ac_optarg ;;
1204
 
 
1205
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207
 
  | --sharedst | --shareds | --shared | --share | --shar \
1208
 
  | --sha | --sh)
1209
 
    ac_prev=sharedstatedir ;;
1210
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213
 
  | --sha=* | --sh=*)
1214
 
    sharedstatedir=$ac_optarg ;;
1215
 
 
1216
 
  -site | --site | --sit)
1217
 
    ac_prev=site ;;
1218
 
  -site=* | --site=* | --sit=*)
1219
 
    site=$ac_optarg ;;
1220
 
 
1221
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222
 
    ac_prev=srcdir ;;
1223
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224
 
    srcdir=$ac_optarg ;;
1225
 
 
1226
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1228
 
    ac_prev=sysconfdir ;;
1229
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231
 
    sysconfdir=$ac_optarg ;;
1232
 
 
1233
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1234
 
    ac_prev=target_alias ;;
1235
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236
 
    target_alias=$ac_optarg ;;
1237
 
 
1238
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239
 
    verbose=yes ;;
1240
 
 
1241
 
  -version | --version | --versio | --versi | --vers | -V)
1242
 
    ac_init_version=: ;;
1243
 
 
1244
 
  -with-* | --with-*)
1245
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246
 
    # Reject names that are not valid shell variable names.
1247
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1248
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1249
 
   { (exit 1); exit 1; }; }
1250
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
1251
 
    eval with_$ac_package=\$ac_optarg ;;
1252
 
 
1253
 
  -without-* | --without-*)
1254
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255
 
    # Reject names that are not valid shell variable names.
1256
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1257
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1258
 
   { (exit 1); exit 1; }; }
1259
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
1260
 
    eval with_$ac_package=no ;;
1261
 
 
1262
 
  --x)
1263
 
    # Obsolete; use --with-x.
1264
 
    with_x=yes ;;
1265
 
 
1266
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267
 
  | --x-incl | --x-inc | --x-in | --x-i)
1268
 
    ac_prev=x_includes ;;
1269
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271
 
    x_includes=$ac_optarg ;;
1272
 
 
1273
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275
 
    ac_prev=x_libraries ;;
1276
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278
 
    x_libraries=$ac_optarg ;;
1279
 
 
1280
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1281
 
Try \`$0 --help' for more information." >&2
1282
 
   { (exit 1); exit 1; }; }
1283
 
    ;;
1284
 
 
1285
 
  *=*)
1286
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287
 
    # Reject names that are not valid shell variable names.
1288
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1289
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1290
 
   { (exit 1); exit 1; }; }
1291
 
    eval $ac_envvar=\$ac_optarg
1292
 
    export $ac_envvar ;;
1293
 
 
1294
 
  *)
1295
 
    # FIXME: should be removed in autoconf 3.0.
1296
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300
 
    ;;
1301
 
 
1302
 
  esac
1303
 
done
1304
 
 
1305
 
if test -n "$ac_prev"; then
1306
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1308
 
   { (exit 1); exit 1; }; }
1309
 
fi
1310
 
 
1311
 
# Be sure to have absolute directory names.
1312
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1314
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315
 
                libdir localedir mandir
1316
 
do
1317
 
  eval ac_val=\$$ac_var
1318
 
  case $ac_val in
1319
 
    [\\/$]* | ?:[\\/]* )  continue;;
1320
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321
 
  esac
1322
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323
 
   { (exit 1); exit 1; }; }
1324
 
done
1325
 
 
1326
 
# There might be people who depend on the old broken behavior: `$host'
1327
 
# used to hold the argument of --host etc.
1328
 
# FIXME: To remove some day.
1329
 
build=$build_alias
1330
 
host=$host_alias
1331
 
target=$target_alias
1332
 
 
1333
 
# FIXME: To remove some day.
1334
 
if test "x$host_alias" != x; then
1335
 
  if test "x$build_alias" = x; then
1336
 
    cross_compiling=maybe
1337
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338
 
    If a cross compiler is detected then cross compile mode will be used." >&2
1339
 
  elif test "x$build_alias" != "x$host_alias"; then
1340
 
    cross_compiling=yes
1341
 
  fi
1342
 
fi
1343
 
 
1344
 
ac_tool_prefix=
1345
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
 
 
1347
 
test "$silent" = yes && exec 6>/dev/null
1348
 
 
1349
 
 
1350
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351
 
ac_ls_di=`ls -di .` &&
1352
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1354
 
   { (exit 1); exit 1; }; }
1355
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1357
 
   { (exit 1); exit 1; }; }
1358
 
 
1359
 
 
1360
 
# Find the source files, if location was not specified.
1361
 
if test -z "$srcdir"; then
1362
 
  ac_srcdir_defaulted=yes
1363
 
  # Try the directory containing this script, then the parent directory.
1364
 
  ac_confdir=`$as_dirname -- "$0" ||
1365
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366
 
         X"$0" : 'X\(//\)[^/]' \| \
1367
 
         X"$0" : 'X\(//\)$' \| \
1368
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1369
 
echo X"$0" |
1370
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371
 
            s//\1/
1372
 
            q
1373
 
          }
1374
 
          /^X\(\/\/\)[^/].*/{
1375
 
            s//\1/
1376
 
            q
1377
 
          }
1378
 
          /^X\(\/\/\)$/{
1379
 
            s//\1/
1380
 
            q
1381
 
          }
1382
 
          /^X\(\/\).*/{
1383
 
            s//\1/
1384
 
            q
1385
 
          }
1386
 
          s/.*/./; q'`
1387
 
  srcdir=$ac_confdir
1388
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1389
 
    srcdir=..
1390
 
  fi
1391
 
else
1392
 
  ac_srcdir_defaulted=no
1393
 
fi
1394
 
if test ! -r "$srcdir/$ac_unique_file"; then
1395
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397
 
   { (exit 1); exit 1; }; }
1398
 
fi
1399
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400
 
ac_abs_confdir=`(
1401
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1402
 
   { (exit 1); exit 1; }; }
1403
 
        pwd)`
1404
 
# When building in place, set srcdir=.
1405
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1406
 
  srcdir=.
1407
 
fi
1408
 
# Remove unnecessary trailing slashes from srcdir.
1409
 
# Double slashes in file names in object file debugging info
1410
 
# mess up M-x gdb in Emacs.
1411
 
case $srcdir in
1412
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413
 
esac
1414
 
for ac_var in $ac_precious_vars; do
1415
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1417
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419
 
done
1420
 
 
1421
 
#
1422
 
# Report the --help message.
1423
 
#
1424
 
if test "$ac_init_help" = "long"; then
1425
 
  # Omit some internal or obsolete options to make the list less imposing.
1426
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1427
 
  cat <<_ACEOF
1428
 
\`configure' configures linux nfs-utils 1.0.9-pre1 to adapt to many kinds of systems.
1429
 
 
1430
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1431
 
 
1432
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
 
 
1435
 
Defaults for the options are specified in brackets.
1436
 
 
1437
 
Configuration:
1438
 
  -h, --help              display this help and exit
1439
 
      --help=short        display options specific to this package
1440
 
      --help=recursive    display the short help of all the included packages
1441
 
  -V, --version           display version information and exit
1442
 
  -q, --quiet, --silent   do not print \`checking...' messages
1443
 
      --cache-file=FILE   cache test results in FILE [disabled]
1444
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1445
 
  -n, --no-create         do not create output files
1446
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
 
 
1448
 
Installation directories:
1449
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1450
 
                          [$ac_default_prefix]
1451
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452
 
                          [PREFIX]
1453
 
 
1454
 
By default, \`make install' will install all the files in
1455
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457
 
for instance \`--prefix=\$HOME'.
1458
 
 
1459
 
For better control, use the options below.
1460
 
 
1461
 
Fine tuning of the installation directories:
1462
 
  --bindir=DIR           user executables [EPREFIX/bin]
1463
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1464
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1465
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1466
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1467
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1468
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1469
 
  --includedir=DIR       C header files [PREFIX/include]
1470
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1471
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1472
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1473
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1474
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1475
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1476
 
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1477
 
  --htmldir=DIR          html documentation [DOCDIR]
1478
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1479
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1480
 
  --psdir=DIR            ps documentation [DOCDIR]
1481
 
_ACEOF
1482
 
 
1483
 
  cat <<\_ACEOF
1484
 
 
1485
 
Program names:
1486
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1487
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1488
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
 
 
1490
 
System types:
1491
 
  --build=BUILD     configure for building on BUILD [guessed]
1492
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493
 
_ACEOF
1494
 
fi
1495
 
 
1496
 
if test -n "$ac_init_help"; then
1497
 
  case $ac_init_help in
1498
 
     short | recursive ) echo "Configuration of linux nfs-utils 1.0.9-pre1:";;
1499
 
   esac
1500
 
  cat <<\_ACEOF
1501
 
 
1502
 
Optional Features:
1503
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1504
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1505
 
  --enable-nfsv3          enable support for NFSv3 @<:@default=yes@:>@
1506
 
  --enable-nfsv4          enable support for NFSv4 @<:@default=yes@:>@
1507
 
  --enable-gss            enable support for rpcsec_gss @<:@default=yes@:>@
1508
 
  --enable-kprefix        install progs as rpc.knfsd etc
1509
 
  --enable-secure-statd   Only lockd can use statd (security)
1510
 
  --enable-rquotad        enable rquotad @<:@default=yes@:>@
1511
 
  --enable-mount          Create mount.nfs and don't use the util-linux
1512
 
                          mount(8) functionality. @<:@default=yes@:>@
1513
 
  --disable-dependency-tracking  speeds up one-time build
1514
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1515
 
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1516
 
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1517
 
  --enable-fast-install@<:@=PKGS@:>@ 
1518
 
                          optimize for fast installation @<:@default=yes@:>@
1519
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1520
 
 
1521
 
Optional Packages:
1522
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524
 
  --with-release=XXX      set release to XXX [1]
1525
 
  --with-statedir=/foo    use state dir /foo /var/lib/nfs
1526
 
  --with-statduser=rpcuser 
1527
 
                          statd to run under @<:@rpcuser or nobody@:>@
1528
 
  --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1529
 
                 (optionally in PATH)
1530
 
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1531
 
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1532
 
                          both@:>@
1533
 
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1534
 
  --with-krb5=DIR         use Kerberos v5 installation in DIR
1535
 
 
1536
 
Some influential environment variables:
1537
 
  CC          C compiler command
1538
 
  CFLAGS      C compiler flags
1539
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1540
 
              nonstandard directory <lib dir>
1541
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1542
 
              you have headers in a nonstandard directory <include dir>
1543
 
  CXX         C++ compiler command
1544
 
  CXXFLAGS    C++ compiler flags
1545
 
  CPP         C preprocessor
1546
 
  CXXCPP      C++ preprocessor
1547
 
  F77         Fortran 77 compiler command
1548
 
  FFLAGS      Fortran 77 compiler flags
1549
 
  PKG_CONFIG  path to pkg-config utility
1550
 
  RPCSECGSS_CFLAGS 
1551
 
              C compiler flags for RPCSECGSS, overriding pkg-config
1552
 
  RPCSECGSS_LIBS 
1553
 
              linker flags for RPCSECGSS, overriding pkg-config
1554
 
  GSSAPI_CFLAGS 
1555
 
              C compiler flags for GSSAPI, overriding pkg-config
1556
 
  GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1557
 
 
1558
 
Use these variables to override the choices made by `configure' or to help
1559
 
it to find libraries and programs with nonstandard names/locations.
1560
 
 
1561
 
Report bugs to <nfs@lists.sf.net>.
1562
 
_ACEOF
1563
 
ac_status=$?
1564
 
fi
1565
 
 
1566
 
if test "$ac_init_help" = "recursive"; then
1567
 
  # If there are subdirs, report their specific --help.
1568
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569
 
    test -d "$ac_dir" || continue
1570
 
    ac_builddir=.
1571
 
 
1572
 
case "$ac_dir" in
1573
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574
 
*)
1575
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1576
 
  # A ".." for each directory in $ac_dir_suffix.
1577
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1578
 
  case $ac_top_builddir_sub in
1579
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581
 
  esac ;;
1582
 
esac
1583
 
ac_abs_top_builddir=$ac_pwd
1584
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585
 
# for backward compatibility:
1586
 
ac_top_builddir=$ac_top_build_prefix
1587
 
 
1588
 
case $srcdir in
1589
 
  .)  # We are building in place.
1590
 
    ac_srcdir=.
1591
 
    ac_top_srcdir=$ac_top_builddir_sub
1592
 
    ac_abs_top_srcdir=$ac_pwd ;;
1593
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1594
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1595
 
    ac_top_srcdir=$srcdir
1596
 
    ac_abs_top_srcdir=$srcdir ;;
1597
 
  *) # Relative name.
1598
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1600
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601
 
esac
1602
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
 
 
1604
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1605
 
    # Check for guested configure.
1606
 
    if test -f "$ac_srcdir/configure.gnu"; then
1607
 
      echo &&
1608
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609
 
    elif test -f "$ac_srcdir/configure"; then
1610
 
      echo &&
1611
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1612
 
    else
1613
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614
 
    fi || ac_status=$?
1615
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1616
 
  done
1617
 
fi
1618
 
 
1619
 
test -n "$ac_init_help" && exit $ac_status
1620
 
if $ac_init_version; then
1621
 
  cat <<\_ACEOF
1622
 
linux nfs-utils configure 1.0.9-pre1
1623
 
generated by GNU Autoconf 2.59e
1624
 
 
1625
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1626
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1627
 
This configure script is free software; the Free Software Foundation
1628
 
gives unlimited permission to copy, distribute and modify it.
1629
 
_ACEOF
1630
 
  exit
1631
 
fi
1632
 
cat >config.log <<_ACEOF
1633
 
This file contains any messages produced by compilers while
1634
 
running configure, to aid debugging if configure makes a mistake.
1635
 
 
1636
 
It was created by linux nfs-utils $as_me 1.0.9-pre1, which was
1637
 
generated by GNU Autoconf 2.59e.  Invocation command line was
1638
 
 
1639
 
  $ $0 $@
1640
 
 
1641
 
_ACEOF
1642
 
exec 5>>config.log
1643
 
{
1644
 
cat <<_ASUNAME
1645
 
@%:@@%:@ --------- @%:@@%:@
1646
 
@%:@@%:@ Platform. @%:@@%:@
1647
 
@%:@@%:@ --------- @%:@@%:@
1648
 
 
1649
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1650
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1651
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1652
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1653
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1654
 
 
1655
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1656
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1657
 
 
1658
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1659
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1660
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1661
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1662
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1663
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1664
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1665
 
 
1666
 
_ASUNAME
1667
 
 
1668
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669
 
for as_dir in $PATH
1670
 
do
1671
 
  IFS=$as_save_IFS
1672
 
  test -z "$as_dir" && as_dir=.
1673
 
  echo "PATH: $as_dir"
1674
 
done
1675
 
IFS=$as_save_IFS
1676
 
 
1677
 
} >&5
1678
 
 
1679
 
cat >&5 <<_ACEOF
1680
 
 
1681
 
 
1682
 
@%:@@%:@ ----------- @%:@@%:@
1683
 
@%:@@%:@ Core tests. @%:@@%:@
1684
 
@%:@@%:@ ----------- @%:@@%:@
1685
 
 
1686
 
_ACEOF
1687
 
 
1688
 
 
1689
 
# Keep a trace of the command line.
1690
 
# Strip out --no-create and --no-recursion so they do not pile up.
1691
 
# Strip out --silent because we don't want to record it for future runs.
1692
 
# Also quote any args containing shell meta-characters.
1693
 
# Make two passes to allow for proper duplicate-argument suppression.
1694
 
ac_configure_args=
1695
 
ac_configure_args0=
1696
 
ac_configure_args1=
1697
 
ac_must_keep_next=false
1698
 
for ac_pass in 1 2
1699
 
do
1700
 
  for ac_arg
1701
 
  do
1702
 
    case $ac_arg in
1703
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1704
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1705
 
    | -silent | --silent | --silen | --sile | --sil)
1706
 
      continue ;;
1707
 
    *\'*)
1708
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1709
 
    esac
1710
 
    case $ac_pass in
1711
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1712
 
    2)
1713
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1714
 
      if test $ac_must_keep_next = true; then
1715
 
        ac_must_keep_next=false # Got value, back to normal.
1716
 
      else
1717
 
        case $ac_arg in
1718
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1719
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1720
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1721
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1722
 
            case "$ac_configure_args0 " in
1723
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1724
 
            esac
1725
 
            ;;
1726
 
          -* ) ac_must_keep_next=true ;;
1727
 
        esac
1728
 
      fi
1729
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
1730
 
      ;;
1731
 
    esac
1732
 
  done
1733
 
done
1734
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1735
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1736
 
 
1737
 
# When interrupted or exit'd, cleanup temporary files, and complete
1738
 
# config.log.  We remove comments because anyway the quotes in there
1739
 
# would cause problems or look ugly.
1740
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1741
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1742
 
trap 'exit_status=$?
1743
 
  # Save into config.log some information that might help in debugging.
1744
 
  {
1745
 
    echo
1746
 
 
1747
 
    cat <<\_ASBOX
1748
 
@%:@@%:@ ---------------- @%:@@%:@
1749
 
@%:@@%:@ Cache variables. @%:@@%:@
1750
 
@%:@@%:@ ---------------- @%:@@%:@
1751
 
_ASBOX
1752
 
    echo
1753
 
    # The following way of writing the cache mishandles newlines in values,
1754
 
(
1755
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1756
 
    eval ac_val=\$$ac_var
1757
 
    case $ac_val in #(
1758
 
    *${as_nl}*)
1759
 
      case $ac_var in #(
1760
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1761
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1762
 
      esac
1763
 
      case $ac_var in #(
1764
 
      _ | IFS | as_nl) ;; #(
1765
 
      *) $as_unset $ac_var ;;
1766
 
      esac ;;
1767
 
    esac
1768
 
  done
1769
 
  (set) 2>&1 |
1770
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771
 
    *${as_nl}ac_space=\ *)
1772
 
      sed -n \
1773
 
        "s/'\''/'\''\\\\'\'''\''/g;
1774
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1775
 
      ;; #(
1776
 
    *)
1777
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1778
 
      ;;
1779
 
    esac |
1780
 
    sort
1781
 
)
1782
 
    echo
1783
 
 
1784
 
    cat <<\_ASBOX
1785
 
@%:@@%:@ ----------------- @%:@@%:@
1786
 
@%:@@%:@ Output variables. @%:@@%:@
1787
 
@%:@@%:@ ----------------- @%:@@%:@
1788
 
_ASBOX
1789
 
    echo
1790
 
    for ac_var in $ac_subst_vars
1791
 
    do
1792
 
      eval ac_val=\$$ac_var
1793
 
      case $ac_val in
1794
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795
 
      esac
1796
 
      echo "$ac_var='\''$ac_val'\''"
1797
 
    done | sort
1798
 
    echo
1799
 
 
1800
 
    if test -n "$ac_subst_files"; then
1801
 
      cat <<\_ASBOX
1802
 
@%:@@%:@ ------------------- @%:@@%:@
1803
 
@%:@@%:@ File substitutions. @%:@@%:@
1804
 
@%:@@%:@ ------------------- @%:@@%:@
1805
 
_ASBOX
1806
 
      echo
1807
 
      for ac_var in $ac_subst_files
1808
 
      do
1809
 
        eval ac_val=\$$ac_var
1810
 
        case $ac_val in
1811
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812
 
        esac
1813
 
        echo "$ac_var='\''$ac_val'\''"
1814
 
      done | sort
1815
 
      echo
1816
 
    fi
1817
 
 
1818
 
    if test -s confdefs.h; then
1819
 
      cat <<\_ASBOX
1820
 
@%:@@%:@ ----------- @%:@@%:@
1821
 
@%:@@%:@ confdefs.h. @%:@@%:@
1822
 
@%:@@%:@ ----------- @%:@@%:@
1823
 
_ASBOX
1824
 
      echo
1825
 
      cat confdefs.h
1826
 
      echo
1827
 
    fi
1828
 
    test "$ac_signal" != 0 &&
1829
 
      echo "$as_me: caught signal $ac_signal"
1830
 
    echo "$as_me: exit $exit_status"
1831
 
  } >&5
1832
 
  rm -f core *.core core.conftest.* &&
1833
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1834
 
    exit $exit_status
1835
 
' 0
1836
 
for ac_signal in 1 2 13 15; do
1837
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1838
 
done
1839
 
ac_signal=0
1840
 
 
1841
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1842
 
rm -f -r conftest* confdefs.h
1843
 
 
1844
 
# Predefined preprocessor variables.
1845
 
 
1846
 
cat >>confdefs.h <<_ACEOF
1847
 
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1848
 
_ACEOF
1849
 
 
1850
 
 
1851
 
cat >>confdefs.h <<_ACEOF
1852
 
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1853
 
_ACEOF
1854
 
 
1855
 
 
1856
 
cat >>confdefs.h <<_ACEOF
1857
 
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1858
 
_ACEOF
1859
 
 
1860
 
 
1861
 
cat >>confdefs.h <<_ACEOF
1862
 
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1863
 
_ACEOF
1864
 
 
1865
 
 
1866
 
cat >>confdefs.h <<_ACEOF
1867
 
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1868
 
_ACEOF
1869
 
 
1870
 
 
1871
 
# Let the site file select an alternate cache file if it wants to.
1872
 
# Prefer explicitly selected file to automatically selected ones.
1873
 
if test -n "$CONFIG_SITE"; then
1874
 
  set x "$CONFIG_SITE"
1875
 
elif test "x$prefix" != xNONE; then
1876
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1877
 
else
1878
 
  set x "$ac_default_prefix/share/config.site" \
1879
 
        "$ac_default_prefix/etc/config.site"
1880
 
fi
1881
 
shift
1882
 
for ac_site_file
1883
 
do
1884
 
  if test -r "$ac_site_file"; then
1885
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1886
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1887
 
    sed 's/^/| /' "$ac_site_file" >&5
1888
 
    . "$ac_site_file"
1889
 
  fi
1890
 
done
1891
 
 
1892
 
if test -r "$cache_file"; then
1893
 
  # Some versions of bash will fail to source /dev/null (special
1894
 
  # files actually), so we avoid doing that.
1895
 
  if test -f "$cache_file"; then
1896
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1897
 
echo "$as_me: loading cache $cache_file" >&6;}
1898
 
    case $cache_file in
1899
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1900
 
      *)                      . "./$cache_file";;
1901
 
    esac
1902
 
  fi
1903
 
else
1904
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1905
 
echo "$as_me: creating cache $cache_file" >&6;}
1906
 
  >$cache_file
1907
 
fi
1908
 
 
1909
 
# Check that the precious variables saved in the cache have kept the same
1910
 
# value.
1911
 
ac_cache_corrupted=false
1912
 
for ac_var in $ac_precious_vars; do
1913
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1914
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1915
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1916
 
  eval ac_new_val=\$ac_env_${ac_var}_value
1917
 
  case $ac_old_set,$ac_new_set in
1918
 
    set,)
1919
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1920
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1921
 
      ac_cache_corrupted=: ;;
1922
 
    ,set)
1923
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1924
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1925
 
      ac_cache_corrupted=: ;;
1926
 
    ,);;
1927
 
    *)
1928
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1929
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1930
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1931
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1932
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1933
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1934
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1935
 
        ac_cache_corrupted=:
1936
 
      fi;;
1937
 
  esac
1938
 
  # Pass precious variables to config.status.
1939
 
  if test "$ac_new_set" = set; then
1940
 
    case $ac_new_val in
1941
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1942
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1943
 
    esac
1944
 
    case " $ac_configure_args " in
1945
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1946
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1947
 
    esac
1948
 
  fi
1949
 
done
1950
 
if $ac_cache_corrupted; then
1951
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1952
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1953
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1954
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1955
 
   { (exit 1); exit 1; }; }
1956
 
fi
1957
 
 
1958
 
 
1959
 
 
1960
 
 
1961
 
 
1962
 
 
1963
 
 
1964
 
 
1965
 
 
1966
 
 
1967
 
 
1968
 
 
1969
 
 
1970
 
 
1971
 
 
1972
 
 
1973
 
 
1974
 
 
1975
 
 
1976
 
 
1977
 
 
1978
 
 
1979
 
 
1980
 
 
1981
 
 
1982
 
ac_ext=c
1983
 
ac_cpp='$CPP $CPPFLAGS'
1984
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1987
 
 
1988
 
 
1989
 
ac_aux_dir=
1990
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991
 
  if test -f "$ac_dir/install-sh"; then
1992
 
    ac_aux_dir=$ac_dir
1993
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1994
 
    break
1995
 
  elif test -f "$ac_dir/install.sh"; then
1996
 
    ac_aux_dir=$ac_dir
1997
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1998
 
    break
1999
 
  elif test -f "$ac_dir/shtool"; then
2000
 
    ac_aux_dir=$ac_dir
2001
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2002
 
    break
2003
 
  fi
2004
 
done
2005
 
if test -z "$ac_aux_dir"; then
2006
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008
 
   { (exit 1); exit 1; }; }
2009
 
fi
2010
 
 
2011
 
# These three variables are undocumented and unsupported,
2012
 
# and are intended to be withdrawn in a future Autoconf release.
2013
 
# They can cause serious problems if a builder's source tree is in a directory
2014
 
# whose full name contains unusual characters.
2015
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2016
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2017
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2018
 
 
2019
 
 
2020
 
# Make sure we can run config.sub.
2021
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024
 
   { (exit 1); exit 1; }; }
2025
 
 
2026
 
{ echo "$as_me:$LINENO: checking build system type" >&5
2027
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028
 
if test "${ac_cv_build+set}" = set; then
2029
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2030
 
else
2031
 
  ac_build_alias=$build_alias
2032
 
test "x$ac_build_alias" = x &&
2033
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034
 
test "x$ac_build_alias" = x &&
2035
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037
 
   { (exit 1); exit 1; }; }
2038
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041
 
   { (exit 1); exit 1; }; }
2042
 
 
2043
 
fi
2044
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045
 
echo "${ECHO_T}$ac_cv_build" >&6; }
2046
 
case $ac_cv_build in
2047
 
*-*-*) ;;
2048
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049
 
echo "$as_me: error: invalid value of canonical build" >&2;}
2050
 
   { (exit 1); exit 1; }; };;
2051
 
esac
2052
 
build=$ac_cv_build
2053
 
ac_save_IFS=$IFS; IFS='-'
2054
 
set x $ac_cv_build
2055
 
shift
2056
 
build_cpu=$1
2057
 
build_vendor=$2
2058
 
shift; shift
2059
 
# Remember, the first character of IFS is used to create $*,
2060
 
# except with old shells:
2061
 
build_os=$*
2062
 
IFS=$ac_save_IFS
2063
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2064
 
 
2065
 
 
2066
 
{ echo "$as_me:$LINENO: checking host system type" >&5
2067
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068
 
if test "${ac_cv_host+set}" = set; then
2069
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2070
 
else
2071
 
  if test "x$host_alias" = x; then
2072
 
  ac_cv_host=$ac_cv_build
2073
 
else
2074
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077
 
   { (exit 1); exit 1; }; }
2078
 
fi
2079
 
 
2080
 
fi
2081
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082
 
echo "${ECHO_T}$ac_cv_host" >&6; }
2083
 
case $ac_cv_host in
2084
 
*-*-*) ;;
2085
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086
 
echo "$as_me: error: invalid value of canonical host" >&2;}
2087
 
   { (exit 1); exit 1; }; };;
2088
 
esac
2089
 
host=$ac_cv_host
2090
 
ac_save_IFS=$IFS; IFS='-'
2091
 
set x $ac_cv_host
2092
 
shift
2093
 
host_cpu=$1
2094
 
host_vendor=$2
2095
 
shift; shift
2096
 
# Remember, the first character of IFS is used to create $*,
2097
 
# except with old shells:
2098
 
host_os=$*
2099
 
IFS=$ac_save_IFS
2100
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2101
 
 
2102
 
 
2103
 
 
2104
 
case aclocal in
2105
 
  [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
2106
 
  *)                      ac_macro_dir=$srcdir/aclocal ;;
2107
 
esac
2108
 
test -d "$ac_macro_dir" ||
2109
 
  { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2110
 
echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2111
 
   { (exit 1); exit 1; }; }
2112
 
 
2113
 
am__api_version="1.9"
2114
 
# Find a good install program.  We prefer a C program (faster),
2115
 
# so one script is as good as another.  But avoid the broken or
2116
 
# incompatible versions:
2117
 
# SysV /etc/install, /usr/sbin/install
2118
 
# SunOS /usr/etc/install
2119
 
# IRIX /sbin/install
2120
 
# AIX /bin/install
2121
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2122
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2123
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2124
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2125
 
# OS/2's system install, which has a completely different semantic
2126
 
# ./install, which can be erroneously created by make from ./install.sh.
2127
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2129
 
if test -z "$INSTALL"; then
2130
 
if test "${ac_cv_path_install+set}" = set; then
2131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2132
 
else
2133
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134
 
for as_dir in $PATH
2135
 
do
2136
 
  IFS=$as_save_IFS
2137
 
  test -z "$as_dir" && as_dir=.
2138
 
  # Account for people who put trailing slashes in PATH elements.
2139
 
case $as_dir/ in
2140
 
  ./ | .// | /cC/* | \
2141
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2143
 
  /usr/ucb/* ) ;;
2144
 
  *)
2145
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2146
 
    # Don't use installbsd from OSF since it installs stuff as root
2147
 
    # by default.
2148
 
    for ac_prog in ginstall scoinst install; do
2149
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2150
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151
 
          if test $ac_prog = install &&
2152
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153
 
            # AIX install.  It has an incompatible calling convention.
2154
 
            :
2155
 
          elif test $ac_prog = install &&
2156
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157
 
            # program-specific install script used by HP pwplus--don't use.
2158
 
            :
2159
 
          else
2160
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2161
 
            break 3
2162
 
          fi
2163
 
        fi
2164
 
      done
2165
 
    done
2166
 
    ;;
2167
 
esac
2168
 
done
2169
 
IFS=$as_save_IFS
2170
 
 
2171
 
 
2172
 
fi
2173
 
  if test "${ac_cv_path_install+set}" = set; then
2174
 
    INSTALL=$ac_cv_path_install
2175
 
  else
2176
 
    # As a last resort, use the slow shell script.  Don't cache a
2177
 
    # value for INSTALL within a source directory, because that will
2178
 
    # break other packages using the cache if that directory is
2179
 
    # removed, or if the value is a relative name.
2180
 
    INSTALL=$ac_install_sh
2181
 
  fi
2182
 
fi
2183
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2184
 
echo "${ECHO_T}$INSTALL" >&6; }
2185
 
 
2186
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187
 
# It thinks the first close brace ends the variable substitution.
2188
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2189
 
 
2190
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2191
 
 
2192
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2193
 
 
2194
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2196
 
# Just in case
2197
 
sleep 1
2198
 
echo timestamp > conftest.file
2199
 
# Do `set' in a subshell so we don't clobber the current shell's
2200
 
# arguments.  Must try -L first in case configure is actually a
2201
 
# symlink; some systems play weird games with the mod time of symlinks
2202
 
# (eg FreeBSD returns the mod time of the symlink's containing
2203
 
# directory).
2204
 
if (
2205
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206
 
   if test "$*" = "X"; then
2207
 
      # -L didn't work.
2208
 
      set X `ls -t $srcdir/configure conftest.file`
2209
 
   fi
2210
 
   rm -f conftest.file
2211
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2212
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2213
 
 
2214
 
      # If neither matched, then we have a broken ls.  This can happen
2215
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2216
 
      # broken ls alias from the environment.  This has actually
2217
 
      # happened.  Such a system could not be considered "sane".
2218
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2219
 
alias in your environment" >&5
2220
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2221
 
alias in your environment" >&2;}
2222
 
   { (exit 1); exit 1; }; }
2223
 
   fi
2224
 
 
2225
 
   test "$2" = conftest.file
2226
 
   )
2227
 
then
2228
 
   # Ok.
2229
 
   :
2230
 
else
2231
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232
 
Check your system clock" >&5
2233
 
echo "$as_me: error: newly created file is older than distributed files!
2234
 
Check your system clock" >&2;}
2235
 
   { (exit 1); exit 1; }; }
2236
 
fi
2237
 
{ echo "$as_me:$LINENO: result: yes" >&5
2238
 
echo "${ECHO_T}yes" >&6; }
2239
 
test "$program_prefix" != NONE &&
2240
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241
 
# Use a double $ so make ignores it.
2242
 
test "$program_suffix" != NONE &&
2243
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244
 
# Double any \ or $.  echo might interpret backslashes.
2245
 
# By default was `s,x,x', remove it if useless.
2246
 
cat <<\_ACEOF >conftest.sed
2247
 
s/[\\$]/&&/g;s/;s,x,x,$//
2248
 
_ACEOF
2249
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2250
 
rm -f conftest.sed
2251
 
 
2252
 
# expand $ac_aux_dir to an absolute path
2253
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2254
 
 
2255
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2256
 
# Use eval to expand $SHELL
2257
 
if eval "$MISSING --run true"; then
2258
 
  am_missing_run="$MISSING --run "
2259
 
else
2260
 
  am_missing_run=
2261
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2262
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2263
 
fi
2264
 
 
2265
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2266
 
  # We used to keeping the `.' as first argument, in order to
2267
 
  # allow $(mkdir_p) to be used without argument.  As in
2268
 
  #   $(mkdir_p) $(somedir)
2269
 
  # where $(somedir) is conditionally defined.  However this is wrong
2270
 
  # for two reasons:
2271
 
  #  1. if the package is installed by a user who cannot write `.'
2272
 
  #     make install will fail,
2273
 
  #  2. the above comment should most certainly read
2274
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2275
 
  #     so it does not work when $(somedir) is undefined and
2276
 
  #     $(DESTDIR) is not.
2277
 
  #  To support the latter case, we have to write
2278
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2279
 
  #  so the `.' trick is pointless.
2280
 
  mkdir_p='mkdir -p --'
2281
 
else
2282
 
  # On NextStep and OpenStep, the `mkdir' command does not
2283
 
  # recognize any option.  It will interpret all options as
2284
 
  # directories to create, and then abort because `.' already
2285
 
  # exists.
2286
 
  for d in ./-p ./--version;
2287
 
  do
2288
 
    test -d $d && rmdir $d
2289
 
  done
2290
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2291
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2292
 
    mkdir_p='$(mkinstalldirs)'
2293
 
  else
2294
 
    mkdir_p='$(install_sh) -d'
2295
 
  fi
2296
 
fi
2297
 
 
2298
 
for ac_prog in gawk mawk nawk awk
2299
 
do
2300
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2301
 
set dummy $ac_prog; ac_word=$2
2302
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2303
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304
 
if test "${ac_cv_prog_AWK+set}" = set; then
2305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2306
 
else
2307
 
  if test -n "$AWK"; then
2308
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2309
 
else
2310
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311
 
for as_dir in $PATH
2312
 
do
2313
 
  IFS=$as_save_IFS
2314
 
  test -z "$as_dir" && as_dir=.
2315
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2316
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2317
 
    ac_cv_prog_AWK="$ac_prog"
2318
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319
 
    break 2
2320
 
  fi
2321
 
done
2322
 
done
2323
 
IFS=$as_save_IFS
2324
 
 
2325
 
fi
2326
 
fi
2327
 
AWK=$ac_cv_prog_AWK
2328
 
if test -n "$AWK"; then
2329
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2330
 
echo "${ECHO_T}$AWK" >&6; }
2331
 
else
2332
 
  { echo "$as_me:$LINENO: result: no" >&5
2333
 
echo "${ECHO_T}no" >&6; }
2334
 
fi
2335
 
 
2336
 
 
2337
 
  test -n "$AWK" && break
2338
 
done
2339
 
 
2340
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
2343
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2345
 
else
2346
 
  cat >conftest.make <<\_ACEOF
2347
 
SHELL = /bin/sh
2348
 
all:
2349
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2350
 
_ACEOF
2351
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2353
 
  *@@@%%%=?*=@@@%%%*)
2354
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2355
 
  *)
2356
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2357
 
esac
2358
 
rm -f conftest.make
2359
 
fi
2360
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361
 
  { echo "$as_me:$LINENO: result: yes" >&5
2362
 
echo "${ECHO_T}yes" >&6; }
2363
 
  SET_MAKE=
2364
 
else
2365
 
  { echo "$as_me:$LINENO: result: no" >&5
2366
 
echo "${ECHO_T}no" >&6; }
2367
 
  SET_MAKE="MAKE=${MAKE-make}"
2368
 
fi
2369
 
 
2370
 
rm -rf .tst 2>/dev/null
2371
 
mkdir .tst 2>/dev/null
2372
 
if test -d .tst; then
2373
 
  am__leading_dot=.
2374
 
else
2375
 
  am__leading_dot=_
2376
 
fi
2377
 
rmdir .tst 2>/dev/null
2378
 
 
2379
 
# test to see if srcdir already configured
2380
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2381
 
   test -f $srcdir/config.status; then
2382
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384
 
   { (exit 1); exit 1; }; }
2385
 
fi
2386
 
 
2387
 
# test whether we have cygpath
2388
 
if test -z "$CYGPATH_W"; then
2389
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
2390
 
    CYGPATH_W='cygpath -w'
2391
 
  else
2392
 
    CYGPATH_W=echo
2393
 
  fi
2394
 
fi
2395
 
 
2396
 
 
2397
 
# Define the identity of the package.
2398
 
 PACKAGE='nfs-utils'
2399
 
 VERSION='1.0.9-pre1'
2400
 
 
2401
 
 
2402
 
cat >>confdefs.h <<_ACEOF
2403
 
@%:@define PACKAGE "$PACKAGE"
2404
 
_ACEOF
2405
 
 
2406
 
 
2407
 
cat >>confdefs.h <<_ACEOF
2408
 
@%:@define VERSION "$VERSION"
2409
 
_ACEOF
2410
 
 
2411
 
# Some tools Automake needs.
2412
 
 
2413
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2414
 
 
2415
 
 
2416
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2417
 
 
2418
 
 
2419
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2420
 
 
2421
 
 
2422
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2423
 
 
2424
 
 
2425
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2426
 
 
2427
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2428
 
 
2429
 
# Installed binaries are usually stripped using `strip' when the user
2430
 
# run `make install-strip'.  However `strip' might not be the right
2431
 
# tool to use in cross-compilation environments, therefore Automake
2432
 
# will honor the `STRIP' environment variable to overrule this program.
2433
 
if test "$cross_compiling" != no; then
2434
 
  if test -n "$ac_tool_prefix"; then
2435
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2437
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2438
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2440
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2441
 
else
2442
 
  if test -n "$STRIP"; then
2443
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444
 
else
2445
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446
 
for as_dir in $PATH
2447
 
do
2448
 
  IFS=$as_save_IFS
2449
 
  test -z "$as_dir" && as_dir=.
2450
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2451
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454
 
    break 2
2455
 
  fi
2456
 
done
2457
 
done
2458
 
IFS=$as_save_IFS
2459
 
 
2460
 
fi
2461
 
fi
2462
 
STRIP=$ac_cv_prog_STRIP
2463
 
if test -n "$STRIP"; then
2464
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2465
 
echo "${ECHO_T}$STRIP" >&6; }
2466
 
else
2467
 
  { echo "$as_me:$LINENO: result: no" >&5
2468
 
echo "${ECHO_T}no" >&6; }
2469
 
fi
2470
 
 
2471
 
 
2472
 
fi
2473
 
if test -z "$ac_cv_prog_STRIP"; then
2474
 
  ac_ct_STRIP=$STRIP
2475
 
  # Extract the first word of "strip", so it can be a program name with args.
2476
 
set dummy strip; ac_word=$2
2477
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2478
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2480
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2481
 
else
2482
 
  if test -n "$ac_ct_STRIP"; then
2483
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2484
 
else
2485
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486
 
for as_dir in $PATH
2487
 
do
2488
 
  IFS=$as_save_IFS
2489
 
  test -z "$as_dir" && as_dir=.
2490
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2491
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2492
 
    ac_cv_prog_ac_ct_STRIP="strip"
2493
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494
 
    break 2
2495
 
  fi
2496
 
done
2497
 
done
2498
 
IFS=$as_save_IFS
2499
 
 
2500
 
fi
2501
 
fi
2502
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503
 
if test -n "$ac_ct_STRIP"; then
2504
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2505
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2506
 
else
2507
 
  { echo "$as_me:$LINENO: result: no" >&5
2508
 
echo "${ECHO_T}no" >&6; }
2509
 
fi
2510
 
 
2511
 
  if test "x$ac_ct_STRIP" = x; then
2512
 
    STRIP=":"
2513
 
  else
2514
 
    case $cross_compiling:$ac_tool_warned in
2515
 
yes:)
2516
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517
 
whose name does not start with the host triplet.  If you think this
2518
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2519
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520
 
whose name does not start with the host triplet.  If you think this
2521
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522
 
ac_tool_warned=yes ;;
2523
 
esac
2524
 
    STRIP=$ac_ct_STRIP
2525
 
  fi
2526
 
else
2527
 
  STRIP="$ac_cv_prog_STRIP"
2528
 
fi
2529
 
 
2530
 
fi
2531
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2532
 
 
2533
 
# We need awk for the "check" target.  The system "awk" is bad on
2534
 
# some platforms.
2535
 
# Always define AMTAR for backward compatibility.
2536
 
 
2537
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2538
 
 
2539
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2540
 
 
2541
 
 
2542
 
 
2543
 
 
2544
 
 
2545
 
 
2546
 
 
2547
 
 
2548
 
 
2549
 
# Check whether --with-release was given.
2550
 
if test "${with_release+set}" = set; then
2551
 
  withval=$with_release; RELEASE=$withval
2552
 
else
2553
 
  RELEASE=1
2554
 
fi
2555
 
 
2556
 
        
2557
 
 
2558
 
# Check whether --with-statedir was given.
2559
 
if test "${with_statedir+set}" = set; then
2560
 
  withval=$with_statedir; statedir=$withval
2561
 
else
2562
 
  statedir=/var/lib/nfs
2563
 
fi
2564
 
 
2565
 
        
2566
 
 
2567
 
# Check whether --with-statduser was given.
2568
 
if test "${with_statduser+set}" = set; then
2569
 
  withval=$with_statduser; statduser=$withval
2570
 
else
2571
 
  if test "x$cross_compiling" = "xno"; then
2572
 
                if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2573
 
                        statduser=rpcuser
2574
 
                else
2575
 
                        statduser=nobody
2576
 
                fi
2577
 
        else
2578
 
                statduser=nobody
2579
 
        fi
2580
 
fi
2581
 
 
2582
 
        
2583
 
# Check whether --enable-nfsv3 was given.
2584
 
if test "${enable_nfsv3+set}" = set; then
2585
 
  enableval=$enable_nfsv3; enable_nfsv3=$enableval
2586
 
else
2587
 
  enable_nfsv3=yes
2588
 
fi
2589
 
 
2590
 
        if test "$enable_nfsv3" = yes; then
2591
 
                
2592
 
cat >>confdefs.h <<\_ACEOF
2593
 
@%:@define NFS3_SUPPORTED 1
2594
 
_ACEOF
2595
 
 
2596
 
        else
2597
 
                enable_nfsv3=
2598
 
        fi
2599
 
        
2600
 
# Check whether --enable-nfsv4 was given.
2601
 
if test "${enable_nfsv4+set}" = set; then
2602
 
  enableval=$enable_nfsv4; enable_nfsv4=$enableval
2603
 
else
2604
 
  enable_nfsv4=yes
2605
 
fi
2606
 
 
2607
 
        if test "$enable_nfsv4" = yes; then
2608
 
                
2609
 
cat >>confdefs.h <<\_ACEOF
2610
 
@%:@define NFS4_SUPPORTED 1
2611
 
_ACEOF
2612
 
 
2613
 
                IDMAPD=idmapd
2614
 
        else
2615
 
                enable_nfsv4=
2616
 
                IDMAPD=
2617
 
        fi
2618
 
        
2619
 
        
2620
 
         
2621
 
 
2622
 
if test "$enable_nfsv4" = "yes"; then
2623
 
  CONFIG_NFSV4_TRUE=
2624
 
  CONFIG_NFSV4_FALSE='#'
2625
 
else
2626
 
  CONFIG_NFSV4_TRUE='#'
2627
 
  CONFIG_NFSV4_FALSE=
2628
 
fi
2629
 
 
2630
 
# Check whether --enable-gss was given.
2631
 
if test "${enable_gss+set}" = set; then
2632
 
  enableval=$enable_gss; enable_gss=$enableval
2633
 
else
2634
 
  enable_gss=yes
2635
 
fi
2636
 
 
2637
 
        if test "$enable_gss" = yes; then
2638
 
                
2639
 
cat >>confdefs.h <<\_ACEOF
2640
 
@%:@define GSS_SUPPORTED 1
2641
 
_ACEOF
2642
 
 
2643
 
                GSSD=gssd
2644
 
                SVCGSSD=svcgssd
2645
 
        else
2646
 
                enable_gss=
2647
 
                GSSD=
2648
 
                SVCGSSD=
2649
 
        fi
2650
 
        
2651
 
        
2652
 
        
2653
 
         
2654
 
 
2655
 
if test "$enable_gss" = "yes"; then
2656
 
  CONFIG_GSS_TRUE=
2657
 
  CONFIG_GSS_FALSE='#'
2658
 
else
2659
 
  CONFIG_GSS_TRUE='#'
2660
 
  CONFIG_GSS_FALSE=
2661
 
fi
2662
 
 
2663
 
# Check whether --enable-kprefix was given.
2664
 
if test "${enable_kprefix+set}" = set; then
2665
 
  enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2666
 
else
2667
 
  kprefix=
2668
 
fi
2669
 
 
2670
 
        
2671
 
# Check whether --enable-secure-statd was given.
2672
 
if test "${enable_secure_statd+set}" = set; then
2673
 
  enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2674
 
else
2675
 
  secure_statd=no
2676
 
fi
2677
 
 
2678
 
        if test "$secure_statd" = yes; then
2679
 
                
2680
 
cat >>confdefs.h <<\_ACEOF
2681
 
@%:@define RESTRICTED_STATD 1
2682
 
_ACEOF
2683
 
 
2684
 
        fi
2685
 
        
2686
 
# Check whether --enable-rquotad was given.
2687
 
if test "${enable_rquotad+set}" = set; then
2688
 
  enableval=$enable_rquotad; enable_rquotad=$enableval
2689
 
else
2690
 
  enable_rquotad=yes
2691
 
fi
2692
 
 
2693
 
        if test "$enable_rquotad" = yes; then
2694
 
                RQUOTAD=rquotad
2695
 
        else
2696
 
                RQUOTAD=
2697
 
        fi
2698
 
         
2699
 
 
2700
 
if test "$enable_rquotad" = "yes"; then
2701
 
  CONFIG_RQUOTAD_TRUE=
2702
 
  CONFIG_RQUOTAD_FALSE='#'
2703
 
else
2704
 
  CONFIG_RQUOTAD_TRUE='#'
2705
 
  CONFIG_RQUOTAD_FALSE=
2706
 
fi
2707
 
 
2708
 
 
2709
 
# Check whether --enable-mount was given.
2710
 
if test "${enable_mount+set}" = set; then
2711
 
  enableval=$enable_mount; enable_mount=$enableval
2712
 
else
2713
 
  enable_mount=yes
2714
 
fi
2715
 
 
2716
 
         
2717
 
 
2718
 
if test "$enable_mount" = "yes"; then
2719
 
  CONFIG_MOUNT_TRUE=
2720
 
  CONFIG_MOUNT_FALSE='#'
2721
 
else
2722
 
  CONFIG_MOUNT_TRUE='#'
2723
 
  CONFIG_MOUNT_FALSE=
2724
 
fi
2725
 
 
2726
 
 
2727
 
# Check whether user wants TCP wrappers support
2728
 
DEPDIR="${am__leading_dot}deps"
2729
 
 
2730
 
ac_config_commands="$ac_config_commands depfiles"
2731
 
 
2732
 
 
2733
 
am_make=${MAKE-make}
2734
 
cat > confinc << 'END'
2735
 
am__doit:
2736
 
        @echo done
2737
 
.PHONY: am__doit
2738
 
END
2739
 
# If we don't find an include directive, just comment out the code.
2740
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2741
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2742
 
am__include="#"
2743
 
am__quote=
2744
 
_am_result=none
2745
 
# First try GNU make style include.
2746
 
echo "include confinc" > confmf
2747
 
# We grep out `Entering directory' and `Leaving directory'
2748
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2749
 
# In particular we don't look at `^make:' because GNU make might
2750
 
# be invoked under some other name (usually "gmake"), in which
2751
 
# case it prints its new name instead of `make'.
2752
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2753
 
   am__include=include
2754
 
   am__quote=
2755
 
   _am_result=GNU
2756
 
fi
2757
 
# Now try BSD make style include.
2758
 
if test "$am__include" = "#"; then
2759
 
   echo '.include "confinc"' > confmf
2760
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2761
 
      am__include=.include
2762
 
      am__quote="\""
2763
 
      _am_result=BSD
2764
 
   fi
2765
 
fi
2766
 
 
2767
 
 
2768
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2769
 
echo "${ECHO_T}$_am_result" >&6; }
2770
 
rm -f confinc confmf
2771
 
 
2772
 
# Check whether --enable-dependency-tracking was given.
2773
 
if test "${enable_dependency_tracking+set}" = set; then
2774
 
  enableval=$enable_dependency_tracking; 
2775
 
fi
2776
 
 
2777
 
if test "x$enable_dependency_tracking" != xno; then
2778
 
  am_depcomp="$ac_aux_dir/depcomp"
2779
 
  AMDEPBACKSLASH='\'
2780
 
fi
2781
 
 
2782
 
 
2783
 
if test "x$enable_dependency_tracking" != xno; then
2784
 
  AMDEP_TRUE=
2785
 
  AMDEP_FALSE='#'
2786
 
else
2787
 
  AMDEP_TRUE='#'
2788
 
  AMDEP_FALSE=
2789
 
fi
2790
 
 
2791
 
 
2792
 
 
2793
 
ac_ext=c
2794
 
ac_cpp='$CPP $CPPFLAGS'
2795
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
 
if test -n "$ac_tool_prefix"; then
2799
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2802
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803
 
if test "${ac_cv_prog_CC+set}" = set; then
2804
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2805
 
else
2806
 
  if test -n "$CC"; then
2807
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2808
 
else
2809
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810
 
for as_dir in $PATH
2811
 
do
2812
 
  IFS=$as_save_IFS
2813
 
  test -z "$as_dir" && as_dir=.
2814
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2815
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818
 
    break 2
2819
 
  fi
2820
 
done
2821
 
done
2822
 
IFS=$as_save_IFS
2823
 
 
2824
 
fi
2825
 
fi
2826
 
CC=$ac_cv_prog_CC
2827
 
if test -n "$CC"; then
2828
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2829
 
echo "${ECHO_T}$CC" >&6; }
2830
 
else
2831
 
  { echo "$as_me:$LINENO: result: no" >&5
2832
 
echo "${ECHO_T}no" >&6; }
2833
 
fi
2834
 
 
2835
 
 
2836
 
fi
2837
 
if test -z "$ac_cv_prog_CC"; then
2838
 
  ac_ct_CC=$CC
2839
 
  # Extract the first word of "gcc", so it can be a program name with args.
2840
 
set dummy gcc; ac_word=$2
2841
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2842
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2844
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2845
 
else
2846
 
  if test -n "$ac_ct_CC"; then
2847
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848
 
else
2849
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850
 
for as_dir in $PATH
2851
 
do
2852
 
  IFS=$as_save_IFS
2853
 
  test -z "$as_dir" && as_dir=.
2854
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2855
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856
 
    ac_cv_prog_ac_ct_CC="gcc"
2857
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858
 
    break 2
2859
 
  fi
2860
 
done
2861
 
done
2862
 
IFS=$as_save_IFS
2863
 
 
2864
 
fi
2865
 
fi
2866
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867
 
if test -n "$ac_ct_CC"; then
2868
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
2870
 
else
2871
 
  { echo "$as_me:$LINENO: result: no" >&5
2872
 
echo "${ECHO_T}no" >&6; }
2873
 
fi
2874
 
 
2875
 
  if test "x$ac_ct_CC" = x; then
2876
 
    CC=""
2877
 
  else
2878
 
    case $cross_compiling:$ac_tool_warned in
2879
 
yes:)
2880
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881
 
whose name does not start with the host triplet.  If you think this
2882
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2883
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884
 
whose name does not start with the host triplet.  If you think this
2885
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886
 
ac_tool_warned=yes ;;
2887
 
esac
2888
 
    CC=$ac_ct_CC
2889
 
  fi
2890
 
else
2891
 
  CC="$ac_cv_prog_CC"
2892
 
fi
2893
 
 
2894
 
if test -z "$CC"; then
2895
 
          if test -n "$ac_tool_prefix"; then
2896
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2897
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2898
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2899
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900
 
if test "${ac_cv_prog_CC+set}" = set; then
2901
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2902
 
else
2903
 
  if test -n "$CC"; then
2904
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2905
 
else
2906
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907
 
for as_dir in $PATH
2908
 
do
2909
 
  IFS=$as_save_IFS
2910
 
  test -z "$as_dir" && as_dir=.
2911
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2912
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2913
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2914
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915
 
    break 2
2916
 
  fi
2917
 
done
2918
 
done
2919
 
IFS=$as_save_IFS
2920
 
 
2921
 
fi
2922
 
fi
2923
 
CC=$ac_cv_prog_CC
2924
 
if test -n "$CC"; then
2925
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2926
 
echo "${ECHO_T}$CC" >&6; }
2927
 
else
2928
 
  { echo "$as_me:$LINENO: result: no" >&5
2929
 
echo "${ECHO_T}no" >&6; }
2930
 
fi
2931
 
 
2932
 
 
2933
 
  fi
2934
 
fi
2935
 
if test -z "$CC"; then
2936
 
  # Extract the first word of "cc", so it can be a program name with args.
2937
 
set dummy cc; ac_word=$2
2938
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2939
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940
 
if test "${ac_cv_prog_CC+set}" = set; then
2941
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2942
 
else
2943
 
  if test -n "$CC"; then
2944
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2945
 
else
2946
 
  ac_prog_rejected=no
2947
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948
 
for as_dir in $PATH
2949
 
do
2950
 
  IFS=$as_save_IFS
2951
 
  test -z "$as_dir" && as_dir=.
2952
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2953
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2954
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2955
 
       ac_prog_rejected=yes
2956
 
       continue
2957
 
     fi
2958
 
    ac_cv_prog_CC="cc"
2959
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960
 
    break 2
2961
 
  fi
2962
 
done
2963
 
done
2964
 
IFS=$as_save_IFS
2965
 
 
2966
 
if test $ac_prog_rejected = yes; then
2967
 
  # We found a bogon in the path, so make sure we never use it.
2968
 
  set dummy $ac_cv_prog_CC
2969
 
  shift
2970
 
  if test $@%:@ != 0; then
2971
 
    # We chose a different compiler from the bogus one.
2972
 
    # However, it has the same basename, so the bogon will be chosen
2973
 
    # first if we set CC to just the basename; use the full file name.
2974
 
    shift
2975
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2976
 
  fi
2977
 
fi
2978
 
fi
2979
 
fi
2980
 
CC=$ac_cv_prog_CC
2981
 
if test -n "$CC"; then
2982
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2983
 
echo "${ECHO_T}$CC" >&6; }
2984
 
else
2985
 
  { echo "$as_me:$LINENO: result: no" >&5
2986
 
echo "${ECHO_T}no" >&6; }
2987
 
fi
2988
 
 
2989
 
 
2990
 
fi
2991
 
if test -z "$CC"; then
2992
 
  if test -n "$ac_tool_prefix"; then
2993
 
  for ac_prog in cl.exe
2994
 
  do
2995
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2996
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2997
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2998
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2999
 
if test "${ac_cv_prog_CC+set}" = set; then
3000
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3001
 
else
3002
 
  if test -n "$CC"; then
3003
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3004
 
else
3005
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006
 
for as_dir in $PATH
3007
 
do
3008
 
  IFS=$as_save_IFS
3009
 
  test -z "$as_dir" && as_dir=.
3010
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3011
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3012
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3013
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014
 
    break 2
3015
 
  fi
3016
 
done
3017
 
done
3018
 
IFS=$as_save_IFS
3019
 
 
3020
 
fi
3021
 
fi
3022
 
CC=$ac_cv_prog_CC
3023
 
if test -n "$CC"; then
3024
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3025
 
echo "${ECHO_T}$CC" >&6; }
3026
 
else
3027
 
  { echo "$as_me:$LINENO: result: no" >&5
3028
 
echo "${ECHO_T}no" >&6; }
3029
 
fi
3030
 
 
3031
 
 
3032
 
    test -n "$CC" && break
3033
 
  done
3034
 
fi
3035
 
if test -z "$CC"; then
3036
 
  ac_ct_CC=$CC
3037
 
  for ac_prog in cl.exe
3038
 
do
3039
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3040
 
set dummy $ac_prog; ac_word=$2
3041
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3042
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3045
 
else
3046
 
  if test -n "$ac_ct_CC"; then
3047
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048
 
else
3049
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050
 
for as_dir in $PATH
3051
 
do
3052
 
  IFS=$as_save_IFS
3053
 
  test -z "$as_dir" && as_dir=.
3054
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3055
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3056
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3057
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058
 
    break 2
3059
 
  fi
3060
 
done
3061
 
done
3062
 
IFS=$as_save_IFS
3063
 
 
3064
 
fi
3065
 
fi
3066
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067
 
if test -n "$ac_ct_CC"; then
3068
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3069
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
3070
 
else
3071
 
  { echo "$as_me:$LINENO: result: no" >&5
3072
 
echo "${ECHO_T}no" >&6; }
3073
 
fi
3074
 
 
3075
 
 
3076
 
  test -n "$ac_ct_CC" && break
3077
 
done
3078
 
 
3079
 
  if test "x$ac_ct_CC" = x; then
3080
 
    CC=""
3081
 
  else
3082
 
    case $cross_compiling:$ac_tool_warned in
3083
 
yes:)
3084
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3085
 
whose name does not start with the host triplet.  If you think this
3086
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3087
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3088
 
whose name does not start with the host triplet.  If you think this
3089
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3090
 
ac_tool_warned=yes ;;
3091
 
esac
3092
 
    CC=$ac_ct_CC
3093
 
  fi
3094
 
fi
3095
 
 
3096
 
fi
3097
 
 
3098
 
 
3099
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3100
 
See \`config.log' for more details." >&5
3101
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3102
 
See \`config.log' for more details." >&2;}
3103
 
   { (exit 1); exit 1; }; }
3104
 
 
3105
 
# Provide some information about the compiler.
3106
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
3107
 
ac_compiler=`set X $ac_compile; echo $2`
3108
 
{ (ac_try="$ac_compiler --version >&5"
3109
 
case "(($ac_try" in
3110
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111
 
  *) ac_try_echo=$ac_try;;
3112
 
esac
3113
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114
 
  (eval "$ac_compiler --version >&5") 2>&5
3115
 
  ac_status=$?
3116
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117
 
  (exit $ac_status); }
3118
 
{ (ac_try="$ac_compiler -v >&5"
3119
 
case "(($ac_try" in
3120
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121
 
  *) ac_try_echo=$ac_try;;
3122
 
esac
3123
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124
 
  (eval "$ac_compiler -v >&5") 2>&5
3125
 
  ac_status=$?
3126
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127
 
  (exit $ac_status); }
3128
 
{ (ac_try="$ac_compiler -V >&5"
3129
 
case "(($ac_try" in
3130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131
 
  *) ac_try_echo=$ac_try;;
3132
 
esac
3133
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134
 
  (eval "$ac_compiler -V >&5") 2>&5
3135
 
  ac_status=$?
3136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137
 
  (exit $ac_status); }
3138
 
 
3139
 
cat >conftest.$ac_ext <<_ACEOF
3140
 
/* confdefs.h.  */
3141
 
_ACEOF
3142
 
cat confdefs.h >>conftest.$ac_ext
3143
 
cat >>conftest.$ac_ext <<_ACEOF
3144
 
/* end confdefs.h.  */
3145
 
 
3146
 
int
3147
 
main ()
3148
 
{
3149
 
 
3150
 
  ;
3151
 
  return 0;
3152
 
}
3153
 
_ACEOF
3154
 
ac_clean_files_save=$ac_clean_files
3155
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3156
 
# Try to create an executable without -o first, disregard a.out.
3157
 
# It will help us diagnose broken compilers, and finding out an intuition
3158
 
# of exeext.
3159
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3160
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3161
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3162
 
#
3163
 
# List of possible output files, starting from the most likely.
3164
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3165
 
# only as a last resort.  b.out is created by i960 compilers.
3166
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3167
 
#
3168
 
# The IRIX 6 linker writes into existing files which may not be
3169
 
# executable, retaining their permissions.  Remove them first so a
3170
 
# subsequent execution test works.
3171
 
ac_rmfiles=
3172
 
for ac_file in $ac_files
3173
 
do
3174
 
  case $ac_file in
3175
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3176
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3177
 
  esac
3178
 
done
3179
 
rm -f $ac_rmfiles
3180
 
 
3181
 
if { (ac_try="$ac_link_default"
3182
 
case "(($ac_try" in
3183
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184
 
  *) ac_try_echo=$ac_try;;
3185
 
esac
3186
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187
 
  (eval "$ac_link_default") 2>&5
3188
 
  ac_status=$?
3189
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190
 
  (exit $ac_status); }; then
3191
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3192
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3193
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3194
 
# so that the user can short-circuit this test for compilers unknown to
3195
 
# Autoconf.
3196
 
for ac_file in $ac_files
3197
 
do
3198
 
  test -f "$ac_file" || continue
3199
 
  case $ac_file in
3200
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3201
 
        ;;
3202
 
    [ab].out )
3203
 
        # We found the default executable, but exeext='' is most
3204
 
        # certainly right.
3205
 
        break;;
3206
 
    *.* )
3207
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3208
 
        then :; else
3209
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210
 
        fi
3211
 
        # We set ac_cv_exeext here because the later test for it is not
3212
 
        # safe: cross compilers may not add the suffix if given an `-o'
3213
 
        # argument, so we may need to know it at that point already.
3214
 
        # Even if this section looks crufty: it has the advantage of
3215
 
        # actually working.
3216
 
        break;;
3217
 
    * )
3218
 
        break;;
3219
 
  esac
3220
 
done
3221
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3222
 
 
3223
 
else
3224
 
  echo "$as_me: failed program was:" >&5
3225
 
sed 's/^/| /' conftest.$ac_ext >&5
3226
 
 
3227
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3228
 
See \`config.log' for more details." >&5
3229
 
echo "$as_me: error: C compiler cannot create executables
3230
 
See \`config.log' for more details." >&2;}
3231
 
   { (exit 77); exit 77; }; }
3232
 
fi
3233
 
 
3234
 
ac_exeext=$ac_cv_exeext
3235
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3236
 
echo "${ECHO_T}$ac_file" >&6; }
3237
 
 
3238
 
# Check that the compiler produces executables we can run.  If not, either
3239
 
# the compiler is broken, or we cross compile.
3240
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243
 
# If not cross compiling, check that we can run a simple program.
3244
 
if test "$cross_compiling" != yes; then
3245
 
  if { ac_try='./$ac_file'
3246
 
  { (case "(($ac_try" in
3247
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248
 
  *) ac_try_echo=$ac_try;;
3249
 
esac
3250
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251
 
  (eval "$ac_try") 2>&5
3252
 
  ac_status=$?
3253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
 
  (exit $ac_status); }; }; then
3255
 
    cross_compiling=no
3256
 
  else
3257
 
    if test "$cross_compiling" = maybe; then
3258
 
        cross_compiling=yes
3259
 
    else
3260
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261
 
If you meant to cross compile, use \`--host'.
3262
 
See \`config.log' for more details." >&5
3263
 
echo "$as_me: error: cannot run C compiled programs.
3264
 
If you meant to cross compile, use \`--host'.
3265
 
See \`config.log' for more details." >&2;}
3266
 
   { (exit 1); exit 1; }; }
3267
 
    fi
3268
 
  fi
3269
 
fi
3270
 
{ echo "$as_me:$LINENO: result: yes" >&5
3271
 
echo "${ECHO_T}yes" >&6; }
3272
 
 
3273
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274
 
ac_clean_files=$ac_clean_files_save
3275
 
# Check that the compiler produces executables we can run.  If not, either
3276
 
# the compiler is broken, or we cross compile.
3277
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280
 
echo "${ECHO_T}$cross_compiling" >&6; }
3281
 
 
3282
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284
 
if { (ac_try="$ac_link"
3285
 
case "(($ac_try" in
3286
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287
 
  *) ac_try_echo=$ac_try;;
3288
 
esac
3289
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290
 
  (eval "$ac_link") 2>&5
3291
 
  ac_status=$?
3292
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293
 
  (exit $ac_status); }; then
3294
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3296
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3297
 
# `rm'.
3298
 
for ac_file in conftest.exe conftest conftest.*; do
3299
 
  test -f "$ac_file" || continue
3300
 
  case $ac_file in
3301
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303
 
          break;;
3304
 
    * ) break;;
3305
 
  esac
3306
 
done
3307
 
else
3308
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309
 
See \`config.log' for more details." >&5
3310
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311
 
See \`config.log' for more details." >&2;}
3312
 
   { (exit 1); exit 1; }; }
3313
 
fi
3314
 
 
3315
 
rm -f conftest$ac_cv_exeext
3316
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3318
 
 
3319
 
rm -f conftest.$ac_ext
3320
 
EXEEXT=$ac_cv_exeext
3321
 
ac_exeext=$EXEEXT
3322
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324
 
if test "${ac_cv_objext+set}" = set; then
3325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3326
 
else
3327
 
  cat >conftest.$ac_ext <<_ACEOF
3328
 
/* confdefs.h.  */
3329
 
_ACEOF
3330
 
cat confdefs.h >>conftest.$ac_ext
3331
 
cat >>conftest.$ac_ext <<_ACEOF
3332
 
/* end confdefs.h.  */
3333
 
 
3334
 
int
3335
 
main ()
3336
 
{
3337
 
 
3338
 
  ;
3339
 
  return 0;
3340
 
}
3341
 
_ACEOF
3342
 
rm -f conftest.o conftest.obj
3343
 
if { (ac_try="$ac_compile"
3344
 
case "(($ac_try" in
3345
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346
 
  *) ac_try_echo=$ac_try;;
3347
 
esac
3348
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349
 
  (eval "$ac_compile") 2>&5
3350
 
  ac_status=$?
3351
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352
 
  (exit $ac_status); }; then
3353
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3354
 
  test -f "$ac_file" || continue;
3355
 
  case $ac_file in
3356
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358
 
       break;;
3359
 
  esac
3360
 
done
3361
 
else
3362
 
  echo "$as_me: failed program was:" >&5
3363
 
sed 's/^/| /' conftest.$ac_ext >&5
3364
 
 
3365
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366
 
See \`config.log' for more details." >&5
3367
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368
 
See \`config.log' for more details." >&2;}
3369
 
   { (exit 1); exit 1; }; }
3370
 
fi
3371
 
 
3372
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373
 
fi
3374
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
3376
 
OBJEXT=$ac_cv_objext
3377
 
ac_objext=$OBJEXT
3378
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3382
 
else
3383
 
  cat >conftest.$ac_ext <<_ACEOF
3384
 
/* confdefs.h.  */
3385
 
_ACEOF
3386
 
cat confdefs.h >>conftest.$ac_ext
3387
 
cat >>conftest.$ac_ext <<_ACEOF
3388
 
/* end confdefs.h.  */
3389
 
 
3390
 
int
3391
 
main ()
3392
 
{
3393
 
#ifndef __GNUC__
3394
 
       choke me
3395
 
#endif
3396
 
 
3397
 
  ;
3398
 
  return 0;
3399
 
}
3400
 
_ACEOF
3401
 
rm -f conftest.$ac_objext
3402
 
if { (ac_try="$ac_compile"
3403
 
case "(($ac_try" in
3404
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405
 
  *) ac_try_echo=$ac_try;;
3406
 
esac
3407
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408
 
  (eval "$ac_compile") 2>conftest.er1
3409
 
  ac_status=$?
3410
 
  grep -v '^ *+' conftest.er1 >conftest.err
3411
 
  rm -f conftest.er1
3412
 
  cat conftest.err >&5
3413
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414
 
  (exit $ac_status); } &&
3415
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3416
 
  { (case "(($ac_try" in
3417
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418
 
  *) ac_try_echo=$ac_try;;
3419
 
esac
3420
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421
 
  (eval "$ac_try") 2>&5
3422
 
  ac_status=$?
3423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424
 
  (exit $ac_status); }; } &&
3425
 
         { ac_try='test -s conftest.$ac_objext'
3426
 
  { (case "(($ac_try" in
3427
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428
 
  *) ac_try_echo=$ac_try;;
3429
 
esac
3430
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431
 
  (eval "$ac_try") 2>&5
3432
 
  ac_status=$?
3433
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434
 
  (exit $ac_status); }; }; then
3435
 
  ac_compiler_gnu=yes
3436
 
else
3437
 
  echo "$as_me: failed program was:" >&5
3438
 
sed 's/^/| /' conftest.$ac_ext >&5
3439
 
 
3440
 
        ac_compiler_gnu=no
3441
 
fi
3442
 
 
3443
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445
 
 
3446
 
fi
3447
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3448
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3449
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3450
 
ac_test_CFLAGS=${CFLAGS+set}
3451
 
ac_save_CFLAGS=$CFLAGS
3452
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3453
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3454
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3455
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3456
 
else
3457
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3458
 
   ac_c_werror_flag=yes
3459
 
   ac_cv_prog_cc_g=no
3460
 
   CFLAGS="-g"
3461
 
   cat >conftest.$ac_ext <<_ACEOF
3462
 
/* confdefs.h.  */
3463
 
_ACEOF
3464
 
cat confdefs.h >>conftest.$ac_ext
3465
 
cat >>conftest.$ac_ext <<_ACEOF
3466
 
/* end confdefs.h.  */
3467
 
 
3468
 
int
3469
 
main ()
3470
 
{
3471
 
 
3472
 
  ;
3473
 
  return 0;
3474
 
}
3475
 
_ACEOF
3476
 
rm -f conftest.$ac_objext
3477
 
if { (ac_try="$ac_compile"
3478
 
case "(($ac_try" in
3479
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480
 
  *) ac_try_echo=$ac_try;;
3481
 
esac
3482
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483
 
  (eval "$ac_compile") 2>conftest.er1
3484
 
  ac_status=$?
3485
 
  grep -v '^ *+' conftest.er1 >conftest.err
3486
 
  rm -f conftest.er1
3487
 
  cat conftest.err >&5
3488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489
 
  (exit $ac_status); } &&
3490
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3491
 
  { (case "(($ac_try" in
3492
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493
 
  *) ac_try_echo=$ac_try;;
3494
 
esac
3495
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496
 
  (eval "$ac_try") 2>&5
3497
 
  ac_status=$?
3498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499
 
  (exit $ac_status); }; } &&
3500
 
         { ac_try='test -s conftest.$ac_objext'
3501
 
  { (case "(($ac_try" in
3502
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503
 
  *) ac_try_echo=$ac_try;;
3504
 
esac
3505
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506
 
  (eval "$ac_try") 2>&5
3507
 
  ac_status=$?
3508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509
 
  (exit $ac_status); }; }; then
3510
 
  ac_cv_prog_cc_g=yes
3511
 
else
3512
 
  echo "$as_me: failed program was:" >&5
3513
 
sed 's/^/| /' conftest.$ac_ext >&5
3514
 
 
3515
 
        CFLAGS=""
3516
 
      cat >conftest.$ac_ext <<_ACEOF
3517
 
/* confdefs.h.  */
3518
 
_ACEOF
3519
 
cat confdefs.h >>conftest.$ac_ext
3520
 
cat >>conftest.$ac_ext <<_ACEOF
3521
 
/* end confdefs.h.  */
3522
 
 
3523
 
int
3524
 
main ()
3525
 
{
3526
 
 
3527
 
  ;
3528
 
  return 0;
3529
 
}
3530
 
_ACEOF
3531
 
rm -f conftest.$ac_objext
3532
 
if { (ac_try="$ac_compile"
3533
 
case "(($ac_try" in
3534
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535
 
  *) ac_try_echo=$ac_try;;
3536
 
esac
3537
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538
 
  (eval "$ac_compile") 2>conftest.er1
3539
 
  ac_status=$?
3540
 
  grep -v '^ *+' conftest.er1 >conftest.err
3541
 
  rm -f conftest.er1
3542
 
  cat conftest.err >&5
3543
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544
 
  (exit $ac_status); } &&
3545
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3546
 
  { (case "(($ac_try" in
3547
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548
 
  *) ac_try_echo=$ac_try;;
3549
 
esac
3550
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551
 
  (eval "$ac_try") 2>&5
3552
 
  ac_status=$?
3553
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554
 
  (exit $ac_status); }; } &&
3555
 
         { ac_try='test -s conftest.$ac_objext'
3556
 
  { (case "(($ac_try" in
3557
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558
 
  *) ac_try_echo=$ac_try;;
3559
 
esac
3560
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561
 
  (eval "$ac_try") 2>&5
3562
 
  ac_status=$?
3563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564
 
  (exit $ac_status); }; }; then
3565
 
  :
3566
 
else
3567
 
  echo "$as_me: failed program was:" >&5
3568
 
sed 's/^/| /' conftest.$ac_ext >&5
3569
 
 
3570
 
        ac_c_werror_flag=$ac_save_c_werror_flag
3571
 
         CFLAGS="-g"
3572
 
         cat >conftest.$ac_ext <<_ACEOF
3573
 
/* confdefs.h.  */
3574
 
_ACEOF
3575
 
cat confdefs.h >>conftest.$ac_ext
3576
 
cat >>conftest.$ac_ext <<_ACEOF
3577
 
/* end confdefs.h.  */
3578
 
 
3579
 
int
3580
 
main ()
3581
 
{
3582
 
 
3583
 
  ;
3584
 
  return 0;
3585
 
}
3586
 
_ACEOF
3587
 
rm -f conftest.$ac_objext
3588
 
if { (ac_try="$ac_compile"
3589
 
case "(($ac_try" in
3590
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591
 
  *) ac_try_echo=$ac_try;;
3592
 
esac
3593
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594
 
  (eval "$ac_compile") 2>conftest.er1
3595
 
  ac_status=$?
3596
 
  grep -v '^ *+' conftest.er1 >conftest.err
3597
 
  rm -f conftest.er1
3598
 
  cat conftest.err >&5
3599
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600
 
  (exit $ac_status); } &&
3601
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602
 
  { (case "(($ac_try" in
3603
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604
 
  *) ac_try_echo=$ac_try;;
3605
 
esac
3606
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607
 
  (eval "$ac_try") 2>&5
3608
 
  ac_status=$?
3609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610
 
  (exit $ac_status); }; } &&
3611
 
         { ac_try='test -s conftest.$ac_objext'
3612
 
  { (case "(($ac_try" in
3613
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614
 
  *) ac_try_echo=$ac_try;;
3615
 
esac
3616
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617
 
  (eval "$ac_try") 2>&5
3618
 
  ac_status=$?
3619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620
 
  (exit $ac_status); }; }; then
3621
 
  ac_cv_prog_cc_g=yes
3622
 
else
3623
 
  echo "$as_me: failed program was:" >&5
3624
 
sed 's/^/| /' conftest.$ac_ext >&5
3625
 
 
3626
 
        
3627
 
fi
3628
 
 
3629
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630
 
fi
3631
 
 
3632
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633
 
fi
3634
 
 
3635
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3637
 
fi
3638
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3639
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3640
 
if test "$ac_test_CFLAGS" = set; then
3641
 
  CFLAGS=$ac_save_CFLAGS
3642
 
elif test $ac_cv_prog_cc_g = yes; then
3643
 
  if test "$GCC" = yes; then
3644
 
    CFLAGS="-g -O2"
3645
 
  else
3646
 
    CFLAGS="-g"
3647
 
  fi
3648
 
else
3649
 
  if test "$GCC" = yes; then
3650
 
    CFLAGS="-O2"
3651
 
  else
3652
 
    CFLAGS=
3653
 
  fi
3654
 
fi
3655
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3656
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3657
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3658
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3659
 
else
3660
 
  ac_cv_prog_cc_c89=no
3661
 
ac_save_CC=$CC
3662
 
cat >conftest.$ac_ext <<_ACEOF
3663
 
/* confdefs.h.  */
3664
 
_ACEOF
3665
 
cat confdefs.h >>conftest.$ac_ext
3666
 
cat >>conftest.$ac_ext <<_ACEOF
3667
 
/* end confdefs.h.  */
3668
 
#include <stdarg.h>
3669
 
#include <stdio.h>
3670
 
#include <sys/types.h>
3671
 
#include <sys/stat.h>
3672
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3673
 
struct buf { int x; };
3674
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675
 
static char *e (p, i)
3676
 
     char **p;
3677
 
     int i;
3678
 
{
3679
 
  return p[i];
3680
 
}
3681
 
static char *f (char * (*g) (char **, int), char **p, ...)
3682
 
{
3683
 
  char *s;
3684
 
  va_list v;
3685
 
  va_start (v,p);
3686
 
  s = g (p, va_arg (v,int));
3687
 
  va_end (v);
3688
 
  return s;
3689
 
}
3690
 
 
3691
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3692
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3693
 
   These don't provoke an error unfortunately, instead are silently treated
3694
 
   as 'x'.  The following induces an error, until -std is added to get
3695
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3696
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3697
 
   that's true only with -std.  */
3698
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3699
 
 
3700
 
int test (int i, double x);
3701
 
struct s1 {int (*f) (int a);};
3702
 
struct s2 {int (*f) (double a);};
3703
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704
 
int argc;
3705
 
char **argv;
3706
 
int
3707
 
main ()
3708
 
{
3709
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3710
 
  ;
3711
 
  return 0;
3712
 
}
3713
 
_ACEOF
3714
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716
 
do
3717
 
  CC="$ac_save_CC $ac_arg"
3718
 
  rm -f conftest.$ac_objext
3719
 
if { (ac_try="$ac_compile"
3720
 
case "(($ac_try" in
3721
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722
 
  *) ac_try_echo=$ac_try;;
3723
 
esac
3724
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725
 
  (eval "$ac_compile") 2>conftest.er1
3726
 
  ac_status=$?
3727
 
  grep -v '^ *+' conftest.er1 >conftest.err
3728
 
  rm -f conftest.er1
3729
 
  cat conftest.err >&5
3730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731
 
  (exit $ac_status); } &&
3732
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3733
 
  { (case "(($ac_try" in
3734
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735
 
  *) ac_try_echo=$ac_try;;
3736
 
esac
3737
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738
 
  (eval "$ac_try") 2>&5
3739
 
  ac_status=$?
3740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741
 
  (exit $ac_status); }; } &&
3742
 
         { ac_try='test -s conftest.$ac_objext'
3743
 
  { (case "(($ac_try" in
3744
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745
 
  *) ac_try_echo=$ac_try;;
3746
 
esac
3747
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748
 
  (eval "$ac_try") 2>&5
3749
 
  ac_status=$?
3750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751
 
  (exit $ac_status); }; }; then
3752
 
  ac_cv_prog_cc_c89=$ac_arg
3753
 
else
3754
 
  echo "$as_me: failed program was:" >&5
3755
 
sed 's/^/| /' conftest.$ac_ext >&5
3756
 
 
3757
 
        
3758
 
fi
3759
 
 
3760
 
rm -f conftest.err conftest.$ac_objext 
3761
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3762
 
done
3763
 
rm -f conftest.$ac_ext
3764
 
CC=$ac_save_CC
3765
 
 
3766
 
fi
3767
 
# AC_CACHE_VAL
3768
 
case "x$ac_cv_prog_cc_c89" in
3769
 
  x)
3770
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3771
 
echo "${ECHO_T}none needed" >&6; } ;;
3772
 
  xno)
3773
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3774
 
echo "${ECHO_T}unsupported" >&6; } ;;
3775
 
  *)
3776
 
    CC="$CC $ac_cv_prog_cc_c89"
3777
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3778
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3779
 
esac
3780
 
 
3781
 
 
3782
 
ac_ext=c
3783
 
ac_cpp='$CPP $CPPFLAGS'
3784
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
 
 
3788
 
depcc="$CC"   am_compiler_list=
3789
 
 
3790
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3791
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3792
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3794
 
else
3795
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3796
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3797
 
  # making bogus files that we don't know about and never remove.  For
3798
 
  # instance it was reported that on HP-UX the gcc test will end up
3799
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3800
 
  # in D'.
3801
 
  mkdir conftest.dir
3802
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3803
 
  # using a relative directory.
3804
 
  cp "$am_depcomp" conftest.dir
3805
 
  cd conftest.dir
3806
 
  # We will build objects and dependencies in a subdirectory because
3807
 
  # it helps to detect inapplicable dependency modes.  For instance
3808
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3809
 
  # side effect of compilation, but ICC will put the dependencies in
3810
 
  # the current directory while Tru64 will put them in the object
3811
 
  # directory.
3812
 
  mkdir sub
3813
 
 
3814
 
  am_cv_CC_dependencies_compiler_type=none
3815
 
  if test "$am_compiler_list" = ""; then
3816
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817
 
  fi
3818
 
  for depmode in $am_compiler_list; do
3819
 
    # Setup a source with many dependencies, because some compilers
3820
 
    # like to wrap large dependency lists on column 80 (with \), and
3821
 
    # we should not choose a depcomp mode which is confused by this.
3822
 
    #
3823
 
    # We need to recreate these files for each test, as the compiler may
3824
 
    # overwrite some of them when testing with obscure command lines.
3825
 
    # This happens at least with the AIX C compiler.
3826
 
    : > sub/conftest.c
3827
 
    for i in 1 2 3 4 5 6; do
3828
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830
 
      # Solaris 8's {/usr,}/bin/sh.
3831
 
      touch sub/conftst$i.h
3832
 
    done
3833
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834
 
 
3835
 
    case $depmode in
3836
 
    nosideeffect)
3837
 
      # after this tag, mechanisms are not by side-effect, so they'll
3838
 
      # only be used when explicitly requested
3839
 
      if test "x$enable_dependency_tracking" = xyes; then
3840
 
        continue
3841
 
      else
3842
 
        break
3843
 
      fi
3844
 
      ;;
3845
 
    none) break ;;
3846
 
    esac
3847
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3848
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3849
 
    # handle `-M -o', and we need to detect this.
3850
 
    if depmode=$depmode \
3851
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3852
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3854
 
         >/dev/null 2>conftest.err &&
3855
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3857
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858
 
      # icc doesn't choke on unknown options, it will just issue warnings
3859
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3860
 
      # that says an option was ignored or not supported.
3861
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3862
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3863
 
      # The diagnosis changed in icc 8.0:
3864
 
      #   icc: Command line remark: option '-MP' not supported
3865
 
      if (grep 'ignoring option' conftest.err ||
3866
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867
 
        am_cv_CC_dependencies_compiler_type=$depmode
3868
 
        break
3869
 
      fi
3870
 
    fi
3871
 
  done
3872
 
 
3873
 
  cd ..
3874
 
  rm -rf conftest.dir
3875
 
else
3876
 
  am_cv_CC_dependencies_compiler_type=none
3877
 
fi
3878
 
 
3879
 
fi
3880
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3881
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3882
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883
 
 
3884
 
 
3885
 
 
3886
 
if 
3887
 
  test "x$enable_dependency_tracking" != xno \
3888
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889
 
  am__fastdepCC_TRUE=
3890
 
  am__fastdepCC_FALSE='#'
3891
 
else
3892
 
  am__fastdepCC_TRUE='#'
3893
 
  am__fastdepCC_FALSE=
3894
 
fi
3895
 
 
3896
 
 
3897
 
 
3898
 
 
3899
 
  TCPW_MSG="no"
3900
 
  
3901
 
# Check whether --with-tcp-wrappers was given.
3902
 
if test "${with_tcp_wrappers+set}" = set; then
3903
 
  withval=$with_tcp_wrappers; 
3904
 
        if test "x$withval" != "xno" ; then
3905
 
            saved_LIBS="$LIBS"
3906
 
            saved_LDFLAGS="$LDFLAGS"
3907
 
            saved_CPPFLAGS="$CPPFLAGS"
3908
 
            if test -n "${withval}" -a "${withval}" != "yes"; then
3909
 
                if test -d "${withval}/lib"; then
3910
 
                    if test -n "${need_dash_r}"; then
3911
 
                        LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3912
 
                    else
3913
 
                        LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3914
 
                    fi
3915
 
                else
3916
 
                    if test -n "${need_dash_r}"; then
3917
 
                        LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3918
 
                    else
3919
 
                        LDFLAGS="-L${withval} ${LDFLAGS}"
3920
 
                    fi
3921
 
                fi
3922
 
                if test -d "${withval}/include"; then
3923
 
                    CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3924
 
                else
3925
 
                    CPPFLAGS="-I${withval} ${CPPFLAGS}"
3926
 
                fi
3927
 
            fi
3928
 
            LIBWRAP="-lwrap"
3929
 
            LIBS="$LIBWRAP $LIBS"
3930
 
            { echo "$as_me:$LINENO: checking for libwrap" >&5
3931
 
echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3932
 
            cat >conftest.$ac_ext <<_ACEOF
3933
 
/* confdefs.h.  */
3934
 
_ACEOF
3935
 
cat confdefs.h >>conftest.$ac_ext
3936
 
cat >>conftest.$ac_ext <<_ACEOF
3937
 
/* end confdefs.h.  */
3938
 
 
3939
 
                #include <tcpd.h>
3940
 
                int deny_severity = 0, allow_severity = 0;
3941
 
                
3942
 
int
3943
 
main ()
3944
 
{
3945
 
hosts_access(0);
3946
 
  ;
3947
 
  return 0;
3948
 
}
3949
 
_ACEOF
3950
 
rm -f conftest.$ac_objext conftest$ac_exeext
3951
 
if { (ac_try="$ac_link"
3952
 
case "(($ac_try" in
3953
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954
 
  *) ac_try_echo=$ac_try;;
3955
 
esac
3956
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957
 
  (eval "$ac_link") 2>conftest.er1
3958
 
  ac_status=$?
3959
 
  grep -v '^ *+' conftest.er1 >conftest.err
3960
 
  rm -f conftest.er1
3961
 
  cat conftest.err >&5
3962
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963
 
  (exit $ac_status); } &&
3964
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3965
 
  { (case "(($ac_try" in
3966
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967
 
  *) ac_try_echo=$ac_try;;
3968
 
esac
3969
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970
 
  (eval "$ac_try") 2>&5
3971
 
  ac_status=$?
3972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973
 
  (exit $ac_status); }; } &&
3974
 
         { ac_try='test -s conftest$ac_exeext'
3975
 
  { (case "(($ac_try" in
3976
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977
 
  *) ac_try_echo=$ac_try;;
3978
 
esac
3979
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980
 
  (eval "$ac_try") 2>&5
3981
 
  ac_status=$?
3982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983
 
  (exit $ac_status); }; }; then
3984
 
  
3985
 
                { echo "$as_me:$LINENO: result: yes" >&5
3986
 
echo "${ECHO_T}yes" >&6; }
3987
 
                
3988
 
                
3989
 
cat >>confdefs.h <<\_ACEOF
3990
 
@%:@define LIBWRAP 1
3991
 
_ACEOF
3992
 
 
3993
 
                
3994
 
cat >>confdefs.h <<\_ACEOF
3995
 
@%:@define HAVE_LIBWRAP 1
3996
 
_ACEOF
3997
 
 
3998
 
                
3999
 
cat >>confdefs.h <<\_ACEOF
4000
 
@%:@define HAVE_TCP_WRAPPER 1
4001
 
_ACEOF
4002
 
 
4003
 
                TCPW_MSG="yes"
4004
 
                
4005
 
else
4006
 
  echo "$as_me: failed program was:" >&5
4007
 
sed 's/^/| /' conftest.$ac_ext >&5
4008
 
 
4009
 
        
4010
 
                { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4011
 
echo "$as_me: error: *** libwrap missing" >&2;}
4012
 
   { (exit 1); exit 1; }; }
4013
 
                
4014
 
            
4015
 
fi
4016
 
 
4017
 
rm -f conftest.err conftest.$ac_objext \
4018
 
      conftest$ac_exeext conftest.$ac_ext
4019
 
            LIBS="$saved_LIBS"
4020
 
        fi
4021
 
    
4022
 
  
4023
 
fi
4024
 
 
4025
 
  
4026
 
  
4027
 
  
4028
 
 
4029
 
 
4030
 
 
4031
 
ac_config_headers="$ac_config_headers support/include/config.h"
4032
 
 
4033
 
 
4034
 
# Checks for programs.
4035
 
ac_ext=cpp
4036
 
ac_cpp='$CXXCPP $CPPFLAGS'
4037
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4040
 
if test -z "$CXX"; then
4041
 
  if test -n "$CCC"; then
4042
 
    CXX=$CCC
4043
 
  else
4044
 
    if test -n "$ac_tool_prefix"; then
4045
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4046
 
  do
4047
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4048
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4049
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4050
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051
 
if test "${ac_cv_prog_CXX+set}" = set; then
4052
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4053
 
else
4054
 
  if test -n "$CXX"; then
4055
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4056
 
else
4057
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058
 
for as_dir in $PATH
4059
 
do
4060
 
  IFS=$as_save_IFS
4061
 
  test -z "$as_dir" && as_dir=.
4062
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4063
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4064
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4065
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066
 
    break 2
4067
 
  fi
4068
 
done
4069
 
done
4070
 
IFS=$as_save_IFS
4071
 
 
4072
 
fi
4073
 
fi
4074
 
CXX=$ac_cv_prog_CXX
4075
 
if test -n "$CXX"; then
4076
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
4077
 
echo "${ECHO_T}$CXX" >&6; }
4078
 
else
4079
 
  { echo "$as_me:$LINENO: result: no" >&5
4080
 
echo "${ECHO_T}no" >&6; }
4081
 
fi
4082
 
 
4083
 
 
4084
 
    test -n "$CXX" && break
4085
 
  done
4086
 
fi
4087
 
if test -z "$CXX"; then
4088
 
  ac_ct_CXX=$CXX
4089
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4090
 
do
4091
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4092
 
set dummy $ac_prog; ac_word=$2
4093
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4094
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4095
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4096
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4097
 
else
4098
 
  if test -n "$ac_ct_CXX"; then
4099
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4100
 
else
4101
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102
 
for as_dir in $PATH
4103
 
do
4104
 
  IFS=$as_save_IFS
4105
 
  test -z "$as_dir" && as_dir=.
4106
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4107
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4108
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4109
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110
 
    break 2
4111
 
  fi
4112
 
done
4113
 
done
4114
 
IFS=$as_save_IFS
4115
 
 
4116
 
fi
4117
 
fi
4118
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4119
 
if test -n "$ac_ct_CXX"; then
4120
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4121
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4122
 
else
4123
 
  { echo "$as_me:$LINENO: result: no" >&5
4124
 
echo "${ECHO_T}no" >&6; }
4125
 
fi
4126
 
 
4127
 
 
4128
 
  test -n "$ac_ct_CXX" && break
4129
 
done
4130
 
 
4131
 
  if test "x$ac_ct_CXX" = x; then
4132
 
    CXX="g++"
4133
 
  else
4134
 
    case $cross_compiling:$ac_tool_warned in
4135
 
yes:)
4136
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4137
 
whose name does not start with the host triplet.  If you think this
4138
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4139
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4140
 
whose name does not start with the host triplet.  If you think this
4141
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4142
 
ac_tool_warned=yes ;;
4143
 
esac
4144
 
    CXX=$ac_ct_CXX
4145
 
  fi
4146
 
fi
4147
 
 
4148
 
  fi
4149
 
fi
4150
 
# Provide some information about the compiler.
4151
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4152
 
ac_compiler=`set X $ac_compile; echo $2`
4153
 
{ (ac_try="$ac_compiler --version >&5"
4154
 
case "(($ac_try" in
4155
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156
 
  *) ac_try_echo=$ac_try;;
4157
 
esac
4158
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159
 
  (eval "$ac_compiler --version >&5") 2>&5
4160
 
  ac_status=$?
4161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162
 
  (exit $ac_status); }
4163
 
{ (ac_try="$ac_compiler -v >&5"
4164
 
case "(($ac_try" in
4165
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166
 
  *) ac_try_echo=$ac_try;;
4167
 
esac
4168
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169
 
  (eval "$ac_compiler -v >&5") 2>&5
4170
 
  ac_status=$?
4171
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172
 
  (exit $ac_status); }
4173
 
{ (ac_try="$ac_compiler -V >&5"
4174
 
case "(($ac_try" in
4175
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176
 
  *) ac_try_echo=$ac_try;;
4177
 
esac
4178
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179
 
  (eval "$ac_compiler -V >&5") 2>&5
4180
 
  ac_status=$?
4181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
 
  (exit $ac_status); }
4183
 
 
4184
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4185
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4186
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4187
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4188
 
else
4189
 
  cat >conftest.$ac_ext <<_ACEOF
4190
 
/* confdefs.h.  */
4191
 
_ACEOF
4192
 
cat confdefs.h >>conftest.$ac_ext
4193
 
cat >>conftest.$ac_ext <<_ACEOF
4194
 
/* end confdefs.h.  */
4195
 
 
4196
 
int
4197
 
main ()
4198
 
{
4199
 
#ifndef __GNUC__
4200
 
       choke me
4201
 
#endif
4202
 
 
4203
 
  ;
4204
 
  return 0;
4205
 
}
4206
 
_ACEOF
4207
 
rm -f conftest.$ac_objext
4208
 
if { (ac_try="$ac_compile"
4209
 
case "(($ac_try" in
4210
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211
 
  *) ac_try_echo=$ac_try;;
4212
 
esac
4213
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214
 
  (eval "$ac_compile") 2>conftest.er1
4215
 
  ac_status=$?
4216
 
  grep -v '^ *+' conftest.er1 >conftest.err
4217
 
  rm -f conftest.er1
4218
 
  cat conftest.err >&5
4219
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220
 
  (exit $ac_status); } &&
4221
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4222
 
  { (case "(($ac_try" in
4223
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224
 
  *) ac_try_echo=$ac_try;;
4225
 
esac
4226
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227
 
  (eval "$ac_try") 2>&5
4228
 
  ac_status=$?
4229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230
 
  (exit $ac_status); }; } &&
4231
 
         { ac_try='test -s conftest.$ac_objext'
4232
 
  { (case "(($ac_try" in
4233
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234
 
  *) ac_try_echo=$ac_try;;
4235
 
esac
4236
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237
 
  (eval "$ac_try") 2>&5
4238
 
  ac_status=$?
4239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240
 
  (exit $ac_status); }; }; then
4241
 
  ac_compiler_gnu=yes
4242
 
else
4243
 
  echo "$as_me: failed program was:" >&5
4244
 
sed 's/^/| /' conftest.$ac_ext >&5
4245
 
 
4246
 
        ac_compiler_gnu=no
4247
 
fi
4248
 
 
4249
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4251
 
 
4252
 
fi
4253
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4254
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4255
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
4256
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4257
 
ac_save_CXXFLAGS=$CXXFLAGS
4258
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4259
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4260
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
4261
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4262
 
else
4263
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4264
 
   ac_cxx_werror_flag=yes
4265
 
   ac_cv_prog_cxx_g=no
4266
 
   CXXFLAGS="-g"
4267
 
   cat >conftest.$ac_ext <<_ACEOF
4268
 
/* confdefs.h.  */
4269
 
_ACEOF
4270
 
cat confdefs.h >>conftest.$ac_ext
4271
 
cat >>conftest.$ac_ext <<_ACEOF
4272
 
/* end confdefs.h.  */
4273
 
 
4274
 
int
4275
 
main ()
4276
 
{
4277
 
 
4278
 
  ;
4279
 
  return 0;
4280
 
}
4281
 
_ACEOF
4282
 
rm -f conftest.$ac_objext
4283
 
if { (ac_try="$ac_compile"
4284
 
case "(($ac_try" in
4285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286
 
  *) ac_try_echo=$ac_try;;
4287
 
esac
4288
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289
 
  (eval "$ac_compile") 2>conftest.er1
4290
 
  ac_status=$?
4291
 
  grep -v '^ *+' conftest.er1 >conftest.err
4292
 
  rm -f conftest.er1
4293
 
  cat conftest.err >&5
4294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295
 
  (exit $ac_status); } &&
4296
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4297
 
  { (case "(($ac_try" in
4298
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299
 
  *) ac_try_echo=$ac_try;;
4300
 
esac
4301
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302
 
  (eval "$ac_try") 2>&5
4303
 
  ac_status=$?
4304
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305
 
  (exit $ac_status); }; } &&
4306
 
         { ac_try='test -s conftest.$ac_objext'
4307
 
  { (case "(($ac_try" in
4308
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309
 
  *) ac_try_echo=$ac_try;;
4310
 
esac
4311
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312
 
  (eval "$ac_try") 2>&5
4313
 
  ac_status=$?
4314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315
 
  (exit $ac_status); }; }; then
4316
 
  ac_cv_prog_cxx_g=yes
4317
 
else
4318
 
  echo "$as_me: failed program was:" >&5
4319
 
sed 's/^/| /' conftest.$ac_ext >&5
4320
 
 
4321
 
        CXXFLAGS=""
4322
 
      cat >conftest.$ac_ext <<_ACEOF
4323
 
/* confdefs.h.  */
4324
 
_ACEOF
4325
 
cat confdefs.h >>conftest.$ac_ext
4326
 
cat >>conftest.$ac_ext <<_ACEOF
4327
 
/* end confdefs.h.  */
4328
 
 
4329
 
int
4330
 
main ()
4331
 
{
4332
 
 
4333
 
  ;
4334
 
  return 0;
4335
 
}
4336
 
_ACEOF
4337
 
rm -f conftest.$ac_objext
4338
 
if { (ac_try="$ac_compile"
4339
 
case "(($ac_try" in
4340
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341
 
  *) ac_try_echo=$ac_try;;
4342
 
esac
4343
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344
 
  (eval "$ac_compile") 2>conftest.er1
4345
 
  ac_status=$?
4346
 
  grep -v '^ *+' conftest.er1 >conftest.err
4347
 
  rm -f conftest.er1
4348
 
  cat conftest.err >&5
4349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
 
  (exit $ac_status); } &&
4351
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4352
 
  { (case "(($ac_try" in
4353
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354
 
  *) ac_try_echo=$ac_try;;
4355
 
esac
4356
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357
 
  (eval "$ac_try") 2>&5
4358
 
  ac_status=$?
4359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360
 
  (exit $ac_status); }; } &&
4361
 
         { ac_try='test -s conftest.$ac_objext'
4362
 
  { (case "(($ac_try" in
4363
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364
 
  *) ac_try_echo=$ac_try;;
4365
 
esac
4366
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367
 
  (eval "$ac_try") 2>&5
4368
 
  ac_status=$?
4369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370
 
  (exit $ac_status); }; }; then
4371
 
  :
4372
 
else
4373
 
  echo "$as_me: failed program was:" >&5
4374
 
sed 's/^/| /' conftest.$ac_ext >&5
4375
 
 
4376
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4377
 
         CXXFLAGS="-g"
4378
 
         cat >conftest.$ac_ext <<_ACEOF
4379
 
/* confdefs.h.  */
4380
 
_ACEOF
4381
 
cat confdefs.h >>conftest.$ac_ext
4382
 
cat >>conftest.$ac_ext <<_ACEOF
4383
 
/* end confdefs.h.  */
4384
 
 
4385
 
int
4386
 
main ()
4387
 
{
4388
 
 
4389
 
  ;
4390
 
  return 0;
4391
 
}
4392
 
_ACEOF
4393
 
rm -f conftest.$ac_objext
4394
 
if { (ac_try="$ac_compile"
4395
 
case "(($ac_try" in
4396
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397
 
  *) ac_try_echo=$ac_try;;
4398
 
esac
4399
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400
 
  (eval "$ac_compile") 2>conftest.er1
4401
 
  ac_status=$?
4402
 
  grep -v '^ *+' conftest.er1 >conftest.err
4403
 
  rm -f conftest.er1
4404
 
  cat conftest.err >&5
4405
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406
 
  (exit $ac_status); } &&
4407
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4408
 
  { (case "(($ac_try" in
4409
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410
 
  *) ac_try_echo=$ac_try;;
4411
 
esac
4412
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413
 
  (eval "$ac_try") 2>&5
4414
 
  ac_status=$?
4415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416
 
  (exit $ac_status); }; } &&
4417
 
         { ac_try='test -s conftest.$ac_objext'
4418
 
  { (case "(($ac_try" in
4419
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420
 
  *) ac_try_echo=$ac_try;;
4421
 
esac
4422
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423
 
  (eval "$ac_try") 2>&5
4424
 
  ac_status=$?
4425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
 
  (exit $ac_status); }; }; then
4427
 
  ac_cv_prog_cxx_g=yes
4428
 
else
4429
 
  echo "$as_me: failed program was:" >&5
4430
 
sed 's/^/| /' conftest.$ac_ext >&5
4431
 
 
4432
 
        
4433
 
fi
4434
 
 
4435
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436
 
fi
4437
 
 
4438
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439
 
fi
4440
 
 
4441
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4443
 
fi
4444
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4445
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4446
 
if test "$ac_test_CXXFLAGS" = set; then
4447
 
  CXXFLAGS=$ac_save_CXXFLAGS
4448
 
elif test $ac_cv_prog_cxx_g = yes; then
4449
 
  if test "$GXX" = yes; then
4450
 
    CXXFLAGS="-g -O2"
4451
 
  else
4452
 
    CXXFLAGS="-g"
4453
 
  fi
4454
 
else
4455
 
  if test "$GXX" = yes; then
4456
 
    CXXFLAGS="-O2"
4457
 
  else
4458
 
    CXXFLAGS=
4459
 
  fi
4460
 
fi
4461
 
ac_ext=c
4462
 
ac_cpp='$CPP $CPPFLAGS'
4463
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
 
 
4467
 
depcc="$CXX"  am_compiler_list=
4468
 
 
4469
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4470
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4471
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4472
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4473
 
else
4474
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4475
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4476
 
  # making bogus files that we don't know about and never remove.  For
4477
 
  # instance it was reported that on HP-UX the gcc test will end up
4478
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4479
 
  # in D'.
4480
 
  mkdir conftest.dir
4481
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4482
 
  # using a relative directory.
4483
 
  cp "$am_depcomp" conftest.dir
4484
 
  cd conftest.dir
4485
 
  # We will build objects and dependencies in a subdirectory because
4486
 
  # it helps to detect inapplicable dependency modes.  For instance
4487
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4488
 
  # side effect of compilation, but ICC will put the dependencies in
4489
 
  # the current directory while Tru64 will put them in the object
4490
 
  # directory.
4491
 
  mkdir sub
4492
 
 
4493
 
  am_cv_CXX_dependencies_compiler_type=none
4494
 
  if test "$am_compiler_list" = ""; then
4495
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4496
 
  fi
4497
 
  for depmode in $am_compiler_list; do
4498
 
    # Setup a source with many dependencies, because some compilers
4499
 
    # like to wrap large dependency lists on column 80 (with \), and
4500
 
    # we should not choose a depcomp mode which is confused by this.
4501
 
    #
4502
 
    # We need to recreate these files for each test, as the compiler may
4503
 
    # overwrite some of them when testing with obscure command lines.
4504
 
    # This happens at least with the AIX C compiler.
4505
 
    : > sub/conftest.c
4506
 
    for i in 1 2 3 4 5 6; do
4507
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4508
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4509
 
      # Solaris 8's {/usr,}/bin/sh.
4510
 
      touch sub/conftst$i.h
4511
 
    done
4512
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4513
 
 
4514
 
    case $depmode in
4515
 
    nosideeffect)
4516
 
      # after this tag, mechanisms are not by side-effect, so they'll
4517
 
      # only be used when explicitly requested
4518
 
      if test "x$enable_dependency_tracking" = xyes; then
4519
 
        continue
4520
 
      else
4521
 
        break
4522
 
      fi
4523
 
      ;;
4524
 
    none) break ;;
4525
 
    esac
4526
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4527
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4528
 
    # handle `-M -o', and we need to detect this.
4529
 
    if depmode=$depmode \
4530
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4531
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4532
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4533
 
         >/dev/null 2>conftest.err &&
4534
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4536
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537
 
      # icc doesn't choke on unknown options, it will just issue warnings
4538
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4539
 
      # that says an option was ignored or not supported.
4540
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4541
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4542
 
      # The diagnosis changed in icc 8.0:
4543
 
      #   icc: Command line remark: option '-MP' not supported
4544
 
      if (grep 'ignoring option' conftest.err ||
4545
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546
 
        am_cv_CXX_dependencies_compiler_type=$depmode
4547
 
        break
4548
 
      fi
4549
 
    fi
4550
 
  done
4551
 
 
4552
 
  cd ..
4553
 
  rm -rf conftest.dir
4554
 
else
4555
 
  am_cv_CXX_dependencies_compiler_type=none
4556
 
fi
4557
 
 
4558
 
fi
4559
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4560
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4561
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4562
 
 
4563
 
 
4564
 
 
4565
 
if 
4566
 
  test "x$enable_dependency_tracking" != xno \
4567
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4568
 
  am__fastdepCXX_TRUE=
4569
 
  am__fastdepCXX_FALSE='#'
4570
 
else
4571
 
  am__fastdepCXX_TRUE='#'
4572
 
  am__fastdepCXX_FALSE=
4573
 
fi
4574
 
 
4575
 
 
4576
 
ac_ext=c
4577
 
ac_cpp='$CPP $CPPFLAGS'
4578
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
 
if test -n "$ac_tool_prefix"; then
4582
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4583
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4584
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4585
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586
 
if test "${ac_cv_prog_CC+set}" = set; then
4587
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4588
 
else
4589
 
  if test -n "$CC"; then
4590
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4591
 
else
4592
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593
 
for as_dir in $PATH
4594
 
do
4595
 
  IFS=$as_save_IFS
4596
 
  test -z "$as_dir" && as_dir=.
4597
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4598
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4600
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601
 
    break 2
4602
 
  fi
4603
 
done
4604
 
done
4605
 
IFS=$as_save_IFS
4606
 
 
4607
 
fi
4608
 
fi
4609
 
CC=$ac_cv_prog_CC
4610
 
if test -n "$CC"; then
4611
 
  { echo "$as_me:$LINENO: result: $CC" >&5
4612
 
echo "${ECHO_T}$CC" >&6; }
4613
 
else
4614
 
  { echo "$as_me:$LINENO: result: no" >&5
4615
 
echo "${ECHO_T}no" >&6; }
4616
 
fi
4617
 
 
4618
 
 
4619
 
fi
4620
 
if test -z "$ac_cv_prog_CC"; then
4621
 
  ac_ct_CC=$CC
4622
 
  # Extract the first word of "gcc", so it can be a program name with args.
4623
 
set dummy gcc; ac_word=$2
4624
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4625
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4627
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4628
 
else
4629
 
  if test -n "$ac_ct_CC"; then
4630
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4631
 
else
4632
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633
 
for as_dir in $PATH
4634
 
do
4635
 
  IFS=$as_save_IFS
4636
 
  test -z "$as_dir" && as_dir=.
4637
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4638
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4639
 
    ac_cv_prog_ac_ct_CC="gcc"
4640
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641
 
    break 2
4642
 
  fi
4643
 
done
4644
 
done
4645
 
IFS=$as_save_IFS
4646
 
 
4647
 
fi
4648
 
fi
4649
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4650
 
if test -n "$ac_ct_CC"; then
4651
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4652
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
4653
 
else
4654
 
  { echo "$as_me:$LINENO: result: no" >&5
4655
 
echo "${ECHO_T}no" >&6; }
4656
 
fi
4657
 
 
4658
 
  if test "x$ac_ct_CC" = x; then
4659
 
    CC=""
4660
 
  else
4661
 
    case $cross_compiling:$ac_tool_warned in
4662
 
yes:)
4663
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4664
 
whose name does not start with the host triplet.  If you think this
4665
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4666
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4667
 
whose name does not start with the host triplet.  If you think this
4668
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4669
 
ac_tool_warned=yes ;;
4670
 
esac
4671
 
    CC=$ac_ct_CC
4672
 
  fi
4673
 
else
4674
 
  CC="$ac_cv_prog_CC"
4675
 
fi
4676
 
 
4677
 
if test -z "$CC"; then
4678
 
          if test -n "$ac_tool_prefix"; then
4679
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4680
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
4681
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4682
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683
 
if test "${ac_cv_prog_CC+set}" = set; then
4684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4685
 
else
4686
 
  if test -n "$CC"; then
4687
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4688
 
else
4689
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690
 
for as_dir in $PATH
4691
 
do
4692
 
  IFS=$as_save_IFS
4693
 
  test -z "$as_dir" && as_dir=.
4694
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4695
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4696
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4697
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698
 
    break 2
4699
 
  fi
4700
 
done
4701
 
done
4702
 
IFS=$as_save_IFS
4703
 
 
4704
 
fi
4705
 
fi
4706
 
CC=$ac_cv_prog_CC
4707
 
if test -n "$CC"; then
4708
 
  { echo "$as_me:$LINENO: result: $CC" >&5
4709
 
echo "${ECHO_T}$CC" >&6; }
4710
 
else
4711
 
  { echo "$as_me:$LINENO: result: no" >&5
4712
 
echo "${ECHO_T}no" >&6; }
4713
 
fi
4714
 
 
4715
 
 
4716
 
  fi
4717
 
fi
4718
 
if test -z "$CC"; then
4719
 
  # Extract the first word of "cc", so it can be a program name with args.
4720
 
set dummy cc; ac_word=$2
4721
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4722
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723
 
if test "${ac_cv_prog_CC+set}" = set; then
4724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4725
 
else
4726
 
  if test -n "$CC"; then
4727
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4728
 
else
4729
 
  ac_prog_rejected=no
4730
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731
 
for as_dir in $PATH
4732
 
do
4733
 
  IFS=$as_save_IFS
4734
 
  test -z "$as_dir" && as_dir=.
4735
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4736
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4737
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4738
 
       ac_prog_rejected=yes
4739
 
       continue
4740
 
     fi
4741
 
    ac_cv_prog_CC="cc"
4742
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743
 
    break 2
4744
 
  fi
4745
 
done
4746
 
done
4747
 
IFS=$as_save_IFS
4748
 
 
4749
 
if test $ac_prog_rejected = yes; then
4750
 
  # We found a bogon in the path, so make sure we never use it.
4751
 
  set dummy $ac_cv_prog_CC
4752
 
  shift
4753
 
  if test $@%:@ != 0; then
4754
 
    # We chose a different compiler from the bogus one.
4755
 
    # However, it has the same basename, so the bogon will be chosen
4756
 
    # first if we set CC to just the basename; use the full file name.
4757
 
    shift
4758
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4759
 
  fi
4760
 
fi
4761
 
fi
4762
 
fi
4763
 
CC=$ac_cv_prog_CC
4764
 
if test -n "$CC"; then
4765
 
  { echo "$as_me:$LINENO: result: $CC" >&5
4766
 
echo "${ECHO_T}$CC" >&6; }
4767
 
else
4768
 
  { echo "$as_me:$LINENO: result: no" >&5
4769
 
echo "${ECHO_T}no" >&6; }
4770
 
fi
4771
 
 
4772
 
 
4773
 
fi
4774
 
if test -z "$CC"; then
4775
 
  if test -n "$ac_tool_prefix"; then
4776
 
  for ac_prog in cl.exe
4777
 
  do
4778
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4779
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4780
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4781
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782
 
if test "${ac_cv_prog_CC+set}" = set; then
4783
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4784
 
else
4785
 
  if test -n "$CC"; then
4786
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4787
 
else
4788
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789
 
for as_dir in $PATH
4790
 
do
4791
 
  IFS=$as_save_IFS
4792
 
  test -z "$as_dir" && as_dir=.
4793
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4794
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4796
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797
 
    break 2
4798
 
  fi
4799
 
done
4800
 
done
4801
 
IFS=$as_save_IFS
4802
 
 
4803
 
fi
4804
 
fi
4805
 
CC=$ac_cv_prog_CC
4806
 
if test -n "$CC"; then
4807
 
  { echo "$as_me:$LINENO: result: $CC" >&5
4808
 
echo "${ECHO_T}$CC" >&6; }
4809
 
else
4810
 
  { echo "$as_me:$LINENO: result: no" >&5
4811
 
echo "${ECHO_T}no" >&6; }
4812
 
fi
4813
 
 
4814
 
 
4815
 
    test -n "$CC" && break
4816
 
  done
4817
 
fi
4818
 
if test -z "$CC"; then
4819
 
  ac_ct_CC=$CC
4820
 
  for ac_prog in cl.exe
4821
 
do
4822
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4823
 
set dummy $ac_prog; ac_word=$2
4824
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4825
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4827
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4828
 
else
4829
 
  if test -n "$ac_ct_CC"; then
4830
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4831
 
else
4832
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833
 
for as_dir in $PATH
4834
 
do
4835
 
  IFS=$as_save_IFS
4836
 
  test -z "$as_dir" && as_dir=.
4837
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4838
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
4840
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841
 
    break 2
4842
 
  fi
4843
 
done
4844
 
done
4845
 
IFS=$as_save_IFS
4846
 
 
4847
 
fi
4848
 
fi
4849
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4850
 
if test -n "$ac_ct_CC"; then
4851
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4852
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
4853
 
else
4854
 
  { echo "$as_me:$LINENO: result: no" >&5
4855
 
echo "${ECHO_T}no" >&6; }
4856
 
fi
4857
 
 
4858
 
 
4859
 
  test -n "$ac_ct_CC" && break
4860
 
done
4861
 
 
4862
 
  if test "x$ac_ct_CC" = x; then
4863
 
    CC=""
4864
 
  else
4865
 
    case $cross_compiling:$ac_tool_warned in
4866
 
yes:)
4867
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4868
 
whose name does not start with the host triplet.  If you think this
4869
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4870
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4871
 
whose name does not start with the host triplet.  If you think this
4872
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4873
 
ac_tool_warned=yes ;;
4874
 
esac
4875
 
    CC=$ac_ct_CC
4876
 
  fi
4877
 
fi
4878
 
 
4879
 
fi
4880
 
 
4881
 
 
4882
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4883
 
See \`config.log' for more details." >&5
4884
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
4885
 
See \`config.log' for more details." >&2;}
4886
 
   { (exit 1); exit 1; }; }
4887
 
 
4888
 
# Provide some information about the compiler.
4889
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
4890
 
ac_compiler=`set X $ac_compile; echo $2`
4891
 
{ (ac_try="$ac_compiler --version >&5"
4892
 
case "(($ac_try" in
4893
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894
 
  *) ac_try_echo=$ac_try;;
4895
 
esac
4896
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897
 
  (eval "$ac_compiler --version >&5") 2>&5
4898
 
  ac_status=$?
4899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900
 
  (exit $ac_status); }
4901
 
{ (ac_try="$ac_compiler -v >&5"
4902
 
case "(($ac_try" in
4903
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904
 
  *) ac_try_echo=$ac_try;;
4905
 
esac
4906
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907
 
  (eval "$ac_compiler -v >&5") 2>&5
4908
 
  ac_status=$?
4909
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910
 
  (exit $ac_status); }
4911
 
{ (ac_try="$ac_compiler -V >&5"
4912
 
case "(($ac_try" in
4913
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914
 
  *) ac_try_echo=$ac_try;;
4915
 
esac
4916
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917
 
  (eval "$ac_compiler -V >&5") 2>&5
4918
 
  ac_status=$?
4919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920
 
  (exit $ac_status); }
4921
 
 
4922
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4923
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4924
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4926
 
else
4927
 
  cat >conftest.$ac_ext <<_ACEOF
4928
 
/* confdefs.h.  */
4929
 
_ACEOF
4930
 
cat confdefs.h >>conftest.$ac_ext
4931
 
cat >>conftest.$ac_ext <<_ACEOF
4932
 
/* end confdefs.h.  */
4933
 
 
4934
 
int
4935
 
main ()
4936
 
{
4937
 
#ifndef __GNUC__
4938
 
       choke me
4939
 
#endif
4940
 
 
4941
 
  ;
4942
 
  return 0;
4943
 
}
4944
 
_ACEOF
4945
 
rm -f conftest.$ac_objext
4946
 
if { (ac_try="$ac_compile"
4947
 
case "(($ac_try" in
4948
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949
 
  *) ac_try_echo=$ac_try;;
4950
 
esac
4951
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952
 
  (eval "$ac_compile") 2>conftest.er1
4953
 
  ac_status=$?
4954
 
  grep -v '^ *+' conftest.er1 >conftest.err
4955
 
  rm -f conftest.er1
4956
 
  cat conftest.err >&5
4957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958
 
  (exit $ac_status); } &&
4959
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4960
 
  { (case "(($ac_try" in
4961
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962
 
  *) ac_try_echo=$ac_try;;
4963
 
esac
4964
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965
 
  (eval "$ac_try") 2>&5
4966
 
  ac_status=$?
4967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968
 
  (exit $ac_status); }; } &&
4969
 
         { ac_try='test -s conftest.$ac_objext'
4970
 
  { (case "(($ac_try" in
4971
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972
 
  *) ac_try_echo=$ac_try;;
4973
 
esac
4974
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975
 
  (eval "$ac_try") 2>&5
4976
 
  ac_status=$?
4977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978
 
  (exit $ac_status); }; }; then
4979
 
  ac_compiler_gnu=yes
4980
 
else
4981
 
  echo "$as_me: failed program was:" >&5
4982
 
sed 's/^/| /' conftest.$ac_ext >&5
4983
 
 
4984
 
        ac_compiler_gnu=no
4985
 
fi
4986
 
 
4987
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4989
 
 
4990
 
fi
4991
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4992
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4993
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
4994
 
ac_test_CFLAGS=${CFLAGS+set}
4995
 
ac_save_CFLAGS=$CFLAGS
4996
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4997
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4998
 
if test "${ac_cv_prog_cc_g+set}" = set; then
4999
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5000
 
else
5001
 
  ac_save_c_werror_flag=$ac_c_werror_flag
5002
 
   ac_c_werror_flag=yes
5003
 
   ac_cv_prog_cc_g=no
5004
 
   CFLAGS="-g"
5005
 
   cat >conftest.$ac_ext <<_ACEOF
5006
 
/* confdefs.h.  */
5007
 
_ACEOF
5008
 
cat confdefs.h >>conftest.$ac_ext
5009
 
cat >>conftest.$ac_ext <<_ACEOF
5010
 
/* end confdefs.h.  */
5011
 
 
5012
 
int
5013
 
main ()
5014
 
{
5015
 
 
5016
 
  ;
5017
 
  return 0;
5018
 
}
5019
 
_ACEOF
5020
 
rm -f conftest.$ac_objext
5021
 
if { (ac_try="$ac_compile"
5022
 
case "(($ac_try" in
5023
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024
 
  *) ac_try_echo=$ac_try;;
5025
 
esac
5026
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027
 
  (eval "$ac_compile") 2>conftest.er1
5028
 
  ac_status=$?
5029
 
  grep -v '^ *+' conftest.er1 >conftest.err
5030
 
  rm -f conftest.er1
5031
 
  cat conftest.err >&5
5032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033
 
  (exit $ac_status); } &&
5034
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5035
 
  { (case "(($ac_try" in
5036
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037
 
  *) ac_try_echo=$ac_try;;
5038
 
esac
5039
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040
 
  (eval "$ac_try") 2>&5
5041
 
  ac_status=$?
5042
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043
 
  (exit $ac_status); }; } &&
5044
 
         { ac_try='test -s conftest.$ac_objext'
5045
 
  { (case "(($ac_try" in
5046
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047
 
  *) ac_try_echo=$ac_try;;
5048
 
esac
5049
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050
 
  (eval "$ac_try") 2>&5
5051
 
  ac_status=$?
5052
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053
 
  (exit $ac_status); }; }; then
5054
 
  ac_cv_prog_cc_g=yes
5055
 
else
5056
 
  echo "$as_me: failed program was:" >&5
5057
 
sed 's/^/| /' conftest.$ac_ext >&5
5058
 
 
5059
 
        CFLAGS=""
5060
 
      cat >conftest.$ac_ext <<_ACEOF
5061
 
/* confdefs.h.  */
5062
 
_ACEOF
5063
 
cat confdefs.h >>conftest.$ac_ext
5064
 
cat >>conftest.$ac_ext <<_ACEOF
5065
 
/* end confdefs.h.  */
5066
 
 
5067
 
int
5068
 
main ()
5069
 
{
5070
 
 
5071
 
  ;
5072
 
  return 0;
5073
 
}
5074
 
_ACEOF
5075
 
rm -f conftest.$ac_objext
5076
 
if { (ac_try="$ac_compile"
5077
 
case "(($ac_try" in
5078
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079
 
  *) ac_try_echo=$ac_try;;
5080
 
esac
5081
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082
 
  (eval "$ac_compile") 2>conftest.er1
5083
 
  ac_status=$?
5084
 
  grep -v '^ *+' conftest.er1 >conftest.err
5085
 
  rm -f conftest.er1
5086
 
  cat conftest.err >&5
5087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088
 
  (exit $ac_status); } &&
5089
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5090
 
  { (case "(($ac_try" in
5091
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092
 
  *) ac_try_echo=$ac_try;;
5093
 
esac
5094
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095
 
  (eval "$ac_try") 2>&5
5096
 
  ac_status=$?
5097
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098
 
  (exit $ac_status); }; } &&
5099
 
         { ac_try='test -s conftest.$ac_objext'
5100
 
  { (case "(($ac_try" in
5101
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102
 
  *) ac_try_echo=$ac_try;;
5103
 
esac
5104
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105
 
  (eval "$ac_try") 2>&5
5106
 
  ac_status=$?
5107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108
 
  (exit $ac_status); }; }; then
5109
 
  :
5110
 
else
5111
 
  echo "$as_me: failed program was:" >&5
5112
 
sed 's/^/| /' conftest.$ac_ext >&5
5113
 
 
5114
 
        ac_c_werror_flag=$ac_save_c_werror_flag
5115
 
         CFLAGS="-g"
5116
 
         cat >conftest.$ac_ext <<_ACEOF
5117
 
/* confdefs.h.  */
5118
 
_ACEOF
5119
 
cat confdefs.h >>conftest.$ac_ext
5120
 
cat >>conftest.$ac_ext <<_ACEOF
5121
 
/* end confdefs.h.  */
5122
 
 
5123
 
int
5124
 
main ()
5125
 
{
5126
 
 
5127
 
  ;
5128
 
  return 0;
5129
 
}
5130
 
_ACEOF
5131
 
rm -f conftest.$ac_objext
5132
 
if { (ac_try="$ac_compile"
5133
 
case "(($ac_try" in
5134
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135
 
  *) ac_try_echo=$ac_try;;
5136
 
esac
5137
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138
 
  (eval "$ac_compile") 2>conftest.er1
5139
 
  ac_status=$?
5140
 
  grep -v '^ *+' conftest.er1 >conftest.err
5141
 
  rm -f conftest.er1
5142
 
  cat conftest.err >&5
5143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144
 
  (exit $ac_status); } &&
5145
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5146
 
  { (case "(($ac_try" in
5147
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148
 
  *) ac_try_echo=$ac_try;;
5149
 
esac
5150
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151
 
  (eval "$ac_try") 2>&5
5152
 
  ac_status=$?
5153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
 
  (exit $ac_status); }; } &&
5155
 
         { ac_try='test -s conftest.$ac_objext'
5156
 
  { (case "(($ac_try" in
5157
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158
 
  *) ac_try_echo=$ac_try;;
5159
 
esac
5160
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161
 
  (eval "$ac_try") 2>&5
5162
 
  ac_status=$?
5163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164
 
  (exit $ac_status); }; }; then
5165
 
  ac_cv_prog_cc_g=yes
5166
 
else
5167
 
  echo "$as_me: failed program was:" >&5
5168
 
sed 's/^/| /' conftest.$ac_ext >&5
5169
 
 
5170
 
        
5171
 
fi
5172
 
 
5173
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5174
 
fi
5175
 
 
5176
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177
 
fi
5178
 
 
5179
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180
 
   ac_c_werror_flag=$ac_save_c_werror_flag
5181
 
fi
5182
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5183
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5184
 
if test "$ac_test_CFLAGS" = set; then
5185
 
  CFLAGS=$ac_save_CFLAGS
5186
 
elif test $ac_cv_prog_cc_g = yes; then
5187
 
  if test "$GCC" = yes; then
5188
 
    CFLAGS="-g -O2"
5189
 
  else
5190
 
    CFLAGS="-g"
5191
 
  fi
5192
 
else
5193
 
  if test "$GCC" = yes; then
5194
 
    CFLAGS="-O2"
5195
 
  else
5196
 
    CFLAGS=
5197
 
  fi
5198
 
fi
5199
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5200
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5201
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
5202
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5203
 
else
5204
 
  ac_cv_prog_cc_c89=no
5205
 
ac_save_CC=$CC
5206
 
cat >conftest.$ac_ext <<_ACEOF
5207
 
/* confdefs.h.  */
5208
 
_ACEOF
5209
 
cat confdefs.h >>conftest.$ac_ext
5210
 
cat >>conftest.$ac_ext <<_ACEOF
5211
 
/* end confdefs.h.  */
5212
 
#include <stdarg.h>
5213
 
#include <stdio.h>
5214
 
#include <sys/types.h>
5215
 
#include <sys/stat.h>
5216
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5217
 
struct buf { int x; };
5218
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5219
 
static char *e (p, i)
5220
 
     char **p;
5221
 
     int i;
5222
 
{
5223
 
  return p[i];
5224
 
}
5225
 
static char *f (char * (*g) (char **, int), char **p, ...)
5226
 
{
5227
 
  char *s;
5228
 
  va_list v;
5229
 
  va_start (v,p);
5230
 
  s = g (p, va_arg (v,int));
5231
 
  va_end (v);
5232
 
  return s;
5233
 
}
5234
 
 
5235
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5236
 
   function prototypes and stuff, but not '\xHH' hex character constants.
5237
 
   These don't provoke an error unfortunately, instead are silently treated
5238
 
   as 'x'.  The following induces an error, until -std is added to get
5239
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5240
 
   array size at least.  It's necessary to write '\x00'==0 to get something
5241
 
   that's true only with -std.  */
5242
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5243
 
 
5244
 
int test (int i, double x);
5245
 
struct s1 {int (*f) (int a);};
5246
 
struct s2 {int (*f) (double a);};
5247
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5248
 
int argc;
5249
 
char **argv;
5250
 
int
5251
 
main ()
5252
 
{
5253
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5254
 
  ;
5255
 
  return 0;
5256
 
}
5257
 
_ACEOF
5258
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5259
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5260
 
do
5261
 
  CC="$ac_save_CC $ac_arg"
5262
 
  rm -f conftest.$ac_objext
5263
 
if { (ac_try="$ac_compile"
5264
 
case "(($ac_try" in
5265
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266
 
  *) ac_try_echo=$ac_try;;
5267
 
esac
5268
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269
 
  (eval "$ac_compile") 2>conftest.er1
5270
 
  ac_status=$?
5271
 
  grep -v '^ *+' conftest.er1 >conftest.err
5272
 
  rm -f conftest.er1
5273
 
  cat conftest.err >&5
5274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275
 
  (exit $ac_status); } &&
5276
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5277
 
  { (case "(($ac_try" in
5278
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279
 
  *) ac_try_echo=$ac_try;;
5280
 
esac
5281
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282
 
  (eval "$ac_try") 2>&5
5283
 
  ac_status=$?
5284
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285
 
  (exit $ac_status); }; } &&
5286
 
         { ac_try='test -s conftest.$ac_objext'
5287
 
  { (case "(($ac_try" in
5288
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289
 
  *) ac_try_echo=$ac_try;;
5290
 
esac
5291
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292
 
  (eval "$ac_try") 2>&5
5293
 
  ac_status=$?
5294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
 
  (exit $ac_status); }; }; then
5296
 
  ac_cv_prog_cc_c89=$ac_arg
5297
 
else
5298
 
  echo "$as_me: failed program was:" >&5
5299
 
sed 's/^/| /' conftest.$ac_ext >&5
5300
 
 
5301
 
        
5302
 
fi
5303
 
 
5304
 
rm -f conftest.err conftest.$ac_objext 
5305
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5306
 
done
5307
 
rm -f conftest.$ac_ext
5308
 
CC=$ac_save_CC
5309
 
 
5310
 
fi
5311
 
# AC_CACHE_VAL
5312
 
case "x$ac_cv_prog_cc_c89" in
5313
 
  x)
5314
 
    { echo "$as_me:$LINENO: result: none needed" >&5
5315
 
echo "${ECHO_T}none needed" >&6; } ;;
5316
 
  xno)
5317
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
5318
 
echo "${ECHO_T}unsupported" >&6; } ;;
5319
 
  *)
5320
 
    CC="$CC $ac_cv_prog_cc_c89"
5321
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5322
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5323
 
esac
5324
 
 
5325
 
 
5326
 
ac_ext=c
5327
 
ac_cpp='$CPP $CPPFLAGS'
5328
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5331
 
 
5332
 
depcc="$CC"   am_compiler_list=
5333
 
 
5334
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5335
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5336
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5337
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5338
 
else
5339
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5340
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5341
 
  # making bogus files that we don't know about and never remove.  For
5342
 
  # instance it was reported that on HP-UX the gcc test will end up
5343
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5344
 
  # in D'.
5345
 
  mkdir conftest.dir
5346
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5347
 
  # using a relative directory.
5348
 
  cp "$am_depcomp" conftest.dir
5349
 
  cd conftest.dir
5350
 
  # We will build objects and dependencies in a subdirectory because
5351
 
  # it helps to detect inapplicable dependency modes.  For instance
5352
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5353
 
  # side effect of compilation, but ICC will put the dependencies in
5354
 
  # the current directory while Tru64 will put them in the object
5355
 
  # directory.
5356
 
  mkdir sub
5357
 
 
5358
 
  am_cv_CC_dependencies_compiler_type=none
5359
 
  if test "$am_compiler_list" = ""; then
5360
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5361
 
  fi
5362
 
  for depmode in $am_compiler_list; do
5363
 
    # Setup a source with many dependencies, because some compilers
5364
 
    # like to wrap large dependency lists on column 80 (with \), and
5365
 
    # we should not choose a depcomp mode which is confused by this.
5366
 
    #
5367
 
    # We need to recreate these files for each test, as the compiler may
5368
 
    # overwrite some of them when testing with obscure command lines.
5369
 
    # This happens at least with the AIX C compiler.
5370
 
    : > sub/conftest.c
5371
 
    for i in 1 2 3 4 5 6; do
5372
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5373
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5374
 
      # Solaris 8's {/usr,}/bin/sh.
5375
 
      touch sub/conftst$i.h
5376
 
    done
5377
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5378
 
 
5379
 
    case $depmode in
5380
 
    nosideeffect)
5381
 
      # after this tag, mechanisms are not by side-effect, so they'll
5382
 
      # only be used when explicitly requested
5383
 
      if test "x$enable_dependency_tracking" = xyes; then
5384
 
        continue
5385
 
      else
5386
 
        break
5387
 
      fi
5388
 
      ;;
5389
 
    none) break ;;
5390
 
    esac
5391
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5392
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5393
 
    # handle `-M -o', and we need to detect this.
5394
 
    if depmode=$depmode \
5395
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5396
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5397
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5398
 
         >/dev/null 2>conftest.err &&
5399
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5401
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402
 
      # icc doesn't choke on unknown options, it will just issue warnings
5403
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5404
 
      # that says an option was ignored or not supported.
5405
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5406
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5407
 
      # The diagnosis changed in icc 8.0:
5408
 
      #   icc: Command line remark: option '-MP' not supported
5409
 
      if (grep 'ignoring option' conftest.err ||
5410
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411
 
        am_cv_CC_dependencies_compiler_type=$depmode
5412
 
        break
5413
 
      fi
5414
 
    fi
5415
 
  done
5416
 
 
5417
 
  cd ..
5418
 
  rm -rf conftest.dir
5419
 
else
5420
 
  am_cv_CC_dependencies_compiler_type=none
5421
 
fi
5422
 
 
5423
 
fi
5424
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5425
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5426
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5427
 
 
5428
 
 
5429
 
 
5430
 
if 
5431
 
  test "x$enable_dependency_tracking" != xno \
5432
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5433
 
  am__fastdepCC_TRUE=
5434
 
  am__fastdepCC_FALSE='#'
5435
 
else
5436
 
  am__fastdepCC_TRUE='#'
5437
 
  am__fastdepCC_FALSE=
5438
 
fi
5439
 
 
5440
 
 
5441
 
ac_ext=c
5442
 
ac_cpp='$CPP $CPPFLAGS'
5443
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5447
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5448
 
# On Suns, sometimes $CPP names a directory.
5449
 
if test -n "$CPP" && test -d "$CPP"; then
5450
 
  CPP=
5451
 
fi
5452
 
if test -z "$CPP"; then
5453
 
  if test "${ac_cv_prog_CPP+set}" = set; then
5454
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5455
 
else
5456
 
      # Double quotes because CPP needs to be expanded
5457
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5458
 
    do
5459
 
      ac_preproc_ok=false
5460
 
for ac_c_preproc_warn_flag in '' yes
5461
 
do
5462
 
  # Use a header file that comes with gcc, so configuring glibc
5463
 
  # with a fresh cross-compiler works.
5464
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5465
 
  # <limits.h> exists even on freestanding compilers.
5466
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5467
 
  # not just through cpp. "Syntax error" is here to catch this case.
5468
 
  cat >conftest.$ac_ext <<_ACEOF
5469
 
/* confdefs.h.  */
5470
 
_ACEOF
5471
 
cat confdefs.h >>conftest.$ac_ext
5472
 
cat >>conftest.$ac_ext <<_ACEOF
5473
 
/* end confdefs.h.  */
5474
 
@%:@ifdef __STDC__
5475
 
@%:@ include <limits.h>
5476
 
@%:@else
5477
 
@%:@ include <assert.h>
5478
 
@%:@endif
5479
 
                     Syntax error
5480
 
_ACEOF
5481
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5482
 
case "(($ac_try" in
5483
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484
 
  *) ac_try_echo=$ac_try;;
5485
 
esac
5486
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5488
 
  ac_status=$?
5489
 
  grep -v '^ *+' conftest.er1 >conftest.err
5490
 
  rm -f conftest.er1
5491
 
  cat conftest.err >&5
5492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493
 
  (exit $ac_status); } >/dev/null; then
5494
 
  if test -s conftest.err; then
5495
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5496
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5497
 
  else
5498
 
    ac_cpp_err=
5499
 
  fi
5500
 
else
5501
 
  ac_cpp_err=yes
5502
 
fi
5503
 
if test -z "$ac_cpp_err"; then
5504
 
  :
5505
 
else
5506
 
  echo "$as_me: failed program was:" >&5
5507
 
sed 's/^/| /' conftest.$ac_ext >&5
5508
 
 
5509
 
  # Broken: fails on valid input.
5510
 
continue
5511
 
fi
5512
 
 
5513
 
rm -f conftest.err conftest.$ac_ext
5514
 
 
5515
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5516
 
  # can be detected and how.
5517
 
  cat >conftest.$ac_ext <<_ACEOF
5518
 
/* confdefs.h.  */
5519
 
_ACEOF
5520
 
cat confdefs.h >>conftest.$ac_ext
5521
 
cat >>conftest.$ac_ext <<_ACEOF
5522
 
/* end confdefs.h.  */
5523
 
@%:@include <ac_nonexistent.h>
5524
 
_ACEOF
5525
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5526
 
case "(($ac_try" in
5527
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528
 
  *) ac_try_echo=$ac_try;;
5529
 
esac
5530
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5532
 
  ac_status=$?
5533
 
  grep -v '^ *+' conftest.er1 >conftest.err
5534
 
  rm -f conftest.er1
5535
 
  cat conftest.err >&5
5536
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537
 
  (exit $ac_status); } >/dev/null; then
5538
 
  if test -s conftest.err; then
5539
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5540
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5541
 
  else
5542
 
    ac_cpp_err=
5543
 
  fi
5544
 
else
5545
 
  ac_cpp_err=yes
5546
 
fi
5547
 
if test -z "$ac_cpp_err"; then
5548
 
  # Broken: success on invalid input.
5549
 
continue
5550
 
else
5551
 
  echo "$as_me: failed program was:" >&5
5552
 
sed 's/^/| /' conftest.$ac_ext >&5
5553
 
 
5554
 
  # Passes both tests.
5555
 
ac_preproc_ok=:
5556
 
break
5557
 
fi
5558
 
 
5559
 
rm -f conftest.err conftest.$ac_ext
5560
 
 
5561
 
done
5562
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5563
 
rm -f conftest.err conftest.$ac_ext
5564
 
if $ac_preproc_ok; then
5565
 
  break
5566
 
fi
5567
 
 
5568
 
    done
5569
 
    ac_cv_prog_CPP=$CPP
5570
 
  
5571
 
fi
5572
 
  CPP=$ac_cv_prog_CPP
5573
 
else
5574
 
  ac_cv_prog_CPP=$CPP
5575
 
fi
5576
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
5577
 
echo "${ECHO_T}$CPP" >&6; }
5578
 
ac_preproc_ok=false
5579
 
for ac_c_preproc_warn_flag in '' yes
5580
 
do
5581
 
  # Use a header file that comes with gcc, so configuring glibc
5582
 
  # with a fresh cross-compiler works.
5583
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584
 
  # <limits.h> exists even on freestanding compilers.
5585
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5586
 
  # not just through cpp. "Syntax error" is here to catch this case.
5587
 
  cat >conftest.$ac_ext <<_ACEOF
5588
 
/* confdefs.h.  */
5589
 
_ACEOF
5590
 
cat confdefs.h >>conftest.$ac_ext
5591
 
cat >>conftest.$ac_ext <<_ACEOF
5592
 
/* end confdefs.h.  */
5593
 
@%:@ifdef __STDC__
5594
 
@%:@ include <limits.h>
5595
 
@%:@else
5596
 
@%:@ include <assert.h>
5597
 
@%:@endif
5598
 
                     Syntax error
5599
 
_ACEOF
5600
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5601
 
case "(($ac_try" in
5602
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603
 
  *) ac_try_echo=$ac_try;;
5604
 
esac
5605
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607
 
  ac_status=$?
5608
 
  grep -v '^ *+' conftest.er1 >conftest.err
5609
 
  rm -f conftest.er1
5610
 
  cat conftest.err >&5
5611
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612
 
  (exit $ac_status); } >/dev/null; then
5613
 
  if test -s conftest.err; then
5614
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5615
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5616
 
  else
5617
 
    ac_cpp_err=
5618
 
  fi
5619
 
else
5620
 
  ac_cpp_err=yes
5621
 
fi
5622
 
if test -z "$ac_cpp_err"; then
5623
 
  :
5624
 
else
5625
 
  echo "$as_me: failed program was:" >&5
5626
 
sed 's/^/| /' conftest.$ac_ext >&5
5627
 
 
5628
 
  # Broken: fails on valid input.
5629
 
continue
5630
 
fi
5631
 
 
5632
 
rm -f conftest.err conftest.$ac_ext
5633
 
 
5634
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5635
 
  # can be detected and how.
5636
 
  cat >conftest.$ac_ext <<_ACEOF
5637
 
/* confdefs.h.  */
5638
 
_ACEOF
5639
 
cat confdefs.h >>conftest.$ac_ext
5640
 
cat >>conftest.$ac_ext <<_ACEOF
5641
 
/* end confdefs.h.  */
5642
 
@%:@include <ac_nonexistent.h>
5643
 
_ACEOF
5644
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5645
 
case "(($ac_try" in
5646
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647
 
  *) ac_try_echo=$ac_try;;
5648
 
esac
5649
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651
 
  ac_status=$?
5652
 
  grep -v '^ *+' conftest.er1 >conftest.err
5653
 
  rm -f conftest.er1
5654
 
  cat conftest.err >&5
5655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656
 
  (exit $ac_status); } >/dev/null; then
5657
 
  if test -s conftest.err; then
5658
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5659
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5660
 
  else
5661
 
    ac_cpp_err=
5662
 
  fi
5663
 
else
5664
 
  ac_cpp_err=yes
5665
 
fi
5666
 
if test -z "$ac_cpp_err"; then
5667
 
  # Broken: success on invalid input.
5668
 
continue
5669
 
else
5670
 
  echo "$as_me: failed program was:" >&5
5671
 
sed 's/^/| /' conftest.$ac_ext >&5
5672
 
 
5673
 
  # Passes both tests.
5674
 
ac_preproc_ok=:
5675
 
break
5676
 
fi
5677
 
 
5678
 
rm -f conftest.err conftest.$ac_ext
5679
 
 
5680
 
done
5681
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682
 
rm -f conftest.err conftest.$ac_ext
5683
 
if $ac_preproc_ok; then
5684
 
  :
5685
 
else
5686
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5687
 
See \`config.log' for more details." >&5
5688
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5689
 
See \`config.log' for more details." >&2;}
5690
 
   { (exit 1); exit 1; }; }
5691
 
fi
5692
 
 
5693
 
ac_ext=c
5694
 
ac_cpp='$CPP $CPPFLAGS'
5695
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698
 
 
5699
 
# Find a good install program.  We prefer a C program (faster),
5700
 
# so one script is as good as another.  But avoid the broken or
5701
 
# incompatible versions:
5702
 
# SysV /etc/install, /usr/sbin/install
5703
 
# SunOS /usr/etc/install
5704
 
# IRIX /sbin/install
5705
 
# AIX /bin/install
5706
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
5707
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5708
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5709
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5710
 
# OS/2's system install, which has a completely different semantic
5711
 
# ./install, which can be erroneously created by make from ./install.sh.
5712
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5713
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5714
 
if test -z "$INSTALL"; then
5715
 
if test "${ac_cv_path_install+set}" = set; then
5716
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5717
 
else
5718
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719
 
for as_dir in $PATH
5720
 
do
5721
 
  IFS=$as_save_IFS
5722
 
  test -z "$as_dir" && as_dir=.
5723
 
  # Account for people who put trailing slashes in PATH elements.
5724
 
case $as_dir/ in
5725
 
  ./ | .// | /cC/* | \
5726
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5727
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5728
 
  /usr/ucb/* ) ;;
5729
 
  *)
5730
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
5731
 
    # Don't use installbsd from OSF since it installs stuff as root
5732
 
    # by default.
5733
 
    for ac_prog in ginstall scoinst install; do
5734
 
      for ac_exec_ext in '' $ac_executable_extensions; do
5735
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5736
 
          if test $ac_prog = install &&
5737
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5738
 
            # AIX install.  It has an incompatible calling convention.
5739
 
            :
5740
 
          elif test $ac_prog = install &&
5741
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5742
 
            # program-specific install script used by HP pwplus--don't use.
5743
 
            :
5744
 
          else
5745
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5746
 
            break 3
5747
 
          fi
5748
 
        fi
5749
 
      done
5750
 
    done
5751
 
    ;;
5752
 
esac
5753
 
done
5754
 
IFS=$as_save_IFS
5755
 
 
5756
 
 
5757
 
fi
5758
 
  if test "${ac_cv_path_install+set}" = set; then
5759
 
    INSTALL=$ac_cv_path_install
5760
 
  else
5761
 
    # As a last resort, use the slow shell script.  Don't cache a
5762
 
    # value for INSTALL within a source directory, because that will
5763
 
    # break other packages using the cache if that directory is
5764
 
    # removed, or if the value is a relative name.
5765
 
    INSTALL=$ac_install_sh
5766
 
  fi
5767
 
fi
5768
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5769
 
echo "${ECHO_T}$INSTALL" >&6; }
5770
 
 
5771
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5772
 
# It thinks the first close brace ends the variable substitution.
5773
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5774
 
 
5775
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5776
 
 
5777
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5778
 
 
5779
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5780
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5781
 
LN_S=$as_ln_s
5782
 
if test "$LN_S" = "ln -s"; then
5783
 
  { echo "$as_me:$LINENO: result: yes" >&5
5784
 
echo "${ECHO_T}yes" >&6; }
5785
 
else
5786
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5787
 
echo "${ECHO_T}no, using $LN_S" >&6; }
5788
 
fi
5789
 
 
5790
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5791
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5792
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
5793
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5794
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5795
 
else
5796
 
  cat >conftest.make <<\_ACEOF
5797
 
SHELL = /bin/sh
5798
 
all:
5799
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
5800
 
_ACEOF
5801
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5802
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5803
 
  *@@@%%%=?*=@@@%%%*)
5804
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
5805
 
  *)
5806
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
5807
 
esac
5808
 
rm -f conftest.make
5809
 
fi
5810
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5811
 
  { echo "$as_me:$LINENO: result: yes" >&5
5812
 
echo "${ECHO_T}yes" >&6; }
5813
 
  SET_MAKE=
5814
 
else
5815
 
  { echo "$as_me:$LINENO: result: no" >&5
5816
 
echo "${ECHO_T}no" >&6; }
5817
 
  SET_MAKE="MAKE=${MAKE-make}"
5818
 
fi
5819
 
 
5820
 
# Check whether --enable-shared was given.
5821
 
if test "${enable_shared+set}" = set; then
5822
 
  enableval=$enable_shared; p=${PACKAGE-default}
5823
 
    case $enableval in
5824
 
    yes) enable_shared=yes ;;
5825
 
    no) enable_shared=no ;;
5826
 
    *)
5827
 
      enable_shared=no
5828
 
      # Look at the argument we got.  We use all the common list separators.
5829
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5830
 
      for pkg in $enableval; do
5831
 
        IFS="$lt_save_ifs"
5832
 
        if test "X$pkg" = "X$p"; then
5833
 
          enable_shared=yes
5834
 
        fi
5835
 
      done
5836
 
      IFS="$lt_save_ifs"
5837
 
      ;;
5838
 
    esac
5839
 
else
5840
 
  enable_shared=yes
5841
 
fi
5842
 
 
5843
 
 
5844
 
# Check whether --enable-static was given.
5845
 
if test "${enable_static+set}" = set; then
5846
 
  enableval=$enable_static; p=${PACKAGE-default}
5847
 
    case $enableval in
5848
 
    yes) enable_static=yes ;;
5849
 
    no) enable_static=no ;;
5850
 
    *)
5851
 
     enable_static=no
5852
 
      # Look at the argument we got.  We use all the common list separators.
5853
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5854
 
      for pkg in $enableval; do
5855
 
        IFS="$lt_save_ifs"
5856
 
        if test "X$pkg" = "X$p"; then
5857
 
          enable_static=yes
5858
 
        fi
5859
 
      done
5860
 
      IFS="$lt_save_ifs"
5861
 
      ;;
5862
 
    esac
5863
 
else
5864
 
  enable_static=yes
5865
 
fi
5866
 
 
5867
 
 
5868
 
# Check whether --enable-fast-install was given.
5869
 
if test "${enable_fast_install+set}" = set; then
5870
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
5871
 
    case $enableval in
5872
 
    yes) enable_fast_install=yes ;;
5873
 
    no) enable_fast_install=no ;;
5874
 
    *)
5875
 
      enable_fast_install=no
5876
 
      # Look at the argument we got.  We use all the common list separators.
5877
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5878
 
      for pkg in $enableval; do
5879
 
        IFS="$lt_save_ifs"
5880
 
        if test "X$pkg" = "X$p"; then
5881
 
          enable_fast_install=yes
5882
 
        fi
5883
 
      done
5884
 
      IFS="$lt_save_ifs"
5885
 
      ;;
5886
 
    esac
5887
 
else
5888
 
  enable_fast_install=yes
5889
 
fi
5890
 
 
5891
 
 
5892
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5893
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5894
 
if test "${lt_cv_path_SED+set}" = set; then
5895
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5896
 
else
5897
 
  # Loop through the user's path and test for sed and gsed.
5898
 
# Then use that list of sed's as ones to test for truncation.
5899
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900
 
for as_dir in $PATH
5901
 
do
5902
 
  IFS=$as_save_IFS
5903
 
  test -z "$as_dir" && as_dir=.
5904
 
  for lt_ac_prog in sed gsed; do
5905
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5906
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5907
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5908
 
      fi
5909
 
    done
5910
 
  done
5911
 
done
5912
 
lt_ac_max=0
5913
 
lt_ac_count=0
5914
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5915
 
# along with /bin/sed that truncates output.
5916
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5917
 
  test ! -f $lt_ac_sed && continue
5918
 
  cat /dev/null > conftest.in
5919
 
  lt_ac_count=0
5920
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5921
 
  # Check for GNU sed and select it if it is found.
5922
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5923
 
    lt_cv_path_SED=$lt_ac_sed
5924
 
    break
5925
 
  fi
5926
 
  while true; do
5927
 
    cat conftest.in conftest.in >conftest.tmp
5928
 
    mv conftest.tmp conftest.in
5929
 
    cp conftest.in conftest.nl
5930
 
    echo >>conftest.nl
5931
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5932
 
    cmp -s conftest.out conftest.nl || break
5933
 
    # 10000 chars as input seems more than enough
5934
 
    test $lt_ac_count -gt 10 && break
5935
 
    lt_ac_count=`expr $lt_ac_count + 1`
5936
 
    if test $lt_ac_count -gt $lt_ac_max; then
5937
 
      lt_ac_max=$lt_ac_count
5938
 
      lt_cv_path_SED=$lt_ac_sed
5939
 
    fi
5940
 
  done
5941
 
done
5942
 
 
5943
 
fi
5944
 
 
5945
 
SED=$lt_cv_path_SED
5946
 
{ echo "$as_me:$LINENO: result: $SED" >&5
5947
 
echo "${ECHO_T}$SED" >&6; }
5948
 
 
5949
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5950
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5951
 
if test "${ac_cv_path_GREP+set}" = set; then
5952
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5953
 
else
5954
 
  # Extract the first word of "grep ggrep" to use in msg output
5955
 
if test -z "$GREP"; then
5956
 
set dummy grep ggrep; ac_prog_name=$2
5957
 
if test "${ac_cv_path_GREP+set}" = set; then
5958
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5959
 
else
5960
 
  ac_path_GREP_found=false
5961
 
# Loop through the user's path and test for each of PROGNAME-LIST
5962
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5964
 
do
5965
 
  IFS=$as_save_IFS
5966
 
  test -z "$as_dir" && as_dir=.
5967
 
  for ac_prog in grep ggrep; do
5968
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5969
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5970
 
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5971
 
    # Check for GNU ac_path_GREP and select it if it is found.
5972
 
  # Check for GNU $ac_path_GREP
5973
 
case `"$ac_path_GREP" --version 2>&1` in
5974
 
*GNU*)
5975
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5976
 
*)
5977
 
  ac_count=0
5978
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5979
 
  while :
5980
 
  do
5981
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5982
 
    mv "conftest.tmp" "conftest.in"
5983
 
    cp "conftest.in" "conftest.nl"
5984
 
    echo 'GREP' >> "conftest.nl"
5985
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5986
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5987
 
    ac_count=`expr $ac_count + 1`
5988
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5989
 
      # Best one so far, save it but keep looking for a better one
5990
 
      ac_cv_path_GREP="$ac_path_GREP"
5991
 
      ac_path_GREP_max=$ac_count
5992
 
    fi
5993
 
    # 10*(2^10) chars as input seems more than enough
5994
 
    test $ac_count -gt 10 && break
5995
 
  done
5996
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5997
 
esac
5998
 
 
5999
 
 
6000
 
    $ac_path_GREP_found && break 3
6001
 
  done
6002
 
done
6003
 
 
6004
 
done
6005
 
IFS=$as_save_IFS
6006
 
 
6007
 
 
6008
 
fi
6009
 
 
6010
 
GREP="$ac_cv_path_GREP"
6011
 
if test -z "$GREP"; then
6012
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6013
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6014
 
   { (exit 1); exit 1; }; }
6015
 
fi
6016
 
 
6017
 
else
6018
 
  ac_cv_path_GREP=$GREP
6019
 
fi
6020
 
 
6021
 
 
6022
 
fi
6023
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6024
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6025
 
 GREP="$ac_cv_path_GREP"
6026
 
 
6027
 
 
6028
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
6029
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6030
 
if test "${ac_cv_path_EGREP+set}" = set; then
6031
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6032
 
else
6033
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6034
 
   then ac_cv_path_EGREP="$GREP -E"
6035
 
   else
6036
 
     # Extract the first word of "egrep" to use in msg output
6037
 
if test -z "$EGREP"; then
6038
 
set dummy egrep; ac_prog_name=$2
6039
 
if test "${ac_cv_path_EGREP+set}" = set; then
6040
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6041
 
else
6042
 
  ac_path_EGREP_found=false
6043
 
# Loop through the user's path and test for each of PROGNAME-LIST
6044
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6046
 
do
6047
 
  IFS=$as_save_IFS
6048
 
  test -z "$as_dir" && as_dir=.
6049
 
  for ac_prog in egrep; do
6050
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6051
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6052
 
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6053
 
    # Check for GNU ac_path_EGREP and select it if it is found.
6054
 
  # Check for GNU $ac_path_EGREP
6055
 
case `"$ac_path_EGREP" --version 2>&1` in
6056
 
*GNU*)
6057
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6058
 
*)
6059
 
  ac_count=0
6060
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6061
 
  while :
6062
 
  do
6063
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6064
 
    mv "conftest.tmp" "conftest.in"
6065
 
    cp "conftest.in" "conftest.nl"
6066
 
    echo 'EGREP' >> "conftest.nl"
6067
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6068
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6069
 
    ac_count=`expr $ac_count + 1`
6070
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6071
 
      # Best one so far, save it but keep looking for a better one
6072
 
      ac_cv_path_EGREP="$ac_path_EGREP"
6073
 
      ac_path_EGREP_max=$ac_count
6074
 
    fi
6075
 
    # 10*(2^10) chars as input seems more than enough
6076
 
    test $ac_count -gt 10 && break
6077
 
  done
6078
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6079
 
esac
6080
 
 
6081
 
 
6082
 
    $ac_path_EGREP_found && break 3
6083
 
  done
6084
 
done
6085
 
 
6086
 
done
6087
 
IFS=$as_save_IFS
6088
 
 
6089
 
 
6090
 
fi
6091
 
 
6092
 
EGREP="$ac_cv_path_EGREP"
6093
 
if test -z "$EGREP"; then
6094
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6095
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6096
 
   { (exit 1); exit 1; }; }
6097
 
fi
6098
 
 
6099
 
else
6100
 
  ac_cv_path_EGREP=$EGREP
6101
 
fi
6102
 
 
6103
 
 
6104
 
   fi
6105
 
fi
6106
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6107
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6108
 
 EGREP="$ac_cv_path_EGREP"
6109
 
 
6110
 
 
6111
 
 
6112
 
# Check whether --with-gnu-ld was given.
6113
 
if test "${with_gnu_ld+set}" = set; then
6114
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6115
 
else
6116
 
  with_gnu_ld=no
6117
 
fi
6118
 
 
6119
 
ac_prog=ld
6120
 
if test "$GCC" = yes; then
6121
 
  # Check if gcc -print-prog-name=ld gives a path.
6122
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6123
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6124
 
  case $host in
6125
 
  *-*-mingw*)
6126
 
    # gcc leaves a trailing carriage return which upsets mingw
6127
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6128
 
  *)
6129
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6130
 
  esac
6131
 
  case $ac_prog in
6132
 
    # Accept absolute paths.
6133
 
    [\\/]* | ?:[\\/]*)
6134
 
      re_direlt='/[^/][^/]*/\.\./'
6135
 
      # Canonicalize the pathname of ld
6136
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6137
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6138
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6139
 
      done
6140
 
      test -z "$LD" && LD="$ac_prog"
6141
 
      ;;
6142
 
  "")
6143
 
    # If it fails, then pretend we aren't using GCC.
6144
 
    ac_prog=ld
6145
 
    ;;
6146
 
  *)
6147
 
    # If it is relative, then search for the first ld in PATH.
6148
 
    with_gnu_ld=unknown
6149
 
    ;;
6150
 
  esac
6151
 
elif test "$with_gnu_ld" = yes; then
6152
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
6153
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6154
 
else
6155
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6156
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6157
 
fi
6158
 
if test "${lt_cv_path_LD+set}" = set; then
6159
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6160
 
else
6161
 
  if test -z "$LD"; then
6162
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6163
 
  for ac_dir in $PATH; do
6164
 
    IFS="$lt_save_ifs"
6165
 
    test -z "$ac_dir" && ac_dir=.
6166
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6167
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
6168
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
6169
 
      # but apparently some variants of GNU ld only accept -v.
6170
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
6171
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6172
 
      *GNU* | *'with BFD'*)
6173
 
        test "$with_gnu_ld" != no && break
6174
 
        ;;
6175
 
      *)
6176
 
        test "$with_gnu_ld" != yes && break
6177
 
        ;;
6178
 
      esac
6179
 
    fi
6180
 
  done
6181
 
  IFS="$lt_save_ifs"
6182
 
else
6183
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6184
 
fi
6185
 
fi
6186
 
 
6187
 
LD="$lt_cv_path_LD"
6188
 
if test -n "$LD"; then
6189
 
  { echo "$as_me:$LINENO: result: $LD" >&5
6190
 
echo "${ECHO_T}$LD" >&6; }
6191
 
else
6192
 
  { echo "$as_me:$LINENO: result: no" >&5
6193
 
echo "${ECHO_T}no" >&6; }
6194
 
fi
6195
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6196
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6197
 
   { (exit 1); exit 1; }; }
6198
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6199
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6200
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
6201
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6202
 
else
6203
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6204
 
case `$LD -v 2>&1 </dev/null` in
6205
 
*GNU* | *'with BFD'*)
6206
 
  lt_cv_prog_gnu_ld=yes
6207
 
  ;;
6208
 
*)
6209
 
  lt_cv_prog_gnu_ld=no
6210
 
  ;;
6211
 
esac
6212
 
fi
6213
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6214
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6215
 
with_gnu_ld=$lt_cv_prog_gnu_ld
6216
 
 
6217
 
 
6218
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6219
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6220
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
6221
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6222
 
else
6223
 
  lt_cv_ld_reload_flag='-r'
6224
 
fi
6225
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6226
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6227
 
reload_flag=$lt_cv_ld_reload_flag
6228
 
case $reload_flag in
6229
 
"" | " "*) ;;
6230
 
*) reload_flag=" $reload_flag" ;;
6231
 
esac
6232
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6233
 
case $host_os in
6234
 
  darwin*)
6235
 
    if test "$GCC" = yes; then
6236
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6237
 
    else
6238
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6239
 
    fi
6240
 
    ;;
6241
 
esac
6242
 
 
6243
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6244
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6245
 
if test "${lt_cv_path_NM+set}" = set; then
6246
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6247
 
else
6248
 
  if test -n "$NM"; then
6249
 
  # Let the user override the test.
6250
 
  lt_cv_path_NM="$NM"
6251
 
else
6252
 
  lt_nm_to_check="${ac_tool_prefix}nm"
6253
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
6254
 
    lt_nm_to_check="$lt_nm_to_check nm"
6255
 
  fi
6256
 
  for lt_tmp_nm in $lt_nm_to_check; do
6257
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6258
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6259
 
      IFS="$lt_save_ifs"
6260
 
      test -z "$ac_dir" && ac_dir=.
6261
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
6262
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6263
 
        # Check to see if the nm accepts a BSD-compat flag.
6264
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6265
 
        #   nm: unknown option "B" ignored
6266
 
        # Tru64's nm complains that /dev/null is an invalid object file
6267
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6268
 
        */dev/null* | *'Invalid file or object type'*)
6269
 
          lt_cv_path_NM="$tmp_nm -B"
6270
 
          break
6271
 
          ;;
6272
 
        *)
6273
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6274
 
          */dev/null*)
6275
 
            lt_cv_path_NM="$tmp_nm -p"
6276
 
            break
6277
 
            ;;
6278
 
          *)
6279
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6280
 
            continue # so that we can try to find one that supports BSD flags
6281
 
            ;;
6282
 
          esac
6283
 
          ;;
6284
 
        esac
6285
 
      fi
6286
 
    done
6287
 
    IFS="$lt_save_ifs"
6288
 
  done
6289
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6290
 
fi
6291
 
fi
6292
 
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6293
 
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6294
 
NM="$lt_cv_path_NM"
6295
 
 
6296
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6297
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6298
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
6299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6300
 
else
6301
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6302
 
lt_cv_file_magic_test_file=
6303
 
lt_cv_deplibs_check_method='unknown'
6304
 
# Need to set the preceding variable on all platforms that support
6305
 
# interlibrary dependencies.
6306
 
# 'none' -- dependencies not supported.
6307
 
# `unknown' -- same as none, but documents that we really don't know.
6308
 
# 'pass_all' -- all dependencies passed with no checks.
6309
 
# 'test_compile' -- check by making test program.
6310
 
# 'file_magic [[regex]]' -- check by looking for files in library path
6311
 
# which responds to the $file_magic_cmd with a given extended regex.
6312
 
# If you have `file' or equivalent on your system and you're not sure
6313
 
# whether `pass_all' will *always* work, you probably want this one.
6314
 
 
6315
 
case $host_os in
6316
 
aix4* | aix5*)
6317
 
  lt_cv_deplibs_check_method=pass_all
6318
 
  ;;
6319
 
 
6320
 
beos*)
6321
 
  lt_cv_deplibs_check_method=pass_all
6322
 
  ;;
6323
 
 
6324
 
bsdi[45]*)
6325
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6326
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6327
 
  lt_cv_file_magic_test_file=/shlib/libc.so
6328
 
  ;;
6329
 
 
6330
 
cygwin*)
6331
 
  # func_win32_libid is a shell function defined in ltmain.sh
6332
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6333
 
  lt_cv_file_magic_cmd='func_win32_libid'
6334
 
  ;;
6335
 
 
6336
 
mingw* | pw32*)
6337
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
6338
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6339
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6340
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6341
 
  ;;
6342
 
 
6343
 
darwin* | rhapsody*)
6344
 
  lt_cv_deplibs_check_method=pass_all
6345
 
  ;;
6346
 
 
6347
 
freebsd* | dragonfly*)
6348
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6349
 
    case $host_cpu in
6350
 
    i*86 )
6351
 
      # Not sure whether the presence of OpenBSD here was a mistake.
6352
 
      # Let's accept both of them until this is cleared up.
6353
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6354
 
      lt_cv_file_magic_cmd=/usr/bin/file
6355
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6356
 
      ;;
6357
 
    esac
6358
 
  else
6359
 
    lt_cv_deplibs_check_method=pass_all
6360
 
  fi
6361
 
  ;;
6362
 
 
6363
 
gnu*)
6364
 
  lt_cv_deplibs_check_method=pass_all
6365
 
  ;;
6366
 
 
6367
 
hpux10.20* | hpux11*)
6368
 
  lt_cv_file_magic_cmd=/usr/bin/file
6369
 
  case $host_cpu in
6370
 
  ia64*)
6371
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6372
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6373
 
    ;;
6374
 
  hppa*64*)
6375
 
    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]'
6376
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6377
 
    ;;
6378
 
  *)
6379
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6380
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6381
 
    ;;
6382
 
  esac
6383
 
  ;;
6384
 
 
6385
 
interix3*)
6386
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6387
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6388
 
  ;;
6389
 
 
6390
 
irix5* | irix6* | nonstopux*)
6391
 
  case $LD in
6392
 
  *-32|*"-32 ") libmagic=32-bit;;
6393
 
  *-n32|*"-n32 ") libmagic=N32;;
6394
 
  *-64|*"-64 ") libmagic=64-bit;;
6395
 
  *) libmagic=never-match;;
6396
 
  esac
6397
 
  lt_cv_deplibs_check_method=pass_all
6398
 
  ;;
6399
 
 
6400
 
# This must be Linux ELF.
6401
 
linux* | k*bsd*-gnu)
6402
 
  lt_cv_deplibs_check_method=pass_all
6403
 
  ;;
6404
 
 
6405
 
netbsd* | netbsdelf*-gnu)
6406
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6407
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6408
 
  else
6409
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6410
 
  fi
6411
 
  ;;
6412
 
 
6413
 
newos6*)
6414
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6415
 
  lt_cv_file_magic_cmd=/usr/bin/file
6416
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6417
 
  ;;
6418
 
 
6419
 
nto-qnx*)
6420
 
  lt_cv_deplibs_check_method=unknown
6421
 
  ;;
6422
 
 
6423
 
openbsd*)
6424
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6425
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6426
 
  else
6427
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6428
 
  fi
6429
 
  ;;
6430
 
 
6431
 
osf3* | osf4* | osf5*)
6432
 
  lt_cv_deplibs_check_method=pass_all
6433
 
  ;;
6434
 
 
6435
 
solaris*)
6436
 
  lt_cv_deplibs_check_method=pass_all
6437
 
  ;;
6438
 
 
6439
 
sysv4 | sysv4.3*)
6440
 
  case $host_vendor in
6441
 
  motorola)
6442
 
    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]'
6443
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6444
 
    ;;
6445
 
  ncr)
6446
 
    lt_cv_deplibs_check_method=pass_all
6447
 
    ;;
6448
 
  sequent)
6449
 
    lt_cv_file_magic_cmd='/bin/file'
6450
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6451
 
    ;;
6452
 
  sni)
6453
 
    lt_cv_file_magic_cmd='/bin/file'
6454
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6455
 
    lt_cv_file_magic_test_file=/lib/libc.so
6456
 
    ;;
6457
 
  siemens)
6458
 
    lt_cv_deplibs_check_method=pass_all
6459
 
    ;;
6460
 
  pc)
6461
 
    lt_cv_deplibs_check_method=pass_all
6462
 
    ;;
6463
 
  esac
6464
 
  ;;
6465
 
 
6466
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6467
 
  lt_cv_deplibs_check_method=pass_all
6468
 
  ;;
6469
 
esac
6470
 
 
6471
 
fi
6472
 
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6473
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6474
 
file_magic_cmd=$lt_cv_file_magic_cmd
6475
 
deplibs_check_method=$lt_cv_deplibs_check_method
6476
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6477
 
 
6478
 
 
6479
 
 
6480
 
 
6481
 
# If no C compiler was specified, use CC.
6482
 
LTCC=${LTCC-"$CC"}
6483
 
 
6484
 
# If no C compiler flags were specified, use CFLAGS.
6485
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6486
 
 
6487
 
# Allow CC to be a program name with arguments.
6488
 
compiler=$CC
6489
 
 
6490
 
# Check whether --enable-libtool-lock was given.
6491
 
if test "${enable_libtool_lock+set}" = set; then
6492
 
  enableval=$enable_libtool_lock; 
6493
 
fi
6494
 
 
6495
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6496
 
 
6497
 
# Some flags need to be propagated to the compiler or linker for good
6498
 
# libtool support.
6499
 
case $host in
6500
 
ia64-*-hpux*)
6501
 
  # Find out which ABI we are using.
6502
 
  echo 'int i;' > conftest.$ac_ext
6503
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504
 
  (eval $ac_compile) 2>&5
6505
 
  ac_status=$?
6506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507
 
  (exit $ac_status); }; then
6508
 
    case `/usr/bin/file conftest.$ac_objext` in
6509
 
    *ELF-32*)
6510
 
      HPUX_IA64_MODE="32"
6511
 
      ;;
6512
 
    *ELF-64*)
6513
 
      HPUX_IA64_MODE="64"
6514
 
      ;;
6515
 
    esac
6516
 
  fi
6517
 
  rm -rf conftest*
6518
 
  ;;
6519
 
*-*-irix6*)
6520
 
  # Find out which ABI we are using.
6521
 
  echo '#line __oline__ "configure"' > conftest.$ac_ext
6522
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523
 
  (eval $ac_compile) 2>&5
6524
 
  ac_status=$?
6525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526
 
  (exit $ac_status); }; then
6527
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
6528
 
    case `/usr/bin/file conftest.$ac_objext` in
6529
 
    *32-bit*)
6530
 
      LD="${LD-ld} -melf32bsmip"
6531
 
      ;;
6532
 
    *N32*)
6533
 
      LD="${LD-ld} -melf32bmipn32"
6534
 
      ;;
6535
 
    *64-bit*)
6536
 
      LD="${LD-ld} -melf64bmip"
6537
 
      ;;
6538
 
    esac
6539
 
   else
6540
 
    case `/usr/bin/file conftest.$ac_objext` in
6541
 
    *32-bit*)
6542
 
      LD="${LD-ld} -32"
6543
 
      ;;
6544
 
    *N32*)
6545
 
      LD="${LD-ld} -n32"
6546
 
      ;;
6547
 
    *64-bit*)
6548
 
      LD="${LD-ld} -64"
6549
 
      ;;
6550
 
    esac
6551
 
   fi
6552
 
  fi
6553
 
  rm -rf conftest*
6554
 
  ;;
6555
 
 
6556
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6557
 
  # Find out which ABI we are using.
6558
 
  echo 'int i;' > conftest.$ac_ext
6559
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560
 
  (eval $ac_compile) 2>&5
6561
 
  ac_status=$?
6562
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563
 
  (exit $ac_status); }; then
6564
 
    case `/usr/bin/file conftest.o` in
6565
 
    *32-bit*)
6566
 
      case $host in
6567
 
        x86_64-*linux*)
6568
 
          LD="${LD-ld} -m elf_i386"
6569
 
          ;;
6570
 
        ppc64-*linux*|powerpc64-*linux*)
6571
 
          LD="${LD-ld} -m elf32ppclinux"
6572
 
          ;;
6573
 
        s390x-*linux*)
6574
 
          LD="${LD-ld} -m elf_s390"
6575
 
          ;;
6576
 
        sparc64-*linux*)
6577
 
          LD="${LD-ld} -m elf32_sparc"
6578
 
          ;;
6579
 
      esac
6580
 
      ;;
6581
 
    *64-bit*)
6582
 
      case $host in
6583
 
        x86_64-*linux*)
6584
 
          LD="${LD-ld} -m elf_x86_64"
6585
 
          ;;
6586
 
        ppc*-*linux*|powerpc*-*linux*)
6587
 
          LD="${LD-ld} -m elf64ppc"
6588
 
          ;;
6589
 
        s390*-*linux*)
6590
 
          LD="${LD-ld} -m elf64_s390"
6591
 
          ;;
6592
 
        sparc*-*linux*)
6593
 
          LD="${LD-ld} -m elf64_sparc"
6594
 
          ;;
6595
 
      esac
6596
 
      ;;
6597
 
    esac
6598
 
  fi
6599
 
  rm -rf conftest*
6600
 
  ;;
6601
 
 
6602
 
*-*-sco3.2v5*)
6603
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604
 
  SAVE_CFLAGS="$CFLAGS"
6605
 
  CFLAGS="$CFLAGS -belf"
6606
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6607
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6608
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
6609
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6610
 
else
6611
 
  ac_ext=c
6612
 
ac_cpp='$CPP $CPPFLAGS'
6613
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
 
 
6617
 
     cat >conftest.$ac_ext <<_ACEOF
6618
 
/* confdefs.h.  */
6619
 
_ACEOF
6620
 
cat confdefs.h >>conftest.$ac_ext
6621
 
cat >>conftest.$ac_ext <<_ACEOF
6622
 
/* end confdefs.h.  */
6623
 
 
6624
 
int
6625
 
main ()
6626
 
{
6627
 
 
6628
 
  ;
6629
 
  return 0;
6630
 
}
6631
 
_ACEOF
6632
 
rm -f conftest.$ac_objext conftest$ac_exeext
6633
 
if { (ac_try="$ac_link"
6634
 
case "(($ac_try" in
6635
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636
 
  *) ac_try_echo=$ac_try;;
6637
 
esac
6638
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639
 
  (eval "$ac_link") 2>conftest.er1
6640
 
  ac_status=$?
6641
 
  grep -v '^ *+' conftest.er1 >conftest.err
6642
 
  rm -f conftest.er1
6643
 
  cat conftest.err >&5
6644
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645
 
  (exit $ac_status); } &&
6646
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6647
 
  { (case "(($ac_try" in
6648
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649
 
  *) ac_try_echo=$ac_try;;
6650
 
esac
6651
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652
 
  (eval "$ac_try") 2>&5
6653
 
  ac_status=$?
6654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655
 
  (exit $ac_status); }; } &&
6656
 
         { ac_try='test -s conftest$ac_exeext'
6657
 
  { (case "(($ac_try" in
6658
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659
 
  *) ac_try_echo=$ac_try;;
6660
 
esac
6661
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662
 
  (eval "$ac_try") 2>&5
6663
 
  ac_status=$?
6664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665
 
  (exit $ac_status); }; }; then
6666
 
  lt_cv_cc_needs_belf=yes
6667
 
else
6668
 
  echo "$as_me: failed program was:" >&5
6669
 
sed 's/^/| /' conftest.$ac_ext >&5
6670
 
 
6671
 
        lt_cv_cc_needs_belf=no
6672
 
fi
6673
 
 
6674
 
rm -f conftest.err conftest.$ac_objext \
6675
 
      conftest$ac_exeext conftest.$ac_ext
6676
 
     ac_ext=c
6677
 
ac_cpp='$CPP $CPPFLAGS'
6678
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681
 
 
6682
 
fi
6683
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6684
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6685
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6686
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6687
 
    CFLAGS="$SAVE_CFLAGS"
6688
 
  fi
6689
 
  ;;
6690
 
sparc*-*solaris*)
6691
 
  # Find out which ABI we are using.
6692
 
  echo 'int i;' > conftest.$ac_ext
6693
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694
 
  (eval $ac_compile) 2>&5
6695
 
  ac_status=$?
6696
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697
 
  (exit $ac_status); }; then
6698
 
    case `/usr/bin/file conftest.o` in
6699
 
    *64-bit*)
6700
 
      case $lt_cv_prog_gnu_ld in
6701
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6702
 
      *)    LD="${LD-ld} -64" ;;
6703
 
      esac
6704
 
      ;;
6705
 
    esac
6706
 
  fi
6707
 
  rm -rf conftest*
6708
 
  ;;
6709
 
 
6710
 
 
6711
 
esac
6712
 
 
6713
 
need_locks="$enable_libtool_lock"
6714
 
 
6715
 
 
6716
 
 
6717
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6718
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6719
 
if test "${ac_cv_header_stdc+set}" = set; then
6720
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6721
 
else
6722
 
  cat >conftest.$ac_ext <<_ACEOF
6723
 
/* confdefs.h.  */
6724
 
_ACEOF
6725
 
cat confdefs.h >>conftest.$ac_ext
6726
 
cat >>conftest.$ac_ext <<_ACEOF
6727
 
/* end confdefs.h.  */
6728
 
#include <stdlib.h>
6729
 
#include <stdarg.h>
6730
 
#include <string.h>
6731
 
#include <float.h>
6732
 
 
6733
 
int
6734
 
main ()
6735
 
{
6736
 
 
6737
 
  ;
6738
 
  return 0;
6739
 
}
6740
 
_ACEOF
6741
 
rm -f conftest.$ac_objext
6742
 
if { (ac_try="$ac_compile"
6743
 
case "(($ac_try" in
6744
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745
 
  *) ac_try_echo=$ac_try;;
6746
 
esac
6747
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748
 
  (eval "$ac_compile") 2>conftest.er1
6749
 
  ac_status=$?
6750
 
  grep -v '^ *+' conftest.er1 >conftest.err
6751
 
  rm -f conftest.er1
6752
 
  cat conftest.err >&5
6753
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754
 
  (exit $ac_status); } &&
6755
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6756
 
  { (case "(($ac_try" in
6757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758
 
  *) ac_try_echo=$ac_try;;
6759
 
esac
6760
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761
 
  (eval "$ac_try") 2>&5
6762
 
  ac_status=$?
6763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
 
  (exit $ac_status); }; } &&
6765
 
         { ac_try='test -s conftest.$ac_objext'
6766
 
  { (case "(($ac_try" in
6767
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768
 
  *) ac_try_echo=$ac_try;;
6769
 
esac
6770
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771
 
  (eval "$ac_try") 2>&5
6772
 
  ac_status=$?
6773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774
 
  (exit $ac_status); }; }; then
6775
 
  ac_cv_header_stdc=yes
6776
 
else
6777
 
  echo "$as_me: failed program was:" >&5
6778
 
sed 's/^/| /' conftest.$ac_ext >&5
6779
 
 
6780
 
        ac_cv_header_stdc=no
6781
 
fi
6782
 
 
6783
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6784
 
 
6785
 
if test $ac_cv_header_stdc = yes; then
6786
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6787
 
  cat >conftest.$ac_ext <<_ACEOF
6788
 
/* confdefs.h.  */
6789
 
_ACEOF
6790
 
cat confdefs.h >>conftest.$ac_ext
6791
 
cat >>conftest.$ac_ext <<_ACEOF
6792
 
/* end confdefs.h.  */
6793
 
#include <string.h>
6794
 
 
6795
 
_ACEOF
6796
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6797
 
  $EGREP "memchr" >/dev/null 2>&1; then
6798
 
  :
6799
 
else
6800
 
  ac_cv_header_stdc=no
6801
 
fi
6802
 
rm -f conftest*
6803
 
 
6804
 
fi
6805
 
 
6806
 
if test $ac_cv_header_stdc = yes; then
6807
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6808
 
  cat >conftest.$ac_ext <<_ACEOF
6809
 
/* confdefs.h.  */
6810
 
_ACEOF
6811
 
cat confdefs.h >>conftest.$ac_ext
6812
 
cat >>conftest.$ac_ext <<_ACEOF
6813
 
/* end confdefs.h.  */
6814
 
#include <stdlib.h>
6815
 
 
6816
 
_ACEOF
6817
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818
 
  $EGREP "free" >/dev/null 2>&1; then
6819
 
  :
6820
 
else
6821
 
  ac_cv_header_stdc=no
6822
 
fi
6823
 
rm -f conftest*
6824
 
 
6825
 
fi
6826
 
 
6827
 
if test $ac_cv_header_stdc = yes; then
6828
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6829
 
  if test "$cross_compiling" = yes; then
6830
 
  :
6831
 
else
6832
 
  cat >conftest.$ac_ext <<_ACEOF
6833
 
/* confdefs.h.  */
6834
 
_ACEOF
6835
 
cat confdefs.h >>conftest.$ac_ext
6836
 
cat >>conftest.$ac_ext <<_ACEOF
6837
 
/* end confdefs.h.  */
6838
 
#include <ctype.h>
6839
 
#include <stdlib.h>
6840
 
#if ((' ' & 0x0FF) == 0x020)
6841
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6842
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6843
 
#else
6844
 
# define ISLOWER(c) \
6845
 
                   (('a' <= (c) && (c) <= 'i') \
6846
 
                     || ('j' <= (c) && (c) <= 'r') \
6847
 
                     || ('s' <= (c) && (c) <= 'z'))
6848
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6849
 
#endif
6850
 
 
6851
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6852
 
int
6853
 
main ()
6854
 
{
6855
 
  int i;
6856
 
  for (i = 0; i < 256; i++)
6857
 
    if (XOR (islower (i), ISLOWER (i))
6858
 
        || toupper (i) != TOUPPER (i))
6859
 
      return 2;
6860
 
  return 0;
6861
 
}
6862
 
_ACEOF
6863
 
rm -f conftest$ac_exeext
6864
 
if { (ac_try="$ac_link"
6865
 
case "(($ac_try" in
6866
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867
 
  *) ac_try_echo=$ac_try;;
6868
 
esac
6869
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870
 
  (eval "$ac_link") 2>&5
6871
 
  ac_status=$?
6872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6874
 
  { (case "(($ac_try" in
6875
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876
 
  *) ac_try_echo=$ac_try;;
6877
 
esac
6878
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879
 
  (eval "$ac_try") 2>&5
6880
 
  ac_status=$?
6881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882
 
  (exit $ac_status); }; }; then
6883
 
  :
6884
 
else
6885
 
  echo "$as_me: program exited with status $ac_status" >&5
6886
 
echo "$as_me: failed program was:" >&5
6887
 
sed 's/^/| /' conftest.$ac_ext >&5
6888
 
 
6889
 
( exit $ac_status )
6890
 
ac_cv_header_stdc=no
6891
 
fi
6892
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6893
 
fi
6894
 
 
6895
 
 
6896
 
fi
6897
 
fi
6898
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6899
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6900
 
if test $ac_cv_header_stdc = yes; then
6901
 
  
6902
 
cat >>confdefs.h <<\_ACEOF
6903
 
@%:@define STDC_HEADERS 1
6904
 
_ACEOF
6905
 
 
6906
 
fi
6907
 
 
6908
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6909
 
 
6910
 
 
6911
 
 
6912
 
 
6913
 
 
6914
 
 
6915
 
 
6916
 
 
6917
 
 
6918
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6919
 
                  inttypes.h stdint.h unistd.h
6920
 
do
6921
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6922
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6923
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6924
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6926
 
else
6927
 
  cat >conftest.$ac_ext <<_ACEOF
6928
 
/* confdefs.h.  */
6929
 
_ACEOF
6930
 
cat confdefs.h >>conftest.$ac_ext
6931
 
cat >>conftest.$ac_ext <<_ACEOF
6932
 
/* end confdefs.h.  */
6933
 
$ac_includes_default
6934
 
 
6935
 
@%:@include <$ac_header>
6936
 
_ACEOF
6937
 
rm -f conftest.$ac_objext
6938
 
if { (ac_try="$ac_compile"
6939
 
case "(($ac_try" in
6940
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941
 
  *) ac_try_echo=$ac_try;;
6942
 
esac
6943
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944
 
  (eval "$ac_compile") 2>conftest.er1
6945
 
  ac_status=$?
6946
 
  grep -v '^ *+' conftest.er1 >conftest.err
6947
 
  rm -f conftest.er1
6948
 
  cat conftest.err >&5
6949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950
 
  (exit $ac_status); } &&
6951
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6952
 
  { (case "(($ac_try" in
6953
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954
 
  *) ac_try_echo=$ac_try;;
6955
 
esac
6956
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957
 
  (eval "$ac_try") 2>&5
6958
 
  ac_status=$?
6959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960
 
  (exit $ac_status); }; } &&
6961
 
         { ac_try='test -s conftest.$ac_objext'
6962
 
  { (case "(($ac_try" in
6963
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964
 
  *) ac_try_echo=$ac_try;;
6965
 
esac
6966
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967
 
  (eval "$ac_try") 2>&5
6968
 
  ac_status=$?
6969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970
 
  (exit $ac_status); }; }; then
6971
 
  eval "$as_ac_Header=yes"
6972
 
else
6973
 
  echo "$as_me: failed program was:" >&5
6974
 
sed 's/^/| /' conftest.$ac_ext >&5
6975
 
 
6976
 
        eval "$as_ac_Header=no"
6977
 
fi
6978
 
 
6979
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980
 
fi
6981
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6982
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6983
 
echo "${ECHO_T}$ac_res" >&6; }
6984
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6985
 
  cat >>confdefs.h <<_ACEOF
6986
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6987
 
_ACEOF
6988
 
 
6989
 
fi
6990
 
 
6991
 
done
6992
 
 
6993
 
 
6994
 
 
6995
 
for ac_header in dlfcn.h
6996
 
do
6997
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6998
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6999
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7000
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7001
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7002
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7003
 
fi
7004
 
ac_res=`eval echo '${'$as_ac_Header'}'`
7005
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7006
 
echo "${ECHO_T}$ac_res" >&6; }
7007
 
else
7008
 
  # Is the header compilable?
7009
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7010
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7011
 
cat >conftest.$ac_ext <<_ACEOF
7012
 
/* confdefs.h.  */
7013
 
_ACEOF
7014
 
cat confdefs.h >>conftest.$ac_ext
7015
 
cat >>conftest.$ac_ext <<_ACEOF
7016
 
/* end confdefs.h.  */
7017
 
$ac_includes_default
7018
 
@%:@include <$ac_header>
7019
 
_ACEOF
7020
 
rm -f conftest.$ac_objext
7021
 
if { (ac_try="$ac_compile"
7022
 
case "(($ac_try" in
7023
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024
 
  *) ac_try_echo=$ac_try;;
7025
 
esac
7026
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027
 
  (eval "$ac_compile") 2>conftest.er1
7028
 
  ac_status=$?
7029
 
  grep -v '^ *+' conftest.er1 >conftest.err
7030
 
  rm -f conftest.er1
7031
 
  cat conftest.err >&5
7032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033
 
  (exit $ac_status); } &&
7034
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7035
 
  { (case "(($ac_try" in
7036
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037
 
  *) ac_try_echo=$ac_try;;
7038
 
esac
7039
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040
 
  (eval "$ac_try") 2>&5
7041
 
  ac_status=$?
7042
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043
 
  (exit $ac_status); }; } &&
7044
 
         { ac_try='test -s conftest.$ac_objext'
7045
 
  { (case "(($ac_try" in
7046
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047
 
  *) ac_try_echo=$ac_try;;
7048
 
esac
7049
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050
 
  (eval "$ac_try") 2>&5
7051
 
  ac_status=$?
7052
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053
 
  (exit $ac_status); }; }; then
7054
 
  ac_header_compiler=yes
7055
 
else
7056
 
  echo "$as_me: failed program was:" >&5
7057
 
sed 's/^/| /' conftest.$ac_ext >&5
7058
 
 
7059
 
        ac_header_compiler=no
7060
 
fi
7061
 
 
7062
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7064
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
7065
 
 
7066
 
# Is the header present?
7067
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7068
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7069
 
cat >conftest.$ac_ext <<_ACEOF
7070
 
/* confdefs.h.  */
7071
 
_ACEOF
7072
 
cat confdefs.h >>conftest.$ac_ext
7073
 
cat >>conftest.$ac_ext <<_ACEOF
7074
 
/* end confdefs.h.  */
7075
 
@%:@include <$ac_header>
7076
 
_ACEOF
7077
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7078
 
case "(($ac_try" in
7079
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080
 
  *) ac_try_echo=$ac_try;;
7081
 
esac
7082
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7084
 
  ac_status=$?
7085
 
  grep -v '^ *+' conftest.er1 >conftest.err
7086
 
  rm -f conftest.er1
7087
 
  cat conftest.err >&5
7088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089
 
  (exit $ac_status); } >/dev/null; then
7090
 
  if test -s conftest.err; then
7091
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7092
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7093
 
  else
7094
 
    ac_cpp_err=
7095
 
  fi
7096
 
else
7097
 
  ac_cpp_err=yes
7098
 
fi
7099
 
if test -z "$ac_cpp_err"; then
7100
 
  ac_header_preproc=yes
7101
 
else
7102
 
  echo "$as_me: failed program was:" >&5
7103
 
sed 's/^/| /' conftest.$ac_ext >&5
7104
 
 
7105
 
  ac_header_preproc=no
7106
 
fi
7107
 
 
7108
 
rm -f conftest.err conftest.$ac_ext
7109
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
7111
 
 
7112
 
# So?  What about this header?
7113
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7114
 
  yes:no: )
7115
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7116
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7118
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7119
 
    ac_header_preproc=yes
7120
 
    ;;
7121
 
  no:yes:* )
7122
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7123
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7124
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7125
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7126
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7127
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7128
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7129
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7130
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7131
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7132
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7133
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7134
 
    ( cat <<\_ASBOX
7135
 
@%:@@%:@ ------------------------------- @%:@@%:@
7136
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
7137
 
@%:@@%:@ ------------------------------- @%:@@%:@
7138
 
_ASBOX
7139
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
7140
 
    ;;
7141
 
esac
7142
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7143
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7145
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7146
 
else
7147
 
  eval "$as_ac_Header=\$ac_header_preproc"
7148
 
fi
7149
 
ac_res=`eval echo '${'$as_ac_Header'}'`
7150
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7151
 
echo "${ECHO_T}$ac_res" >&6; }
7152
 
 
7153
 
fi
7154
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7155
 
  cat >>confdefs.h <<_ACEOF
7156
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7157
 
_ACEOF
7158
 
 
7159
 
fi
7160
 
 
7161
 
done
7162
 
 
7163
 
 
7164
 
 
7165
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7166
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7167
 
    (test "X$CXX" != "Xg++"))) ; then
7168
 
  ac_ext=cpp
7169
 
ac_cpp='$CXXCPP $CPPFLAGS'
7170
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7173
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7174
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7175
 
if test -z "$CXXCPP"; then
7176
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7177
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7178
 
else
7179
 
      # Double quotes because CXXCPP needs to be expanded
7180
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
7181
 
    do
7182
 
      ac_preproc_ok=false
7183
 
for ac_cxx_preproc_warn_flag in '' yes
7184
 
do
7185
 
  # Use a header file that comes with gcc, so configuring glibc
7186
 
  # with a fresh cross-compiler works.
7187
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188
 
  # <limits.h> exists even on freestanding compilers.
7189
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7190
 
  # not just through cpp. "Syntax error" is here to catch this case.
7191
 
  cat >conftest.$ac_ext <<_ACEOF
7192
 
/* confdefs.h.  */
7193
 
_ACEOF
7194
 
cat confdefs.h >>conftest.$ac_ext
7195
 
cat >>conftest.$ac_ext <<_ACEOF
7196
 
/* end confdefs.h.  */
7197
 
@%:@ifdef __STDC__
7198
 
@%:@ include <limits.h>
7199
 
@%:@else
7200
 
@%:@ include <assert.h>
7201
 
@%:@endif
7202
 
                     Syntax error
7203
 
_ACEOF
7204
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7205
 
case "(($ac_try" in
7206
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207
 
  *) ac_try_echo=$ac_try;;
7208
 
esac
7209
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7211
 
  ac_status=$?
7212
 
  grep -v '^ *+' conftest.er1 >conftest.err
7213
 
  rm -f conftest.er1
7214
 
  cat conftest.err >&5
7215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216
 
  (exit $ac_status); } >/dev/null; then
7217
 
  if test -s conftest.err; then
7218
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
7219
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7220
 
  else
7221
 
    ac_cpp_err=
7222
 
  fi
7223
 
else
7224
 
  ac_cpp_err=yes
7225
 
fi
7226
 
if test -z "$ac_cpp_err"; then
7227
 
  :
7228
 
else
7229
 
  echo "$as_me: failed program was:" >&5
7230
 
sed 's/^/| /' conftest.$ac_ext >&5
7231
 
 
7232
 
  # Broken: fails on valid input.
7233
 
continue
7234
 
fi
7235
 
 
7236
 
rm -f conftest.err conftest.$ac_ext
7237
 
 
7238
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7239
 
  # can be detected and how.
7240
 
  cat >conftest.$ac_ext <<_ACEOF
7241
 
/* confdefs.h.  */
7242
 
_ACEOF
7243
 
cat confdefs.h >>conftest.$ac_ext
7244
 
cat >>conftest.$ac_ext <<_ACEOF
7245
 
/* end confdefs.h.  */
7246
 
@%:@include <ac_nonexistent.h>
7247
 
_ACEOF
7248
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7249
 
case "(($ac_try" in
7250
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251
 
  *) ac_try_echo=$ac_try;;
7252
 
esac
7253
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7255
 
  ac_status=$?
7256
 
  grep -v '^ *+' conftest.er1 >conftest.err
7257
 
  rm -f conftest.er1
7258
 
  cat conftest.err >&5
7259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260
 
  (exit $ac_status); } >/dev/null; then
7261
 
  if test -s conftest.err; then
7262
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
7263
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7264
 
  else
7265
 
    ac_cpp_err=
7266
 
  fi
7267
 
else
7268
 
  ac_cpp_err=yes
7269
 
fi
7270
 
if test -z "$ac_cpp_err"; then
7271
 
  # Broken: success on invalid input.
7272
 
continue
7273
 
else
7274
 
  echo "$as_me: failed program was:" >&5
7275
 
sed 's/^/| /' conftest.$ac_ext >&5
7276
 
 
7277
 
  # Passes both tests.
7278
 
ac_preproc_ok=:
7279
 
break
7280
 
fi
7281
 
 
7282
 
rm -f conftest.err conftest.$ac_ext
7283
 
 
7284
 
done
7285
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286
 
rm -f conftest.err conftest.$ac_ext
7287
 
if $ac_preproc_ok; then
7288
 
  break
7289
 
fi
7290
 
 
7291
 
    done
7292
 
    ac_cv_prog_CXXCPP=$CXXCPP
7293
 
  
7294
 
fi
7295
 
  CXXCPP=$ac_cv_prog_CXXCPP
7296
 
else
7297
 
  ac_cv_prog_CXXCPP=$CXXCPP
7298
 
fi
7299
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7300
 
echo "${ECHO_T}$CXXCPP" >&6; }
7301
 
ac_preproc_ok=false
7302
 
for ac_cxx_preproc_warn_flag in '' yes
7303
 
do
7304
 
  # Use a header file that comes with gcc, so configuring glibc
7305
 
  # with a fresh cross-compiler works.
7306
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307
 
  # <limits.h> exists even on freestanding compilers.
7308
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7309
 
  # not just through cpp. "Syntax error" is here to catch this case.
7310
 
  cat >conftest.$ac_ext <<_ACEOF
7311
 
/* confdefs.h.  */
7312
 
_ACEOF
7313
 
cat confdefs.h >>conftest.$ac_ext
7314
 
cat >>conftest.$ac_ext <<_ACEOF
7315
 
/* end confdefs.h.  */
7316
 
@%:@ifdef __STDC__
7317
 
@%:@ include <limits.h>
7318
 
@%:@else
7319
 
@%:@ include <assert.h>
7320
 
@%:@endif
7321
 
                     Syntax error
7322
 
_ACEOF
7323
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7324
 
case "(($ac_try" in
7325
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326
 
  *) ac_try_echo=$ac_try;;
7327
 
esac
7328
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7330
 
  ac_status=$?
7331
 
  grep -v '^ *+' conftest.er1 >conftest.err
7332
 
  rm -f conftest.er1
7333
 
  cat conftest.err >&5
7334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335
 
  (exit $ac_status); } >/dev/null; then
7336
 
  if test -s conftest.err; then
7337
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
7338
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7339
 
  else
7340
 
    ac_cpp_err=
7341
 
  fi
7342
 
else
7343
 
  ac_cpp_err=yes
7344
 
fi
7345
 
if test -z "$ac_cpp_err"; then
7346
 
  :
7347
 
else
7348
 
  echo "$as_me: failed program was:" >&5
7349
 
sed 's/^/| /' conftest.$ac_ext >&5
7350
 
 
7351
 
  # Broken: fails on valid input.
7352
 
continue
7353
 
fi
7354
 
 
7355
 
rm -f conftest.err conftest.$ac_ext
7356
 
 
7357
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7358
 
  # can be detected and how.
7359
 
  cat >conftest.$ac_ext <<_ACEOF
7360
 
/* confdefs.h.  */
7361
 
_ACEOF
7362
 
cat confdefs.h >>conftest.$ac_ext
7363
 
cat >>conftest.$ac_ext <<_ACEOF
7364
 
/* end confdefs.h.  */
7365
 
@%:@include <ac_nonexistent.h>
7366
 
_ACEOF
7367
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7368
 
case "(($ac_try" in
7369
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370
 
  *) ac_try_echo=$ac_try;;
7371
 
esac
7372
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7374
 
  ac_status=$?
7375
 
  grep -v '^ *+' conftest.er1 >conftest.err
7376
 
  rm -f conftest.er1
7377
 
  cat conftest.err >&5
7378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379
 
  (exit $ac_status); } >/dev/null; then
7380
 
  if test -s conftest.err; then
7381
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
7382
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7383
 
  else
7384
 
    ac_cpp_err=
7385
 
  fi
7386
 
else
7387
 
  ac_cpp_err=yes
7388
 
fi
7389
 
if test -z "$ac_cpp_err"; then
7390
 
  # Broken: success on invalid input.
7391
 
continue
7392
 
else
7393
 
  echo "$as_me: failed program was:" >&5
7394
 
sed 's/^/| /' conftest.$ac_ext >&5
7395
 
 
7396
 
  # Passes both tests.
7397
 
ac_preproc_ok=:
7398
 
break
7399
 
fi
7400
 
 
7401
 
rm -f conftest.err conftest.$ac_ext
7402
 
 
7403
 
done
7404
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7405
 
rm -f conftest.err conftest.$ac_ext
7406
 
if $ac_preproc_ok; then
7407
 
  :
7408
 
else
7409
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7410
 
See \`config.log' for more details." >&5
7411
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7412
 
See \`config.log' for more details." >&2;}
7413
 
   { (exit 1); exit 1; }; }
7414
 
fi
7415
 
 
7416
 
ac_ext=cpp
7417
 
ac_cpp='$CXXCPP $CPPFLAGS'
7418
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7421
 
 
7422
 
fi
7423
 
 
7424
 
 
7425
 
ac_ext=f
7426
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7427
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7429
 
if test -n "$ac_tool_prefix"; then
7430
 
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7431
 
  do
7432
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7433
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7434
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436
 
if test "${ac_cv_prog_F77+set}" = set; then
7437
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7438
 
else
7439
 
  if test -n "$F77"; then
7440
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
7441
 
else
7442
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443
 
for as_dir in $PATH
7444
 
do
7445
 
  IFS=$as_save_IFS
7446
 
  test -z "$as_dir" && as_dir=.
7447
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7448
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7450
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451
 
    break 2
7452
 
  fi
7453
 
done
7454
 
done
7455
 
IFS=$as_save_IFS
7456
 
 
7457
 
fi
7458
 
fi
7459
 
F77=$ac_cv_prog_F77
7460
 
if test -n "$F77"; then
7461
 
  { echo "$as_me:$LINENO: result: $F77" >&5
7462
 
echo "${ECHO_T}$F77" >&6; }
7463
 
else
7464
 
  { echo "$as_me:$LINENO: result: no" >&5
7465
 
echo "${ECHO_T}no" >&6; }
7466
 
fi
7467
 
 
7468
 
 
7469
 
    test -n "$F77" && break
7470
 
  done
7471
 
fi
7472
 
if test -z "$F77"; then
7473
 
  ac_ct_F77=$F77
7474
 
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7475
 
do
7476
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7477
 
set dummy $ac_prog; ac_word=$2
7478
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7479
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7481
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7482
 
else
7483
 
  if test -n "$ac_ct_F77"; then
7484
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7485
 
else
7486
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487
 
for as_dir in $PATH
7488
 
do
7489
 
  IFS=$as_save_IFS
7490
 
  test -z "$as_dir" && as_dir=.
7491
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7492
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
7494
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495
 
    break 2
7496
 
  fi
7497
 
done
7498
 
done
7499
 
IFS=$as_save_IFS
7500
 
 
7501
 
fi
7502
 
fi
7503
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7504
 
if test -n "$ac_ct_F77"; then
7505
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7506
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
7507
 
else
7508
 
  { echo "$as_me:$LINENO: result: no" >&5
7509
 
echo "${ECHO_T}no" >&6; }
7510
 
fi
7511
 
 
7512
 
 
7513
 
  test -n "$ac_ct_F77" && break
7514
 
done
7515
 
 
7516
 
  if test "x$ac_ct_F77" = x; then
7517
 
    F77=""
7518
 
  else
7519
 
    case $cross_compiling:$ac_tool_warned in
7520
 
yes:)
7521
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7522
 
whose name does not start with the host triplet.  If you think this
7523
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7524
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7525
 
whose name does not start with the host triplet.  If you think this
7526
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7527
 
ac_tool_warned=yes ;;
7528
 
esac
7529
 
    F77=$ac_ct_F77
7530
 
  fi
7531
 
fi
7532
 
 
7533
 
 
7534
 
# Provide some information about the compiler.
7535
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7536
 
ac_compiler=`set X $ac_compile; echo $2`
7537
 
{ (ac_try="$ac_compiler --version >&5"
7538
 
case "(($ac_try" in
7539
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540
 
  *) ac_try_echo=$ac_try;;
7541
 
esac
7542
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543
 
  (eval "$ac_compiler --version >&5") 2>&5
7544
 
  ac_status=$?
7545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546
 
  (exit $ac_status); }
7547
 
{ (ac_try="$ac_compiler -v >&5"
7548
 
case "(($ac_try" in
7549
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550
 
  *) ac_try_echo=$ac_try;;
7551
 
esac
7552
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553
 
  (eval "$ac_compiler -v >&5") 2>&5
7554
 
  ac_status=$?
7555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556
 
  (exit $ac_status); }
7557
 
{ (ac_try="$ac_compiler -V >&5"
7558
 
case "(($ac_try" in
7559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560
 
  *) ac_try_echo=$ac_try;;
7561
 
esac
7562
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563
 
  (eval "$ac_compiler -V >&5") 2>&5
7564
 
  ac_status=$?
7565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566
 
  (exit $ac_status); }
7567
 
rm -f a.out
7568
 
 
7569
 
# If we don't use `.F' as extension, the preprocessor is not run on the
7570
 
# input file.  (Note that this only needs to work for GNU compilers.)
7571
 
ac_save_ext=$ac_ext
7572
 
ac_ext=F
7573
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7574
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7575
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7576
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7577
 
else
7578
 
  cat >conftest.$ac_ext <<_ACEOF
7579
 
      program main
7580
 
#ifndef __GNUC__
7581
 
       choke me
7582
 
#endif
7583
 
 
7584
 
      end
7585
 
_ACEOF
7586
 
rm -f conftest.$ac_objext
7587
 
if { (ac_try="$ac_compile"
7588
 
case "(($ac_try" in
7589
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590
 
  *) ac_try_echo=$ac_try;;
7591
 
esac
7592
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593
 
  (eval "$ac_compile") 2>conftest.er1
7594
 
  ac_status=$?
7595
 
  grep -v '^ *+' conftest.er1 >conftest.err
7596
 
  rm -f conftest.er1
7597
 
  cat conftest.err >&5
7598
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599
 
  (exit $ac_status); } &&
7600
 
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7601
 
  { (case "(($ac_try" in
7602
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603
 
  *) ac_try_echo=$ac_try;;
7604
 
esac
7605
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606
 
  (eval "$ac_try") 2>&5
7607
 
  ac_status=$?
7608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609
 
  (exit $ac_status); }; } &&
7610
 
         { ac_try='test -s conftest.$ac_objext'
7611
 
  { (case "(($ac_try" in
7612
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613
 
  *) ac_try_echo=$ac_try;;
7614
 
esac
7615
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616
 
  (eval "$ac_try") 2>&5
7617
 
  ac_status=$?
7618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619
 
  (exit $ac_status); }; }; then
7620
 
  ac_compiler_gnu=yes
7621
 
else
7622
 
  echo "$as_me: failed program was:" >&5
7623
 
sed 's/^/| /' conftest.$ac_ext >&5
7624
 
 
7625
 
        ac_compiler_gnu=no
7626
 
fi
7627
 
 
7628
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7630
 
 
7631
 
fi
7632
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7633
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7634
 
ac_ext=$ac_save_ext
7635
 
ac_test_FFLAGS=${FFLAGS+set}
7636
 
ac_save_FFLAGS=$FFLAGS
7637
 
FFLAGS=
7638
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7639
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7640
 
if test "${ac_cv_prog_f77_g+set}" = set; then
7641
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7642
 
else
7643
 
  FFLAGS=-g
7644
 
cat >conftest.$ac_ext <<_ACEOF
7645
 
      program main
7646
 
 
7647
 
      end
7648
 
_ACEOF
7649
 
rm -f conftest.$ac_objext
7650
 
if { (ac_try="$ac_compile"
7651
 
case "(($ac_try" in
7652
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653
 
  *) ac_try_echo=$ac_try;;
7654
 
esac
7655
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656
 
  (eval "$ac_compile") 2>conftest.er1
7657
 
  ac_status=$?
7658
 
  grep -v '^ *+' conftest.er1 >conftest.err
7659
 
  rm -f conftest.er1
7660
 
  cat conftest.err >&5
7661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662
 
  (exit $ac_status); } &&
7663
 
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7664
 
  { (case "(($ac_try" in
7665
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666
 
  *) ac_try_echo=$ac_try;;
7667
 
esac
7668
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669
 
  (eval "$ac_try") 2>&5
7670
 
  ac_status=$?
7671
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672
 
  (exit $ac_status); }; } &&
7673
 
         { ac_try='test -s conftest.$ac_objext'
7674
 
  { (case "(($ac_try" in
7675
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676
 
  *) ac_try_echo=$ac_try;;
7677
 
esac
7678
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679
 
  (eval "$ac_try") 2>&5
7680
 
  ac_status=$?
7681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682
 
  (exit $ac_status); }; }; then
7683
 
  ac_cv_prog_f77_g=yes
7684
 
else
7685
 
  echo "$as_me: failed program was:" >&5
7686
 
sed 's/^/| /' conftest.$ac_ext >&5
7687
 
 
7688
 
        ac_cv_prog_f77_g=no
7689
 
fi
7690
 
 
7691
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7692
 
 
7693
 
fi
7694
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7695
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7696
 
if test "$ac_test_FFLAGS" = set; then
7697
 
  FFLAGS=$ac_save_FFLAGS
7698
 
elif test $ac_cv_prog_f77_g = yes; then
7699
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7700
 
    FFLAGS="-g -O2"
7701
 
  else
7702
 
    FFLAGS="-g"
7703
 
  fi
7704
 
else
7705
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7706
 
    FFLAGS="-O2"
7707
 
  else
7708
 
    FFLAGS=
7709
 
  fi
7710
 
fi
7711
 
 
7712
 
G77=`test $ac_compiler_gnu = yes && echo yes`
7713
 
ac_ext=c
7714
 
ac_cpp='$CPP $CPPFLAGS'
7715
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
 
 
7719
 
 
7720
 
 
7721
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7722
 
 
7723
 
# find the maximum length of command line arguments
7724
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7725
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7726
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7727
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7728
 
else
7729
 
    i=0
7730
 
  teststring="ABCD"
7731
 
 
7732
 
  case $build_os in
7733
 
  msdosdjgpp*)
7734
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
7735
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
7736
 
    # during glob expansion).  Even if it were fixed, the result of this
7737
 
    # check would be larger than it should be.
7738
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7739
 
    ;;
7740
 
 
7741
 
  gnu*)
7742
 
    # Under GNU Hurd, this test is not required because there is
7743
 
    # no limit to the length of command line arguments.
7744
 
    # Libtool will interpret -1 as no limit whatsoever
7745
 
    lt_cv_sys_max_cmd_len=-1;
7746
 
    ;;
7747
 
 
7748
 
  cygwin* | mingw*)
7749
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
7750
 
    # about 5 minutes as the teststring grows exponentially.
7751
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
7752
 
    # you end up with a "frozen" computer, even though with patience
7753
 
    # the test eventually succeeds (with a max line length of 256k).
7754
 
    # Instead, let's just punt: use the minimum linelength reported by
7755
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
7756
 
    lt_cv_sys_max_cmd_len=8192;
7757
 
    ;;
7758
 
 
7759
 
  amigaos*)
7760
 
    # On AmigaOS with pdksh, this test takes hours, literally.
7761
 
    # So we just punt and use a minimum line length of 8192.
7762
 
    lt_cv_sys_max_cmd_len=8192;
7763
 
    ;;
7764
 
 
7765
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7766
 
    # This has been around since 386BSD, at least.  Likely further.
7767
 
    if test -x /sbin/sysctl; then
7768
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7769
 
    elif test -x /usr/sbin/sysctl; then
7770
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7771
 
    else
7772
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7773
 
    fi
7774
 
    # And add a safety zone
7775
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7776
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7777
 
    ;;
7778
 
 
7779
 
  interix*)
7780
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7781
 
    lt_cv_sys_max_cmd_len=196608
7782
 
    ;;
7783
 
 
7784
 
  osf*)
7785
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7786
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7787
 
    # nice to cause kernel panics so lets avoid the loop below.
7788
 
    # First set a reasonable default.
7789
 
    lt_cv_sys_max_cmd_len=16384
7790
 
    #
7791
 
    if test -x /sbin/sysconfig; then
7792
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7793
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7794
 
      esac
7795
 
    fi
7796
 
    ;;
7797
 
  sco3.2v5*)
7798
 
    lt_cv_sys_max_cmd_len=102400
7799
 
    ;;
7800
 
  sysv5* | sco5v6* | sysv4.2uw2*)
7801
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7802
 
    if test -n "$kargmax"; then
7803
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7804
 
    else
7805
 
      lt_cv_sys_max_cmd_len=32768
7806
 
    fi
7807
 
    ;;
7808
 
  *)
7809
 
    # If test is not a shell built-in, we'll probably end up computing a
7810
 
    # maximum length that is only half of the actual maximum length, but
7811
 
    # we can't tell.
7812
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7813
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7814
 
               = "XX$teststring") >/dev/null 2>&1 &&
7815
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7816
 
            lt_cv_sys_max_cmd_len=$new_result &&
7817
 
            test $i != 17 # 1/2 MB should be enough
7818
 
    do
7819
 
      i=`expr $i + 1`
7820
 
      teststring=$teststring$teststring
7821
 
    done
7822
 
    teststring=
7823
 
    # Add a significant safety factor because C++ compilers can tack on massive
7824
 
    # amounts of additional arguments before passing them to the linker.
7825
 
    # It appears as though 1/2 is a usable value.
7826
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7827
 
    ;;
7828
 
  esac
7829
 
 
7830
 
fi
7831
 
 
7832
 
if test -n $lt_cv_sys_max_cmd_len ; then
7833
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7834
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7835
 
else
7836
 
  { echo "$as_me:$LINENO: result: none" >&5
7837
 
echo "${ECHO_T}none" >&6; }
7838
 
fi
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
7844
 
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7845
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7846
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7847
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7848
 
else
7849
 
  
7850
 
# These are sane defaults that work on at least a few old systems.
7851
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7852
 
 
7853
 
# Character class describing NM global symbol codes.
7854
 
symcode='[BCDEGRST]'
7855
 
 
7856
 
# Regexp to match symbols that can be accessed directly from C.
7857
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7858
 
 
7859
 
# Transform an extracted symbol line into a proper C declaration
7860
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7861
 
 
7862
 
# Transform an extracted symbol line into symbol name and symbol address
7863
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7864
 
 
7865
 
# Define system-specific variables.
7866
 
case $host_os in
7867
 
aix*)
7868
 
  symcode='[BCDT]'
7869
 
  ;;
7870
 
cygwin* | mingw* | pw32*)
7871
 
  symcode='[ABCDGISTW]'
7872
 
  ;;
7873
 
hpux*) # Its linker distinguishes data from code symbols
7874
 
  if test "$host_cpu" = ia64; then
7875
 
    symcode='[ABCDEGRST]'
7876
 
  fi
7877
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7878
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7879
 
  ;;
7880
 
linux* | k*bsd*-gnu)
7881
 
  if test "$host_cpu" = ia64; then
7882
 
    symcode='[ABCDGIRSTW]'
7883
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7884
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7885
 
  fi
7886
 
  ;;
7887
 
irix* | nonstopux*)
7888
 
  symcode='[BCDEGRST]'
7889
 
  ;;
7890
 
osf*)
7891
 
  symcode='[BCDEGQRST]'
7892
 
  ;;
7893
 
solaris*)
7894
 
  symcode='[BDRT]'
7895
 
  ;;
7896
 
sco3.2v5*)
7897
 
  symcode='[DT]'
7898
 
  ;;
7899
 
sysv4.2uw2*)
7900
 
  symcode='[DT]'
7901
 
  ;;
7902
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7903
 
  symcode='[ABDT]'
7904
 
  ;;
7905
 
sysv4)
7906
 
  symcode='[DFNSTU]'
7907
 
  ;;
7908
 
esac
7909
 
 
7910
 
# Handle CRLF in mingw tool chain
7911
 
opt_cr=
7912
 
case $build_os in
7913
 
mingw*)
7914
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7915
 
  ;;
7916
 
esac
7917
 
 
7918
 
# If we're using GNU nm, then use its standard symbol codes.
7919
 
case `$NM -V 2>&1` in
7920
 
*GNU* | *'with BFD'*)
7921
 
  symcode='[ABCDGIRSTW]' ;;
7922
 
esac
7923
 
 
7924
 
# Try without a prefix undercore, then with it.
7925
 
for ac_symprfx in "" "_"; do
7926
 
 
7927
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7928
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7929
 
 
7930
 
  # Write the raw and C identifiers.
7931
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7932
 
 
7933
 
  # Check to see that the pipe works correctly.
7934
 
  pipe_works=no
7935
 
 
7936
 
  rm -f conftest*
7937
 
  cat > conftest.$ac_ext <<EOF
7938
 
#ifdef __cplusplus
7939
 
extern "C" {
7940
 
#endif
7941
 
char nm_test_var;
7942
 
void nm_test_func(){}
7943
 
#ifdef __cplusplus
7944
 
}
7945
 
#endif
7946
 
int main(){nm_test_var='a';nm_test_func();return(0);}
7947
 
EOF
7948
 
 
7949
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950
 
  (eval $ac_compile) 2>&5
7951
 
  ac_status=$?
7952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953
 
  (exit $ac_status); }; then
7954
 
    # Now try to grab the symbols.
7955
 
    nlist=conftest.nm
7956
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7957
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7958
 
  ac_status=$?
7959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960
 
  (exit $ac_status); } && test -s "$nlist"; then
7961
 
      # Try sorting and uniquifying the output.
7962
 
      if sort "$nlist" | uniq > "$nlist"T; then
7963
 
        mv -f "$nlist"T "$nlist"
7964
 
      else
7965
 
        rm -f "$nlist"T
7966
 
      fi
7967
 
 
7968
 
      # Make sure that we snagged all the symbols we need.
7969
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7970
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7971
 
          cat <<EOF > conftest.$ac_ext
7972
 
#ifdef __cplusplus
7973
 
extern "C" {
7974
 
#endif
7975
 
 
7976
 
EOF
7977
 
          # Now generate the symbol file.
7978
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7979
 
 
7980
 
          cat <<EOF >> conftest.$ac_ext
7981
 
#if defined (__STDC__) && __STDC__
7982
 
# define lt_ptr_t void *
7983
 
#else
7984
 
# define lt_ptr_t char *
7985
 
# define const
7986
 
#endif
7987
 
 
7988
 
/* The mapping between symbol names and symbols. */
7989
 
const struct {
7990
 
  const char *name;
7991
 
  lt_ptr_t address;
7992
 
}
7993
 
lt_preloaded_symbols[] =
7994
 
{
7995
 
EOF
7996
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7997
 
          cat <<\EOF >> conftest.$ac_ext
7998
 
  {0, (lt_ptr_t) 0}
7999
 
};
8000
 
 
8001
 
#ifdef __cplusplus
8002
 
}
8003
 
#endif
8004
 
EOF
8005
 
          # Now try linking the two files.
8006
 
          mv conftest.$ac_objext conftstm.$ac_objext
8007
 
          lt_save_LIBS="$LIBS"
8008
 
          lt_save_CFLAGS="$CFLAGS"
8009
 
          LIBS="conftstm.$ac_objext"
8010
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8011
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012
 
  (eval $ac_link) 2>&5
8013
 
  ac_status=$?
8014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8016
 
            pipe_works=yes
8017
 
          fi
8018
 
          LIBS="$lt_save_LIBS"
8019
 
          CFLAGS="$lt_save_CFLAGS"
8020
 
        else
8021
 
          echo "cannot find nm_test_func in $nlist" >&5
8022
 
        fi
8023
 
      else
8024
 
        echo "cannot find nm_test_var in $nlist" >&5
8025
 
      fi
8026
 
    else
8027
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8028
 
    fi
8029
 
  else
8030
 
    echo "$progname: failed program was:" >&5
8031
 
    cat conftest.$ac_ext >&5
8032
 
  fi
8033
 
  rm -f conftest* conftst*
8034
 
 
8035
 
  # Do not use the global_symbol_pipe unless it works.
8036
 
  if test "$pipe_works" = yes; then
8037
 
    break
8038
 
  else
8039
 
    lt_cv_sys_global_symbol_pipe=
8040
 
  fi
8041
 
done
8042
 
 
8043
 
fi
8044
 
 
8045
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8046
 
  lt_cv_sys_global_symbol_to_cdecl=
8047
 
fi
8048
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8049
 
  { echo "$as_me:$LINENO: result: failed" >&5
8050
 
echo "${ECHO_T}failed" >&6; }
8051
 
else
8052
 
  { echo "$as_me:$LINENO: result: ok" >&5
8053
 
echo "${ECHO_T}ok" >&6; }
8054
 
fi
8055
 
 
8056
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
8057
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8058
 
if test "${lt_cv_objdir+set}" = set; then
8059
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8060
 
else
8061
 
  rm -f .libs 2>/dev/null
8062
 
mkdir .libs 2>/dev/null
8063
 
if test -d .libs; then
8064
 
  lt_cv_objdir=.libs
8065
 
else
8066
 
  # MS-DOS does not allow filenames that begin with a dot.
8067
 
  lt_cv_objdir=_libs
8068
 
fi
8069
 
rmdir .libs 2>/dev/null
8070
 
fi
8071
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8072
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
8073
 
objdir=$lt_cv_objdir
8074
 
 
8075
 
 
8076
 
 
8077
 
 
8078
 
 
8079
 
case $host_os in
8080
 
aix3*)
8081
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
8082
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8083
 
  # vanish in a puff of smoke.
8084
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
8085
 
    COLLECT_NAMES=
8086
 
    export COLLECT_NAMES
8087
 
  fi
8088
 
  ;;
8089
 
esac
8090
 
 
8091
 
# Sed substitution that helps us do robust quoting.  It backslashifies
8092
 
# metacharacters that are still active within double-quoted strings.
8093
 
Xsed='sed -e 1s/^X//'
8094
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8095
 
 
8096
 
# Same as above, but do not quote variable references.
8097
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8098
 
 
8099
 
# Sed substitution to delay expansion of an escaped shell variable in a
8100
 
# double_quote_subst'ed string.
8101
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8102
 
 
8103
 
# Sed substitution to avoid accidental globbing in evaled expressions
8104
 
no_glob_subst='s/\*/\\\*/g'
8105
 
 
8106
 
# Constants:
8107
 
rm="rm -f"
8108
 
 
8109
 
# Global variables:
8110
 
default_ofile=libtool
8111
 
can_build_shared=yes
8112
 
 
8113
 
# All known linkers require a `.a' archive for static linking (except MSVC,
8114
 
# which needs '.lib').
8115
 
libext=a
8116
 
ltmain="$ac_aux_dir/ltmain.sh"
8117
 
ofile="$default_ofile"
8118
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
8119
 
 
8120
 
if test -n "$ac_tool_prefix"; then
8121
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8122
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
8123
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8124
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125
 
if test "${ac_cv_prog_AR+set}" = set; then
8126
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8127
 
else
8128
 
  if test -n "$AR"; then
8129
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
8130
 
else
8131
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132
 
for as_dir in $PATH
8133
 
do
8134
 
  IFS=$as_save_IFS
8135
 
  test -z "$as_dir" && as_dir=.
8136
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8137
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8138
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
8139
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140
 
    break 2
8141
 
  fi
8142
 
done
8143
 
done
8144
 
IFS=$as_save_IFS
8145
 
 
8146
 
fi
8147
 
fi
8148
 
AR=$ac_cv_prog_AR
8149
 
if test -n "$AR"; then
8150
 
  { echo "$as_me:$LINENO: result: $AR" >&5
8151
 
echo "${ECHO_T}$AR" >&6; }
8152
 
else
8153
 
  { echo "$as_me:$LINENO: result: no" >&5
8154
 
echo "${ECHO_T}no" >&6; }
8155
 
fi
8156
 
 
8157
 
 
8158
 
fi
8159
 
if test -z "$ac_cv_prog_AR"; then
8160
 
  ac_ct_AR=$AR
8161
 
  # Extract the first word of "ar", so it can be a program name with args.
8162
 
set dummy ar; ac_word=$2
8163
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8164
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8165
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8166
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8167
 
else
8168
 
  if test -n "$ac_ct_AR"; then
8169
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8170
 
else
8171
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172
 
for as_dir in $PATH
8173
 
do
8174
 
  IFS=$as_save_IFS
8175
 
  test -z "$as_dir" && as_dir=.
8176
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8177
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8178
 
    ac_cv_prog_ac_ct_AR="ar"
8179
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180
 
    break 2
8181
 
  fi
8182
 
done
8183
 
done
8184
 
IFS=$as_save_IFS
8185
 
 
8186
 
fi
8187
 
fi
8188
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
8189
 
if test -n "$ac_ct_AR"; then
8190
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8191
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
8192
 
else
8193
 
  { echo "$as_me:$LINENO: result: no" >&5
8194
 
echo "${ECHO_T}no" >&6; }
8195
 
fi
8196
 
 
8197
 
  if test "x$ac_ct_AR" = x; then
8198
 
    AR="false"
8199
 
  else
8200
 
    case $cross_compiling:$ac_tool_warned in
8201
 
yes:)
8202
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8203
 
whose name does not start with the host triplet.  If you think this
8204
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
8205
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8206
 
whose name does not start with the host triplet.  If you think this
8207
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8208
 
ac_tool_warned=yes ;;
8209
 
esac
8210
 
    AR=$ac_ct_AR
8211
 
  fi
8212
 
else
8213
 
  AR="$ac_cv_prog_AR"
8214
 
fi
8215
 
 
8216
 
if test -n "$ac_tool_prefix"; then
8217
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8218
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8219
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8220
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
8222
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8223
 
else
8224
 
  if test -n "$RANLIB"; then
8225
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8226
 
else
8227
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228
 
for as_dir in $PATH
8229
 
do
8230
 
  IFS=$as_save_IFS
8231
 
  test -z "$as_dir" && as_dir=.
8232
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8233
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8234
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8235
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236
 
    break 2
8237
 
  fi
8238
 
done
8239
 
done
8240
 
IFS=$as_save_IFS
8241
 
 
8242
 
fi
8243
 
fi
8244
 
RANLIB=$ac_cv_prog_RANLIB
8245
 
if test -n "$RANLIB"; then
8246
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8247
 
echo "${ECHO_T}$RANLIB" >&6; }
8248
 
else
8249
 
  { echo "$as_me:$LINENO: result: no" >&5
8250
 
echo "${ECHO_T}no" >&6; }
8251
 
fi
8252
 
 
8253
 
 
8254
 
fi
8255
 
if test -z "$ac_cv_prog_RANLIB"; then
8256
 
  ac_ct_RANLIB=$RANLIB
8257
 
  # Extract the first word of "ranlib", so it can be a program name with args.
8258
 
set dummy ranlib; ac_word=$2
8259
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8260
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8261
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8262
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8263
 
else
8264
 
  if test -n "$ac_ct_RANLIB"; then
8265
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8266
 
else
8267
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268
 
for as_dir in $PATH
8269
 
do
8270
 
  IFS=$as_save_IFS
8271
 
  test -z "$as_dir" && as_dir=.
8272
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8273
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8274
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
8275
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8276
 
    break 2
8277
 
  fi
8278
 
done
8279
 
done
8280
 
IFS=$as_save_IFS
8281
 
 
8282
 
fi
8283
 
fi
8284
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8285
 
if test -n "$ac_ct_RANLIB"; then
8286
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8287
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8288
 
else
8289
 
  { echo "$as_me:$LINENO: result: no" >&5
8290
 
echo "${ECHO_T}no" >&6; }
8291
 
fi
8292
 
 
8293
 
  if test "x$ac_ct_RANLIB" = x; then
8294
 
    RANLIB=":"
8295
 
  else
8296
 
    case $cross_compiling:$ac_tool_warned in
8297
 
yes:)
8298
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8299
 
whose name does not start with the host triplet.  If you think this
8300
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
8301
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8302
 
whose name does not start with the host triplet.  If you think this
8303
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8304
 
ac_tool_warned=yes ;;
8305
 
esac
8306
 
    RANLIB=$ac_ct_RANLIB
8307
 
  fi
8308
 
else
8309
 
  RANLIB="$ac_cv_prog_RANLIB"
8310
 
fi
8311
 
 
8312
 
if test -n "$ac_tool_prefix"; then
8313
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8314
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
8315
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8316
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8317
 
if test "${ac_cv_prog_STRIP+set}" = set; then
8318
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8319
 
else
8320
 
  if test -n "$STRIP"; then
8321
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8322
 
else
8323
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324
 
for as_dir in $PATH
8325
 
do
8326
 
  IFS=$as_save_IFS
8327
 
  test -z "$as_dir" && as_dir=.
8328
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8329
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8330
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8331
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8332
 
    break 2
8333
 
  fi
8334
 
done
8335
 
done
8336
 
IFS=$as_save_IFS
8337
 
 
8338
 
fi
8339
 
fi
8340
 
STRIP=$ac_cv_prog_STRIP
8341
 
if test -n "$STRIP"; then
8342
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
8343
 
echo "${ECHO_T}$STRIP" >&6; }
8344
 
else
8345
 
  { echo "$as_me:$LINENO: result: no" >&5
8346
 
echo "${ECHO_T}no" >&6; }
8347
 
fi
8348
 
 
8349
 
 
8350
 
fi
8351
 
if test -z "$ac_cv_prog_STRIP"; then
8352
 
  ac_ct_STRIP=$STRIP
8353
 
  # Extract the first word of "strip", so it can be a program name with args.
8354
 
set dummy strip; ac_word=$2
8355
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8356
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8358
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8359
 
else
8360
 
  if test -n "$ac_ct_STRIP"; then
8361
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8362
 
else
8363
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364
 
for as_dir in $PATH
8365
 
do
8366
 
  IFS=$as_save_IFS
8367
 
  test -z "$as_dir" && as_dir=.
8368
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8369
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8370
 
    ac_cv_prog_ac_ct_STRIP="strip"
8371
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372
 
    break 2
8373
 
  fi
8374
 
done
8375
 
done
8376
 
IFS=$as_save_IFS
8377
 
 
8378
 
fi
8379
 
fi
8380
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8381
 
if test -n "$ac_ct_STRIP"; then
8382
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8383
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8384
 
else
8385
 
  { echo "$as_me:$LINENO: result: no" >&5
8386
 
echo "${ECHO_T}no" >&6; }
8387
 
fi
8388
 
 
8389
 
  if test "x$ac_ct_STRIP" = x; then
8390
 
    STRIP=":"
8391
 
  else
8392
 
    case $cross_compiling:$ac_tool_warned in
8393
 
yes:)
8394
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8395
 
whose name does not start with the host triplet.  If you think this
8396
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
8397
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8398
 
whose name does not start with the host triplet.  If you think this
8399
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8400
 
ac_tool_warned=yes ;;
8401
 
esac
8402
 
    STRIP=$ac_ct_STRIP
8403
 
  fi
8404
 
else
8405
 
  STRIP="$ac_cv_prog_STRIP"
8406
 
fi
8407
 
 
8408
 
 
8409
 
old_CC="$CC"
8410
 
old_CFLAGS="$CFLAGS"
8411
 
 
8412
 
# Set sane defaults for various variables
8413
 
test -z "$AR" && AR=ar
8414
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
8415
 
test -z "$AS" && AS=as
8416
 
test -z "$CC" && CC=cc
8417
 
test -z "$LTCC" && LTCC=$CC
8418
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8419
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
8420
 
test -z "$LD" && LD=ld
8421
 
test -z "$LN_S" && LN_S="ln -s"
8422
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8423
 
test -z "$NM" && NM=nm
8424
 
test -z "$SED" && SED=sed
8425
 
test -z "$OBJDUMP" && OBJDUMP=objdump
8426
 
test -z "$RANLIB" && RANLIB=:
8427
 
test -z "$STRIP" && STRIP=:
8428
 
test -z "$ac_objext" && ac_objext=o
8429
 
 
8430
 
# Determine commands to create old-style static archives.
8431
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8432
 
old_postinstall_cmds='chmod 644 $oldlib'
8433
 
old_postuninstall_cmds=
8434
 
 
8435
 
if test -n "$RANLIB"; then
8436
 
  case $host_os in
8437
 
  openbsd*)
8438
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8439
 
    ;;
8440
 
  *)
8441
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8442
 
    ;;
8443
 
  esac
8444
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8445
 
fi
8446
 
 
8447
 
for cc_temp in $compiler""; do
8448
 
  case $cc_temp in
8449
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8450
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8451
 
    \-*) ;;
8452
 
    *) break;;
8453
 
  esac
8454
 
done
8455
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8456
 
 
8457
 
 
8458
 
# Only perform the check for file, if the check method requires it
8459
 
case $deplibs_check_method in
8460
 
file_magic*)
8461
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8463
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8464
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8465
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8466
 
else
8467
 
  case $MAGIC_CMD in
8468
 
[\\/*] |  ?:[\\/]*)
8469
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470
 
  ;;
8471
 
*)
8472
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8473
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475
 
  for ac_dir in $ac_dummy; do
8476
 
    IFS="$lt_save_ifs"
8477
 
    test -z "$ac_dir" && ac_dir=.
8478
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
8479
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480
 
      if test -n "$file_magic_test_file"; then
8481
 
        case $deplibs_check_method in
8482
 
        "file_magic "*)
8483
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486
 
            $EGREP "$file_magic_regex" > /dev/null; then
8487
 
            :
8488
 
          else
8489
 
            cat <<EOF 1>&2
8490
 
 
8491
 
*** Warning: the command libtool uses to detect shared libraries,
8492
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8493
 
*** The result is that libtool may fail to recognize shared libraries
8494
 
*** as such.  This will affect the creation of libtool libraries that
8495
 
*** depend on shared libraries, but programs linked with such libtool
8496
 
*** libraries will work regardless of this problem.  Nevertheless, you
8497
 
*** may want to report the problem to your system manager and/or to
8498
 
*** bug-libtool@gnu.org
8499
 
 
8500
 
EOF
8501
 
          fi ;;
8502
 
        esac
8503
 
      fi
8504
 
      break
8505
 
    fi
8506
 
  done
8507
 
  IFS="$lt_save_ifs"
8508
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8509
 
  ;;
8510
 
esac
8511
 
fi
8512
 
 
8513
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514
 
if test -n "$MAGIC_CMD"; then
8515
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8516
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8517
 
else
8518
 
  { echo "$as_me:$LINENO: result: no" >&5
8519
 
echo "${ECHO_T}no" >&6; }
8520
 
fi
8521
 
 
8522
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
8523
 
  if test -n "$ac_tool_prefix"; then
8524
 
    { echo "$as_me:$LINENO: checking for file" >&5
8525
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8526
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8527
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8528
 
else
8529
 
  case $MAGIC_CMD in
8530
 
[\\/*] |  ?:[\\/]*)
8531
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8532
 
  ;;
8533
 
*)
8534
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8535
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537
 
  for ac_dir in $ac_dummy; do
8538
 
    IFS="$lt_save_ifs"
8539
 
    test -z "$ac_dir" && ac_dir=.
8540
 
    if test -f $ac_dir/file; then
8541
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8542
 
      if test -n "$file_magic_test_file"; then
8543
 
        case $deplibs_check_method in
8544
 
        "file_magic "*)
8545
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548
 
            $EGREP "$file_magic_regex" > /dev/null; then
8549
 
            :
8550
 
          else
8551
 
            cat <<EOF 1>&2
8552
 
 
8553
 
*** Warning: the command libtool uses to detect shared libraries,
8554
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8555
 
*** The result is that libtool may fail to recognize shared libraries
8556
 
*** as such.  This will affect the creation of libtool libraries that
8557
 
*** depend on shared libraries, but programs linked with such libtool
8558
 
*** libraries will work regardless of this problem.  Nevertheless, you
8559
 
*** may want to report the problem to your system manager and/or to
8560
 
*** bug-libtool@gnu.org
8561
 
 
8562
 
EOF
8563
 
          fi ;;
8564
 
        esac
8565
 
      fi
8566
 
      break
8567
 
    fi
8568
 
  done
8569
 
  IFS="$lt_save_ifs"
8570
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8571
 
  ;;
8572
 
esac
8573
 
fi
8574
 
 
8575
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576
 
if test -n "$MAGIC_CMD"; then
8577
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8578
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8579
 
else
8580
 
  { echo "$as_me:$LINENO: result: no" >&5
8581
 
echo "${ECHO_T}no" >&6; }
8582
 
fi
8583
 
 
8584
 
  else
8585
 
    MAGIC_CMD=:
8586
 
  fi
8587
 
fi
8588
 
 
8589
 
  fi
8590
 
  ;;
8591
 
esac
8592
 
 
8593
 
enable_dlopen=no
8594
 
enable_win32_dll=no
8595
 
 
8596
 
# Check whether --enable-libtool-lock was given.
8597
 
if test "${enable_libtool_lock+set}" = set; then
8598
 
  enableval=$enable_libtool_lock; 
8599
 
fi
8600
 
 
8601
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8602
 
 
8603
 
 
8604
 
# Check whether --with-pic was given.
8605
 
if test "${with_pic+set}" = set; then
8606
 
  withval=$with_pic; pic_mode="$withval"
8607
 
else
8608
 
  pic_mode=default
8609
 
fi
8610
 
 
8611
 
test -z "$pic_mode" && pic_mode=default
8612
 
 
8613
 
# Use C for the default configuration in the libtool script
8614
 
tagname=
8615
 
lt_save_CC="$CC"
8616
 
ac_ext=c
8617
 
ac_cpp='$CPP $CPPFLAGS'
8618
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8621
 
 
8622
 
 
8623
 
# Source file extension for C test sources.
8624
 
ac_ext=c
8625
 
 
8626
 
# Object file extension for compiled C test sources.
8627
 
objext=o
8628
 
objext=$objext
8629
 
 
8630
 
# Code to be used in simple compile tests
8631
 
lt_simple_compile_test_code="int some_variable = 0;\n"
8632
 
 
8633
 
# Code to be used in simple link tests
8634
 
lt_simple_link_test_code='int main(){return(0);}\n'
8635
 
 
8636
 
 
8637
 
# If no C compiler was specified, use CC.
8638
 
LTCC=${LTCC-"$CC"}
8639
 
 
8640
 
# If no C compiler flags were specified, use CFLAGS.
8641
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8642
 
 
8643
 
# Allow CC to be a program name with arguments.
8644
 
compiler=$CC
8645
 
 
8646
 
 
8647
 
# save warnings/boilerplate of simple test code
8648
 
ac_outfile=conftest.$ac_objext
8649
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8650
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651
 
_lt_compiler_boilerplate=`cat conftest.err`
8652
 
$rm conftest*
8653
 
 
8654
 
ac_outfile=conftest.$ac_objext
8655
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
8656
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8657
 
_lt_linker_boilerplate=`cat conftest.err`
8658
 
$rm conftest*
8659
 
 
8660
 
 
8661
 
## CAVEAT EMPTOR:
8662
 
## There is no encapsulation within the following macros, do not change
8663
 
## the running order or otherwise move them around unless you know exactly
8664
 
## what you are doing...
8665
 
 
8666
 
lt_prog_compiler_no_builtin_flag=
8667
 
 
8668
 
if test "$GCC" = yes; then
8669
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8670
 
 
8671
 
  
8672
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8673
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8674
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8675
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8676
 
else
8677
 
  lt_cv_prog_compiler_rtti_exceptions=no
8678
 
  ac_outfile=conftest.$ac_objext
8679
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8680
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8681
 
   # Insert the option either (1) after the last *FLAGS variable, or
8682
 
   # (2) before a word containing "conftest.", or (3) at the end.
8683
 
   # Note that $ac_compile itself does not contain backslashes and begins
8684
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8685
 
   # The option is referenced via a variable to avoid confusing sed.
8686
 
   lt_compile=`echo "$ac_compile" | $SED \
8687
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689
 
   -e 's:$: $lt_compiler_flag:'`
8690
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8691
 
   (eval "$lt_compile" 2>conftest.err)
8692
 
   ac_status=$?
8693
 
   cat conftest.err >&5
8694
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
8695
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8696
 
     # The compiler can only warn and ignore the option if not recognized
8697
 
     # So say no if there are warnings other than the usual output.
8698
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8699
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8700
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8701
 
       lt_cv_prog_compiler_rtti_exceptions=yes
8702
 
     fi
8703
 
   fi
8704
 
   $rm conftest*
8705
 
 
8706
 
fi
8707
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8708
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8709
 
 
8710
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8711
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8712
 
else
8713
 
    :
8714
 
fi
8715
 
 
8716
 
fi
8717
 
 
8718
 
lt_prog_compiler_wl=
8719
 
lt_prog_compiler_pic=
8720
 
lt_prog_compiler_static=
8721
 
 
8722
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8723
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8724
 
 
8725
 
  if test "$GCC" = yes; then
8726
 
    lt_prog_compiler_wl='-Wl,'
8727
 
    lt_prog_compiler_static='-static'
8728
 
 
8729
 
    case $host_os in
8730
 
      aix*)
8731
 
      # All AIX code is PIC.
8732
 
      if test "$host_cpu" = ia64; then
8733
 
        # AIX 5 now supports IA64 processor
8734
 
        lt_prog_compiler_static='-Bstatic'
8735
 
      fi
8736
 
      ;;
8737
 
 
8738
 
    amigaos*)
8739
 
      # FIXME: we need at least 68020 code to build shared libraries, but
8740
 
      # adding the `-m68020' flag to GCC prevents building anything better,
8741
 
      # like `-m68040'.
8742
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8743
 
      ;;
8744
 
 
8745
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8746
 
      # PIC is the default for these OSes.
8747
 
      ;;
8748
 
 
8749
 
    mingw* | pw32* | os2*)
8750
 
      # This hack is so that the source file can tell whether it is being
8751
 
      # built for inclusion in a dll (and should export symbols for example).
8752
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8753
 
      ;;
8754
 
 
8755
 
    darwin* | rhapsody*)
8756
 
      # PIC is the default on this platform
8757
 
      # Common symbols not allowed in MH_DYLIB files
8758
 
      lt_prog_compiler_pic='-fno-common'
8759
 
      ;;
8760
 
 
8761
 
    interix3*)
8762
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8763
 
      # Instead, we relocate shared libraries at runtime.
8764
 
      ;;
8765
 
 
8766
 
    msdosdjgpp*)
8767
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8768
 
      # on systems that don't support them.
8769
 
      lt_prog_compiler_can_build_shared=no
8770
 
      enable_shared=no
8771
 
      ;;
8772
 
 
8773
 
    sysv4*MP*)
8774
 
      if test -d /usr/nec; then
8775
 
        lt_prog_compiler_pic=-Kconform_pic
8776
 
      fi
8777
 
      ;;
8778
 
 
8779
 
    hpux*)
8780
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8781
 
      # not for PA HP-UX.
8782
 
      case $host_cpu in
8783
 
      hppa*64*|ia64*)
8784
 
        # +Z the default
8785
 
        ;;
8786
 
      *)
8787
 
        lt_prog_compiler_pic='-fPIC'
8788
 
        ;;
8789
 
      esac
8790
 
      ;;
8791
 
 
8792
 
    *)
8793
 
      lt_prog_compiler_pic='-fPIC'
8794
 
      ;;
8795
 
    esac
8796
 
  else
8797
 
    # PORTME Check for flag to pass linker flags through the system compiler.
8798
 
    case $host_os in
8799
 
    aix*)
8800
 
      lt_prog_compiler_wl='-Wl,'
8801
 
      if test "$host_cpu" = ia64; then
8802
 
        # AIX 5 now supports IA64 processor
8803
 
        lt_prog_compiler_static='-Bstatic'
8804
 
      else
8805
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8806
 
      fi
8807
 
      ;;
8808
 
      darwin*)
8809
 
        # PIC is the default on this platform
8810
 
        # Common symbols not allowed in MH_DYLIB files
8811
 
       case $cc_basename in
8812
 
         xlc*)
8813
 
         lt_prog_compiler_pic='-qnocommon'
8814
 
         lt_prog_compiler_wl='-Wl,'
8815
 
         ;;
8816
 
       esac
8817
 
       ;;
8818
 
 
8819
 
    mingw* | pw32* | os2*)
8820
 
      # This hack is so that the source file can tell whether it is being
8821
 
      # built for inclusion in a dll (and should export symbols for example).
8822
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8823
 
      ;;
8824
 
 
8825
 
    hpux9* | hpux10* | hpux11*)
8826
 
      lt_prog_compiler_wl='-Wl,'
8827
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8828
 
      # not for PA HP-UX.
8829
 
      case $host_cpu in
8830
 
      hppa*64*|ia64*)
8831
 
        # +Z the default
8832
 
        ;;
8833
 
      *)
8834
 
        lt_prog_compiler_pic='+Z'
8835
 
        ;;
8836
 
      esac
8837
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8838
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8839
 
      ;;
8840
 
 
8841
 
    irix5* | irix6* | nonstopux*)
8842
 
      lt_prog_compiler_wl='-Wl,'
8843
 
      # PIC (with -KPIC) is the default.
8844
 
      lt_prog_compiler_static='-non_shared'
8845
 
      ;;
8846
 
 
8847
 
    newsos6)
8848
 
      lt_prog_compiler_pic='-KPIC'
8849
 
      lt_prog_compiler_static='-Bstatic'
8850
 
      ;;
8851
 
 
8852
 
    linux* | k*bsd*-gnu)
8853
 
      case $cc_basename in
8854
 
      icc* | ecc*)
8855
 
        lt_prog_compiler_wl='-Wl,'
8856
 
        lt_prog_compiler_pic='-KPIC'
8857
 
        lt_prog_compiler_static='-static'
8858
 
        ;;
8859
 
      pgcc* | pgf77* | pgf90* | pgf95*)
8860
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
8861
 
        # which looks to be a dead project)
8862
 
        lt_prog_compiler_wl='-Wl,'
8863
 
        lt_prog_compiler_pic='-fpic'
8864
 
        lt_prog_compiler_static='-Bstatic'
8865
 
        ;;
8866
 
      ccc*)
8867
 
        lt_prog_compiler_wl='-Wl,'
8868
 
        # All Alpha code is PIC.
8869
 
        lt_prog_compiler_static='-non_shared'
8870
 
        ;;
8871
 
      esac
8872
 
      ;;
8873
 
 
8874
 
    osf3* | osf4* | osf5*)
8875
 
      lt_prog_compiler_wl='-Wl,'
8876
 
      # All OSF/1 code is PIC.
8877
 
      lt_prog_compiler_static='-non_shared'
8878
 
      ;;
8879
 
 
8880
 
    solaris*)
8881
 
      lt_prog_compiler_pic='-KPIC'
8882
 
      lt_prog_compiler_static='-Bstatic'
8883
 
      case $cc_basename in
8884
 
      f77* | f90* | f95*)
8885
 
        lt_prog_compiler_wl='-Qoption ld ';;
8886
 
      *)
8887
 
        lt_prog_compiler_wl='-Wl,';;
8888
 
      esac
8889
 
      ;;
8890
 
 
8891
 
    sunos4*)
8892
 
      lt_prog_compiler_wl='-Qoption ld '
8893
 
      lt_prog_compiler_pic='-PIC'
8894
 
      lt_prog_compiler_static='-Bstatic'
8895
 
      ;;
8896
 
 
8897
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
8898
 
      lt_prog_compiler_wl='-Wl,'
8899
 
      lt_prog_compiler_pic='-KPIC'
8900
 
      lt_prog_compiler_static='-Bstatic'
8901
 
      ;;
8902
 
 
8903
 
    sysv4*MP*)
8904
 
      if test -d /usr/nec ;then
8905
 
        lt_prog_compiler_pic='-Kconform_pic'
8906
 
        lt_prog_compiler_static='-Bstatic'
8907
 
      fi
8908
 
      ;;
8909
 
 
8910
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8911
 
      lt_prog_compiler_wl='-Wl,'
8912
 
      lt_prog_compiler_pic='-KPIC'
8913
 
      lt_prog_compiler_static='-Bstatic'
8914
 
      ;;
8915
 
 
8916
 
    unicos*)
8917
 
      lt_prog_compiler_wl='-Wl,'
8918
 
      lt_prog_compiler_can_build_shared=no
8919
 
      ;;
8920
 
 
8921
 
    uts4*)
8922
 
      lt_prog_compiler_pic='-pic'
8923
 
      lt_prog_compiler_static='-Bstatic'
8924
 
      ;;
8925
 
 
8926
 
    *)
8927
 
      lt_prog_compiler_can_build_shared=no
8928
 
      ;;
8929
 
    esac
8930
 
  fi
8931
 
 
8932
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8933
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8934
 
 
8935
 
#
8936
 
# Check to make sure the PIC flag actually works.
8937
 
#
8938
 
if test -n "$lt_prog_compiler_pic"; then
8939
 
  
8940
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8941
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8942
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
8943
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8944
 
else
8945
 
  lt_prog_compiler_pic_works=no
8946
 
  ac_outfile=conftest.$ac_objext
8947
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8948
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8949
 
   # Insert the option either (1) after the last *FLAGS variable, or
8950
 
   # (2) before a word containing "conftest.", or (3) at the end.
8951
 
   # Note that $ac_compile itself does not contain backslashes and begins
8952
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8953
 
   # The option is referenced via a variable to avoid confusing sed.
8954
 
   lt_compile=`echo "$ac_compile" | $SED \
8955
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8956
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8957
 
   -e 's:$: $lt_compiler_flag:'`
8958
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8959
 
   (eval "$lt_compile" 2>conftest.err)
8960
 
   ac_status=$?
8961
 
   cat conftest.err >&5
8962
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
8963
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8964
 
     # The compiler can only warn and ignore the option if not recognized
8965
 
     # So say no if there are warnings other than the usual output.
8966
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8967
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8968
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8969
 
       lt_prog_compiler_pic_works=yes
8970
 
     fi
8971
 
   fi
8972
 
   $rm conftest*
8973
 
 
8974
 
fi
8975
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8976
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8977
 
 
8978
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
8979
 
    case $lt_prog_compiler_pic in
8980
 
     "" | " "*) ;;
8981
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8982
 
     esac
8983
 
else
8984
 
    lt_prog_compiler_pic=
8985
 
     lt_prog_compiler_can_build_shared=no
8986
 
fi
8987
 
 
8988
 
fi
8989
 
case $host_os in
8990
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8991
 
  *djgpp*)
8992
 
    lt_prog_compiler_pic=
8993
 
    ;;
8994
 
  *)
8995
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8996
 
    ;;
8997
 
esac
8998
 
 
8999
 
#
9000
 
# Check to make sure the static flag actually works.
9001
 
#
9002
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9003
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9004
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9005
 
if test "${lt_prog_compiler_static_works+set}" = set; then
9006
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9007
 
else
9008
 
  lt_prog_compiler_static_works=no
9009
 
   save_LDFLAGS="$LDFLAGS"
9010
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9011
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9012
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9013
 
     # The linker can only warn and ignore the option if not recognized
9014
 
     # So say no if there are warnings
9015
 
     if test -s conftest.err; then
9016
 
       # Append any errors to the config.log.
9017
 
       cat conftest.err 1>&5
9018
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9019
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9020
 
       if diff conftest.exp conftest.er2 >/dev/null; then
9021
 
         lt_prog_compiler_static_works=yes
9022
 
       fi
9023
 
     else
9024
 
       lt_prog_compiler_static_works=yes
9025
 
     fi
9026
 
   fi
9027
 
   $rm conftest*
9028
 
   LDFLAGS="$save_LDFLAGS"
9029
 
 
9030
 
fi
9031
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9032
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9033
 
 
9034
 
if test x"$lt_prog_compiler_static_works" = xyes; then
9035
 
    :
9036
 
else
9037
 
    lt_prog_compiler_static=
9038
 
fi
9039
 
 
9040
 
 
9041
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9042
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9043
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9044
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9045
 
else
9046
 
  lt_cv_prog_compiler_c_o=no
9047
 
   $rm -r conftest 2>/dev/null
9048
 
   mkdir conftest
9049
 
   cd conftest
9050
 
   mkdir out
9051
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9052
 
 
9053
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9054
 
   # Insert the option either (1) after the last *FLAGS variable, or
9055
 
   # (2) before a word containing "conftest.", or (3) at the end.
9056
 
   # Note that $ac_compile itself does not contain backslashes and begins
9057
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9058
 
   lt_compile=`echo "$ac_compile" | $SED \
9059
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061
 
   -e 's:$: $lt_compiler_flag:'`
9062
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9063
 
   (eval "$lt_compile" 2>out/conftest.err)
9064
 
   ac_status=$?
9065
 
   cat out/conftest.err >&5
9066
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
9067
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9068
 
   then
9069
 
     # The compiler can only warn and ignore the option if not recognized
9070
 
     # So say no if there are warnings
9071
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9072
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9073
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9074
 
       lt_cv_prog_compiler_c_o=yes
9075
 
     fi
9076
 
   fi
9077
 
   chmod u+w . 2>&5
9078
 
   $rm conftest*
9079
 
   # SGI C++ compiler will create directory out/ii_files/ for
9080
 
   # template instantiation
9081
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9082
 
   $rm out/* && rmdir out
9083
 
   cd ..
9084
 
   rmdir conftest
9085
 
   $rm conftest*
9086
 
 
9087
 
fi
9088
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9089
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9090
 
 
9091
 
 
9092
 
hard_links="nottested"
9093
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9094
 
  # do not overwrite the value of need_locks provided by the user
9095
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9096
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9097
 
  hard_links=yes
9098
 
  $rm conftest*
9099
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9100
 
  touch conftest.a
9101
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
9102
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9103
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
9104
 
echo "${ECHO_T}$hard_links" >&6; }
9105
 
  if test "$hard_links" = no; then
9106
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9107
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9108
 
    need_locks=warn
9109
 
  fi
9110
 
else
9111
 
  need_locks=no
9112
 
fi
9113
 
 
9114
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9115
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9116
 
 
9117
 
  runpath_var=
9118
 
  allow_undefined_flag=
9119
 
  enable_shared_with_static_runtimes=no
9120
 
  archive_cmds=
9121
 
  archive_expsym_cmds=
9122
 
  old_archive_From_new_cmds=
9123
 
  old_archive_from_expsyms_cmds=
9124
 
  export_dynamic_flag_spec=
9125
 
  whole_archive_flag_spec=
9126
 
  thread_safe_flag_spec=
9127
 
  hardcode_libdir_flag_spec=
9128
 
  hardcode_libdir_flag_spec_ld=
9129
 
  hardcode_libdir_separator=
9130
 
  hardcode_direct=no
9131
 
  hardcode_minus_L=no
9132
 
  hardcode_shlibpath_var=unsupported
9133
 
  link_all_deplibs=unknown
9134
 
  hardcode_automatic=no
9135
 
  module_cmds=
9136
 
  module_expsym_cmds=
9137
 
  always_export_symbols=no
9138
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9139
 
  # include_expsyms should be a list of space-separated symbols to be *always*
9140
 
  # included in the symbol list
9141
 
  include_expsyms=
9142
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
9143
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9144
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9145
 
  # as well as any symbol that contains `d'.
9146
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9147
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9148
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
9149
 
  # the symbol is explicitly referenced.  Since portable code cannot
9150
 
  # rely on this symbol name, it's probably fine to never include it in
9151
 
  # preloaded symbol tables.
9152
 
  extract_expsyms_cmds=
9153
 
  # Just being paranoid about ensuring that cc_basename is set.
9154
 
  for cc_temp in $compiler""; do
9155
 
  case $cc_temp in
9156
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9157
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9158
 
    \-*) ;;
9159
 
    *) break;;
9160
 
  esac
9161
 
done
9162
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9163
 
 
9164
 
  case $host_os in
9165
 
  cygwin* | mingw* | pw32*)
9166
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9167
 
    # When not using gcc, we currently assume that we are using
9168
 
    # Microsoft Visual C++.
9169
 
    if test "$GCC" != yes; then
9170
 
      with_gnu_ld=no
9171
 
    fi
9172
 
    ;;
9173
 
  interix*)
9174
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9175
 
    with_gnu_ld=yes
9176
 
    ;;
9177
 
  openbsd*)
9178
 
    with_gnu_ld=no
9179
 
    ;;
9180
 
  esac
9181
 
 
9182
 
  ld_shlibs=yes
9183
 
  if test "$with_gnu_ld" = yes; then
9184
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
9185
 
    wlarc='${wl}'
9186
 
 
9187
 
    # Set some defaults for GNU ld with shared library support. These
9188
 
    # are reset later if shared libraries are not supported. Putting them
9189
 
    # here allows them to be overridden if necessary.
9190
 
    runpath_var=LD_RUN_PATH
9191
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9192
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
9193
 
    # ancient GNU ld didn't support --whole-archive et. al.
9194
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9195
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9196
 
      else
9197
 
        whole_archive_flag_spec=
9198
 
    fi
9199
 
    supports_anon_versioning=no
9200
 
    case `$LD -v 2>/dev/null` in
9201
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9202
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9203
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9204
 
      *\ 2.11.*) ;; # other 2.11 versions
9205
 
      *) supports_anon_versioning=yes ;;
9206
 
    esac
9207
 
 
9208
 
    # See if GNU ld supports shared libraries.
9209
 
    case $host_os in
9210
 
    aix3* | aix4* | aix5*)
9211
 
      # On AIX/PPC, the GNU linker is very broken
9212
 
      if test "$host_cpu" != ia64; then
9213
 
        ld_shlibs=no
9214
 
        cat <<EOF 1>&2
9215
 
 
9216
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9217
 
*** to be unable to reliably create shared libraries on AIX.
9218
 
*** Therefore, libtool is disabling shared libraries support.  If you
9219
 
*** really care for shared libraries, you may want to modify your PATH
9220
 
*** so that a non-GNU linker is found, and then restart.
9221
 
 
9222
 
EOF
9223
 
      fi
9224
 
      ;;
9225
 
 
9226
 
    amigaos*)
9227
 
      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)'
9228
 
      hardcode_libdir_flag_spec='-L$libdir'
9229
 
      hardcode_minus_L=yes
9230
 
 
9231
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9232
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
9233
 
      # to version 4, is to share data among multiple programs linked
9234
 
      # with the same dynamic library.  Since this doesn't match the
9235
 
      # behavior of shared libraries on other platforms, we can't use
9236
 
      # them.
9237
 
      ld_shlibs=no
9238
 
      ;;
9239
 
 
9240
 
    beos*)
9241
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9242
 
        allow_undefined_flag=unsupported
9243
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9244
 
        # support --undefined.  This deserves some investigation.  FIXME
9245
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246
 
      else
9247
 
        ld_shlibs=no
9248
 
      fi
9249
 
      ;;
9250
 
 
9251
 
    cygwin* | mingw* | pw32*)
9252
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9253
 
      # as there is no search path for DLLs.
9254
 
      hardcode_libdir_flag_spec='-L$libdir'
9255
 
      allow_undefined_flag=unsupported
9256
 
      always_export_symbols=no
9257
 
      enable_shared_with_static_runtimes=yes
9258
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9259
 
 
9260
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9261
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9262
 
        # If the export-symbols file already is a .def file (1st line
9263
 
        # is EXPORTS), use it as is; otherwise, prepend...
9264
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9265
 
          cp $export_symbols $output_objdir/$soname.def;
9266
 
        else
9267
 
          echo EXPORTS > $output_objdir/$soname.def;
9268
 
          cat $export_symbols >> $output_objdir/$soname.def;
9269
 
        fi~
9270
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9271
 
      else
9272
 
        ld_shlibs=no
9273
 
      fi
9274
 
      ;;
9275
 
 
9276
 
    interix3*)
9277
 
      hardcode_direct=no
9278
 
      hardcode_shlibpath_var=no
9279
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9280
 
      export_dynamic_flag_spec='${wl}-E'
9281
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9282
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9283
 
      # default) and relocated if they conflict, which is a slow very memory
9284
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
9285
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9286
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9287
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9288
 
      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'
9289
 
      ;;
9290
 
 
9291
 
    linux* | k*bsd*-gnu)
9292
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9293
 
        tmp_addflag=
9294
 
        case $cc_basename,$host_cpu in
9295
 
        pgcc*)                          # Portland Group C compiler
9296
 
          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'
9297
 
          tmp_addflag=' $pic_flag'
9298
 
          ;;
9299
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9300
 
          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'
9301
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
9302
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9303
 
          tmp_addflag=' -i_dynamic' ;;
9304
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9305
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9306
 
        ifc* | ifort*)                  # Intel Fortran compiler
9307
 
          tmp_addflag=' -nofor_main' ;;
9308
 
        esac
9309
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310
 
 
9311
 
        if test $supports_anon_versioning = yes; then
9312
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9313
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9314
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
9315
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9316
 
        fi
9317
 
        link_all_deplibs=no
9318
 
      else
9319
 
        ld_shlibs=no
9320
 
      fi
9321
 
      ;;
9322
 
 
9323
 
    netbsd* | netbsdelf*-gnu)
9324
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9325
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9326
 
        wlarc=
9327
 
      else
9328
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9330
 
      fi
9331
 
      ;;
9332
 
 
9333
 
    solaris*)
9334
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9335
 
        ld_shlibs=no
9336
 
        cat <<EOF 1>&2
9337
 
 
9338
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9339
 
*** create shared libraries on Solaris systems.  Therefore, libtool
9340
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9341
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
9342
 
*** your PATH or compiler configuration so that the native linker is
9343
 
*** used, and then restart.
9344
 
 
9345
 
EOF
9346
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9347
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9349
 
      else
9350
 
        ld_shlibs=no
9351
 
      fi
9352
 
      ;;
9353
 
 
9354
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9355
 
      case `$LD -v 2>&1` in
9356
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
9357
 
        ld_shlibs=no
9358
 
        cat <<_LT_EOF 1>&2
9359
 
 
9360
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9361
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9362
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9363
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9364
 
*** your PATH or compiler configuration so that the native linker is
9365
 
*** used, and then restart.
9366
 
 
9367
 
_LT_EOF
9368
 
        ;;
9369
 
        *)
9370
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9371
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9372
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9373
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9374
 
          else
9375
 
            ld_shlibs=no
9376
 
          fi
9377
 
        ;;
9378
 
      esac
9379
 
      ;;
9380
 
 
9381
 
    sunos4*)
9382
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383
 
      wlarc=
9384
 
      hardcode_direct=yes
9385
 
      hardcode_shlibpath_var=no
9386
 
      ;;
9387
 
 
9388
 
    *)
9389
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9390
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9392
 
      else
9393
 
        ld_shlibs=no
9394
 
      fi
9395
 
      ;;
9396
 
    esac
9397
 
 
9398
 
    if test "$ld_shlibs" = no; then
9399
 
      runpath_var=
9400
 
      hardcode_libdir_flag_spec=
9401
 
      export_dynamic_flag_spec=
9402
 
      whole_archive_flag_spec=
9403
 
    fi
9404
 
  else
9405
 
    # PORTME fill in a description of your system's linker (not GNU ld)
9406
 
    case $host_os in
9407
 
    aix3*)
9408
 
      allow_undefined_flag=unsupported
9409
 
      always_export_symbols=yes
9410
 
      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'
9411
 
      # Note: this linker hardcodes the directories in LIBPATH if there
9412
 
      # are no directories specified by -L.
9413
 
      hardcode_minus_L=yes
9414
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9415
 
        # Neither direct hardcoding nor static linking is supported with a
9416
 
        # broken collect2.
9417
 
        hardcode_direct=unsupported
9418
 
      fi
9419
 
      ;;
9420
 
 
9421
 
    aix4* | aix5*)
9422
 
      if test "$host_cpu" = ia64; then
9423
 
        # On IA64, the linker does run time linking by default, so we don't
9424
 
        # have to do anything special.
9425
 
        aix_use_runtimelinking=no
9426
 
        exp_sym_flag='-Bexport'
9427
 
        no_entry_flag=""
9428
 
      else
9429
 
        # If we're using GNU nm, then we don't want the "-C" option.
9430
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9431
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9432
 
          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'
9433
 
        else
9434
 
          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'
9435
 
        fi
9436
 
        aix_use_runtimelinking=no
9437
 
 
9438
 
        # Test if we are trying to use run time linking or normal
9439
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9440
 
        # need to do runtime linking.
9441
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9442
 
          for ld_flag in $LDFLAGS; do
9443
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9444
 
            aix_use_runtimelinking=yes
9445
 
            break
9446
 
          fi
9447
 
          done
9448
 
          ;;
9449
 
        esac
9450
 
 
9451
 
        exp_sym_flag='-bexport'
9452
 
        no_entry_flag='-bnoentry'
9453
 
      fi
9454
 
 
9455
 
      # When large executables or shared objects are built, AIX ld can
9456
 
      # have problems creating the table of contents.  If linking a library
9457
 
      # or program results in "error TOC overflow" add -mminimal-toc to
9458
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9459
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9460
 
 
9461
 
      archive_cmds=''
9462
 
      hardcode_direct=yes
9463
 
      hardcode_libdir_separator=':'
9464
 
      link_all_deplibs=yes
9465
 
 
9466
 
      if test "$GCC" = yes; then
9467
 
        case $host_os in aix4.[012]|aix4.[012].*)
9468
 
        # We only want to do this on AIX 4.2 and lower, the check
9469
 
        # below for broken collect2 doesn't work under 4.3+
9470
 
          collect2name=`${CC} -print-prog-name=collect2`
9471
 
          if test -f "$collect2name" && \
9472
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
9473
 
          then
9474
 
          # We have reworked collect2
9475
 
          hardcode_direct=yes
9476
 
          else
9477
 
          # We have old collect2
9478
 
          hardcode_direct=unsupported
9479
 
          # It fails to find uninstalled libraries when the uninstalled
9480
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9481
 
          # to unsupported forces relinking
9482
 
          hardcode_minus_L=yes
9483
 
          hardcode_libdir_flag_spec='-L$libdir'
9484
 
          hardcode_libdir_separator=
9485
 
          fi
9486
 
          ;;
9487
 
        esac
9488
 
        shared_flag='-shared'
9489
 
        if test "$aix_use_runtimelinking" = yes; then
9490
 
          shared_flag="$shared_flag "'${wl}-G'
9491
 
        fi
9492
 
      else
9493
 
        # not using gcc
9494
 
        if test "$host_cpu" = ia64; then
9495
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9496
 
        # chokes on -Wl,-G. The following line is correct:
9497
 
          shared_flag='-G'
9498
 
        else
9499
 
          if test "$aix_use_runtimelinking" = yes; then
9500
 
            shared_flag='${wl}-G'
9501
 
          else
9502
 
            shared_flag='${wl}-bM:SRE'
9503
 
          fi
9504
 
        fi
9505
 
      fi
9506
 
 
9507
 
      # It seems that -bexpall does not export symbols beginning with
9508
 
      # underscore (_), so it is better to generate a list of symbols to export.
9509
 
      always_export_symbols=yes
9510
 
      if test "$aix_use_runtimelinking" = yes; then
9511
 
        # Warning - without using the other runtime loading flags (-brtl),
9512
 
        # -berok will link without error, but may produce a broken library.
9513
 
        allow_undefined_flag='-berok'
9514
 
       # Determine the default libpath from the value encoded in an empty executable.
9515
 
       cat >conftest.$ac_ext <<_ACEOF
9516
 
/* confdefs.h.  */
9517
 
_ACEOF
9518
 
cat confdefs.h >>conftest.$ac_ext
9519
 
cat >>conftest.$ac_ext <<_ACEOF
9520
 
/* end confdefs.h.  */
9521
 
 
9522
 
int
9523
 
main ()
9524
 
{
9525
 
 
9526
 
  ;
9527
 
  return 0;
9528
 
}
9529
 
_ACEOF
9530
 
rm -f conftest.$ac_objext conftest$ac_exeext
9531
 
if { (ac_try="$ac_link"
9532
 
case "(($ac_try" in
9533
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534
 
  *) ac_try_echo=$ac_try;;
9535
 
esac
9536
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537
 
  (eval "$ac_link") 2>conftest.er1
9538
 
  ac_status=$?
9539
 
  grep -v '^ *+' conftest.er1 >conftest.err
9540
 
  rm -f conftest.er1
9541
 
  cat conftest.err >&5
9542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543
 
  (exit $ac_status); } &&
9544
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9545
 
  { (case "(($ac_try" in
9546
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547
 
  *) ac_try_echo=$ac_try;;
9548
 
esac
9549
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550
 
  (eval "$ac_try") 2>&5
9551
 
  ac_status=$?
9552
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553
 
  (exit $ac_status); }; } &&
9554
 
         { ac_try='test -s conftest$ac_exeext'
9555
 
  { (case "(($ac_try" in
9556
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557
 
  *) ac_try_echo=$ac_try;;
9558
 
esac
9559
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560
 
  (eval "$ac_try") 2>&5
9561
 
  ac_status=$?
9562
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563
 
  (exit $ac_status); }; }; then
9564
 
  
9565
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9566
 
}'`
9567
 
# Check for a 64-bit object if we didn't find anything.
9568
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9569
 
}'`; fi
9570
 
else
9571
 
  echo "$as_me: failed program was:" >&5
9572
 
sed 's/^/| /' conftest.$ac_ext >&5
9573
 
 
9574
 
        
9575
 
fi
9576
 
 
9577
 
rm -f conftest.err conftest.$ac_objext \
9578
 
      conftest$ac_exeext conftest.$ac_ext
9579
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9580
 
 
9581
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9582
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9583
 
       else
9584
 
        if test "$host_cpu" = ia64; then
9585
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9586
 
          allow_undefined_flag="-z nodefs"
9587
 
          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"
9588
 
        else
9589
 
         # Determine the default libpath from the value encoded in an empty executable.
9590
 
         cat >conftest.$ac_ext <<_ACEOF
9591
 
/* confdefs.h.  */
9592
 
_ACEOF
9593
 
cat confdefs.h >>conftest.$ac_ext
9594
 
cat >>conftest.$ac_ext <<_ACEOF
9595
 
/* end confdefs.h.  */
9596
 
 
9597
 
int
9598
 
main ()
9599
 
{
9600
 
 
9601
 
  ;
9602
 
  return 0;
9603
 
}
9604
 
_ACEOF
9605
 
rm -f conftest.$ac_objext conftest$ac_exeext
9606
 
if { (ac_try="$ac_link"
9607
 
case "(($ac_try" in
9608
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609
 
  *) ac_try_echo=$ac_try;;
9610
 
esac
9611
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612
 
  (eval "$ac_link") 2>conftest.er1
9613
 
  ac_status=$?
9614
 
  grep -v '^ *+' conftest.er1 >conftest.err
9615
 
  rm -f conftest.er1
9616
 
  cat conftest.err >&5
9617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618
 
  (exit $ac_status); } &&
9619
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9620
 
  { (case "(($ac_try" in
9621
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622
 
  *) ac_try_echo=$ac_try;;
9623
 
esac
9624
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625
 
  (eval "$ac_try") 2>&5
9626
 
  ac_status=$?
9627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628
 
  (exit $ac_status); }; } &&
9629
 
         { ac_try='test -s conftest$ac_exeext'
9630
 
  { (case "(($ac_try" in
9631
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632
 
  *) ac_try_echo=$ac_try;;
9633
 
esac
9634
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635
 
  (eval "$ac_try") 2>&5
9636
 
  ac_status=$?
9637
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638
 
  (exit $ac_status); }; }; then
9639
 
  
9640
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9641
 
}'`
9642
 
# Check for a 64-bit object if we didn't find anything.
9643
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9644
 
}'`; fi
9645
 
else
9646
 
  echo "$as_me: failed program was:" >&5
9647
 
sed 's/^/| /' conftest.$ac_ext >&5
9648
 
 
9649
 
        
9650
 
fi
9651
 
 
9652
 
rm -f conftest.err conftest.$ac_objext \
9653
 
      conftest$ac_exeext conftest.$ac_ext
9654
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9655
 
 
9656
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9657
 
          # Warning - without using the other run time loading flags,
9658
 
          # -berok will link without error, but may produce a broken library.
9659
 
          no_undefined_flag=' ${wl}-bernotok'
9660
 
          allow_undefined_flag=' ${wl}-berok'
9661
 
          # Exported symbols can be pulled into shared objects from archives
9662
 
          whole_archive_flag_spec='$convenience'
9663
 
          archive_cmds_need_lc=yes
9664
 
          # This is similar to how AIX traditionally builds its shared libraries.
9665
 
          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'
9666
 
        fi
9667
 
      fi
9668
 
      ;;
9669
 
 
9670
 
    amigaos*)
9671
 
      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)'
9672
 
      hardcode_libdir_flag_spec='-L$libdir'
9673
 
      hardcode_minus_L=yes
9674
 
      # see comment about different semantics on the GNU ld section
9675
 
      ld_shlibs=no
9676
 
      ;;
9677
 
 
9678
 
    bsdi[45]*)
9679
 
      export_dynamic_flag_spec=-rdynamic
9680
 
      ;;
9681
 
 
9682
 
    cygwin* | mingw* | pw32*)
9683
 
      # When not using gcc, we currently assume that we are using
9684
 
      # Microsoft Visual C++.
9685
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9686
 
      # no search path for DLLs.
9687
 
      hardcode_libdir_flag_spec=' '
9688
 
      allow_undefined_flag=unsupported
9689
 
      # Tell ltmain to make .lib files, not .a files.
9690
 
      libext=lib
9691
 
      # Tell ltmain to make .dll files, not .so files.
9692
 
      shrext_cmds=".dll"
9693
 
      # FIXME: Setting linknames here is a bad hack.
9694
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9695
 
      # The linker will automatically build a .lib file if we build a DLL.
9696
 
      old_archive_From_new_cmds='true'
9697
 
      # FIXME: Should let the user specify the lib program.
9698
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9699
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9700
 
      enable_shared_with_static_runtimes=yes
9701
 
      ;;
9702
 
 
9703
 
    darwin* | rhapsody*)
9704
 
      case $host_os in
9705
 
        rhapsody* | darwin1.[012])
9706
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9707
 
         ;;
9708
 
       *) # Darwin 1.3 on
9709
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9710
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9711
 
         else
9712
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
9713
 
             10.[012])
9714
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9715
 
               ;;
9716
 
             10.*)
9717
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9718
 
               ;;
9719
 
           esac
9720
 
         fi
9721
 
         ;;
9722
 
      esac
9723
 
      archive_cmds_need_lc=no
9724
 
      hardcode_direct=no
9725
 
      hardcode_automatic=yes
9726
 
      hardcode_shlibpath_var=unsupported
9727
 
      whole_archive_flag_spec=''
9728
 
      link_all_deplibs=yes
9729
 
    if test "$GCC" = yes ; then
9730
 
        output_verbose_link_cmd='echo'
9731
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9732
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9733
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9734
 
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9735
 
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9736
 
    else
9737
 
      case $cc_basename in
9738
 
        xlc*)
9739
 
         output_verbose_link_cmd='echo'
9740
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9741
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9742
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9743
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9744
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9745
 
          ;;
9746
 
       *)
9747
 
         ld_shlibs=no
9748
 
          ;;
9749
 
      esac
9750
 
    fi
9751
 
      ;;
9752
 
 
9753
 
    dgux*)
9754
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755
 
      hardcode_libdir_flag_spec='-L$libdir'
9756
 
      hardcode_shlibpath_var=no
9757
 
      ;;
9758
 
 
9759
 
    freebsd1*)
9760
 
      ld_shlibs=no
9761
 
      ;;
9762
 
 
9763
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9764
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9765
 
    # does not break anything, and helps significantly (at the cost of a little
9766
 
    # extra space).
9767
 
    freebsd2.2*)
9768
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9769
 
      hardcode_libdir_flag_spec='-R$libdir'
9770
 
      hardcode_direct=yes
9771
 
      hardcode_shlibpath_var=no
9772
 
      ;;
9773
 
 
9774
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9775
 
    freebsd2*)
9776
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9777
 
      hardcode_direct=yes
9778
 
      hardcode_minus_L=yes
9779
 
      hardcode_shlibpath_var=no
9780
 
      ;;
9781
 
 
9782
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9783
 
    freebsd* | dragonfly*)
9784
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9785
 
      hardcode_libdir_flag_spec='-R$libdir'
9786
 
      hardcode_direct=yes
9787
 
      hardcode_shlibpath_var=no
9788
 
      ;;
9789
 
 
9790
 
    hpux9*)
9791
 
      if test "$GCC" = yes; then
9792
 
        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'
9793
 
      else
9794
 
        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'
9795
 
      fi
9796
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797
 
      hardcode_libdir_separator=:
9798
 
      hardcode_direct=yes
9799
 
 
9800
 
      # hardcode_minus_L: Not really in the search PATH,
9801
 
      # but as the default location of the library.
9802
 
      hardcode_minus_L=yes
9803
 
      export_dynamic_flag_spec='${wl}-E'
9804
 
      ;;
9805
 
 
9806
 
    hpux10*)
9807
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9808
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9809
 
      else
9810
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9811
 
      fi
9812
 
      if test "$with_gnu_ld" = no; then
9813
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814
 
        hardcode_libdir_separator=:
9815
 
 
9816
 
        hardcode_direct=yes
9817
 
        export_dynamic_flag_spec='${wl}-E'
9818
 
 
9819
 
        # hardcode_minus_L: Not really in the search PATH,
9820
 
        # but as the default location of the library.
9821
 
        hardcode_minus_L=yes
9822
 
      fi
9823
 
      ;;
9824
 
 
9825
 
    hpux11*)
9826
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9827
 
        case $host_cpu in
9828
 
        hppa*64*)
9829
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9830
 
          ;;
9831
 
        ia64*)
9832
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9833
 
          ;;
9834
 
        *)
9835
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836
 
          ;;
9837
 
        esac
9838
 
      else
9839
 
        case $host_cpu in
9840
 
        hppa*64*)
9841
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9842
 
          ;;
9843
 
        ia64*)
9844
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9845
 
          ;;
9846
 
        *)
9847
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9848
 
          ;;
9849
 
        esac
9850
 
      fi
9851
 
      if test "$with_gnu_ld" = no; then
9852
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853
 
        hardcode_libdir_separator=:
9854
 
 
9855
 
        case $host_cpu in
9856
 
        hppa*64*|ia64*)
9857
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
9858
 
          hardcode_direct=no
9859
 
          hardcode_shlibpath_var=no
9860
 
          ;;
9861
 
        *)
9862
 
          hardcode_direct=yes
9863
 
          export_dynamic_flag_spec='${wl}-E'
9864
 
 
9865
 
          # hardcode_minus_L: Not really in the search PATH,
9866
 
          # but as the default location of the library.
9867
 
          hardcode_minus_L=yes
9868
 
          ;;
9869
 
        esac
9870
 
      fi
9871
 
      ;;
9872
 
 
9873
 
    irix5* | irix6* | nonstopux*)
9874
 
      if test "$GCC" = yes; then
9875
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9876
 
      else
9877
 
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9878
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9879
 
      fi
9880
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881
 
      hardcode_libdir_separator=:
9882
 
      link_all_deplibs=yes
9883
 
      ;;
9884
 
 
9885
 
    netbsd* | netbsdelf*-gnu)
9886
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9887
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9888
 
      else
9889
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9890
 
      fi
9891
 
      hardcode_libdir_flag_spec='-R$libdir'
9892
 
      hardcode_direct=yes
9893
 
      hardcode_shlibpath_var=no
9894
 
      ;;
9895
 
 
9896
 
    newsos6)
9897
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898
 
      hardcode_direct=yes
9899
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9900
 
      hardcode_libdir_separator=:
9901
 
      hardcode_shlibpath_var=no
9902
 
      ;;
9903
 
 
9904
 
    openbsd*)
9905
 
      hardcode_direct=yes
9906
 
      hardcode_shlibpath_var=no
9907
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9908
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9909
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9910
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9911
 
        export_dynamic_flag_spec='${wl}-E'
9912
 
      else
9913
 
       case $host_os in
9914
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9915
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9916
 
           hardcode_libdir_flag_spec='-R$libdir'
9917
 
           ;;
9918
 
         *)
9919
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9921
 
           ;;
9922
 
       esac
9923
 
      fi
9924
 
      ;;
9925
 
 
9926
 
    os2*)
9927
 
      hardcode_libdir_flag_spec='-L$libdir'
9928
 
      hardcode_minus_L=yes
9929
 
      allow_undefined_flag=unsupported
9930
 
      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'
9931
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9932
 
      ;;
9933
 
 
9934
 
    osf3*)
9935
 
      if test "$GCC" = yes; then
9936
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9937
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9938
 
      else
9939
 
        allow_undefined_flag=' -expect_unresolved \*'
9940
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9941
 
      fi
9942
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9943
 
      hardcode_libdir_separator=:
9944
 
      ;;
9945
 
 
9946
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9947
 
      if test "$GCC" = yes; then
9948
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9949
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9950
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951
 
      else
9952
 
        allow_undefined_flag=' -expect_unresolved \*'
9953
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9954
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9955
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9956
 
 
9957
 
        # Both c and cxx compiler support -rpath directly
9958
 
        hardcode_libdir_flag_spec='-rpath $libdir'
9959
 
      fi
9960
 
      hardcode_libdir_separator=:
9961
 
      ;;
9962
 
 
9963
 
    solaris*)
9964
 
      no_undefined_flag=' -z text'
9965
 
      if test "$GCC" = yes; then
9966
 
        wlarc='${wl}'
9967
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9968
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9969
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9970
 
      else
9971
 
        wlarc=''
9972
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9974
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9975
 
      fi
9976
 
      hardcode_libdir_flag_spec='-R$libdir'
9977
 
      hardcode_shlibpath_var=no
9978
 
      case $host_os in
9979
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9980
 
      *)
9981
 
        # The compiler driver will combine linker options so we
9982
 
        # cannot just pass the convience library names through
9983
 
        # without $wl, iff we do not link with $LD.
9984
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
9985
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9986
 
        case $wlarc in
9987
 
        '')
9988
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9989
 
        *)
9990
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9991
 
        esac ;;
9992
 
      esac
9993
 
      link_all_deplibs=yes
9994
 
      ;;
9995
 
 
9996
 
    sunos4*)
9997
 
      if test "x$host_vendor" = xsequent; then
9998
 
        # Use $CC to link under sequent, because it throws in some extra .o
9999
 
        # files that make .init and .fini sections work.
10000
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10001
 
      else
10002
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10003
 
      fi
10004
 
      hardcode_libdir_flag_spec='-L$libdir'
10005
 
      hardcode_direct=yes
10006
 
      hardcode_minus_L=yes
10007
 
      hardcode_shlibpath_var=no
10008
 
      ;;
10009
 
 
10010
 
    sysv4)
10011
 
      case $host_vendor in
10012
 
        sni)
10013
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014
 
          hardcode_direct=yes # is this really true???
10015
 
        ;;
10016
 
        siemens)
10017
 
          ## LD is ld it makes a PLAMLIB
10018
 
          ## CC just makes a GrossModule.
10019
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10020
 
          reload_cmds='$CC -r -o $output$reload_objs'
10021
 
          hardcode_direct=no
10022
 
        ;;
10023
 
        motorola)
10024
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10026
 
        ;;
10027
 
      esac
10028
 
      runpath_var='LD_RUN_PATH'
10029
 
      hardcode_shlibpath_var=no
10030
 
      ;;
10031
 
 
10032
 
    sysv4.3*)
10033
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034
 
      hardcode_shlibpath_var=no
10035
 
      export_dynamic_flag_spec='-Bexport'
10036
 
      ;;
10037
 
 
10038
 
    sysv4*MP*)
10039
 
      if test -d /usr/nec; then
10040
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041
 
        hardcode_shlibpath_var=no
10042
 
        runpath_var=LD_RUN_PATH
10043
 
        hardcode_runpath_var=yes
10044
 
        ld_shlibs=yes
10045
 
      fi
10046
 
      ;;
10047
 
 
10048
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10049
 
      no_undefined_flag='${wl}-z,text'
10050
 
      archive_cmds_need_lc=no
10051
 
      hardcode_shlibpath_var=no
10052
 
      runpath_var='LD_RUN_PATH'
10053
 
 
10054
 
      if test "$GCC" = yes; then
10055
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057
 
      else
10058
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060
 
      fi
10061
 
      ;;
10062
 
 
10063
 
    sysv5* | sco3.2v5* | sco5v6*)
10064
 
      # Note: We can NOT use -z defs as we might desire, because we do not
10065
 
      # link with -lc, and that would cause any symbols used from libc to
10066
 
      # always be unresolved, which means just about no library would
10067
 
      # ever link correctly.  If we're not using GNU ld we use -z text
10068
 
      # though, which does catch some bad symbols but isn't as heavy-handed
10069
 
      # as -z defs.
10070
 
      no_undefined_flag='${wl}-z,text'
10071
 
      allow_undefined_flag='${wl}-z,nodefs'
10072
 
      archive_cmds_need_lc=no
10073
 
      hardcode_shlibpath_var=no
10074
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10075
 
      hardcode_libdir_separator=':'
10076
 
      link_all_deplibs=yes
10077
 
      export_dynamic_flag_spec='${wl}-Bexport'
10078
 
      runpath_var='LD_RUN_PATH'
10079
 
 
10080
 
      if test "$GCC" = yes; then
10081
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10082
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083
 
      else
10084
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10085
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10086
 
      fi
10087
 
      ;;
10088
 
 
10089
 
    uts4*)
10090
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091
 
      hardcode_libdir_flag_spec='-L$libdir'
10092
 
      hardcode_shlibpath_var=no
10093
 
      ;;
10094
 
 
10095
 
    *)
10096
 
      ld_shlibs=no
10097
 
      ;;
10098
 
    esac
10099
 
  fi
10100
 
 
10101
 
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10102
 
echo "${ECHO_T}$ld_shlibs" >&6; }
10103
 
test "$ld_shlibs" = no && can_build_shared=no
10104
 
 
10105
 
#
10106
 
# Do we need to explicitly link libc?
10107
 
#
10108
 
case "x$archive_cmds_need_lc" in
10109
 
x|xyes)
10110
 
  # Assume -lc should be added
10111
 
  archive_cmds_need_lc=yes
10112
 
 
10113
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10114
 
    case $archive_cmds in
10115
 
    *'~'*)
10116
 
      # FIXME: we may have to deal with multi-command sequences.
10117
 
      ;;
10118
 
    '$CC '*)
10119
 
      # Test whether the compiler implicitly links with -lc since on some
10120
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10121
 
      # to ld, don't add -lc before -lgcc.
10122
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10123
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10124
 
      $rm conftest*
10125
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10126
 
 
10127
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128
 
  (eval $ac_compile) 2>&5
10129
 
  ac_status=$?
10130
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131
 
  (exit $ac_status); } 2>conftest.err; then
10132
 
        soname=conftest
10133
 
        lib=conftest
10134
 
        libobjs=conftest.$ac_objext
10135
 
        deplibs=
10136
 
        wl=$lt_prog_compiler_wl
10137
 
        pic_flag=$lt_prog_compiler_pic
10138
 
        compiler_flags=-v
10139
 
        linker_flags=-v
10140
 
        verstring=
10141
 
        output_objdir=.
10142
 
        libname=conftest
10143
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
10144
 
        allow_undefined_flag=
10145
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10146
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10147
 
  ac_status=$?
10148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149
 
  (exit $ac_status); }
10150
 
        then
10151
 
          archive_cmds_need_lc=no
10152
 
        else
10153
 
          archive_cmds_need_lc=yes
10154
 
        fi
10155
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
10156
 
      else
10157
 
        cat conftest.err 1>&5
10158
 
      fi
10159
 
      $rm conftest*
10160
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10161
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10162
 
      ;;
10163
 
    esac
10164
 
  fi
10165
 
  ;;
10166
 
esac
10167
 
 
10168
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10169
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10170
 
library_names_spec=
10171
 
libname_spec='lib$name'
10172
 
soname_spec=
10173
 
shrext_cmds=".so"
10174
 
postinstall_cmds=
10175
 
postuninstall_cmds=
10176
 
finish_cmds=
10177
 
finish_eval=
10178
 
shlibpath_var=
10179
 
shlibpath_overrides_runpath=unknown
10180
 
version_type=none
10181
 
dynamic_linker="$host_os ld.so"
10182
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10183
 
if test "$GCC" = yes; then
10184
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10185
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10186
 
    # if the path contains ";" then we assume it to be the separator
10187
 
    # otherwise default to the standard path separator (i.e. ":") - it is
10188
 
    # assumed that no part of a normal pathname contains ";" but that should
10189
 
    # okay in the real world where ";" in dirpaths is itself problematic.
10190
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10191
 
  else
10192
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10193
 
  fi
10194
 
else
10195
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10196
 
fi
10197
 
need_lib_prefix=unknown
10198
 
hardcode_into_libs=no
10199
 
 
10200
 
# when you set need_version to no, make sure it does not cause -set_version
10201
 
# flags to be left without arguments
10202
 
need_version=unknown
10203
 
 
10204
 
case $host_os in
10205
 
aix3*)
10206
 
  version_type=linux
10207
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10208
 
  shlibpath_var=LIBPATH
10209
 
 
10210
 
  # AIX 3 has no versioning support, so we append a major version to the name.
10211
 
  soname_spec='${libname}${release}${shared_ext}$major'
10212
 
  ;;
10213
 
 
10214
 
aix4* | aix5*)
10215
 
  version_type=linux
10216
 
  need_lib_prefix=no
10217
 
  need_version=no
10218
 
  hardcode_into_libs=yes
10219
 
  if test "$host_cpu" = ia64; then
10220
 
    # AIX 5 supports IA64
10221
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10222
 
    shlibpath_var=LD_LIBRARY_PATH
10223
 
  else
10224
 
    # With GCC up to 2.95.x, collect2 would create an import file
10225
 
    # for dependence libraries.  The import file would start with
10226
 
    # the line `#! .'.  This would cause the generated library to
10227
 
    # depend on `.', always an invalid library.  This was fixed in
10228
 
    # development snapshots of GCC prior to 3.0.
10229
 
    case $host_os in
10230
 
      aix4 | aix4.[01] | aix4.[01].*)
10231
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10232
 
           echo ' yes '
10233
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10234
 
        :
10235
 
      else
10236
 
        can_build_shared=no
10237
 
      fi
10238
 
      ;;
10239
 
    esac
10240
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10241
 
    # soname into executable. Probably we can add versioning support to
10242
 
    # collect2, so additional links can be useful in future.
10243
 
    if test "$aix_use_runtimelinking" = yes; then
10244
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10245
 
      # instead of lib<name>.a to let people know that these are not
10246
 
      # typical AIX shared libraries.
10247
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248
 
    else
10249
 
      # We preserve .a as extension for shared libraries through AIX4.2
10250
 
      # and later when we are not doing run time linking.
10251
 
      library_names_spec='${libname}${release}.a $libname.a'
10252
 
      soname_spec='${libname}${release}${shared_ext}$major'
10253
 
    fi
10254
 
    shlibpath_var=LIBPATH
10255
 
  fi
10256
 
  ;;
10257
 
 
10258
 
amigaos*)
10259
 
  library_names_spec='$libname.ixlibrary $libname.a'
10260
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10261
 
  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'
10262
 
  ;;
10263
 
 
10264
 
beos*)
10265
 
  library_names_spec='${libname}${shared_ext}'
10266
 
  dynamic_linker="$host_os ld.so"
10267
 
  shlibpath_var=LIBRARY_PATH
10268
 
  ;;
10269
 
 
10270
 
bsdi[45]*)
10271
 
  version_type=linux
10272
 
  need_version=no
10273
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274
 
  soname_spec='${libname}${release}${shared_ext}$major'
10275
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10276
 
  shlibpath_var=LD_LIBRARY_PATH
10277
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10278
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10279
 
  # the default ld.so.conf also contains /usr/contrib/lib and
10280
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10281
 
  # libtool to hard-code these into programs
10282
 
  ;;
10283
 
 
10284
 
cygwin* | mingw* | pw32*)
10285
 
  version_type=windows
10286
 
  shrext_cmds=".dll"
10287
 
  need_version=no
10288
 
  need_lib_prefix=no
10289
 
 
10290
 
  case $GCC,$host_os in
10291
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
10292
 
    library_names_spec='$libname.dll.a'
10293
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10294
 
    postinstall_cmds='base_file=`basename \${file}`~
10295
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10296
 
      dldir=$destdir/`dirname \$dlpath`~
10297
 
      test -d \$dldir || mkdir -p \$dldir~
10298
 
      $install_prog $dir/$dlname \$dldir/$dlname~
10299
 
      chmod a+x \$dldir/$dlname'
10300
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10301
 
      dlpath=$dir/\$dldll~
10302
 
       $rm \$dlpath'
10303
 
    shlibpath_overrides_runpath=yes
10304
 
 
10305
 
    case $host_os in
10306
 
    cygwin*)
10307
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10308
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10309
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10310
 
      ;;
10311
 
    mingw*)
10312
 
      # MinGW DLLs use traditional 'lib' prefix
10313
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10315
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10316
 
        # It is most probably a Windows format PATH printed by
10317
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10318
 
        # path with ; separators, and with drive letters. We can handle the
10319
 
        # drive letters (cygwin fileutils understands them), so leave them,
10320
 
        # especially as we might pass files found there to a mingw objdump,
10321
 
        # which wouldn't understand a cygwinified path. Ahh.
10322
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10323
 
      else
10324
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10325
 
      fi
10326
 
      ;;
10327
 
    pw32*)
10328
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10329
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330
 
      ;;
10331
 
    esac
10332
 
    ;;
10333
 
 
10334
 
  *)
10335
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10336
 
    ;;
10337
 
  esac
10338
 
  dynamic_linker='Win32 ld.exe'
10339
 
  # FIXME: first we should search . and the directory the executable is in
10340
 
  shlibpath_var=PATH
10341
 
  ;;
10342
 
 
10343
 
darwin* | rhapsody*)
10344
 
  dynamic_linker="$host_os dyld"
10345
 
  version_type=darwin
10346
 
  need_lib_prefix=no
10347
 
  need_version=no
10348
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10349
 
  soname_spec='${libname}${release}${major}$shared_ext'
10350
 
  shlibpath_overrides_runpath=yes
10351
 
  shlibpath_var=DYLD_LIBRARY_PATH
10352
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10353
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10354
 
  if test "$GCC" = yes; then
10355
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10356
 
  else
10357
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10358
 
  fi
10359
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10360
 
  ;;
10361
 
 
10362
 
dgux*)
10363
 
  version_type=linux
10364
 
  need_lib_prefix=no
10365
 
  need_version=no
10366
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10367
 
  soname_spec='${libname}${release}${shared_ext}$major'
10368
 
  shlibpath_var=LD_LIBRARY_PATH
10369
 
  ;;
10370
 
 
10371
 
freebsd1*)
10372
 
  dynamic_linker=no
10373
 
  ;;
10374
 
 
10375
 
freebsd* | dragonfly*)
10376
 
  # DragonFly does not have aout.  When/if they implement a new
10377
 
  # versioning mechanism, adjust this.
10378
 
  if test -x /usr/bin/objformat; then
10379
 
    objformat=`/usr/bin/objformat`
10380
 
  else
10381
 
    case $host_os in
10382
 
    freebsd[123]*) objformat=aout ;;
10383
 
    *) objformat=elf ;;
10384
 
    esac
10385
 
  fi
10386
 
  version_type=freebsd-$objformat
10387
 
  case $version_type in
10388
 
    freebsd-elf*)
10389
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10390
 
      need_version=no
10391
 
      need_lib_prefix=no
10392
 
      ;;
10393
 
    freebsd-*)
10394
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10395
 
      need_version=yes
10396
 
      ;;
10397
 
  esac
10398
 
  shlibpath_var=LD_LIBRARY_PATH
10399
 
  case $host_os in
10400
 
  freebsd2*)
10401
 
    shlibpath_overrides_runpath=yes
10402
 
    ;;
10403
 
  freebsd3.[01]* | freebsdelf3.[01]*)
10404
 
    shlibpath_overrides_runpath=yes
10405
 
    hardcode_into_libs=yes
10406
 
    ;;
10407
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10408
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10409
 
    shlibpath_overrides_runpath=no
10410
 
    hardcode_into_libs=yes
10411
 
    ;;
10412
 
  freebsd*) # from 4.6 on
10413
 
    shlibpath_overrides_runpath=yes
10414
 
    hardcode_into_libs=yes
10415
 
    ;;
10416
 
  esac
10417
 
  ;;
10418
 
 
10419
 
gnu*)
10420
 
  version_type=linux
10421
 
  need_lib_prefix=no
10422
 
  need_version=no
10423
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10424
 
  soname_spec='${libname}${release}${shared_ext}$major'
10425
 
  shlibpath_var=LD_LIBRARY_PATH
10426
 
  hardcode_into_libs=yes
10427
 
  ;;
10428
 
 
10429
 
hpux9* | hpux10* | hpux11*)
10430
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
10431
 
  # link against other versions.
10432
 
  version_type=sunos
10433
 
  need_lib_prefix=no
10434
 
  need_version=no
10435
 
  case $host_cpu in
10436
 
  ia64*)
10437
 
    shrext_cmds='.so'
10438
 
    hardcode_into_libs=yes
10439
 
    dynamic_linker="$host_os dld.so"
10440
 
    shlibpath_var=LD_LIBRARY_PATH
10441
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10442
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443
 
    soname_spec='${libname}${release}${shared_ext}$major'
10444
 
    if test "X$HPUX_IA64_MODE" = X32; then
10445
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10446
 
    else
10447
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10448
 
    fi
10449
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10450
 
    ;;
10451
 
   hppa*64*)
10452
 
     shrext_cmds='.sl'
10453
 
     hardcode_into_libs=yes
10454
 
     dynamic_linker="$host_os dld.sl"
10455
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10456
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10457
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458
 
     soname_spec='${libname}${release}${shared_ext}$major'
10459
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10460
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10461
 
     ;;
10462
 
   *)
10463
 
    shrext_cmds='.sl'
10464
 
    dynamic_linker="$host_os dld.sl"
10465
 
    shlibpath_var=SHLIB_PATH
10466
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10467
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468
 
    soname_spec='${libname}${release}${shared_ext}$major'
10469
 
    ;;
10470
 
  esac
10471
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10472
 
  postinstall_cmds='chmod 555 $lib'
10473
 
  ;;
10474
 
 
10475
 
interix3*)
10476
 
  version_type=linux
10477
 
  need_lib_prefix=no
10478
 
  need_version=no
10479
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10480
 
  soname_spec='${libname}${release}${shared_ext}$major'
10481
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10482
 
  shlibpath_var=LD_LIBRARY_PATH
10483
 
  shlibpath_overrides_runpath=no
10484
 
  hardcode_into_libs=yes
10485
 
  ;;
10486
 
 
10487
 
irix5* | irix6* | nonstopux*)
10488
 
  case $host_os in
10489
 
    nonstopux*) version_type=nonstopux ;;
10490
 
    *)
10491
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
10492
 
                version_type=linux
10493
 
        else
10494
 
                version_type=irix
10495
 
        fi ;;
10496
 
  esac
10497
 
  need_lib_prefix=no
10498
 
  need_version=no
10499
 
  soname_spec='${libname}${release}${shared_ext}$major'
10500
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10501
 
  case $host_os in
10502
 
  irix5* | nonstopux*)
10503
 
    libsuff= shlibsuff=
10504
 
    ;;
10505
 
  *)
10506
 
    case $LD in # libtool.m4 will add one of these switches to LD
10507
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10508
 
      libsuff= shlibsuff= libmagic=32-bit;;
10509
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10510
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10511
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10512
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10513
 
    *) libsuff= shlibsuff= libmagic=never-match;;
10514
 
    esac
10515
 
    ;;
10516
 
  esac
10517
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10518
 
  shlibpath_overrides_runpath=no
10519
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10520
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10521
 
  hardcode_into_libs=yes
10522
 
  ;;
10523
 
 
10524
 
# No shared lib support for Linux oldld, aout, or coff.
10525
 
linux*oldld* | linux*aout* | linux*coff*)
10526
 
  dynamic_linker=no
10527
 
  ;;
10528
 
 
10529
 
# This must be Linux ELF.
10530
 
linux* | k*bsd*-gnu)
10531
 
  version_type=linux
10532
 
  need_lib_prefix=no
10533
 
  need_version=no
10534
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535
 
  soname_spec='${libname}${release}${shared_ext}$major'
10536
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10537
 
  shlibpath_var=LD_LIBRARY_PATH
10538
 
  shlibpath_overrides_runpath=no
10539
 
  # This implies no fast_install, which is unacceptable.
10540
 
  # Some rework will be needed to allow for fast_install
10541
 
  # before this can be enabled.
10542
 
  hardcode_into_libs=yes
10543
 
 
10544
 
  # Append ld.so.conf contents to the search path
10545
 
  if test -f /etc/ld.so.conf; then
10546
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10547
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10548
 
  fi
10549
 
 
10550
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10551
 
  # powerpc, because MkLinux only supported shared libraries with the
10552
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
10553
 
  # most powerpc-linux boxes support dynamic linking these days and
10554
 
  # people can always --disable-shared, the test was removed, and we
10555
 
  # assume the GNU/Linux dynamic linker is in use.
10556
 
  dynamic_linker='GNU/Linux ld.so'
10557
 
  ;;
10558
 
 
10559
 
netbsdelf*-gnu)
10560
 
  version_type=linux
10561
 
  need_lib_prefix=no
10562
 
  need_version=no
10563
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10564
 
  soname_spec='${libname}${release}${shared_ext}$major'
10565
 
  shlibpath_var=LD_LIBRARY_PATH
10566
 
  shlibpath_overrides_runpath=no
10567
 
  hardcode_into_libs=yes
10568
 
  dynamic_linker='NetBSD ld.elf_so'
10569
 
  ;;
10570
 
 
10571
 
netbsd*)
10572
 
  version_type=sunos
10573
 
  need_lib_prefix=no
10574
 
  need_version=no
10575
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10576
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10577
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10578
 
    dynamic_linker='NetBSD (a.out) ld.so'
10579
 
  else
10580
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10581
 
    soname_spec='${libname}${release}${shared_ext}$major'
10582
 
    dynamic_linker='NetBSD ld.elf_so'
10583
 
  fi
10584
 
  shlibpath_var=LD_LIBRARY_PATH
10585
 
  shlibpath_overrides_runpath=yes
10586
 
  hardcode_into_libs=yes
10587
 
  ;;
10588
 
 
10589
 
newsos6)
10590
 
  version_type=linux
10591
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592
 
  shlibpath_var=LD_LIBRARY_PATH
10593
 
  shlibpath_overrides_runpath=yes
10594
 
  ;;
10595
 
 
10596
 
nto-qnx*)
10597
 
  version_type=linux
10598
 
  need_lib_prefix=no
10599
 
  need_version=no
10600
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601
 
  soname_spec='${libname}${release}${shared_ext}$major'
10602
 
  shlibpath_var=LD_LIBRARY_PATH
10603
 
  shlibpath_overrides_runpath=yes
10604
 
  ;;
10605
 
 
10606
 
openbsd*)
10607
 
  version_type=sunos
10608
 
  sys_lib_dlsearch_path_spec="/usr/lib"
10609
 
  need_lib_prefix=no
10610
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10611
 
  case $host_os in
10612
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10613
 
    *)                         need_version=no  ;;
10614
 
  esac
10615
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10616
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10617
 
  shlibpath_var=LD_LIBRARY_PATH
10618
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10619
 
    case $host_os in
10620
 
      openbsd2.[89] | openbsd2.[89].*)
10621
 
        shlibpath_overrides_runpath=no
10622
 
        ;;
10623
 
      *)
10624
 
        shlibpath_overrides_runpath=yes
10625
 
        ;;
10626
 
      esac
10627
 
  else
10628
 
    shlibpath_overrides_runpath=yes
10629
 
  fi
10630
 
  ;;
10631
 
 
10632
 
os2*)
10633
 
  libname_spec='$name'
10634
 
  shrext_cmds=".dll"
10635
 
  need_lib_prefix=no
10636
 
  library_names_spec='$libname${shared_ext} $libname.a'
10637
 
  dynamic_linker='OS/2 ld.exe'
10638
 
  shlibpath_var=LIBPATH
10639
 
  ;;
10640
 
 
10641
 
osf3* | osf4* | osf5*)
10642
 
  version_type=osf
10643
 
  need_lib_prefix=no
10644
 
  need_version=no
10645
 
  soname_spec='${libname}${release}${shared_ext}$major'
10646
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647
 
  shlibpath_var=LD_LIBRARY_PATH
10648
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10649
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10650
 
  ;;
10651
 
 
10652
 
solaris*)
10653
 
  version_type=linux
10654
 
  need_lib_prefix=no
10655
 
  need_version=no
10656
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657
 
  soname_spec='${libname}${release}${shared_ext}$major'
10658
 
  shlibpath_var=LD_LIBRARY_PATH
10659
 
  shlibpath_overrides_runpath=yes
10660
 
  hardcode_into_libs=yes
10661
 
  # ldd complains unless libraries are executable
10662
 
  postinstall_cmds='chmod +x $lib'
10663
 
  ;;
10664
 
 
10665
 
sunos4*)
10666
 
  version_type=sunos
10667
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10668
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10669
 
  shlibpath_var=LD_LIBRARY_PATH
10670
 
  shlibpath_overrides_runpath=yes
10671
 
  if test "$with_gnu_ld" = yes; then
10672
 
    need_lib_prefix=no
10673
 
  fi
10674
 
  need_version=yes
10675
 
  ;;
10676
 
 
10677
 
sysv4 | sysv4.3*)
10678
 
  version_type=linux
10679
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680
 
  soname_spec='${libname}${release}${shared_ext}$major'
10681
 
  shlibpath_var=LD_LIBRARY_PATH
10682
 
  case $host_vendor in
10683
 
    sni)
10684
 
      shlibpath_overrides_runpath=no
10685
 
      need_lib_prefix=no
10686
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
10687
 
      runpath_var=LD_RUN_PATH
10688
 
      ;;
10689
 
    siemens)
10690
 
      need_lib_prefix=no
10691
 
      ;;
10692
 
    motorola)
10693
 
      need_lib_prefix=no
10694
 
      need_version=no
10695
 
      shlibpath_overrides_runpath=no
10696
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10697
 
      ;;
10698
 
  esac
10699
 
  ;;
10700
 
 
10701
 
sysv4*MP*)
10702
 
  if test -d /usr/nec ;then
10703
 
    version_type=linux
10704
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10705
 
    soname_spec='$libname${shared_ext}.$major'
10706
 
    shlibpath_var=LD_LIBRARY_PATH
10707
 
  fi
10708
 
  ;;
10709
 
 
10710
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10711
 
  version_type=freebsd-elf
10712
 
  need_lib_prefix=no
10713
 
  need_version=no
10714
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10715
 
  soname_spec='${libname}${release}${shared_ext}$major'
10716
 
  shlibpath_var=LD_LIBRARY_PATH
10717
 
  hardcode_into_libs=yes
10718
 
  if test "$with_gnu_ld" = yes; then
10719
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10720
 
    shlibpath_overrides_runpath=no
10721
 
  else
10722
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10723
 
    shlibpath_overrides_runpath=yes
10724
 
    case $host_os in
10725
 
      sco3.2v5*)
10726
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10727
 
        ;;
10728
 
    esac
10729
 
  fi
10730
 
  sys_lib_dlsearch_path_spec='/usr/lib'
10731
 
  ;;
10732
 
 
10733
 
uts4*)
10734
 
  version_type=linux
10735
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736
 
  soname_spec='${libname}${release}${shared_ext}$major'
10737
 
  shlibpath_var=LD_LIBRARY_PATH
10738
 
  ;;
10739
 
 
10740
 
*)
10741
 
  dynamic_linker=no
10742
 
  ;;
10743
 
esac
10744
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10745
 
echo "${ECHO_T}$dynamic_linker" >&6; }
10746
 
test "$dynamic_linker" = no && can_build_shared=no
10747
 
 
10748
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10749
 
if test "$GCC" = yes; then
10750
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10751
 
fi
10752
 
 
10753
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10754
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10755
 
hardcode_action=
10756
 
if test -n "$hardcode_libdir_flag_spec" || \
10757
 
   test -n "$runpath_var" || \
10758
 
   test "X$hardcode_automatic" = "Xyes" ; then
10759
 
 
10760
 
  # We can hardcode non-existant directories.
10761
 
  if test "$hardcode_direct" != no &&
10762
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10763
 
     # have to relink, otherwise we might link with an installed library
10764
 
     # when we should be linking with a yet-to-be-installed one
10765
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10766
 
     test "$hardcode_minus_L" != no; then
10767
 
    # Linking always hardcodes the temporary library directory.
10768
 
    hardcode_action=relink
10769
 
  else
10770
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10771
 
    hardcode_action=immediate
10772
 
  fi
10773
 
else
10774
 
  # We cannot hardcode anything, or else we can only hardcode existing
10775
 
  # directories.
10776
 
  hardcode_action=unsupported
10777
 
fi
10778
 
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10779
 
echo "${ECHO_T}$hardcode_action" >&6; }
10780
 
 
10781
 
if test "$hardcode_action" = relink; then
10782
 
  # Fast installation is not supported
10783
 
  enable_fast_install=no
10784
 
elif test "$shlibpath_overrides_runpath" = yes ||
10785
 
     test "$enable_shared" = no; then
10786
 
  # Fast installation is not necessary
10787
 
  enable_fast_install=needless
10788
 
fi
10789
 
 
10790
 
striplib=
10791
 
old_striplib=
10792
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10793
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10794
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10795
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10796
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10797
 
  { echo "$as_me:$LINENO: result: yes" >&5
10798
 
echo "${ECHO_T}yes" >&6; }
10799
 
else
10800
 
# FIXME - insert some real tests, host_os isn't really good enough
10801
 
  case $host_os in
10802
 
   darwin*)
10803
 
       if test -n "$STRIP" ; then
10804
 
         striplib="$STRIP -x"
10805
 
         { echo "$as_me:$LINENO: result: yes" >&5
10806
 
echo "${ECHO_T}yes" >&6; }
10807
 
       else
10808
 
  { echo "$as_me:$LINENO: result: no" >&5
10809
 
echo "${ECHO_T}no" >&6; }
10810
 
fi
10811
 
       ;;
10812
 
   *)
10813
 
  { echo "$as_me:$LINENO: result: no" >&5
10814
 
echo "${ECHO_T}no" >&6; }
10815
 
    ;;
10816
 
  esac
10817
 
fi
10818
 
 
10819
 
if test "x$enable_dlopen" != xyes; then
10820
 
  enable_dlopen=unknown
10821
 
  enable_dlopen_self=unknown
10822
 
  enable_dlopen_self_static=unknown
10823
 
else
10824
 
  lt_cv_dlopen=no
10825
 
  lt_cv_dlopen_libs=
10826
 
 
10827
 
  case $host_os in
10828
 
  beos*)
10829
 
    lt_cv_dlopen="load_add_on"
10830
 
    lt_cv_dlopen_libs=
10831
 
    lt_cv_dlopen_self=yes
10832
 
    ;;
10833
 
 
10834
 
  mingw* | pw32*)
10835
 
    lt_cv_dlopen="LoadLibrary"
10836
 
    lt_cv_dlopen_libs=
10837
 
   ;;
10838
 
 
10839
 
  cygwin*)
10840
 
    lt_cv_dlopen="dlopen"
10841
 
    lt_cv_dlopen_libs=
10842
 
   ;;
10843
 
 
10844
 
  darwin*)
10845
 
  # if libdl is installed we need to link against it
10846
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10847
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10848
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10849
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10850
 
else
10851
 
  ac_check_lib_save_LIBS=$LIBS
10852
 
LIBS="-ldl  $LIBS"
10853
 
cat >conftest.$ac_ext <<_ACEOF
10854
 
/* confdefs.h.  */
10855
 
_ACEOF
10856
 
cat confdefs.h >>conftest.$ac_ext
10857
 
cat >>conftest.$ac_ext <<_ACEOF
10858
 
/* end confdefs.h.  */
10859
 
 
10860
 
/* Override any GCC internal prototype to avoid an error.
10861
 
   Use char because int might match the return type of a GCC
10862
 
   builtin and then its argument prototype would still apply.  */
10863
 
#ifdef __cplusplus
10864
 
extern "C"
10865
 
#endif
10866
 
char dlopen ();
10867
 
int
10868
 
main ()
10869
 
{
10870
 
return dlopen ();
10871
 
  ;
10872
 
  return 0;
10873
 
}
10874
 
_ACEOF
10875
 
rm -f conftest.$ac_objext conftest$ac_exeext
10876
 
if { (ac_try="$ac_link"
10877
 
case "(($ac_try" in
10878
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879
 
  *) ac_try_echo=$ac_try;;
10880
 
esac
10881
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882
 
  (eval "$ac_link") 2>conftest.er1
10883
 
  ac_status=$?
10884
 
  grep -v '^ *+' conftest.er1 >conftest.err
10885
 
  rm -f conftest.er1
10886
 
  cat conftest.err >&5
10887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888
 
  (exit $ac_status); } &&
10889
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890
 
  { (case "(($ac_try" in
10891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892
 
  *) ac_try_echo=$ac_try;;
10893
 
esac
10894
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895
 
  (eval "$ac_try") 2>&5
10896
 
  ac_status=$?
10897
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898
 
  (exit $ac_status); }; } &&
10899
 
         { ac_try='test -s conftest$ac_exeext'
10900
 
  { (case "(($ac_try" in
10901
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902
 
  *) ac_try_echo=$ac_try;;
10903
 
esac
10904
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905
 
  (eval "$ac_try") 2>&5
10906
 
  ac_status=$?
10907
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908
 
  (exit $ac_status); }; }; then
10909
 
  ac_cv_lib_dl_dlopen=yes
10910
 
else
10911
 
  echo "$as_me: failed program was:" >&5
10912
 
sed 's/^/| /' conftest.$ac_ext >&5
10913
 
 
10914
 
        ac_cv_lib_dl_dlopen=no
10915
 
fi
10916
 
 
10917
 
rm -f conftest.err conftest.$ac_objext \
10918
 
      conftest$ac_exeext conftest.$ac_ext
10919
 
LIBS=$ac_check_lib_save_LIBS
10920
 
fi
10921
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10922
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10923
 
if test $ac_cv_lib_dl_dlopen = yes; then
10924
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10925
 
else
10926
 
  
10927
 
    lt_cv_dlopen="dyld"
10928
 
    lt_cv_dlopen_libs=
10929
 
    lt_cv_dlopen_self=yes
10930
 
    
10931
 
fi
10932
 
 
10933
 
   ;;
10934
 
 
10935
 
  *)
10936
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
10937
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10938
 
if test "${ac_cv_func_shl_load+set}" = set; then
10939
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10940
 
else
10941
 
  cat >conftest.$ac_ext <<_ACEOF
10942
 
/* confdefs.h.  */
10943
 
_ACEOF
10944
 
cat confdefs.h >>conftest.$ac_ext
10945
 
cat >>conftest.$ac_ext <<_ACEOF
10946
 
/* end confdefs.h.  */
10947
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10948
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10949
 
#define shl_load innocuous_shl_load
10950
 
 
10951
 
/* System header to define __stub macros and hopefully few prototypes,
10952
 
    which can conflict with char shl_load (); below.
10953
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954
 
    <limits.h> exists even on freestanding compilers.  */
10955
 
 
10956
 
#ifdef __STDC__
10957
 
# include <limits.h>
10958
 
#else
10959
 
# include <assert.h>
10960
 
#endif
10961
 
 
10962
 
#undef shl_load
10963
 
 
10964
 
/* Override any GCC internal prototype to avoid an error.
10965
 
   Use char because int might match the return type of a GCC
10966
 
   builtin and then its argument prototype would still apply.  */
10967
 
#ifdef __cplusplus
10968
 
extern "C"
10969
 
#endif
10970
 
char shl_load ();
10971
 
/* The GNU C library defines this for functions which it implements
10972
 
    to always fail with ENOSYS.  Some functions are actually named
10973
 
    something starting with __ and the normal name is an alias.  */
10974
 
#if defined __stub_shl_load || defined __stub___shl_load
10975
 
choke me
10976
 
#endif
10977
 
 
10978
 
int
10979
 
main ()
10980
 
{
10981
 
return shl_load ();
10982
 
  ;
10983
 
  return 0;
10984
 
}
10985
 
_ACEOF
10986
 
rm -f conftest.$ac_objext conftest$ac_exeext
10987
 
if { (ac_try="$ac_link"
10988
 
case "(($ac_try" in
10989
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990
 
  *) ac_try_echo=$ac_try;;
10991
 
esac
10992
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993
 
  (eval "$ac_link") 2>conftest.er1
10994
 
  ac_status=$?
10995
 
  grep -v '^ *+' conftest.er1 >conftest.err
10996
 
  rm -f conftest.er1
10997
 
  cat conftest.err >&5
10998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999
 
  (exit $ac_status); } &&
11000
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11001
 
  { (case "(($ac_try" in
11002
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003
 
  *) ac_try_echo=$ac_try;;
11004
 
esac
11005
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006
 
  (eval "$ac_try") 2>&5
11007
 
  ac_status=$?
11008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009
 
  (exit $ac_status); }; } &&
11010
 
         { ac_try='test -s conftest$ac_exeext'
11011
 
  { (case "(($ac_try" in
11012
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013
 
  *) ac_try_echo=$ac_try;;
11014
 
esac
11015
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016
 
  (eval "$ac_try") 2>&5
11017
 
  ac_status=$?
11018
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019
 
  (exit $ac_status); }; }; then
11020
 
  ac_cv_func_shl_load=yes
11021
 
else
11022
 
  echo "$as_me: failed program was:" >&5
11023
 
sed 's/^/| /' conftest.$ac_ext >&5
11024
 
 
11025
 
        ac_cv_func_shl_load=no
11026
 
fi
11027
 
 
11028
 
rm -f conftest.err conftest.$ac_objext \
11029
 
      conftest$ac_exeext conftest.$ac_ext
11030
 
fi
11031
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11032
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11033
 
if test $ac_cv_func_shl_load = yes; then
11034
 
  lt_cv_dlopen="shl_load"
11035
 
else
11036
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11037
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11038
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11039
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11040
 
else
11041
 
  ac_check_lib_save_LIBS=$LIBS
11042
 
LIBS="-ldld  $LIBS"
11043
 
cat >conftest.$ac_ext <<_ACEOF
11044
 
/* confdefs.h.  */
11045
 
_ACEOF
11046
 
cat confdefs.h >>conftest.$ac_ext
11047
 
cat >>conftest.$ac_ext <<_ACEOF
11048
 
/* end confdefs.h.  */
11049
 
 
11050
 
/* Override any GCC internal prototype to avoid an error.
11051
 
   Use char because int might match the return type of a GCC
11052
 
   builtin and then its argument prototype would still apply.  */
11053
 
#ifdef __cplusplus
11054
 
extern "C"
11055
 
#endif
11056
 
char shl_load ();
11057
 
int
11058
 
main ()
11059
 
{
11060
 
return shl_load ();
11061
 
  ;
11062
 
  return 0;
11063
 
}
11064
 
_ACEOF
11065
 
rm -f conftest.$ac_objext conftest$ac_exeext
11066
 
if { (ac_try="$ac_link"
11067
 
case "(($ac_try" in
11068
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069
 
  *) ac_try_echo=$ac_try;;
11070
 
esac
11071
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072
 
  (eval "$ac_link") 2>conftest.er1
11073
 
  ac_status=$?
11074
 
  grep -v '^ *+' conftest.er1 >conftest.err
11075
 
  rm -f conftest.er1
11076
 
  cat conftest.err >&5
11077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078
 
  (exit $ac_status); } &&
11079
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11080
 
  { (case "(($ac_try" in
11081
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082
 
  *) ac_try_echo=$ac_try;;
11083
 
esac
11084
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085
 
  (eval "$ac_try") 2>&5
11086
 
  ac_status=$?
11087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088
 
  (exit $ac_status); }; } &&
11089
 
         { ac_try='test -s conftest$ac_exeext'
11090
 
  { (case "(($ac_try" in
11091
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092
 
  *) ac_try_echo=$ac_try;;
11093
 
esac
11094
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095
 
  (eval "$ac_try") 2>&5
11096
 
  ac_status=$?
11097
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098
 
  (exit $ac_status); }; }; then
11099
 
  ac_cv_lib_dld_shl_load=yes
11100
 
else
11101
 
  echo "$as_me: failed program was:" >&5
11102
 
sed 's/^/| /' conftest.$ac_ext >&5
11103
 
 
11104
 
        ac_cv_lib_dld_shl_load=no
11105
 
fi
11106
 
 
11107
 
rm -f conftest.err conftest.$ac_objext \
11108
 
      conftest$ac_exeext conftest.$ac_ext
11109
 
LIBS=$ac_check_lib_save_LIBS
11110
 
fi
11111
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11112
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11113
 
if test $ac_cv_lib_dld_shl_load = yes; then
11114
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11115
 
else
11116
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
11117
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11118
 
if test "${ac_cv_func_dlopen+set}" = set; then
11119
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11120
 
else
11121
 
  cat >conftest.$ac_ext <<_ACEOF
11122
 
/* confdefs.h.  */
11123
 
_ACEOF
11124
 
cat confdefs.h >>conftest.$ac_ext
11125
 
cat >>conftest.$ac_ext <<_ACEOF
11126
 
/* end confdefs.h.  */
11127
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11128
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11129
 
#define dlopen innocuous_dlopen
11130
 
 
11131
 
/* System header to define __stub macros and hopefully few prototypes,
11132
 
    which can conflict with char dlopen (); below.
11133
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11134
 
    <limits.h> exists even on freestanding compilers.  */
11135
 
 
11136
 
#ifdef __STDC__
11137
 
# include <limits.h>
11138
 
#else
11139
 
# include <assert.h>
11140
 
#endif
11141
 
 
11142
 
#undef dlopen
11143
 
 
11144
 
/* Override any GCC internal prototype to avoid an error.
11145
 
   Use char because int might match the return type of a GCC
11146
 
   builtin and then its argument prototype would still apply.  */
11147
 
#ifdef __cplusplus
11148
 
extern "C"
11149
 
#endif
11150
 
char dlopen ();
11151
 
/* The GNU C library defines this for functions which it implements
11152
 
    to always fail with ENOSYS.  Some functions are actually named
11153
 
    something starting with __ and the normal name is an alias.  */
11154
 
#if defined __stub_dlopen || defined __stub___dlopen
11155
 
choke me
11156
 
#endif
11157
 
 
11158
 
int
11159
 
main ()
11160
 
{
11161
 
return dlopen ();
11162
 
  ;
11163
 
  return 0;
11164
 
}
11165
 
_ACEOF
11166
 
rm -f conftest.$ac_objext conftest$ac_exeext
11167
 
if { (ac_try="$ac_link"
11168
 
case "(($ac_try" in
11169
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170
 
  *) ac_try_echo=$ac_try;;
11171
 
esac
11172
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173
 
  (eval "$ac_link") 2>conftest.er1
11174
 
  ac_status=$?
11175
 
  grep -v '^ *+' conftest.er1 >conftest.err
11176
 
  rm -f conftest.er1
11177
 
  cat conftest.err >&5
11178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179
 
  (exit $ac_status); } &&
11180
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11181
 
  { (case "(($ac_try" in
11182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183
 
  *) ac_try_echo=$ac_try;;
11184
 
esac
11185
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186
 
  (eval "$ac_try") 2>&5
11187
 
  ac_status=$?
11188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189
 
  (exit $ac_status); }; } &&
11190
 
         { ac_try='test -s conftest$ac_exeext'
11191
 
  { (case "(($ac_try" in
11192
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193
 
  *) ac_try_echo=$ac_try;;
11194
 
esac
11195
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196
 
  (eval "$ac_try") 2>&5
11197
 
  ac_status=$?
11198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199
 
  (exit $ac_status); }; }; then
11200
 
  ac_cv_func_dlopen=yes
11201
 
else
11202
 
  echo "$as_me: failed program was:" >&5
11203
 
sed 's/^/| /' conftest.$ac_ext >&5
11204
 
 
11205
 
        ac_cv_func_dlopen=no
11206
 
fi
11207
 
 
11208
 
rm -f conftest.err conftest.$ac_objext \
11209
 
      conftest$ac_exeext conftest.$ac_ext
11210
 
fi
11211
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11212
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11213
 
if test $ac_cv_func_dlopen = yes; then
11214
 
  lt_cv_dlopen="dlopen"
11215
 
else
11216
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11217
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11218
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11219
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11220
 
else
11221
 
  ac_check_lib_save_LIBS=$LIBS
11222
 
LIBS="-ldl  $LIBS"
11223
 
cat >conftest.$ac_ext <<_ACEOF
11224
 
/* confdefs.h.  */
11225
 
_ACEOF
11226
 
cat confdefs.h >>conftest.$ac_ext
11227
 
cat >>conftest.$ac_ext <<_ACEOF
11228
 
/* end confdefs.h.  */
11229
 
 
11230
 
/* Override any GCC internal prototype to avoid an error.
11231
 
   Use char because int might match the return type of a GCC
11232
 
   builtin and then its argument prototype would still apply.  */
11233
 
#ifdef __cplusplus
11234
 
extern "C"
11235
 
#endif
11236
 
char dlopen ();
11237
 
int
11238
 
main ()
11239
 
{
11240
 
return dlopen ();
11241
 
  ;
11242
 
  return 0;
11243
 
}
11244
 
_ACEOF
11245
 
rm -f conftest.$ac_objext conftest$ac_exeext
11246
 
if { (ac_try="$ac_link"
11247
 
case "(($ac_try" in
11248
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249
 
  *) ac_try_echo=$ac_try;;
11250
 
esac
11251
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252
 
  (eval "$ac_link") 2>conftest.er1
11253
 
  ac_status=$?
11254
 
  grep -v '^ *+' conftest.er1 >conftest.err
11255
 
  rm -f conftest.er1
11256
 
  cat conftest.err >&5
11257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258
 
  (exit $ac_status); } &&
11259
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11260
 
  { (case "(($ac_try" in
11261
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262
 
  *) ac_try_echo=$ac_try;;
11263
 
esac
11264
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265
 
  (eval "$ac_try") 2>&5
11266
 
  ac_status=$?
11267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268
 
  (exit $ac_status); }; } &&
11269
 
         { ac_try='test -s conftest$ac_exeext'
11270
 
  { (case "(($ac_try" in
11271
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272
 
  *) ac_try_echo=$ac_try;;
11273
 
esac
11274
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275
 
  (eval "$ac_try") 2>&5
11276
 
  ac_status=$?
11277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278
 
  (exit $ac_status); }; }; then
11279
 
  ac_cv_lib_dl_dlopen=yes
11280
 
else
11281
 
  echo "$as_me: failed program was:" >&5
11282
 
sed 's/^/| /' conftest.$ac_ext >&5
11283
 
 
11284
 
        ac_cv_lib_dl_dlopen=no
11285
 
fi
11286
 
 
11287
 
rm -f conftest.err conftest.$ac_objext \
11288
 
      conftest$ac_exeext conftest.$ac_ext
11289
 
LIBS=$ac_check_lib_save_LIBS
11290
 
fi
11291
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11292
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11293
 
if test $ac_cv_lib_dl_dlopen = yes; then
11294
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11295
 
else
11296
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11297
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11298
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11300
 
else
11301
 
  ac_check_lib_save_LIBS=$LIBS
11302
 
LIBS="-lsvld  $LIBS"
11303
 
cat >conftest.$ac_ext <<_ACEOF
11304
 
/* confdefs.h.  */
11305
 
_ACEOF
11306
 
cat confdefs.h >>conftest.$ac_ext
11307
 
cat >>conftest.$ac_ext <<_ACEOF
11308
 
/* end confdefs.h.  */
11309
 
 
11310
 
/* Override any GCC internal prototype to avoid an error.
11311
 
   Use char because int might match the return type of a GCC
11312
 
   builtin and then its argument prototype would still apply.  */
11313
 
#ifdef __cplusplus
11314
 
extern "C"
11315
 
#endif
11316
 
char dlopen ();
11317
 
int
11318
 
main ()
11319
 
{
11320
 
return dlopen ();
11321
 
  ;
11322
 
  return 0;
11323
 
}
11324
 
_ACEOF
11325
 
rm -f conftest.$ac_objext conftest$ac_exeext
11326
 
if { (ac_try="$ac_link"
11327
 
case "(($ac_try" in
11328
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329
 
  *) ac_try_echo=$ac_try;;
11330
 
esac
11331
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332
 
  (eval "$ac_link") 2>conftest.er1
11333
 
  ac_status=$?
11334
 
  grep -v '^ *+' conftest.er1 >conftest.err
11335
 
  rm -f conftest.er1
11336
 
  cat conftest.err >&5
11337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338
 
  (exit $ac_status); } &&
11339
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340
 
  { (case "(($ac_try" in
11341
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342
 
  *) ac_try_echo=$ac_try;;
11343
 
esac
11344
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345
 
  (eval "$ac_try") 2>&5
11346
 
  ac_status=$?
11347
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348
 
  (exit $ac_status); }; } &&
11349
 
         { ac_try='test -s conftest$ac_exeext'
11350
 
  { (case "(($ac_try" in
11351
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352
 
  *) ac_try_echo=$ac_try;;
11353
 
esac
11354
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355
 
  (eval "$ac_try") 2>&5
11356
 
  ac_status=$?
11357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358
 
  (exit $ac_status); }; }; then
11359
 
  ac_cv_lib_svld_dlopen=yes
11360
 
else
11361
 
  echo "$as_me: failed program was:" >&5
11362
 
sed 's/^/| /' conftest.$ac_ext >&5
11363
 
 
11364
 
        ac_cv_lib_svld_dlopen=no
11365
 
fi
11366
 
 
11367
 
rm -f conftest.err conftest.$ac_objext \
11368
 
      conftest$ac_exeext conftest.$ac_ext
11369
 
LIBS=$ac_check_lib_save_LIBS
11370
 
fi
11371
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11372
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11373
 
if test $ac_cv_lib_svld_dlopen = yes; then
11374
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11375
 
else
11376
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11377
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11378
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11379
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11380
 
else
11381
 
  ac_check_lib_save_LIBS=$LIBS
11382
 
LIBS="-ldld  $LIBS"
11383
 
cat >conftest.$ac_ext <<_ACEOF
11384
 
/* confdefs.h.  */
11385
 
_ACEOF
11386
 
cat confdefs.h >>conftest.$ac_ext
11387
 
cat >>conftest.$ac_ext <<_ACEOF
11388
 
/* end confdefs.h.  */
11389
 
 
11390
 
/* Override any GCC internal prototype to avoid an error.
11391
 
   Use char because int might match the return type of a GCC
11392
 
   builtin and then its argument prototype would still apply.  */
11393
 
#ifdef __cplusplus
11394
 
extern "C"
11395
 
#endif
11396
 
char dld_link ();
11397
 
int
11398
 
main ()
11399
 
{
11400
 
return dld_link ();
11401
 
  ;
11402
 
  return 0;
11403
 
}
11404
 
_ACEOF
11405
 
rm -f conftest.$ac_objext conftest$ac_exeext
11406
 
if { (ac_try="$ac_link"
11407
 
case "(($ac_try" in
11408
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409
 
  *) ac_try_echo=$ac_try;;
11410
 
esac
11411
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412
 
  (eval "$ac_link") 2>conftest.er1
11413
 
  ac_status=$?
11414
 
  grep -v '^ *+' conftest.er1 >conftest.err
11415
 
  rm -f conftest.er1
11416
 
  cat conftest.err >&5
11417
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418
 
  (exit $ac_status); } &&
11419
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11420
 
  { (case "(($ac_try" in
11421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422
 
  *) ac_try_echo=$ac_try;;
11423
 
esac
11424
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425
 
  (eval "$ac_try") 2>&5
11426
 
  ac_status=$?
11427
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428
 
  (exit $ac_status); }; } &&
11429
 
         { ac_try='test -s conftest$ac_exeext'
11430
 
  { (case "(($ac_try" in
11431
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432
 
  *) ac_try_echo=$ac_try;;
11433
 
esac
11434
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435
 
  (eval "$ac_try") 2>&5
11436
 
  ac_status=$?
11437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438
 
  (exit $ac_status); }; }; then
11439
 
  ac_cv_lib_dld_dld_link=yes
11440
 
else
11441
 
  echo "$as_me: failed program was:" >&5
11442
 
sed 's/^/| /' conftest.$ac_ext >&5
11443
 
 
11444
 
        ac_cv_lib_dld_dld_link=no
11445
 
fi
11446
 
 
11447
 
rm -f conftest.err conftest.$ac_objext \
11448
 
      conftest$ac_exeext conftest.$ac_ext
11449
 
LIBS=$ac_check_lib_save_LIBS
11450
 
fi
11451
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11452
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11453
 
if test $ac_cv_lib_dld_dld_link = yes; then
11454
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11455
 
fi
11456
 
 
11457
 
              
11458
 
fi
11459
 
 
11460
 
            
11461
 
fi
11462
 
 
11463
 
          
11464
 
fi
11465
 
 
11466
 
        
11467
 
fi
11468
 
 
11469
 
      
11470
 
fi
11471
 
 
11472
 
    ;;
11473
 
  esac
11474
 
 
11475
 
  if test "x$lt_cv_dlopen" != xno; then
11476
 
    enable_dlopen=yes
11477
 
  else
11478
 
    enable_dlopen=no
11479
 
  fi
11480
 
 
11481
 
  case $lt_cv_dlopen in
11482
 
  dlopen)
11483
 
    save_CPPFLAGS="$CPPFLAGS"
11484
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11485
 
 
11486
 
    save_LDFLAGS="$LDFLAGS"
11487
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11488
 
 
11489
 
    save_LIBS="$LIBS"
11490
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
11491
 
 
11492
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11493
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11494
 
if test "${lt_cv_dlopen_self+set}" = set; then
11495
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11496
 
else
11497
 
          if test "$cross_compiling" = yes; then :
11498
 
  lt_cv_dlopen_self=cross
11499
 
else
11500
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11501
 
  lt_status=$lt_dlunknown
11502
 
  cat > conftest.$ac_ext <<EOF
11503
 
#line __oline__ "configure"
11504
 
#include "confdefs.h"
11505
 
 
11506
 
#if HAVE_DLFCN_H
11507
 
#include <dlfcn.h>
11508
 
#endif
11509
 
 
11510
 
#include <stdio.h>
11511
 
 
11512
 
#ifdef RTLD_GLOBAL
11513
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11514
 
#else
11515
 
#  ifdef DL_GLOBAL
11516
 
#    define LT_DLGLOBAL         DL_GLOBAL
11517
 
#  else
11518
 
#    define LT_DLGLOBAL         0
11519
 
#  endif
11520
 
#endif
11521
 
 
11522
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11523
 
   find out it does not work in some platform. */
11524
 
#ifndef LT_DLLAZY_OR_NOW
11525
 
#  ifdef RTLD_LAZY
11526
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11527
 
#  else
11528
 
#    ifdef DL_LAZY
11529
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11530
 
#    else
11531
 
#      ifdef RTLD_NOW
11532
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11533
 
#      else
11534
 
#        ifdef DL_NOW
11535
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11536
 
#        else
11537
 
#          define LT_DLLAZY_OR_NOW      0
11538
 
#        endif
11539
 
#      endif
11540
 
#    endif
11541
 
#  endif
11542
 
#endif
11543
 
 
11544
 
#ifdef __cplusplus
11545
 
extern "C" void exit (int);
11546
 
#endif
11547
 
 
11548
 
void fnord() { int i=42;}
11549
 
int main ()
11550
 
{
11551
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11552
 
  int status = $lt_dlunknown;
11553
 
 
11554
 
  if (self)
11555
 
    {
11556
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11557
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11558
 
      /* dlclose (self); */
11559
 
    }
11560
 
  else
11561
 
    puts (dlerror ());
11562
 
 
11563
 
    exit (status);
11564
 
}
11565
 
EOF
11566
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567
 
  (eval $ac_link) 2>&5
11568
 
  ac_status=$?
11569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11571
 
    (./conftest; exit; ) >&5 2>/dev/null
11572
 
    lt_status=$?
11573
 
    case x$lt_status in
11574
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11575
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11576
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11577
 
    esac
11578
 
  else :
11579
 
    # compilation failed
11580
 
    lt_cv_dlopen_self=no
11581
 
  fi
11582
 
fi
11583
 
rm -fr conftest*
11584
 
 
11585
 
    
11586
 
fi
11587
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11588
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11589
 
 
11590
 
    if test "x$lt_cv_dlopen_self" = xyes; then
11591
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11592
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11593
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11594
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
11595
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11596
 
else
11597
 
          if test "$cross_compiling" = yes; then :
11598
 
  lt_cv_dlopen_self_static=cross
11599
 
else
11600
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601
 
  lt_status=$lt_dlunknown
11602
 
  cat > conftest.$ac_ext <<EOF
11603
 
#line __oline__ "configure"
11604
 
#include "confdefs.h"
11605
 
 
11606
 
#if HAVE_DLFCN_H
11607
 
#include <dlfcn.h>
11608
 
#endif
11609
 
 
11610
 
#include <stdio.h>
11611
 
 
11612
 
#ifdef RTLD_GLOBAL
11613
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11614
 
#else
11615
 
#  ifdef DL_GLOBAL
11616
 
#    define LT_DLGLOBAL         DL_GLOBAL
11617
 
#  else
11618
 
#    define LT_DLGLOBAL         0
11619
 
#  endif
11620
 
#endif
11621
 
 
11622
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623
 
   find out it does not work in some platform. */
11624
 
#ifndef LT_DLLAZY_OR_NOW
11625
 
#  ifdef RTLD_LAZY
11626
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11627
 
#  else
11628
 
#    ifdef DL_LAZY
11629
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11630
 
#    else
11631
 
#      ifdef RTLD_NOW
11632
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11633
 
#      else
11634
 
#        ifdef DL_NOW
11635
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11636
 
#        else
11637
 
#          define LT_DLLAZY_OR_NOW      0
11638
 
#        endif
11639
 
#      endif
11640
 
#    endif
11641
 
#  endif
11642
 
#endif
11643
 
 
11644
 
#ifdef __cplusplus
11645
 
extern "C" void exit (int);
11646
 
#endif
11647
 
 
11648
 
void fnord() { int i=42;}
11649
 
int main ()
11650
 
{
11651
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11652
 
  int status = $lt_dlunknown;
11653
 
 
11654
 
  if (self)
11655
 
    {
11656
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11657
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11658
 
      /* dlclose (self); */
11659
 
    }
11660
 
  else
11661
 
    puts (dlerror ());
11662
 
 
11663
 
    exit (status);
11664
 
}
11665
 
EOF
11666
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11667
 
  (eval $ac_link) 2>&5
11668
 
  ac_status=$?
11669
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11671
 
    (./conftest; exit; ) >&5 2>/dev/null
11672
 
    lt_status=$?
11673
 
    case x$lt_status in
11674
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11675
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11676
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11677
 
    esac
11678
 
  else :
11679
 
    # compilation failed
11680
 
    lt_cv_dlopen_self_static=no
11681
 
  fi
11682
 
fi
11683
 
rm -fr conftest*
11684
 
 
11685
 
      
11686
 
fi
11687
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11688
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11689
 
    fi
11690
 
 
11691
 
    CPPFLAGS="$save_CPPFLAGS"
11692
 
    LDFLAGS="$save_LDFLAGS"
11693
 
    LIBS="$save_LIBS"
11694
 
    ;;
11695
 
  esac
11696
 
 
11697
 
  case $lt_cv_dlopen_self in
11698
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11699
 
  *) enable_dlopen_self=unknown ;;
11700
 
  esac
11701
 
 
11702
 
  case $lt_cv_dlopen_self_static in
11703
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11704
 
  *) enable_dlopen_self_static=unknown ;;
11705
 
  esac
11706
 
fi
11707
 
 
11708
 
 
11709
 
# Report which library types will actually be built
11710
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11711
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11712
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11713
 
echo "${ECHO_T}$can_build_shared" >&6; }
11714
 
 
11715
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11716
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11717
 
test "$can_build_shared" = "no" && enable_shared=no
11718
 
 
11719
 
# On AIX, shared libraries and static libraries use the same namespace, and
11720
 
# are all built from PIC.
11721
 
case $host_os in
11722
 
aix3*)
11723
 
  test "$enable_shared" = yes && enable_static=no
11724
 
  if test -n "$RANLIB"; then
11725
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11726
 
    postinstall_cmds='$RANLIB $lib'
11727
 
  fi
11728
 
  ;;
11729
 
 
11730
 
aix4* | aix5*)
11731
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11732
 
    test "$enable_shared" = yes && enable_static=no
11733
 
  fi
11734
 
    ;;
11735
 
esac
11736
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11737
 
echo "${ECHO_T}$enable_shared" >&6; }
11738
 
 
11739
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11740
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11741
 
# Make sure either enable_shared or enable_static is yes.
11742
 
test "$enable_shared" = yes || enable_static=yes
11743
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11744
 
echo "${ECHO_T}$enable_static" >&6; }
11745
 
 
11746
 
# The else clause should only fire when bootstrapping the
11747
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
11748
 
# with your package, and you will get complaints that there are
11749
 
# no rules to generate ltmain.sh.
11750
 
if test -f "$ltmain"; then
11751
 
  # See if we are running on zsh, and set the options which allow our commands through
11752
 
  # without removal of \ escapes.
11753
 
  if test -n "${ZSH_VERSION+set}" ; then
11754
 
    setopt NO_GLOB_SUBST
11755
 
  fi
11756
 
  # Now quote all the things that may contain metacharacters while being
11757
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11758
 
  # variables and quote the copies for generation of the libtool script.
11759
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11760
 
    SED SHELL STRIP \
11761
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11762
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11763
 
    deplibs_check_method reload_flag reload_cmds need_locks \
11764
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11765
 
    lt_cv_sys_global_symbol_to_c_name_address \
11766
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11767
 
    old_postinstall_cmds old_postuninstall_cmds \
11768
 
    compiler \
11769
 
    CC \
11770
 
    LD \
11771
 
    lt_prog_compiler_wl \
11772
 
    lt_prog_compiler_pic \
11773
 
    lt_prog_compiler_static \
11774
 
    lt_prog_compiler_no_builtin_flag \
11775
 
    export_dynamic_flag_spec \
11776
 
    thread_safe_flag_spec \
11777
 
    whole_archive_flag_spec \
11778
 
    enable_shared_with_static_runtimes \
11779
 
    old_archive_cmds \
11780
 
    old_archive_from_new_cmds \
11781
 
    predep_objects \
11782
 
    postdep_objects \
11783
 
    predeps \
11784
 
    postdeps \
11785
 
    compiler_lib_search_path \
11786
 
    archive_cmds \
11787
 
    archive_expsym_cmds \
11788
 
    postinstall_cmds \
11789
 
    postuninstall_cmds \
11790
 
    old_archive_from_expsyms_cmds \
11791
 
    allow_undefined_flag \
11792
 
    no_undefined_flag \
11793
 
    export_symbols_cmds \
11794
 
    hardcode_libdir_flag_spec \
11795
 
    hardcode_libdir_flag_spec_ld \
11796
 
    hardcode_libdir_separator \
11797
 
    hardcode_automatic \
11798
 
    module_cmds \
11799
 
    module_expsym_cmds \
11800
 
    lt_cv_prog_compiler_c_o \
11801
 
    exclude_expsyms \
11802
 
    include_expsyms; do
11803
 
 
11804
 
    case $var in
11805
 
    old_archive_cmds | \
11806
 
    old_archive_from_new_cmds | \
11807
 
    archive_cmds | \
11808
 
    archive_expsym_cmds | \
11809
 
    module_cmds | \
11810
 
    module_expsym_cmds | \
11811
 
    old_archive_from_expsyms_cmds | \
11812
 
    export_symbols_cmds | \
11813
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11814
 
    postinstall_cmds | postuninstall_cmds | \
11815
 
    old_postinstall_cmds | old_postuninstall_cmds | \
11816
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11817
 
      # Double-quote double-evaled strings.
11818
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11819
 
      ;;
11820
 
    *)
11821
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11822
 
      ;;
11823
 
    esac
11824
 
  done
11825
 
 
11826
 
  case $lt_echo in
11827
 
  *'\$0 --fallback-echo"')
11828
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11829
 
    ;;
11830
 
  esac
11831
 
 
11832
 
cfgfile="${ofile}T"
11833
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11834
 
  $rm -f "$cfgfile"
11835
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
11836
 
echo "$as_me: creating $ofile" >&6;}
11837
 
 
11838
 
  cat <<__EOF__ >> "$cfgfile"
11839
 
#! $SHELL
11840
 
 
11841
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11842
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11843
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11844
 
#
11845
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11846
 
# Free Software Foundation, Inc.
11847
 
#
11848
 
# This file is part of GNU Libtool:
11849
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11850
 
#
11851
 
# This program is free software; you can redistribute it and/or modify
11852
 
# it under the terms of the GNU General Public License as published by
11853
 
# the Free Software Foundation; either version 2 of the License, or
11854
 
# (at your option) any later version.
11855
 
#
11856
 
# This program is distributed in the hope that it will be useful, but
11857
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
11858
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11859
 
# General Public License for more details.
11860
 
#
11861
 
# You should have received a copy of the GNU General Public License
11862
 
# along with this program; if not, write to the Free Software
11863
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11864
 
#
11865
 
# As a special exception to the GNU General Public License, if you
11866
 
# distribute this file as part of a program that contains a
11867
 
# configuration script generated by Autoconf, you may include it under
11868
 
# the same distribution terms that you use for the rest of that program.
11869
 
 
11870
 
# A sed program that does not truncate output.
11871
 
SED=$lt_SED
11872
 
 
11873
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11874
 
Xsed="$SED -e 1s/^X//"
11875
 
 
11876
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
11877
 
# if CDPATH is set.
11878
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11879
 
 
11880
 
# The names of the tagged configurations supported by this script.
11881
 
available_tags=
11882
 
 
11883
 
# ### BEGIN LIBTOOL CONFIG
11884
 
 
11885
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11886
 
 
11887
 
# Shell to use when invoking shell scripts.
11888
 
SHELL=$lt_SHELL
11889
 
 
11890
 
# Whether or not to build shared libraries.
11891
 
build_libtool_libs=$enable_shared
11892
 
 
11893
 
# Whether or not to build static libraries.
11894
 
build_old_libs=$enable_static
11895
 
 
11896
 
# Whether or not to add -lc for building shared libraries.
11897
 
build_libtool_need_lc=$archive_cmds_need_lc
11898
 
 
11899
 
# Whether or not to disallow shared libs when runtime libs are static
11900
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11901
 
 
11902
 
# Whether or not to optimize for fast installation.
11903
 
fast_install=$enable_fast_install
11904
 
 
11905
 
# The host system.
11906
 
host_alias=$host_alias
11907
 
host=$host
11908
 
host_os=$host_os
11909
 
 
11910
 
# The build system.
11911
 
build_alias=$build_alias
11912
 
build=$build
11913
 
build_os=$build_os
11914
 
 
11915
 
# An echo program that does not interpret backslashes.
11916
 
echo=$lt_echo
11917
 
 
11918
 
# The archiver.
11919
 
AR=$lt_AR
11920
 
AR_FLAGS=$lt_AR_FLAGS
11921
 
 
11922
 
# A C compiler.
11923
 
LTCC=$lt_LTCC
11924
 
 
11925
 
# LTCC compiler flags.
11926
 
LTCFLAGS=$lt_LTCFLAGS
11927
 
 
11928
 
# A language-specific compiler.
11929
 
CC=$lt_compiler
11930
 
 
11931
 
# Is the compiler the GNU C compiler?
11932
 
with_gcc=$GCC
11933
 
 
11934
 
# An ERE matcher.
11935
 
EGREP=$lt_EGREP
11936
 
 
11937
 
# The linker used to build libraries.
11938
 
LD=$lt_LD
11939
 
 
11940
 
# Whether we need hard or soft links.
11941
 
LN_S=$lt_LN_S
11942
 
 
11943
 
# A BSD-compatible nm program.
11944
 
NM=$lt_NM
11945
 
 
11946
 
# A symbol stripping program
11947
 
STRIP=$lt_STRIP
11948
 
 
11949
 
# Used to examine libraries when file_magic_cmd begins "file"
11950
 
MAGIC_CMD=$MAGIC_CMD
11951
 
 
11952
 
# Used on cygwin: DLL creation program.
11953
 
DLLTOOL="$DLLTOOL"
11954
 
 
11955
 
# Used on cygwin: object dumper.
11956
 
OBJDUMP="$OBJDUMP"
11957
 
 
11958
 
# Used on cygwin: assembler.
11959
 
AS="$AS"
11960
 
 
11961
 
# The name of the directory that contains temporary libtool files.
11962
 
objdir=$objdir
11963
 
 
11964
 
# How to create reloadable object files.
11965
 
reload_flag=$lt_reload_flag
11966
 
reload_cmds=$lt_reload_cmds
11967
 
 
11968
 
# How to pass a linker flag through the compiler.
11969
 
wl=$lt_lt_prog_compiler_wl
11970
 
 
11971
 
# Object file suffix (normally "o").
11972
 
objext="$ac_objext"
11973
 
 
11974
 
# Old archive suffix (normally "a").
11975
 
libext="$libext"
11976
 
 
11977
 
# Shared library suffix (normally ".so").
11978
 
shrext_cmds='$shrext_cmds'
11979
 
 
11980
 
# Executable file suffix (normally "").
11981
 
exeext="$exeext"
11982
 
 
11983
 
# Additional compiler flags for building library objects.
11984
 
pic_flag=$lt_lt_prog_compiler_pic
11985
 
pic_mode=$pic_mode
11986
 
 
11987
 
# What is the maximum length of a command?
11988
 
max_cmd_len=$lt_cv_sys_max_cmd_len
11989
 
 
11990
 
# Does compiler simultaneously support -c and -o options?
11991
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11992
 
 
11993
 
# Must we lock files when doing compilation?
11994
 
need_locks=$lt_need_locks
11995
 
 
11996
 
# Do we need the lib prefix for modules?
11997
 
need_lib_prefix=$need_lib_prefix
11998
 
 
11999
 
# Do we need a version for libraries?
12000
 
need_version=$need_version
12001
 
 
12002
 
# Whether dlopen is supported.
12003
 
dlopen_support=$enable_dlopen
12004
 
 
12005
 
# Whether dlopen of programs is supported.
12006
 
dlopen_self=$enable_dlopen_self
12007
 
 
12008
 
# Whether dlopen of statically linked programs is supported.
12009
 
dlopen_self_static=$enable_dlopen_self_static
12010
 
 
12011
 
# Compiler flag to prevent dynamic linking.
12012
 
link_static_flag=$lt_lt_prog_compiler_static
12013
 
 
12014
 
# Compiler flag to turn off builtin functions.
12015
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12016
 
 
12017
 
# Compiler flag to allow reflexive dlopens.
12018
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12019
 
 
12020
 
# Compiler flag to generate shared objects directly from archives.
12021
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12022
 
 
12023
 
# Compiler flag to generate thread-safe objects.
12024
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12025
 
 
12026
 
# Library versioning type.
12027
 
version_type=$version_type
12028
 
 
12029
 
# Format of library name prefix.
12030
 
libname_spec=$lt_libname_spec
12031
 
 
12032
 
# List of archive names.  First name is the real one, the rest are links.
12033
 
# The last name is the one that the linker finds with -lNAME.
12034
 
library_names_spec=$lt_library_names_spec
12035
 
 
12036
 
# The coded name of the library, if different from the real name.
12037
 
soname_spec=$lt_soname_spec
12038
 
 
12039
 
# Commands used to build and install an old-style archive.
12040
 
RANLIB=$lt_RANLIB
12041
 
old_archive_cmds=$lt_old_archive_cmds
12042
 
old_postinstall_cmds=$lt_old_postinstall_cmds
12043
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12044
 
 
12045
 
# Create an old-style archive from a shared archive.
12046
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12047
 
 
12048
 
# Create a temporary old-style archive to link instead of a shared archive.
12049
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12050
 
 
12051
 
# Commands used to build and install a shared archive.
12052
 
archive_cmds=$lt_archive_cmds
12053
 
archive_expsym_cmds=$lt_archive_expsym_cmds
12054
 
postinstall_cmds=$lt_postinstall_cmds
12055
 
postuninstall_cmds=$lt_postuninstall_cmds
12056
 
 
12057
 
# Commands used to build a loadable module (assumed same as above if empty)
12058
 
module_cmds=$lt_module_cmds
12059
 
module_expsym_cmds=$lt_module_expsym_cmds
12060
 
 
12061
 
# Commands to strip libraries.
12062
 
old_striplib=$lt_old_striplib
12063
 
striplib=$lt_striplib
12064
 
 
12065
 
# Dependencies to place before the objects being linked to create a
12066
 
# shared library.
12067
 
predep_objects=$lt_predep_objects
12068
 
 
12069
 
# Dependencies to place after the objects being linked to create a
12070
 
# shared library.
12071
 
postdep_objects=$lt_postdep_objects
12072
 
 
12073
 
# Dependencies to place before the objects being linked to create a
12074
 
# shared library.
12075
 
predeps=$lt_predeps
12076
 
 
12077
 
# Dependencies to place after the objects being linked to create a
12078
 
# shared library.
12079
 
postdeps=$lt_postdeps
12080
 
 
12081
 
# The library search path used internally by the compiler when linking
12082
 
# a shared library.
12083
 
compiler_lib_search_path=$lt_compiler_lib_search_path
12084
 
 
12085
 
# Method to check whether dependent libraries are shared objects.
12086
 
deplibs_check_method=$lt_deplibs_check_method
12087
 
 
12088
 
# Command to use when deplibs_check_method == file_magic.
12089
 
file_magic_cmd=$lt_file_magic_cmd
12090
 
 
12091
 
# Flag that allows shared libraries with undefined symbols to be built.
12092
 
allow_undefined_flag=$lt_allow_undefined_flag
12093
 
 
12094
 
# Flag that forces no undefined symbols.
12095
 
no_undefined_flag=$lt_no_undefined_flag
12096
 
 
12097
 
# Commands used to finish a libtool library installation in a directory.
12098
 
finish_cmds=$lt_finish_cmds
12099
 
 
12100
 
# Same as above, but a single script fragment to be evaled but not shown.
12101
 
finish_eval=$lt_finish_eval
12102
 
 
12103
 
# Take the output of nm and produce a listing of raw symbols and C names.
12104
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12105
 
 
12106
 
# Transform the output of nm in a proper C declaration
12107
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12108
 
 
12109
 
# Transform the output of nm in a C name address pair
12110
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12111
 
 
12112
 
# This is the shared library runtime path variable.
12113
 
runpath_var=$runpath_var
12114
 
 
12115
 
# This is the shared library path variable.
12116
 
shlibpath_var=$shlibpath_var
12117
 
 
12118
 
# Is shlibpath searched before the hard-coded library search path?
12119
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12120
 
 
12121
 
# How to hardcode a shared library path into an executable.
12122
 
hardcode_action=$hardcode_action
12123
 
 
12124
 
# Whether we should hardcode library paths into libraries.
12125
 
hardcode_into_libs=$hardcode_into_libs
12126
 
 
12127
 
# Flag to hardcode \$libdir into a binary during linking.
12128
 
# This must work even if \$libdir does not exist.
12129
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12130
 
 
12131
 
# If ld is used when linking, flag to hardcode \$libdir into
12132
 
# a binary during linking. This must work even if \$libdir does
12133
 
# not exist.
12134
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12135
 
 
12136
 
# Whether we need a single -rpath flag with a separated argument.
12137
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12138
 
 
12139
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12140
 
# resulting binary.
12141
 
hardcode_direct=$hardcode_direct
12142
 
 
12143
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12144
 
# resulting binary.
12145
 
hardcode_minus_L=$hardcode_minus_L
12146
 
 
12147
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12148
 
# the resulting binary.
12149
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
12150
 
 
12151
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
12152
 
# and all subsequent libraries and executables linked against it.
12153
 
hardcode_automatic=$hardcode_automatic
12154
 
 
12155
 
# Variables whose values should be saved in libtool wrapper scripts and
12156
 
# restored at relink time.
12157
 
variables_saved_for_relink="$variables_saved_for_relink"
12158
 
 
12159
 
# Whether libtool must link a program against all its dependency libraries.
12160
 
link_all_deplibs=$link_all_deplibs
12161
 
 
12162
 
# Compile-time system search path for libraries
12163
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12164
 
 
12165
 
# Run-time system search path for libraries
12166
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12167
 
 
12168
 
# Fix the shell variable \$srcfile for the compiler.
12169
 
fix_srcfile_path="$fix_srcfile_path"
12170
 
 
12171
 
# Set to yes if exported symbols are required.
12172
 
always_export_symbols=$always_export_symbols
12173
 
 
12174
 
# The commands to list exported symbols.
12175
 
export_symbols_cmds=$lt_export_symbols_cmds
12176
 
 
12177
 
# The commands to extract the exported symbol list from a shared archive.
12178
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12179
 
 
12180
 
# Symbols that should not be listed in the preloaded symbols.
12181
 
exclude_expsyms=$lt_exclude_expsyms
12182
 
 
12183
 
# Symbols that must always be exported.
12184
 
include_expsyms=$lt_include_expsyms
12185
 
 
12186
 
# ### END LIBTOOL CONFIG
12187
 
 
12188
 
__EOF__
12189
 
 
12190
 
 
12191
 
  case $host_os in
12192
 
  aix3*)
12193
 
    cat <<\EOF >> "$cfgfile"
12194
 
 
12195
 
# AIX sometimes has problems with the GCC collect2 program.  For some
12196
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
12197
 
# vanish in a puff of smoke.
12198
 
if test "X${COLLECT_NAMES+set}" != Xset; then
12199
 
  COLLECT_NAMES=
12200
 
  export COLLECT_NAMES
12201
 
fi
12202
 
EOF
12203
 
    ;;
12204
 
  esac
12205
 
 
12206
 
  # We use sed instead of cat because bash on DJGPP gets confused if
12207
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12208
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
12209
 
  # is reportedly fixed, but why not run on old versions too?
12210
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12211
 
 
12212
 
  mv -f "$cfgfile" "$ofile" || \
12213
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12214
 
  chmod +x "$ofile"
12215
 
 
12216
 
else
12217
 
  # If there is no Makefile yet, we rely on a make rule to execute
12218
 
  # `config.status --recheck' to rerun these tests and create the
12219
 
  # libtool script then.
12220
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12221
 
  if test -f "$ltmain_in"; then
12222
 
    test -f Makefile && make "$ltmain"
12223
 
  fi
12224
 
fi
12225
 
 
12226
 
 
12227
 
ac_ext=c
12228
 
ac_cpp='$CPP $CPPFLAGS'
12229
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12230
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12231
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12232
 
 
12233
 
CC="$lt_save_CC"
12234
 
 
12235
 
 
12236
 
# Check whether --with-tags was given.
12237
 
if test "${with_tags+set}" = set; then
12238
 
  withval=$with_tags; tagnames="$withval"
12239
 
fi
12240
 
 
12241
 
 
12242
 
if test -f "$ltmain" && test -n "$tagnames"; then
12243
 
  if test ! -f "${ofile}"; then
12244
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12245
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12246
 
  fi
12247
 
 
12248
 
  if test -z "$LTCC"; then
12249
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12250
 
    if test -z "$LTCC"; then
12251
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12252
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12253
 
    else
12254
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12255
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12256
 
    fi
12257
 
  fi
12258
 
  if test -z "$LTCFLAGS"; then
12259
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12260
 
  fi
12261
 
 
12262
 
  # Extract list of available tagged configurations in $ofile.
12263
 
  # Note that this assumes the entire list is on one line.
12264
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12265
 
 
12266
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12267
 
  for tagname in $tagnames; do
12268
 
    IFS="$lt_save_ifs"
12269
 
    # Check whether tagname contains only valid characters
12270
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12271
 
    "") ;;
12272
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12273
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12274
 
   { (exit 1); exit 1; }; }
12275
 
        ;;
12276
 
    esac
12277
 
 
12278
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12279
 
    then
12280
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12281
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12282
 
   { (exit 1); exit 1; }; }
12283
 
    fi
12284
 
 
12285
 
    # Update the list of available tags.
12286
 
    if test -n "$tagname"; then
12287
 
      echo appending configuration tag \"$tagname\" to $ofile
12288
 
 
12289
 
      case $tagname in
12290
 
      CXX)
12291
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12292
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12293
 
            (test "X$CXX" != "Xg++"))) ; then
12294
 
          ac_ext=cpp
12295
 
ac_cpp='$CXXCPP $CPPFLAGS'
12296
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12299
 
 
12300
 
 
12301
 
 
12302
 
 
12303
 
archive_cmds_need_lc_CXX=no
12304
 
allow_undefined_flag_CXX=
12305
 
always_export_symbols_CXX=no
12306
 
archive_expsym_cmds_CXX=
12307
 
export_dynamic_flag_spec_CXX=
12308
 
hardcode_direct_CXX=no
12309
 
hardcode_libdir_flag_spec_CXX=
12310
 
hardcode_libdir_flag_spec_ld_CXX=
12311
 
hardcode_libdir_separator_CXX=
12312
 
hardcode_minus_L_CXX=no
12313
 
hardcode_shlibpath_var_CXX=unsupported
12314
 
hardcode_automatic_CXX=no
12315
 
module_cmds_CXX=
12316
 
module_expsym_cmds_CXX=
12317
 
link_all_deplibs_CXX=unknown
12318
 
old_archive_cmds_CXX=$old_archive_cmds
12319
 
no_undefined_flag_CXX=
12320
 
whole_archive_flag_spec_CXX=
12321
 
enable_shared_with_static_runtimes_CXX=no
12322
 
 
12323
 
# Dependencies to place before and after the object being linked:
12324
 
predep_objects_CXX=
12325
 
postdep_objects_CXX=
12326
 
predeps_CXX=
12327
 
postdeps_CXX=
12328
 
compiler_lib_search_path_CXX=
12329
 
 
12330
 
# Source file extension for C++ test sources.
12331
 
ac_ext=cpp
12332
 
 
12333
 
# Object file extension for compiled C++ test sources.
12334
 
objext=o
12335
 
objext_CXX=$objext
12336
 
 
12337
 
# Code to be used in simple compile tests
12338
 
lt_simple_compile_test_code="int some_variable = 0;\n"
12339
 
 
12340
 
# Code to be used in simple link tests
12341
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12342
 
 
12343
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12344
 
 
12345
 
# If no C compiler was specified, use CC.
12346
 
LTCC=${LTCC-"$CC"}
12347
 
 
12348
 
# If no C compiler flags were specified, use CFLAGS.
12349
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12350
 
 
12351
 
# Allow CC to be a program name with arguments.
12352
 
compiler=$CC
12353
 
 
12354
 
 
12355
 
# save warnings/boilerplate of simple test code
12356
 
ac_outfile=conftest.$ac_objext
12357
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12358
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12359
 
_lt_compiler_boilerplate=`cat conftest.err`
12360
 
$rm conftest*
12361
 
 
12362
 
ac_outfile=conftest.$ac_objext
12363
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12364
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12365
 
_lt_linker_boilerplate=`cat conftest.err`
12366
 
$rm conftest*
12367
 
 
12368
 
 
12369
 
# Allow CC to be a program name with arguments.
12370
 
lt_save_CC=$CC
12371
 
lt_save_LD=$LD
12372
 
lt_save_GCC=$GCC
12373
 
GCC=$GXX
12374
 
lt_save_with_gnu_ld=$with_gnu_ld
12375
 
lt_save_path_LD=$lt_cv_path_LD
12376
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12377
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12378
 
else
12379
 
  $as_unset lt_cv_prog_gnu_ld
12380
 
fi
12381
 
if test -n "${lt_cv_path_LDCXX+set}"; then
12382
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
12383
 
else
12384
 
  $as_unset lt_cv_path_LD
12385
 
fi
12386
 
test -z "${LDCXX+set}" || LD=$LDCXX
12387
 
CC=${CXX-"c++"}
12388
 
compiler=$CC
12389
 
compiler_CXX=$CC
12390
 
for cc_temp in $compiler""; do
12391
 
  case $cc_temp in
12392
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12393
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12394
 
    \-*) ;;
12395
 
    *) break;;
12396
 
  esac
12397
 
done
12398
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12399
 
 
12400
 
 
12401
 
# We don't want -fno-exception wen compiling C++ code, so set the
12402
 
# no_builtin_flag separately
12403
 
if test "$GXX" = yes; then
12404
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12405
 
else
12406
 
  lt_prog_compiler_no_builtin_flag_CXX=
12407
 
fi
12408
 
 
12409
 
if test "$GXX" = yes; then
12410
 
  # Set up default GNU C++ configuration
12411
 
 
12412
 
  
12413
 
# Check whether --with-gnu-ld was given.
12414
 
if test "${with_gnu_ld+set}" = set; then
12415
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12416
 
else
12417
 
  with_gnu_ld=no
12418
 
fi
12419
 
 
12420
 
ac_prog=ld
12421
 
if test "$GCC" = yes; then
12422
 
  # Check if gcc -print-prog-name=ld gives a path.
12423
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12424
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12425
 
  case $host in
12426
 
  *-*-mingw*)
12427
 
    # gcc leaves a trailing carriage return which upsets mingw
12428
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12429
 
  *)
12430
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12431
 
  esac
12432
 
  case $ac_prog in
12433
 
    # Accept absolute paths.
12434
 
    [\\/]* | ?:[\\/]*)
12435
 
      re_direlt='/[^/][^/]*/\.\./'
12436
 
      # Canonicalize the pathname of ld
12437
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12438
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12439
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12440
 
      done
12441
 
      test -z "$LD" && LD="$ac_prog"
12442
 
      ;;
12443
 
  "")
12444
 
    # If it fails, then pretend we aren't using GCC.
12445
 
    ac_prog=ld
12446
 
    ;;
12447
 
  *)
12448
 
    # If it is relative, then search for the first ld in PATH.
12449
 
    with_gnu_ld=unknown
12450
 
    ;;
12451
 
  esac
12452
 
elif test "$with_gnu_ld" = yes; then
12453
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12454
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12455
 
else
12456
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12457
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12458
 
fi
12459
 
if test "${lt_cv_path_LD+set}" = set; then
12460
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12461
 
else
12462
 
  if test -z "$LD"; then
12463
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12464
 
  for ac_dir in $PATH; do
12465
 
    IFS="$lt_save_ifs"
12466
 
    test -z "$ac_dir" && ac_dir=.
12467
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12468
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
12469
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
12470
 
      # but apparently some variants of GNU ld only accept -v.
12471
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
12472
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12473
 
      *GNU* | *'with BFD'*)
12474
 
        test "$with_gnu_ld" != no && break
12475
 
        ;;
12476
 
      *)
12477
 
        test "$with_gnu_ld" != yes && break
12478
 
        ;;
12479
 
      esac
12480
 
    fi
12481
 
  done
12482
 
  IFS="$lt_save_ifs"
12483
 
else
12484
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12485
 
fi
12486
 
fi
12487
 
 
12488
 
LD="$lt_cv_path_LD"
12489
 
if test -n "$LD"; then
12490
 
  { echo "$as_me:$LINENO: result: $LD" >&5
12491
 
echo "${ECHO_T}$LD" >&6; }
12492
 
else
12493
 
  { echo "$as_me:$LINENO: result: no" >&5
12494
 
echo "${ECHO_T}no" >&6; }
12495
 
fi
12496
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12497
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12498
 
   { (exit 1); exit 1; }; }
12499
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12500
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12501
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12502
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12503
 
else
12504
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12505
 
case `$LD -v 2>&1 </dev/null` in
12506
 
*GNU* | *'with BFD'*)
12507
 
  lt_cv_prog_gnu_ld=yes
12508
 
  ;;
12509
 
*)
12510
 
  lt_cv_prog_gnu_ld=no
12511
 
  ;;
12512
 
esac
12513
 
fi
12514
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12515
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12516
 
with_gnu_ld=$lt_cv_prog_gnu_ld
12517
 
 
12518
 
 
12519
 
 
12520
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12521
 
  # archiving commands below assume that GNU ld is being used.
12522
 
  if test "$with_gnu_ld" = yes; then
12523
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12524
 
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12525
 
 
12526
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12527
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12528
 
 
12529
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
12530
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12531
 
    #     investigate it a little bit more. (MM)
12532
 
    wlarc='${wl}'
12533
 
 
12534
 
    # ancient GNU ld didn't support --whole-archive et. al.
12535
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12536
 
        grep 'no-whole-archive' > /dev/null; then
12537
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12538
 
    else
12539
 
      whole_archive_flag_spec_CXX=
12540
 
    fi
12541
 
  else
12542
 
    with_gnu_ld=no
12543
 
    wlarc=
12544
 
 
12545
 
    # A generic and very simple default shared library creation
12546
 
    # command for GNU C++ for the case where it uses the native
12547
 
    # linker, instead of GNU ld.  If possible, this setting should
12548
 
    # overridden to take advantage of the native linker features on
12549
 
    # the platform it is being used on.
12550
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12551
 
  fi
12552
 
 
12553
 
  # Commands to make compiler produce verbose output that lists
12554
 
  # what "hidden" libraries, object files and flags are used when
12555
 
  # linking a shared library.
12556
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12557
 
 
12558
 
else
12559
 
  GXX=no
12560
 
  with_gnu_ld=no
12561
 
  wlarc=
12562
 
fi
12563
 
 
12564
 
# PORTME: fill in a description of your system's C++ link characteristics
12565
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12566
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12567
 
ld_shlibs_CXX=yes
12568
 
case $host_os in
12569
 
  aix3*)
12570
 
    # FIXME: insert proper C++ library support
12571
 
    ld_shlibs_CXX=no
12572
 
    ;;
12573
 
  aix4* | aix5*)
12574
 
    if test "$host_cpu" = ia64; then
12575
 
      # On IA64, the linker does run time linking by default, so we don't
12576
 
      # have to do anything special.
12577
 
      aix_use_runtimelinking=no
12578
 
      exp_sym_flag='-Bexport'
12579
 
      no_entry_flag=""
12580
 
    else
12581
 
      aix_use_runtimelinking=no
12582
 
 
12583
 
      # Test if we are trying to use run time linking or normal
12584
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12585
 
      # need to do runtime linking.
12586
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12587
 
        for ld_flag in $LDFLAGS; do
12588
 
          case $ld_flag in
12589
 
          *-brtl*)
12590
 
            aix_use_runtimelinking=yes
12591
 
            break
12592
 
            ;;
12593
 
          esac
12594
 
        done
12595
 
        ;;
12596
 
      esac
12597
 
 
12598
 
      exp_sym_flag='-bexport'
12599
 
      no_entry_flag='-bnoentry'
12600
 
    fi
12601
 
 
12602
 
    # When large executables or shared objects are built, AIX ld can
12603
 
    # have problems creating the table of contents.  If linking a library
12604
 
    # or program results in "error TOC overflow" add -mminimal-toc to
12605
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12606
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12607
 
 
12608
 
    archive_cmds_CXX=''
12609
 
    hardcode_direct_CXX=yes
12610
 
    hardcode_libdir_separator_CXX=':'
12611
 
    link_all_deplibs_CXX=yes
12612
 
 
12613
 
    if test "$GXX" = yes; then
12614
 
      case $host_os in aix4.[012]|aix4.[012].*)
12615
 
      # We only want to do this on AIX 4.2 and lower, the check
12616
 
      # below for broken collect2 doesn't work under 4.3+
12617
 
        collect2name=`${CC} -print-prog-name=collect2`
12618
 
        if test -f "$collect2name" && \
12619
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
12620
 
        then
12621
 
          # We have reworked collect2
12622
 
          hardcode_direct_CXX=yes
12623
 
        else
12624
 
          # We have old collect2
12625
 
          hardcode_direct_CXX=unsupported
12626
 
          # It fails to find uninstalled libraries when the uninstalled
12627
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
12628
 
          # to unsupported forces relinking
12629
 
          hardcode_minus_L_CXX=yes
12630
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
12631
 
          hardcode_libdir_separator_CXX=
12632
 
        fi
12633
 
        ;;
12634
 
      esac
12635
 
      shared_flag='-shared'
12636
 
      if test "$aix_use_runtimelinking" = yes; then
12637
 
        shared_flag="$shared_flag "'${wl}-G'
12638
 
      fi
12639
 
    else
12640
 
      # not using gcc
12641
 
      if test "$host_cpu" = ia64; then
12642
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12643
 
        # chokes on -Wl,-G. The following line is correct:
12644
 
        shared_flag='-G'
12645
 
      else
12646
 
        if test "$aix_use_runtimelinking" = yes; then
12647
 
          shared_flag='${wl}-G'
12648
 
        else
12649
 
          shared_flag='${wl}-bM:SRE'
12650
 
        fi
12651
 
      fi
12652
 
    fi
12653
 
 
12654
 
    # It seems that -bexpall does not export symbols beginning with
12655
 
    # underscore (_), so it is better to generate a list of symbols to export.
12656
 
    always_export_symbols_CXX=yes
12657
 
    if test "$aix_use_runtimelinking" = yes; then
12658
 
      # Warning - without using the other runtime loading flags (-brtl),
12659
 
      # -berok will link without error, but may produce a broken library.
12660
 
      allow_undefined_flag_CXX='-berok'
12661
 
      # Determine the default libpath from the value encoded in an empty executable.
12662
 
      cat >conftest.$ac_ext <<_ACEOF
12663
 
/* confdefs.h.  */
12664
 
_ACEOF
12665
 
cat confdefs.h >>conftest.$ac_ext
12666
 
cat >>conftest.$ac_ext <<_ACEOF
12667
 
/* end confdefs.h.  */
12668
 
 
12669
 
int
12670
 
main ()
12671
 
{
12672
 
 
12673
 
  ;
12674
 
  return 0;
12675
 
}
12676
 
_ACEOF
12677
 
rm -f conftest.$ac_objext conftest$ac_exeext
12678
 
if { (ac_try="$ac_link"
12679
 
case "(($ac_try" in
12680
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681
 
  *) ac_try_echo=$ac_try;;
12682
 
esac
12683
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684
 
  (eval "$ac_link") 2>conftest.er1
12685
 
  ac_status=$?
12686
 
  grep -v '^ *+' conftest.er1 >conftest.err
12687
 
  rm -f conftest.er1
12688
 
  cat conftest.err >&5
12689
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690
 
  (exit $ac_status); } &&
12691
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12692
 
  { (case "(($ac_try" in
12693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694
 
  *) ac_try_echo=$ac_try;;
12695
 
esac
12696
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697
 
  (eval "$ac_try") 2>&5
12698
 
  ac_status=$?
12699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700
 
  (exit $ac_status); }; } &&
12701
 
         { ac_try='test -s conftest$ac_exeext'
12702
 
  { (case "(($ac_try" in
12703
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704
 
  *) ac_try_echo=$ac_try;;
12705
 
esac
12706
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707
 
  (eval "$ac_try") 2>&5
12708
 
  ac_status=$?
12709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710
 
  (exit $ac_status); }; }; then
12711
 
  
12712
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12713
 
}'`
12714
 
# Check for a 64-bit object if we didn't find anything.
12715
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12716
 
}'`; fi
12717
 
else
12718
 
  echo "$as_me: failed program was:" >&5
12719
 
sed 's/^/| /' conftest.$ac_ext >&5
12720
 
 
12721
 
        
12722
 
fi
12723
 
 
12724
 
rm -f conftest.err conftest.$ac_objext \
12725
 
      conftest$ac_exeext conftest.$ac_ext
12726
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12727
 
 
12728
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12729
 
 
12730
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12731
 
     else
12732
 
      if test "$host_cpu" = ia64; then
12733
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12734
 
        allow_undefined_flag_CXX="-z nodefs"
12735
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12736
 
      else
12737
 
        # Determine the default libpath from the value encoded in an empty executable.
12738
 
        cat >conftest.$ac_ext <<_ACEOF
12739
 
/* confdefs.h.  */
12740
 
_ACEOF
12741
 
cat confdefs.h >>conftest.$ac_ext
12742
 
cat >>conftest.$ac_ext <<_ACEOF
12743
 
/* end confdefs.h.  */
12744
 
 
12745
 
int
12746
 
main ()
12747
 
{
12748
 
 
12749
 
  ;
12750
 
  return 0;
12751
 
}
12752
 
_ACEOF
12753
 
rm -f conftest.$ac_objext conftest$ac_exeext
12754
 
if { (ac_try="$ac_link"
12755
 
case "(($ac_try" in
12756
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757
 
  *) ac_try_echo=$ac_try;;
12758
 
esac
12759
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760
 
  (eval "$ac_link") 2>conftest.er1
12761
 
  ac_status=$?
12762
 
  grep -v '^ *+' conftest.er1 >conftest.err
12763
 
  rm -f conftest.er1
12764
 
  cat conftest.err >&5
12765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766
 
  (exit $ac_status); } &&
12767
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12768
 
  { (case "(($ac_try" in
12769
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770
 
  *) ac_try_echo=$ac_try;;
12771
 
esac
12772
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773
 
  (eval "$ac_try") 2>&5
12774
 
  ac_status=$?
12775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776
 
  (exit $ac_status); }; } &&
12777
 
         { ac_try='test -s conftest$ac_exeext'
12778
 
  { (case "(($ac_try" in
12779
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780
 
  *) ac_try_echo=$ac_try;;
12781
 
esac
12782
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783
 
  (eval "$ac_try") 2>&5
12784
 
  ac_status=$?
12785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786
 
  (exit $ac_status); }; }; then
12787
 
  
12788
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12789
 
}'`
12790
 
# Check for a 64-bit object if we didn't find anything.
12791
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12792
 
}'`; fi
12793
 
else
12794
 
  echo "$as_me: failed program was:" >&5
12795
 
sed 's/^/| /' conftest.$ac_ext >&5
12796
 
 
12797
 
        
12798
 
fi
12799
 
 
12800
 
rm -f conftest.err conftest.$ac_objext \
12801
 
      conftest$ac_exeext conftest.$ac_ext
12802
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12803
 
 
12804
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12805
 
        # Warning - without using the other run time loading flags,
12806
 
        # -berok will link without error, but may produce a broken library.
12807
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
12808
 
        allow_undefined_flag_CXX=' ${wl}-berok'
12809
 
        # Exported symbols can be pulled into shared objects from archives
12810
 
        whole_archive_flag_spec_CXX='$convenience'
12811
 
        archive_cmds_need_lc_CXX=yes
12812
 
        # This is similar to how AIX traditionally builds its shared libraries.
12813
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12814
 
      fi
12815
 
    fi
12816
 
    ;;
12817
 
 
12818
 
  beos*)
12819
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12820
 
      allow_undefined_flag_CXX=unsupported
12821
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12822
 
      # support --undefined.  This deserves some investigation.  FIXME
12823
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12824
 
    else
12825
 
      ld_shlibs_CXX=no
12826
 
    fi
12827
 
    ;;
12828
 
 
12829
 
  chorus*)
12830
 
    case $cc_basename in
12831
 
      *)
12832
 
        # FIXME: insert proper C++ library support
12833
 
        ld_shlibs_CXX=no
12834
 
        ;;
12835
 
    esac
12836
 
    ;;
12837
 
 
12838
 
  cygwin* | mingw* | pw32*)
12839
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12840
 
    # as there is no search path for DLLs.
12841
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
12842
 
    allow_undefined_flag_CXX=unsupported
12843
 
    always_export_symbols_CXX=no
12844
 
    enable_shared_with_static_runtimes_CXX=yes
12845
 
 
12846
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12847
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12848
 
      # If the export-symbols file already is a .def file (1st line
12849
 
      # is EXPORTS), use it as is; otherwise, prepend...
12850
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12851
 
        cp $export_symbols $output_objdir/$soname.def;
12852
 
      else
12853
 
        echo EXPORTS > $output_objdir/$soname.def;
12854
 
        cat $export_symbols >> $output_objdir/$soname.def;
12855
 
      fi~
12856
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12857
 
    else
12858
 
      ld_shlibs_CXX=no
12859
 
    fi
12860
 
  ;;
12861
 
      darwin* | rhapsody*)
12862
 
        case $host_os in
12863
 
        rhapsody* | darwin1.[012])
12864
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12865
 
         ;;
12866
 
       *) # Darwin 1.3 on
12867
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12868
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12869
 
         else
12870
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
12871
 
             10.[012])
12872
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12873
 
               ;;
12874
 
             10.*)
12875
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12876
 
               ;;
12877
 
           esac
12878
 
         fi
12879
 
         ;;
12880
 
        esac
12881
 
      archive_cmds_need_lc_CXX=no
12882
 
      hardcode_direct_CXX=no
12883
 
      hardcode_automatic_CXX=yes
12884
 
      hardcode_shlibpath_var_CXX=unsupported
12885
 
      whole_archive_flag_spec_CXX=''
12886
 
      link_all_deplibs_CXX=yes
12887
 
 
12888
 
    if test "$GXX" = yes ; then
12889
 
      lt_int_apple_cc_single_mod=no
12890
 
      output_verbose_link_cmd='echo'
12891
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12892
 
       lt_int_apple_cc_single_mod=yes
12893
 
      fi
12894
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12895
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12896
 
      else
12897
 
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12898
 
        fi
12899
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12900
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12901
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12902
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12903
 
          else
12904
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12905
 
          fi
12906
 
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12907
 
      else
12908
 
      case $cc_basename in
12909
 
        xlc*)
12910
 
         output_verbose_link_cmd='echo'
12911
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12912
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12913
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12914
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12915
 
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12916
 
          ;;
12917
 
       *)
12918
 
         ld_shlibs_CXX=no
12919
 
          ;;
12920
 
      esac
12921
 
      fi
12922
 
        ;;
12923
 
 
12924
 
  dgux*)
12925
 
    case $cc_basename in
12926
 
      ec++*)
12927
 
        # FIXME: insert proper C++ library support
12928
 
        ld_shlibs_CXX=no
12929
 
        ;;
12930
 
      ghcx*)
12931
 
        # Green Hills C++ Compiler
12932
 
        # FIXME: insert proper C++ library support
12933
 
        ld_shlibs_CXX=no
12934
 
        ;;
12935
 
      *)
12936
 
        # FIXME: insert proper C++ library support
12937
 
        ld_shlibs_CXX=no
12938
 
        ;;
12939
 
    esac
12940
 
    ;;
12941
 
  freebsd[12]*)
12942
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
12943
 
    ld_shlibs_CXX=no
12944
 
    ;;
12945
 
  freebsd-elf*)
12946
 
    archive_cmds_need_lc_CXX=no
12947
 
    ;;
12948
 
  freebsd* | dragonfly*)
12949
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12950
 
    # conventions
12951
 
    ld_shlibs_CXX=yes
12952
 
    ;;
12953
 
  gnu*)
12954
 
    ;;
12955
 
  hpux9*)
12956
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12957
 
    hardcode_libdir_separator_CXX=:
12958
 
    export_dynamic_flag_spec_CXX='${wl}-E'
12959
 
    hardcode_direct_CXX=yes
12960
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
12961
 
                                # but as the default
12962
 
                                # location of the library.
12963
 
 
12964
 
    case $cc_basename in
12965
 
    CC*)
12966
 
      # FIXME: insert proper C++ library support
12967
 
      ld_shlibs_CXX=no
12968
 
      ;;
12969
 
    aCC*)
12970
 
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12971
 
      # Commands to make compiler produce verbose output that lists
12972
 
      # what "hidden" libraries, object files and flags are used when
12973
 
      # linking a shared library.
12974
 
      #
12975
 
      # There doesn't appear to be a way to prevent this compiler from
12976
 
      # explicitly linking system object files so we need to strip them
12977
 
      # from the output so that they don't get included in the library
12978
 
      # dependencies.
12979
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12980
 
      ;;
12981
 
    *)
12982
 
      if test "$GXX" = yes; then
12983
 
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12984
 
      else
12985
 
        # FIXME: insert proper C++ library support
12986
 
        ld_shlibs_CXX=no
12987
 
      fi
12988
 
      ;;
12989
 
    esac
12990
 
    ;;
12991
 
  hpux10*|hpux11*)
12992
 
    if test $with_gnu_ld = no; then
12993
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12994
 
      hardcode_libdir_separator_CXX=:
12995
 
 
12996
 
      case $host_cpu in
12997
 
      hppa*64*|ia64*)
12998
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12999
 
        ;;
13000
 
      *)
13001
 
        export_dynamic_flag_spec_CXX='${wl}-E'
13002
 
        ;;
13003
 
      esac
13004
 
    fi
13005
 
    case $host_cpu in
13006
 
    hppa*64*|ia64*)
13007
 
      hardcode_direct_CXX=no
13008
 
      hardcode_shlibpath_var_CXX=no
13009
 
      ;;
13010
 
    *)
13011
 
      hardcode_direct_CXX=yes
13012
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
13013
 
                                              # but as the default
13014
 
                                              # location of the library.
13015
 
      ;;
13016
 
    esac
13017
 
 
13018
 
    case $cc_basename in
13019
 
      CC*)
13020
 
        # FIXME: insert proper C++ library support
13021
 
        ld_shlibs_CXX=no
13022
 
        ;;
13023
 
      aCC*)
13024
 
        case $host_cpu in
13025
 
        hppa*64*)
13026
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13027
 
          ;;
13028
 
        ia64*)
13029
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13030
 
          ;;
13031
 
        *)
13032
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13033
 
          ;;
13034
 
        esac
13035
 
        # Commands to make compiler produce verbose output that lists
13036
 
        # what "hidden" libraries, object files and flags are used when
13037
 
        # linking a shared library.
13038
 
        #
13039
 
        # There doesn't appear to be a way to prevent this compiler from
13040
 
        # explicitly linking system object files so we need to strip them
13041
 
        # from the output so that they don't get included in the library
13042
 
        # dependencies.
13043
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13044
 
        ;;
13045
 
      *)
13046
 
        if test "$GXX" = yes; then
13047
 
          if test $with_gnu_ld = no; then
13048
 
            case $host_cpu in
13049
 
            hppa*64*)
13050
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13051
 
              ;;
13052
 
            ia64*)
13053
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13054
 
              ;;
13055
 
            *)
13056
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13057
 
              ;;
13058
 
            esac
13059
 
          fi
13060
 
        else
13061
 
          # FIXME: insert proper C++ library support
13062
 
          ld_shlibs_CXX=no
13063
 
        fi
13064
 
        ;;
13065
 
    esac
13066
 
    ;;
13067
 
  interix3*)
13068
 
    hardcode_direct_CXX=no
13069
 
    hardcode_shlibpath_var_CXX=no
13070
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13071
 
    export_dynamic_flag_spec_CXX='${wl}-E'
13072
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13073
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
13074
 
    # default) and relocated if they conflict, which is a slow very memory
13075
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
13076
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13077
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13078
 
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13079
 
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13080
 
    ;;
13081
 
  irix5* | irix6*)
13082
 
    case $cc_basename in
13083
 
      CC*)
13084
 
        # SGI C++
13085
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13086
 
 
13087
 
        # Archives containing C++ object files must be created using
13088
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13089
 
        # necessary to make sure instantiated templates are included
13090
 
        # in the archive.
13091
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13092
 
        ;;
13093
 
      *)
13094
 
        if test "$GXX" = yes; then
13095
 
          if test "$with_gnu_ld" = no; then
13096
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13097
 
          else
13098
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13099
 
          fi
13100
 
        fi
13101
 
        link_all_deplibs_CXX=yes
13102
 
        ;;
13103
 
    esac
13104
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13105
 
    hardcode_libdir_separator_CXX=:
13106
 
    ;;
13107
 
  linux* | k*bsd*-gnu)
13108
 
    case $cc_basename in
13109
 
      KCC*)
13110
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13111
 
 
13112
 
        # KCC will only create a shared library if the output file
13113
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
13114
 
        # to its proper name (with version) after linking.
13115
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13116
 
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13117
 
        # Commands to make compiler produce verbose output that lists
13118
 
        # what "hidden" libraries, object files and flags are used when
13119
 
        # linking a shared library.
13120
 
        #
13121
 
        # There doesn't appear to be a way to prevent this compiler from
13122
 
        # explicitly linking system object files so we need to strip them
13123
 
        # from the output so that they don't get included in the library
13124
 
        # dependencies.
13125
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13126
 
 
13127
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13128
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13129
 
 
13130
 
        # Archives containing C++ object files must be created using
13131
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13132
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13133
 
        ;;
13134
 
      icpc*)
13135
 
        # Intel C++
13136
 
        with_gnu_ld=yes
13137
 
        # version 8.0 and above of icpc choke on multiply defined symbols
13138
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
13139
 
        # earlier do not add the objects themselves.
13140
 
        case `$CC -V 2>&1` in
13141
 
        *"Version 7."*)
13142
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143
 
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13144
 
          ;;
13145
 
        *)  # Version 8.0 or newer
13146
 
          tmp_idyn=
13147
 
          case $host_cpu in
13148
 
            ia64*) tmp_idyn=' -i_dynamic';;
13149
 
          esac
13150
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13151
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13152
 
          ;;
13153
 
        esac
13154
 
        archive_cmds_need_lc_CXX=no
13155
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13156
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13157
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13158
 
        ;;
13159
 
      pgCC*)
13160
 
        # Portland Group C++ compiler
13161
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13162
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13163
 
 
13164
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13165
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13166
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13167
 
        ;;
13168
 
      cxx*)
13169
 
        # Compaq C++
13170
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13172
 
 
13173
 
        runpath_var=LD_RUN_PATH
13174
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13175
 
        hardcode_libdir_separator_CXX=:
13176
 
 
13177
 
        # Commands to make compiler produce verbose output that lists
13178
 
        # what "hidden" libraries, object files and flags are used when
13179
 
        # linking a shared library.
13180
 
        #
13181
 
        # There doesn't appear to be a way to prevent this compiler from
13182
 
        # explicitly linking system object files so we need to strip them
13183
 
        # from the output so that they don't get included in the library
13184
 
        # dependencies.
13185
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13186
 
        ;;
13187
 
    esac
13188
 
    ;;
13189
 
  lynxos*)
13190
 
    # FIXME: insert proper C++ library support
13191
 
    ld_shlibs_CXX=no
13192
 
    ;;
13193
 
  m88k*)
13194
 
    # FIXME: insert proper C++ library support
13195
 
    ld_shlibs_CXX=no
13196
 
    ;;
13197
 
  mvs*)
13198
 
    case $cc_basename in
13199
 
      cxx*)
13200
 
        # FIXME: insert proper C++ library support
13201
 
        ld_shlibs_CXX=no
13202
 
        ;;
13203
 
      *)
13204
 
        # FIXME: insert proper C++ library support
13205
 
        ld_shlibs_CXX=no
13206
 
        ;;
13207
 
    esac
13208
 
    ;;
13209
 
  netbsd* | netbsdelf*-gnu)
13210
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13211
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13212
 
      wlarc=
13213
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
13214
 
      hardcode_direct_CXX=yes
13215
 
      hardcode_shlibpath_var_CXX=no
13216
 
    fi
13217
 
    # Workaround some broken pre-1.5 toolchains
13218
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13219
 
    ;;
13220
 
  openbsd2*)
13221
 
    # C++ shared libraries are fairly broken
13222
 
    ld_shlibs_CXX=no
13223
 
    ;;
13224
 
  openbsd*)
13225
 
    hardcode_direct_CXX=yes
13226
 
    hardcode_shlibpath_var_CXX=no
13227
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13228
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13229
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13230
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13231
 
      export_dynamic_flag_spec_CXX='${wl}-E'
13232
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13233
 
    fi
13234
 
    output_verbose_link_cmd='echo'
13235
 
    ;;
13236
 
  osf3*)
13237
 
    case $cc_basename in
13238
 
      KCC*)
13239
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13240
 
 
13241
 
        # KCC will only create a shared library if the output file
13242
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
13243
 
        # to its proper name (with version) after linking.
13244
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13245
 
 
13246
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13247
 
        hardcode_libdir_separator_CXX=:
13248
 
 
13249
 
        # Archives containing C++ object files must be created using
13250
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13251
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13252
 
 
13253
 
        ;;
13254
 
      RCC*)
13255
 
        # Rational C++ 2.4.1
13256
 
        # FIXME: insert proper C++ library support
13257
 
        ld_shlibs_CXX=no
13258
 
        ;;
13259
 
      cxx*)
13260
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13261
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13262
 
 
13263
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13264
 
        hardcode_libdir_separator_CXX=:
13265
 
 
13266
 
        # Commands to make compiler produce verbose output that lists
13267
 
        # what "hidden" libraries, object files and flags are used when
13268
 
        # linking a shared library.
13269
 
        #
13270
 
        # There doesn't appear to be a way to prevent this compiler from
13271
 
        # explicitly linking system object files so we need to strip them
13272
 
        # from the output so that they don't get included in the library
13273
 
        # dependencies.
13274
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13275
 
        ;;
13276
 
      *)
13277
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13278
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13279
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13280
 
 
13281
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13282
 
          hardcode_libdir_separator_CXX=:
13283
 
 
13284
 
          # Commands to make compiler produce verbose output that lists
13285
 
          # what "hidden" libraries, object files and flags are used when
13286
 
          # linking a shared library.
13287
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13288
 
 
13289
 
        else
13290
 
          # FIXME: insert proper C++ library support
13291
 
          ld_shlibs_CXX=no
13292
 
        fi
13293
 
        ;;
13294
 
    esac
13295
 
    ;;
13296
 
  osf4* | osf5*)
13297
 
    case $cc_basename in
13298
 
      KCC*)
13299
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13300
 
 
13301
 
        # KCC will only create a shared library if the output file
13302
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
13303
 
        # to its proper name (with version) after linking.
13304
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13305
 
 
13306
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13307
 
        hardcode_libdir_separator_CXX=:
13308
 
 
13309
 
        # Archives containing C++ object files must be created using
13310
 
        # the KAI C++ compiler.
13311
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13312
 
        ;;
13313
 
      RCC*)
13314
 
        # Rational C++ 2.4.1
13315
 
        # FIXME: insert proper C++ library support
13316
 
        ld_shlibs_CXX=no
13317
 
        ;;
13318
 
      cxx*)
13319
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
13320
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13321
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13322
 
          echo "-hidden">> $lib.exp~
13323
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13324
 
          $rm $lib.exp'
13325
 
 
13326
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13327
 
        hardcode_libdir_separator_CXX=:
13328
 
 
13329
 
        # Commands to make compiler produce verbose output that lists
13330
 
        # what "hidden" libraries, object files and flags are used when
13331
 
        # linking a shared library.
13332
 
        #
13333
 
        # There doesn't appear to be a way to prevent this compiler from
13334
 
        # explicitly linking system object files so we need to strip them
13335
 
        # from the output so that they don't get included in the library
13336
 
        # dependencies.
13337
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13338
 
        ;;
13339
 
      *)
13340
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13341
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13342
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13343
 
 
13344
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13345
 
          hardcode_libdir_separator_CXX=:
13346
 
 
13347
 
          # Commands to make compiler produce verbose output that lists
13348
 
          # what "hidden" libraries, object files and flags are used when
13349
 
          # linking a shared library.
13350
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13351
 
 
13352
 
        else
13353
 
          # FIXME: insert proper C++ library support
13354
 
          ld_shlibs_CXX=no
13355
 
        fi
13356
 
        ;;
13357
 
    esac
13358
 
    ;;
13359
 
  psos*)
13360
 
    # FIXME: insert proper C++ library support
13361
 
    ld_shlibs_CXX=no
13362
 
    ;;
13363
 
  sunos4*)
13364
 
    case $cc_basename in
13365
 
      CC*)
13366
 
        # Sun C++ 4.x
13367
 
        # FIXME: insert proper C++ library support
13368
 
        ld_shlibs_CXX=no
13369
 
        ;;
13370
 
      lcc*)
13371
 
        # Lucid
13372
 
        # FIXME: insert proper C++ library support
13373
 
        ld_shlibs_CXX=no
13374
 
        ;;
13375
 
      *)
13376
 
        # FIXME: insert proper C++ library support
13377
 
        ld_shlibs_CXX=no
13378
 
        ;;
13379
 
    esac
13380
 
    ;;
13381
 
  solaris*)
13382
 
    case $cc_basename in
13383
 
      CC*)
13384
 
        # Sun C++ 4.2, 5.x and Centerline C++
13385
 
        archive_cmds_need_lc_CXX=yes
13386
 
        no_undefined_flag_CXX=' -zdefs'
13387
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13388
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13389
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13390
 
 
13391
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
13392
 
        hardcode_shlibpath_var_CXX=no
13393
 
        case $host_os in
13394
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
13395
 
          *)
13396
 
            # The C++ compiler is used as linker so we must use $wl
13397
 
            # flag to pass the commands to the underlying system
13398
 
            # linker. We must also pass each convience library through
13399
 
            # to the system linker between allextract/defaultextract.
13400
 
            # The C++ compiler will combine linker options so we
13401
 
            # cannot just pass the convience library names through
13402
 
            # without $wl.
13403
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
13404
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13405
 
            ;;
13406
 
        esac
13407
 
        link_all_deplibs_CXX=yes
13408
 
 
13409
 
        output_verbose_link_cmd='echo'
13410
 
 
13411
 
        # Archives containing C++ object files must be created using
13412
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13413
 
        # necessary to make sure instantiated templates are included
13414
 
        # in the archive.
13415
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13416
 
        ;;
13417
 
      gcx*)
13418
 
        # Green Hills C++ Compiler
13419
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13420
 
 
13421
 
        # The C++ compiler must be used to create the archive.
13422
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13423
 
        ;;
13424
 
      *)
13425
 
        # GNU C++ compiler with Solaris linker
13426
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13427
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13428
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
13429
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13430
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13431
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13432
 
 
13433
 
            # Commands to make compiler produce verbose output that lists
13434
 
            # what "hidden" libraries, object files and flags are used when
13435
 
            # linking a shared library.
13436
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13437
 
          else
13438
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
13439
 
            # platform.
13440
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13441
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13442
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13443
 
 
13444
 
            # Commands to make compiler produce verbose output that lists
13445
 
            # what "hidden" libraries, object files and flags are used when
13446
 
            # linking a shared library.
13447
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13448
 
          fi
13449
 
 
13450
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13451
 
        fi
13452
 
        ;;
13453
 
    esac
13454
 
    ;;
13455
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13456
 
    no_undefined_flag_CXX='${wl}-z,text'
13457
 
    archive_cmds_need_lc_CXX=no
13458
 
    hardcode_shlibpath_var_CXX=no
13459
 
    runpath_var='LD_RUN_PATH'
13460
 
 
13461
 
    case $cc_basename in
13462
 
      CC*)
13463
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465
 
        ;;
13466
 
      *)
13467
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13469
 
        ;;
13470
 
    esac
13471
 
    ;;
13472
 
  sysv5* | sco3.2v5* | sco5v6*)
13473
 
    # Note: We can NOT use -z defs as we might desire, because we do not
13474
 
    # link with -lc, and that would cause any symbols used from libc to
13475
 
    # always be unresolved, which means just about no library would
13476
 
    # ever link correctly.  If we're not using GNU ld we use -z text
13477
 
    # though, which does catch some bad symbols but isn't as heavy-handed
13478
 
    # as -z defs.
13479
 
    # For security reasons, it is highly recommended that you always
13480
 
    # use absolute paths for naming shared libraries, and exclude the
13481
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
13482
 
    # requires that you compile everything twice, which is a pain.
13483
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
13484
 
    # non-empty value in the environment.  Most likely only useful for
13485
 
    # creating official distributions of packages.
13486
 
    # This is a hack until libtool officially supports absolute path
13487
 
    # names for shared libraries.
13488
 
    no_undefined_flag_CXX='${wl}-z,text'
13489
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
13490
 
    archive_cmds_need_lc_CXX=no
13491
 
    hardcode_shlibpath_var_CXX=no
13492
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13493
 
    hardcode_libdir_separator_CXX=':'
13494
 
    link_all_deplibs_CXX=yes
13495
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13496
 
    runpath_var='LD_RUN_PATH'
13497
 
 
13498
 
    case $cc_basename in
13499
 
      CC*)
13500
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502
 
        ;;
13503
 
      *)
13504
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13505
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13506
 
        ;;
13507
 
    esac
13508
 
    ;;
13509
 
  tandem*)
13510
 
    case $cc_basename in
13511
 
      NCC*)
13512
 
        # NonStop-UX NCC 3.20
13513
 
        # FIXME: insert proper C++ library support
13514
 
        ld_shlibs_CXX=no
13515
 
        ;;
13516
 
      *)
13517
 
        # FIXME: insert proper C++ library support
13518
 
        ld_shlibs_CXX=no
13519
 
        ;;
13520
 
    esac
13521
 
    ;;
13522
 
  vxworks*)
13523
 
    # FIXME: insert proper C++ library support
13524
 
    ld_shlibs_CXX=no
13525
 
    ;;
13526
 
  *)
13527
 
    # FIXME: insert proper C++ library support
13528
 
    ld_shlibs_CXX=no
13529
 
    ;;
13530
 
esac
13531
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13532
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13533
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13534
 
 
13535
 
GCC_CXX="$GXX"
13536
 
LD_CXX="$LD"
13537
 
 
13538
 
## CAVEAT EMPTOR:
13539
 
## There is no encapsulation within the following macros, do not change
13540
 
## the running order or otherwise move them around unless you know exactly
13541
 
## what you are doing...
13542
 
 
13543
 
cat > conftest.$ac_ext <<EOF
13544
 
class Foo
13545
 
{
13546
 
public:
13547
 
  Foo (void) { a = 0; }
13548
 
private:
13549
 
  int a;
13550
 
};
13551
 
EOF
13552
 
 
13553
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554
 
  (eval $ac_compile) 2>&5
13555
 
  ac_status=$?
13556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557
 
  (exit $ac_status); }; then
13558
 
  # Parse the compiler output and extract the necessary
13559
 
  # objects, libraries and library flags.
13560
 
 
13561
 
  # Sentinel used to keep track of whether or not we are before
13562
 
  # the conftest object file.
13563
 
  pre_test_object_deps_done=no
13564
 
 
13565
 
  # The `*' in the case matches for architectures that use `case' in
13566
 
  # $output_verbose_cmd can trigger glob expansion during the loop
13567
 
  # eval without this substitution.
13568
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13569
 
 
13570
 
  for p in `eval $output_verbose_link_cmd`; do
13571
 
    case $p in
13572
 
 
13573
 
    -L* | -R* | -l*)
13574
 
       # Some compilers place space between "-{L,R}" and the path.
13575
 
       # Remove the space.
13576
 
       if test $p = "-L" \
13577
 
          || test $p = "-R"; then
13578
 
         prev=$p
13579
 
         continue
13580
 
       else
13581
 
         prev=
13582
 
       fi
13583
 
 
13584
 
       if test "$pre_test_object_deps_done" = no; then
13585
 
         case $p in
13586
 
         -L* | -R*)
13587
 
           # Internal compiler library paths should come after those
13588
 
           # provided the user.  The postdeps already come after the
13589
 
           # user supplied libs so there is no need to process them.
13590
 
           if test -z "$compiler_lib_search_path_CXX"; then
13591
 
             compiler_lib_search_path_CXX="${prev}${p}"
13592
 
           else
13593
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13594
 
           fi
13595
 
           ;;
13596
 
         # The "-l" case would never come before the object being
13597
 
         # linked, so don't bother handling this case.
13598
 
         esac
13599
 
       else
13600
 
         if test -z "$postdeps_CXX"; then
13601
 
           postdeps_CXX="${prev}${p}"
13602
 
         else
13603
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13604
 
         fi
13605
 
       fi
13606
 
       ;;
13607
 
 
13608
 
    *.$objext)
13609
 
       # This assumes that the test object file only shows up
13610
 
       # once in the compiler output.
13611
 
       if test "$p" = "conftest.$objext"; then
13612
 
         pre_test_object_deps_done=yes
13613
 
         continue
13614
 
       fi
13615
 
 
13616
 
       if test "$pre_test_object_deps_done" = no; then
13617
 
         if test -z "$predep_objects_CXX"; then
13618
 
           predep_objects_CXX="$p"
13619
 
         else
13620
 
           predep_objects_CXX="$predep_objects_CXX $p"
13621
 
         fi
13622
 
       else
13623
 
         if test -z "$postdep_objects_CXX"; then
13624
 
           postdep_objects_CXX="$p"
13625
 
         else
13626
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
13627
 
         fi
13628
 
       fi
13629
 
       ;;
13630
 
 
13631
 
    *) ;; # Ignore the rest.
13632
 
 
13633
 
    esac
13634
 
  done
13635
 
 
13636
 
  # Clean up.
13637
 
  rm -f a.out a.exe
13638
 
else
13639
 
  echo "libtool.m4: error: problem compiling CXX test program"
13640
 
fi
13641
 
 
13642
 
$rm -f confest.$objext
13643
 
 
13644
 
# PORTME: override above test on systems where it is broken
13645
 
case $host_os in
13646
 
interix3*)
13647
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13648
 
  # hack all around it, let's just trust "g++" to DTRT.
13649
 
  predep_objects_CXX=
13650
 
  postdep_objects_CXX=
13651
 
  postdeps_CXX=
13652
 
  ;;
13653
 
 
13654
 
solaris*)
13655
 
  case $cc_basename in
13656
 
  CC*)
13657
 
    # Adding this requires a known-good setup of shared libraries for
13658
 
    # Sun compiler versions before 5.6, else PIC objects from an old
13659
 
    # archive will be linked into the output, leading to subtle bugs.
13660
 
    postdeps_CXX='-lCstd -lCrun'
13661
 
    ;;
13662
 
  esac
13663
 
  ;;
13664
 
esac
13665
 
 
13666
 
 
13667
 
case " $postdeps_CXX " in
13668
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13669
 
esac
13670
 
 
13671
 
lt_prog_compiler_wl_CXX=
13672
 
lt_prog_compiler_pic_CXX=
13673
 
lt_prog_compiler_static_CXX=
13674
 
 
13675
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13676
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13677
 
 
13678
 
  # C++ specific cases for pic, static, wl, etc.
13679
 
  if test "$GXX" = yes; then
13680
 
    lt_prog_compiler_wl_CXX='-Wl,'
13681
 
    lt_prog_compiler_static_CXX='-static'
13682
 
 
13683
 
    case $host_os in
13684
 
    aix*)
13685
 
      # All AIX code is PIC.
13686
 
      if test "$host_cpu" = ia64; then
13687
 
        # AIX 5 now supports IA64 processor
13688
 
        lt_prog_compiler_static_CXX='-Bstatic'
13689
 
      fi
13690
 
      ;;
13691
 
    amigaos*)
13692
 
      # FIXME: we need at least 68020 code to build shared libraries, but
13693
 
      # adding the `-m68020' flag to GCC prevents building anything better,
13694
 
      # like `-m68040'.
13695
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13696
 
      ;;
13697
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13698
 
      # PIC is the default for these OSes.
13699
 
      ;;
13700
 
    mingw* | os2* | pw32*)
13701
 
      # This hack is so that the source file can tell whether it is being
13702
 
      # built for inclusion in a dll (and should export symbols for example).
13703
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13704
 
      ;;
13705
 
    darwin* | rhapsody*)
13706
 
      # PIC is the default on this platform
13707
 
      # Common symbols not allowed in MH_DYLIB files
13708
 
      lt_prog_compiler_pic_CXX='-fno-common'
13709
 
      ;;
13710
 
    *djgpp*)
13711
 
      # DJGPP does not support shared libraries at all
13712
 
      lt_prog_compiler_pic_CXX=
13713
 
      ;;
13714
 
    interix3*)
13715
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13716
 
      # Instead, we relocate shared libraries at runtime.
13717
 
      ;;
13718
 
    sysv4*MP*)
13719
 
      if test -d /usr/nec; then
13720
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
13721
 
      fi
13722
 
      ;;
13723
 
    hpux*)
13724
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13725
 
      # not for PA HP-UX.
13726
 
      case $host_cpu in
13727
 
      hppa*64*|ia64*)
13728
 
        ;;
13729
 
      *)
13730
 
        lt_prog_compiler_pic_CXX='-fPIC'
13731
 
        ;;
13732
 
      esac
13733
 
      ;;
13734
 
    *)
13735
 
      lt_prog_compiler_pic_CXX='-fPIC'
13736
 
      ;;
13737
 
    esac
13738
 
  else
13739
 
    case $host_os in
13740
 
      aix4* | aix5*)
13741
 
        # All AIX code is PIC.
13742
 
        if test "$host_cpu" = ia64; then
13743
 
          # AIX 5 now supports IA64 processor
13744
 
          lt_prog_compiler_static_CXX='-Bstatic'
13745
 
        else
13746
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13747
 
        fi
13748
 
        ;;
13749
 
      chorus*)
13750
 
        case $cc_basename in
13751
 
        cxch68*)
13752
 
          # Green Hills C++ Compiler
13753
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13754
 
          ;;
13755
 
        esac
13756
 
        ;;
13757
 
       darwin*)
13758
 
         # PIC is the default on this platform
13759
 
         # Common symbols not allowed in MH_DYLIB files
13760
 
         case $cc_basename in
13761
 
           xlc*)
13762
 
           lt_prog_compiler_pic_CXX='-qnocommon'
13763
 
           lt_prog_compiler_wl_CXX='-Wl,'
13764
 
           ;;
13765
 
         esac
13766
 
       ;;
13767
 
      dgux*)
13768
 
        case $cc_basename in
13769
 
          ec++*)
13770
 
            lt_prog_compiler_pic_CXX='-KPIC'
13771
 
            ;;
13772
 
          ghcx*)
13773
 
            # Green Hills C++ Compiler
13774
 
            lt_prog_compiler_pic_CXX='-pic'
13775
 
            ;;
13776
 
          *)
13777
 
            ;;
13778
 
        esac
13779
 
        ;;
13780
 
      freebsd* | dragonfly*)
13781
 
        # FreeBSD uses GNU C++
13782
 
        ;;
13783
 
      hpux9* | hpux10* | hpux11*)
13784
 
        case $cc_basename in
13785
 
          CC*)
13786
 
            lt_prog_compiler_wl_CXX='-Wl,'
13787
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13788
 
            if test "$host_cpu" != ia64; then
13789
 
              lt_prog_compiler_pic_CXX='+Z'
13790
 
            fi
13791
 
            ;;
13792
 
          aCC*)
13793
 
            lt_prog_compiler_wl_CXX='-Wl,'
13794
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13795
 
            case $host_cpu in
13796
 
            hppa*64*|ia64*)
13797
 
              # +Z the default
13798
 
              ;;
13799
 
            *)
13800
 
              lt_prog_compiler_pic_CXX='+Z'
13801
 
              ;;
13802
 
            esac
13803
 
            ;;
13804
 
          *)
13805
 
            ;;
13806
 
        esac
13807
 
        ;;
13808
 
      interix*)
13809
 
        # This is c89, which is MS Visual C++ (no shared libs)
13810
 
        # Anyone wants to do a port?
13811
 
        ;;
13812
 
      irix5* | irix6* | nonstopux*)
13813
 
        case $cc_basename in
13814
 
          CC*)
13815
 
            lt_prog_compiler_wl_CXX='-Wl,'
13816
 
            lt_prog_compiler_static_CXX='-non_shared'
13817
 
            # CC pic flag -KPIC is the default.
13818
 
            ;;
13819
 
          *)
13820
 
            ;;
13821
 
        esac
13822
 
        ;;
13823
 
      linux* | k*bsd*-gnu)
13824
 
        case $cc_basename in
13825
 
          KCC*)
13826
 
            # KAI C++ Compiler
13827
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13828
 
            lt_prog_compiler_pic_CXX='-fPIC'
13829
 
            ;;
13830
 
          icpc* | ecpc*)
13831
 
            # Intel C++
13832
 
            lt_prog_compiler_wl_CXX='-Wl,'
13833
 
            lt_prog_compiler_pic_CXX='-KPIC'
13834
 
            lt_prog_compiler_static_CXX='-static'
13835
 
            ;;
13836
 
          pgCC*)
13837
 
            # Portland Group C++ compiler.
13838
 
            lt_prog_compiler_wl_CXX='-Wl,'
13839
 
            lt_prog_compiler_pic_CXX='-fpic'
13840
 
            lt_prog_compiler_static_CXX='-Bstatic'
13841
 
            ;;
13842
 
          cxx*)
13843
 
            # Compaq C++
13844
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13845
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13846
 
            lt_prog_compiler_pic_CXX=
13847
 
            lt_prog_compiler_static_CXX='-non_shared'
13848
 
            ;;
13849
 
          *)
13850
 
            ;;
13851
 
        esac
13852
 
        ;;
13853
 
      lynxos*)
13854
 
        ;;
13855
 
      m88k*)
13856
 
        ;;
13857
 
      mvs*)
13858
 
        case $cc_basename in
13859
 
          cxx*)
13860
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
13861
 
            ;;
13862
 
          *)
13863
 
            ;;
13864
 
        esac
13865
 
        ;;
13866
 
      netbsd* | netbsdelf*-gnu)
13867
 
        ;;
13868
 
      osf3* | osf4* | osf5*)
13869
 
        case $cc_basename in
13870
 
          KCC*)
13871
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13872
 
            ;;
13873
 
          RCC*)
13874
 
            # Rational C++ 2.4.1
13875
 
            lt_prog_compiler_pic_CXX='-pic'
13876
 
            ;;
13877
 
          cxx*)
13878
 
            # Digital/Compaq C++
13879
 
            lt_prog_compiler_wl_CXX='-Wl,'
13880
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13881
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13882
 
            lt_prog_compiler_pic_CXX=
13883
 
            lt_prog_compiler_static_CXX='-non_shared'
13884
 
            ;;
13885
 
          *)
13886
 
            ;;
13887
 
        esac
13888
 
        ;;
13889
 
      psos*)
13890
 
        ;;
13891
 
      solaris*)
13892
 
        case $cc_basename in
13893
 
          CC*)
13894
 
            # Sun C++ 4.2, 5.x and Centerline C++
13895
 
            lt_prog_compiler_pic_CXX='-KPIC'
13896
 
            lt_prog_compiler_static_CXX='-Bstatic'
13897
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
13898
 
            ;;
13899
 
          gcx*)
13900
 
            # Green Hills C++ Compiler
13901
 
            lt_prog_compiler_pic_CXX='-PIC'
13902
 
            ;;
13903
 
          *)
13904
 
            ;;
13905
 
        esac
13906
 
        ;;
13907
 
      sunos4*)
13908
 
        case $cc_basename in
13909
 
          CC*)
13910
 
            # Sun C++ 4.x
13911
 
            lt_prog_compiler_pic_CXX='-pic'
13912
 
            lt_prog_compiler_static_CXX='-Bstatic'
13913
 
            ;;
13914
 
          lcc*)
13915
 
            # Lucid
13916
 
            lt_prog_compiler_pic_CXX='-pic'
13917
 
            ;;
13918
 
          *)
13919
 
            ;;
13920
 
        esac
13921
 
        ;;
13922
 
      tandem*)
13923
 
        case $cc_basename in
13924
 
          NCC*)
13925
 
            # NonStop-UX NCC 3.20
13926
 
            lt_prog_compiler_pic_CXX='-KPIC'
13927
 
            ;;
13928
 
          *)
13929
 
            ;;
13930
 
        esac
13931
 
        ;;
13932
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13933
 
        case $cc_basename in
13934
 
          CC*)
13935
 
            lt_prog_compiler_wl_CXX='-Wl,'
13936
 
            lt_prog_compiler_pic_CXX='-KPIC'
13937
 
            lt_prog_compiler_static_CXX='-Bstatic'
13938
 
            ;;
13939
 
        esac
13940
 
        ;;
13941
 
      vxworks*)
13942
 
        ;;
13943
 
      *)
13944
 
        lt_prog_compiler_can_build_shared_CXX=no
13945
 
        ;;
13946
 
    esac
13947
 
  fi
13948
 
 
13949
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13950
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13951
 
 
13952
 
#
13953
 
# Check to make sure the PIC flag actually works.
13954
 
#
13955
 
if test -n "$lt_prog_compiler_pic_CXX"; then
13956
 
  
13957
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13958
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13959
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13960
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13961
 
else
13962
 
  lt_prog_compiler_pic_works_CXX=no
13963
 
  ac_outfile=conftest.$ac_objext
13964
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13965
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13966
 
   # Insert the option either (1) after the last *FLAGS variable, or
13967
 
   # (2) before a word containing "conftest.", or (3) at the end.
13968
 
   # Note that $ac_compile itself does not contain backslashes and begins
13969
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13970
 
   # The option is referenced via a variable to avoid confusing sed.
13971
 
   lt_compile=`echo "$ac_compile" | $SED \
13972
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13973
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13974
 
   -e 's:$: $lt_compiler_flag:'`
13975
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13976
 
   (eval "$lt_compile" 2>conftest.err)
13977
 
   ac_status=$?
13978
 
   cat conftest.err >&5
13979
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13980
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13981
 
     # The compiler can only warn and ignore the option if not recognized
13982
 
     # So say no if there are warnings other than the usual output.
13983
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13984
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13985
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13986
 
       lt_prog_compiler_pic_works_CXX=yes
13987
 
     fi
13988
 
   fi
13989
 
   $rm conftest*
13990
 
 
13991
 
fi
13992
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13993
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13994
 
 
13995
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13996
 
    case $lt_prog_compiler_pic_CXX in
13997
 
     "" | " "*) ;;
13998
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13999
 
     esac
14000
 
else
14001
 
    lt_prog_compiler_pic_CXX=
14002
 
     lt_prog_compiler_can_build_shared_CXX=no
14003
 
fi
14004
 
 
14005
 
fi
14006
 
case $host_os in
14007
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14008
 
  *djgpp*)
14009
 
    lt_prog_compiler_pic_CXX=
14010
 
    ;;
14011
 
  *)
14012
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14013
 
    ;;
14014
 
esac
14015
 
 
14016
 
#
14017
 
# Check to make sure the static flag actually works.
14018
 
#
14019
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14020
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14021
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14022
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14023
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14024
 
else
14025
 
  lt_prog_compiler_static_works_CXX=no
14026
 
   save_LDFLAGS="$LDFLAGS"
14027
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14028
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14029
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14030
 
     # The linker can only warn and ignore the option if not recognized
14031
 
     # So say no if there are warnings
14032
 
     if test -s conftest.err; then
14033
 
       # Append any errors to the config.log.
14034
 
       cat conftest.err 1>&5
14035
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14036
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14037
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14038
 
         lt_prog_compiler_static_works_CXX=yes
14039
 
       fi
14040
 
     else
14041
 
       lt_prog_compiler_static_works_CXX=yes
14042
 
     fi
14043
 
   fi
14044
 
   $rm conftest*
14045
 
   LDFLAGS="$save_LDFLAGS"
14046
 
 
14047
 
fi
14048
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14049
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14050
 
 
14051
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14052
 
    :
14053
 
else
14054
 
    lt_prog_compiler_static_CXX=
14055
 
fi
14056
 
 
14057
 
 
14058
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14059
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14060
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14061
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14062
 
else
14063
 
  lt_cv_prog_compiler_c_o_CXX=no
14064
 
   $rm -r conftest 2>/dev/null
14065
 
   mkdir conftest
14066
 
   cd conftest
14067
 
   mkdir out
14068
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14069
 
 
14070
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14071
 
   # Insert the option either (1) after the last *FLAGS variable, or
14072
 
   # (2) before a word containing "conftest.", or (3) at the end.
14073
 
   # Note that $ac_compile itself does not contain backslashes and begins
14074
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14075
 
   lt_compile=`echo "$ac_compile" | $SED \
14076
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14077
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14078
 
   -e 's:$: $lt_compiler_flag:'`
14079
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14080
 
   (eval "$lt_compile" 2>out/conftest.err)
14081
 
   ac_status=$?
14082
 
   cat out/conftest.err >&5
14083
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
14084
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14085
 
   then
14086
 
     # The compiler can only warn and ignore the option if not recognized
14087
 
     # So say no if there are warnings
14088
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14089
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14090
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14091
 
       lt_cv_prog_compiler_c_o_CXX=yes
14092
 
     fi
14093
 
   fi
14094
 
   chmod u+w . 2>&5
14095
 
   $rm conftest*
14096
 
   # SGI C++ compiler will create directory out/ii_files/ for
14097
 
   # template instantiation
14098
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14099
 
   $rm out/* && rmdir out
14100
 
   cd ..
14101
 
   rmdir conftest
14102
 
   $rm conftest*
14103
 
 
14104
 
fi
14105
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14106
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14107
 
 
14108
 
 
14109
 
hard_links="nottested"
14110
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14111
 
  # do not overwrite the value of need_locks provided by the user
14112
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14113
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14114
 
  hard_links=yes
14115
 
  $rm conftest*
14116
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14117
 
  touch conftest.a
14118
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14119
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14120
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14121
 
echo "${ECHO_T}$hard_links" >&6; }
14122
 
  if test "$hard_links" = no; then
14123
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14124
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14125
 
    need_locks=warn
14126
 
  fi
14127
 
else
14128
 
  need_locks=no
14129
 
fi
14130
 
 
14131
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14132
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14133
 
 
14134
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14135
 
  case $host_os in
14136
 
  aix4* | aix5*)
14137
 
    # If we're using GNU nm, then we don't want the "-C" option.
14138
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14139
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14140
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14141
 
    else
14142
 
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14143
 
    fi
14144
 
    ;;
14145
 
  pw32*)
14146
 
    export_symbols_cmds_CXX="$ltdll_cmds"
14147
 
  ;;
14148
 
  cygwin* | mingw*)
14149
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14150
 
  ;;
14151
 
  linux* | k*bsd*-gnu)
14152
 
    link_all_deplibs_CXX=no
14153
 
  ;;
14154
 
  *)
14155
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14156
 
  ;;
14157
 
  esac
14158
 
 
14159
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14160
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14161
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
14162
 
 
14163
 
#
14164
 
# Do we need to explicitly link libc?
14165
 
#
14166
 
case "x$archive_cmds_need_lc_CXX" in
14167
 
x|xyes)
14168
 
  # Assume -lc should be added
14169
 
  archive_cmds_need_lc_CXX=yes
14170
 
 
14171
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14172
 
    case $archive_cmds_CXX in
14173
 
    *'~'*)
14174
 
      # FIXME: we may have to deal with multi-command sequences.
14175
 
      ;;
14176
 
    '$CC '*)
14177
 
      # Test whether the compiler implicitly links with -lc since on some
14178
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14179
 
      # to ld, don't add -lc before -lgcc.
14180
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14181
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14182
 
      $rm conftest*
14183
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14184
 
 
14185
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186
 
  (eval $ac_compile) 2>&5
14187
 
  ac_status=$?
14188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189
 
  (exit $ac_status); } 2>conftest.err; then
14190
 
        soname=conftest
14191
 
        lib=conftest
14192
 
        libobjs=conftest.$ac_objext
14193
 
        deplibs=
14194
 
        wl=$lt_prog_compiler_wl_CXX
14195
 
        pic_flag=$lt_prog_compiler_pic_CXX
14196
 
        compiler_flags=-v
14197
 
        linker_flags=-v
14198
 
        verstring=
14199
 
        output_objdir=.
14200
 
        libname=conftest
14201
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14202
 
        allow_undefined_flag_CXX=
14203
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14204
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14205
 
  ac_status=$?
14206
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207
 
  (exit $ac_status); }
14208
 
        then
14209
 
          archive_cmds_need_lc_CXX=no
14210
 
        else
14211
 
          archive_cmds_need_lc_CXX=yes
14212
 
        fi
14213
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14214
 
      else
14215
 
        cat conftest.err 1>&5
14216
 
      fi
14217
 
      $rm conftest*
14218
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14219
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14220
 
      ;;
14221
 
    esac
14222
 
  fi
14223
 
  ;;
14224
 
esac
14225
 
 
14226
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14227
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14228
 
library_names_spec=
14229
 
libname_spec='lib$name'
14230
 
soname_spec=
14231
 
shrext_cmds=".so"
14232
 
postinstall_cmds=
14233
 
postuninstall_cmds=
14234
 
finish_cmds=
14235
 
finish_eval=
14236
 
shlibpath_var=
14237
 
shlibpath_overrides_runpath=unknown
14238
 
version_type=none
14239
 
dynamic_linker="$host_os ld.so"
14240
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14241
 
if test "$GCC" = yes; then
14242
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14243
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14244
 
    # if the path contains ";" then we assume it to be the separator
14245
 
    # otherwise default to the standard path separator (i.e. ":") - it is
14246
 
    # assumed that no part of a normal pathname contains ";" but that should
14247
 
    # okay in the real world where ";" in dirpaths is itself problematic.
14248
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14249
 
  else
14250
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14251
 
  fi
14252
 
else
14253
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14254
 
fi
14255
 
need_lib_prefix=unknown
14256
 
hardcode_into_libs=no
14257
 
 
14258
 
# when you set need_version to no, make sure it does not cause -set_version
14259
 
# flags to be left without arguments
14260
 
need_version=unknown
14261
 
 
14262
 
case $host_os in
14263
 
aix3*)
14264
 
  version_type=linux
14265
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14266
 
  shlibpath_var=LIBPATH
14267
 
 
14268
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14269
 
  soname_spec='${libname}${release}${shared_ext}$major'
14270
 
  ;;
14271
 
 
14272
 
aix4* | aix5*)
14273
 
  version_type=linux
14274
 
  need_lib_prefix=no
14275
 
  need_version=no
14276
 
  hardcode_into_libs=yes
14277
 
  if test "$host_cpu" = ia64; then
14278
 
    # AIX 5 supports IA64
14279
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14280
 
    shlibpath_var=LD_LIBRARY_PATH
14281
 
  else
14282
 
    # With GCC up to 2.95.x, collect2 would create an import file
14283
 
    # for dependence libraries.  The import file would start with
14284
 
    # the line `#! .'.  This would cause the generated library to
14285
 
    # depend on `.', always an invalid library.  This was fixed in
14286
 
    # development snapshots of GCC prior to 3.0.
14287
 
    case $host_os in
14288
 
      aix4 | aix4.[01] | aix4.[01].*)
14289
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14290
 
           echo ' yes '
14291
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14292
 
        :
14293
 
      else
14294
 
        can_build_shared=no
14295
 
      fi
14296
 
      ;;
14297
 
    esac
14298
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14299
 
    # soname into executable. Probably we can add versioning support to
14300
 
    # collect2, so additional links can be useful in future.
14301
 
    if test "$aix_use_runtimelinking" = yes; then
14302
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14303
 
      # instead of lib<name>.a to let people know that these are not
14304
 
      # typical AIX shared libraries.
14305
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306
 
    else
14307
 
      # We preserve .a as extension for shared libraries through AIX4.2
14308
 
      # and later when we are not doing run time linking.
14309
 
      library_names_spec='${libname}${release}.a $libname.a'
14310
 
      soname_spec='${libname}${release}${shared_ext}$major'
14311
 
    fi
14312
 
    shlibpath_var=LIBPATH
14313
 
  fi
14314
 
  ;;
14315
 
 
14316
 
amigaos*)
14317
 
  library_names_spec='$libname.ixlibrary $libname.a'
14318
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14319
 
  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'
14320
 
  ;;
14321
 
 
14322
 
beos*)
14323
 
  library_names_spec='${libname}${shared_ext}'
14324
 
  dynamic_linker="$host_os ld.so"
14325
 
  shlibpath_var=LIBRARY_PATH
14326
 
  ;;
14327
 
 
14328
 
bsdi[45]*)
14329
 
  version_type=linux
14330
 
  need_version=no
14331
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332
 
  soname_spec='${libname}${release}${shared_ext}$major'
14333
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14334
 
  shlibpath_var=LD_LIBRARY_PATH
14335
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14336
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14337
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14338
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14339
 
  # libtool to hard-code these into programs
14340
 
  ;;
14341
 
 
14342
 
cygwin* | mingw* | pw32*)
14343
 
  version_type=windows
14344
 
  shrext_cmds=".dll"
14345
 
  need_version=no
14346
 
  need_lib_prefix=no
14347
 
 
14348
 
  case $GCC,$host_os in
14349
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
14350
 
    library_names_spec='$libname.dll.a'
14351
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14352
 
    postinstall_cmds='base_file=`basename \${file}`~
14353
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14354
 
      dldir=$destdir/`dirname \$dlpath`~
14355
 
      test -d \$dldir || mkdir -p \$dldir~
14356
 
      $install_prog $dir/$dlname \$dldir/$dlname~
14357
 
      chmod a+x \$dldir/$dlname'
14358
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14359
 
      dlpath=$dir/\$dldll~
14360
 
       $rm \$dlpath'
14361
 
    shlibpath_overrides_runpath=yes
14362
 
 
14363
 
    case $host_os in
14364
 
    cygwin*)
14365
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14366
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14367
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14368
 
      ;;
14369
 
    mingw*)
14370
 
      # MinGW DLLs use traditional 'lib' prefix
14371
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14372
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14373
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14374
 
        # It is most probably a Windows format PATH printed by
14375
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14376
 
        # path with ; separators, and with drive letters. We can handle the
14377
 
        # drive letters (cygwin fileutils understands them), so leave them,
14378
 
        # especially as we might pass files found there to a mingw objdump,
14379
 
        # which wouldn't understand a cygwinified path. Ahh.
14380
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14381
 
      else
14382
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14383
 
      fi
14384
 
      ;;
14385
 
    pw32*)
14386
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14387
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14388
 
      ;;
14389
 
    esac
14390
 
    ;;
14391
 
 
14392
 
  *)
14393
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14394
 
    ;;
14395
 
  esac
14396
 
  dynamic_linker='Win32 ld.exe'
14397
 
  # FIXME: first we should search . and the directory the executable is in
14398
 
  shlibpath_var=PATH
14399
 
  ;;
14400
 
 
14401
 
darwin* | rhapsody*)
14402
 
  dynamic_linker="$host_os dyld"
14403
 
  version_type=darwin
14404
 
  need_lib_prefix=no
14405
 
  need_version=no
14406
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14407
 
  soname_spec='${libname}${release}${major}$shared_ext'
14408
 
  shlibpath_overrides_runpath=yes
14409
 
  shlibpath_var=DYLD_LIBRARY_PATH
14410
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14411
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14412
 
  if test "$GCC" = yes; then
14413
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14414
 
  else
14415
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14416
 
  fi
14417
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14418
 
  ;;
14419
 
 
14420
 
dgux*)
14421
 
  version_type=linux
14422
 
  need_lib_prefix=no
14423
 
  need_version=no
14424
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14425
 
  soname_spec='${libname}${release}${shared_ext}$major'
14426
 
  shlibpath_var=LD_LIBRARY_PATH
14427
 
  ;;
14428
 
 
14429
 
freebsd1*)
14430
 
  dynamic_linker=no
14431
 
  ;;
14432
 
 
14433
 
freebsd* | dragonfly*)
14434
 
  # DragonFly does not have aout.  When/if they implement a new
14435
 
  # versioning mechanism, adjust this.
14436
 
  if test -x /usr/bin/objformat; then
14437
 
    objformat=`/usr/bin/objformat`
14438
 
  else
14439
 
    case $host_os in
14440
 
    freebsd[123]*) objformat=aout ;;
14441
 
    *) objformat=elf ;;
14442
 
    esac
14443
 
  fi
14444
 
  version_type=freebsd-$objformat
14445
 
  case $version_type in
14446
 
    freebsd-elf*)
14447
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14448
 
      need_version=no
14449
 
      need_lib_prefix=no
14450
 
      ;;
14451
 
    freebsd-*)
14452
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14453
 
      need_version=yes
14454
 
      ;;
14455
 
  esac
14456
 
  shlibpath_var=LD_LIBRARY_PATH
14457
 
  case $host_os in
14458
 
  freebsd2*)
14459
 
    shlibpath_overrides_runpath=yes
14460
 
    ;;
14461
 
  freebsd3.[01]* | freebsdelf3.[01]*)
14462
 
    shlibpath_overrides_runpath=yes
14463
 
    hardcode_into_libs=yes
14464
 
    ;;
14465
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14466
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14467
 
    shlibpath_overrides_runpath=no
14468
 
    hardcode_into_libs=yes
14469
 
    ;;
14470
 
  freebsd*) # from 4.6 on
14471
 
    shlibpath_overrides_runpath=yes
14472
 
    hardcode_into_libs=yes
14473
 
    ;;
14474
 
  esac
14475
 
  ;;
14476
 
 
14477
 
gnu*)
14478
 
  version_type=linux
14479
 
  need_lib_prefix=no
14480
 
  need_version=no
14481
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14482
 
  soname_spec='${libname}${release}${shared_ext}$major'
14483
 
  shlibpath_var=LD_LIBRARY_PATH
14484
 
  hardcode_into_libs=yes
14485
 
  ;;
14486
 
 
14487
 
hpux9* | hpux10* | hpux11*)
14488
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14489
 
  # link against other versions.
14490
 
  version_type=sunos
14491
 
  need_lib_prefix=no
14492
 
  need_version=no
14493
 
  case $host_cpu in
14494
 
  ia64*)
14495
 
    shrext_cmds='.so'
14496
 
    hardcode_into_libs=yes
14497
 
    dynamic_linker="$host_os dld.so"
14498
 
    shlibpath_var=LD_LIBRARY_PATH
14499
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14500
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501
 
    soname_spec='${libname}${release}${shared_ext}$major'
14502
 
    if test "X$HPUX_IA64_MODE" = X32; then
14503
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14504
 
    else
14505
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14506
 
    fi
14507
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14508
 
    ;;
14509
 
   hppa*64*)
14510
 
     shrext_cmds='.sl'
14511
 
     hardcode_into_libs=yes
14512
 
     dynamic_linker="$host_os dld.sl"
14513
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14514
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14515
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516
 
     soname_spec='${libname}${release}${shared_ext}$major'
14517
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14518
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14519
 
     ;;
14520
 
   *)
14521
 
    shrext_cmds='.sl'
14522
 
    dynamic_linker="$host_os dld.sl"
14523
 
    shlibpath_var=SHLIB_PATH
14524
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14525
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526
 
    soname_spec='${libname}${release}${shared_ext}$major'
14527
 
    ;;
14528
 
  esac
14529
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14530
 
  postinstall_cmds='chmod 555 $lib'
14531
 
  ;;
14532
 
 
14533
 
interix3*)
14534
 
  version_type=linux
14535
 
  need_lib_prefix=no
14536
 
  need_version=no
14537
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14538
 
  soname_spec='${libname}${release}${shared_ext}$major'
14539
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14540
 
  shlibpath_var=LD_LIBRARY_PATH
14541
 
  shlibpath_overrides_runpath=no
14542
 
  hardcode_into_libs=yes
14543
 
  ;;
14544
 
 
14545
 
irix5* | irix6* | nonstopux*)
14546
 
  case $host_os in
14547
 
    nonstopux*) version_type=nonstopux ;;
14548
 
    *)
14549
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14550
 
                version_type=linux
14551
 
        else
14552
 
                version_type=irix
14553
 
        fi ;;
14554
 
  esac
14555
 
  need_lib_prefix=no
14556
 
  need_version=no
14557
 
  soname_spec='${libname}${release}${shared_ext}$major'
14558
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14559
 
  case $host_os in
14560
 
  irix5* | nonstopux*)
14561
 
    libsuff= shlibsuff=
14562
 
    ;;
14563
 
  *)
14564
 
    case $LD in # libtool.m4 will add one of these switches to LD
14565
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14566
 
      libsuff= shlibsuff= libmagic=32-bit;;
14567
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14568
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14569
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14570
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14571
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14572
 
    esac
14573
 
    ;;
14574
 
  esac
14575
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14576
 
  shlibpath_overrides_runpath=no
14577
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14578
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14579
 
  hardcode_into_libs=yes
14580
 
  ;;
14581
 
 
14582
 
# No shared lib support for Linux oldld, aout, or coff.
14583
 
linux*oldld* | linux*aout* | linux*coff*)
14584
 
  dynamic_linker=no
14585
 
  ;;
14586
 
 
14587
 
# This must be Linux ELF.
14588
 
linux* | k*bsd*-gnu)
14589
 
  version_type=linux
14590
 
  need_lib_prefix=no
14591
 
  need_version=no
14592
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593
 
  soname_spec='${libname}${release}${shared_ext}$major'
14594
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14595
 
  shlibpath_var=LD_LIBRARY_PATH
14596
 
  shlibpath_overrides_runpath=no
14597
 
  # This implies no fast_install, which is unacceptable.
14598
 
  # Some rework will be needed to allow for fast_install
14599
 
  # before this can be enabled.
14600
 
  hardcode_into_libs=yes
14601
 
 
14602
 
  # Append ld.so.conf contents to the search path
14603
 
  if test -f /etc/ld.so.conf; then
14604
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14605
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14606
 
  fi
14607
 
 
14608
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14609
 
  # powerpc, because MkLinux only supported shared libraries with the
14610
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14611
 
  # most powerpc-linux boxes support dynamic linking these days and
14612
 
  # people can always --disable-shared, the test was removed, and we
14613
 
  # assume the GNU/Linux dynamic linker is in use.
14614
 
  dynamic_linker='GNU/Linux ld.so'
14615
 
  ;;
14616
 
 
14617
 
netbsdelf*-gnu)
14618
 
  version_type=linux
14619
 
  need_lib_prefix=no
14620
 
  need_version=no
14621
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14622
 
  soname_spec='${libname}${release}${shared_ext}$major'
14623
 
  shlibpath_var=LD_LIBRARY_PATH
14624
 
  shlibpath_overrides_runpath=no
14625
 
  hardcode_into_libs=yes
14626
 
  dynamic_linker='NetBSD ld.elf_so'
14627
 
  ;;
14628
 
 
14629
 
netbsd*)
14630
 
  version_type=sunos
14631
 
  need_lib_prefix=no
14632
 
  need_version=no
14633
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14634
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14636
 
    dynamic_linker='NetBSD (a.out) ld.so'
14637
 
  else
14638
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14639
 
    soname_spec='${libname}${release}${shared_ext}$major'
14640
 
    dynamic_linker='NetBSD ld.elf_so'
14641
 
  fi
14642
 
  shlibpath_var=LD_LIBRARY_PATH
14643
 
  shlibpath_overrides_runpath=yes
14644
 
  hardcode_into_libs=yes
14645
 
  ;;
14646
 
 
14647
 
newsos6)
14648
 
  version_type=linux
14649
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14650
 
  shlibpath_var=LD_LIBRARY_PATH
14651
 
  shlibpath_overrides_runpath=yes
14652
 
  ;;
14653
 
 
14654
 
nto-qnx*)
14655
 
  version_type=linux
14656
 
  need_lib_prefix=no
14657
 
  need_version=no
14658
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659
 
  soname_spec='${libname}${release}${shared_ext}$major'
14660
 
  shlibpath_var=LD_LIBRARY_PATH
14661
 
  shlibpath_overrides_runpath=yes
14662
 
  ;;
14663
 
 
14664
 
openbsd*)
14665
 
  version_type=sunos
14666
 
  sys_lib_dlsearch_path_spec="/usr/lib"
14667
 
  need_lib_prefix=no
14668
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14669
 
  case $host_os in
14670
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14671
 
    *)                         need_version=no  ;;
14672
 
  esac
14673
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14674
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14675
 
  shlibpath_var=LD_LIBRARY_PATH
14676
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14677
 
    case $host_os in
14678
 
      openbsd2.[89] | openbsd2.[89].*)
14679
 
        shlibpath_overrides_runpath=no
14680
 
        ;;
14681
 
      *)
14682
 
        shlibpath_overrides_runpath=yes
14683
 
        ;;
14684
 
      esac
14685
 
  else
14686
 
    shlibpath_overrides_runpath=yes
14687
 
  fi
14688
 
  ;;
14689
 
 
14690
 
os2*)
14691
 
  libname_spec='$name'
14692
 
  shrext_cmds=".dll"
14693
 
  need_lib_prefix=no
14694
 
  library_names_spec='$libname${shared_ext} $libname.a'
14695
 
  dynamic_linker='OS/2 ld.exe'
14696
 
  shlibpath_var=LIBPATH
14697
 
  ;;
14698
 
 
14699
 
osf3* | osf4* | osf5*)
14700
 
  version_type=osf
14701
 
  need_lib_prefix=no
14702
 
  need_version=no
14703
 
  soname_spec='${libname}${release}${shared_ext}$major'
14704
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705
 
  shlibpath_var=LD_LIBRARY_PATH
14706
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14707
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14708
 
  ;;
14709
 
 
14710
 
solaris*)
14711
 
  version_type=linux
14712
 
  need_lib_prefix=no
14713
 
  need_version=no
14714
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715
 
  soname_spec='${libname}${release}${shared_ext}$major'
14716
 
  shlibpath_var=LD_LIBRARY_PATH
14717
 
  shlibpath_overrides_runpath=yes
14718
 
  hardcode_into_libs=yes
14719
 
  # ldd complains unless libraries are executable
14720
 
  postinstall_cmds='chmod +x $lib'
14721
 
  ;;
14722
 
 
14723
 
sunos4*)
14724
 
  version_type=sunos
14725
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14727
 
  shlibpath_var=LD_LIBRARY_PATH
14728
 
  shlibpath_overrides_runpath=yes
14729
 
  if test "$with_gnu_ld" = yes; then
14730
 
    need_lib_prefix=no
14731
 
  fi
14732
 
  need_version=yes
14733
 
  ;;
14734
 
 
14735
 
sysv4 | sysv4.3*)
14736
 
  version_type=linux
14737
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738
 
  soname_spec='${libname}${release}${shared_ext}$major'
14739
 
  shlibpath_var=LD_LIBRARY_PATH
14740
 
  case $host_vendor in
14741
 
    sni)
14742
 
      shlibpath_overrides_runpath=no
14743
 
      need_lib_prefix=no
14744
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14745
 
      runpath_var=LD_RUN_PATH
14746
 
      ;;
14747
 
    siemens)
14748
 
      need_lib_prefix=no
14749
 
      ;;
14750
 
    motorola)
14751
 
      need_lib_prefix=no
14752
 
      need_version=no
14753
 
      shlibpath_overrides_runpath=no
14754
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14755
 
      ;;
14756
 
  esac
14757
 
  ;;
14758
 
 
14759
 
sysv4*MP*)
14760
 
  if test -d /usr/nec ;then
14761
 
    version_type=linux
14762
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14763
 
    soname_spec='$libname${shared_ext}.$major'
14764
 
    shlibpath_var=LD_LIBRARY_PATH
14765
 
  fi
14766
 
  ;;
14767
 
 
14768
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14769
 
  version_type=freebsd-elf
14770
 
  need_lib_prefix=no
14771
 
  need_version=no
14772
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14773
 
  soname_spec='${libname}${release}${shared_ext}$major'
14774
 
  shlibpath_var=LD_LIBRARY_PATH
14775
 
  hardcode_into_libs=yes
14776
 
  if test "$with_gnu_ld" = yes; then
14777
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14778
 
    shlibpath_overrides_runpath=no
14779
 
  else
14780
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14781
 
    shlibpath_overrides_runpath=yes
14782
 
    case $host_os in
14783
 
      sco3.2v5*)
14784
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14785
 
        ;;
14786
 
    esac
14787
 
  fi
14788
 
  sys_lib_dlsearch_path_spec='/usr/lib'
14789
 
  ;;
14790
 
 
14791
 
uts4*)
14792
 
  version_type=linux
14793
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794
 
  soname_spec='${libname}${release}${shared_ext}$major'
14795
 
  shlibpath_var=LD_LIBRARY_PATH
14796
 
  ;;
14797
 
 
14798
 
*)
14799
 
  dynamic_linker=no
14800
 
  ;;
14801
 
esac
14802
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14803
 
echo "${ECHO_T}$dynamic_linker" >&6; }
14804
 
test "$dynamic_linker" = no && can_build_shared=no
14805
 
 
14806
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14807
 
if test "$GCC" = yes; then
14808
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14809
 
fi
14810
 
 
14811
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14812
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14813
 
hardcode_action_CXX=
14814
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14815
 
   test -n "$runpath_var_CXX" || \
14816
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14817
 
 
14818
 
  # We can hardcode non-existant directories.
14819
 
  if test "$hardcode_direct_CXX" != no &&
14820
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14821
 
     # have to relink, otherwise we might link with an installed library
14822
 
     # when we should be linking with a yet-to-be-installed one
14823
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14824
 
     test "$hardcode_minus_L_CXX" != no; then
14825
 
    # Linking always hardcodes the temporary library directory.
14826
 
    hardcode_action_CXX=relink
14827
 
  else
14828
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14829
 
    hardcode_action_CXX=immediate
14830
 
  fi
14831
 
else
14832
 
  # We cannot hardcode anything, or else we can only hardcode existing
14833
 
  # directories.
14834
 
  hardcode_action_CXX=unsupported
14835
 
fi
14836
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14837
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14838
 
 
14839
 
if test "$hardcode_action_CXX" = relink; then
14840
 
  # Fast installation is not supported
14841
 
  enable_fast_install=no
14842
 
elif test "$shlibpath_overrides_runpath" = yes ||
14843
 
     test "$enable_shared" = no; then
14844
 
  # Fast installation is not necessary
14845
 
  enable_fast_install=needless
14846
 
fi
14847
 
 
14848
 
 
14849
 
# The else clause should only fire when bootstrapping the
14850
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14851
 
# with your package, and you will get complaints that there are
14852
 
# no rules to generate ltmain.sh.
14853
 
if test -f "$ltmain"; then
14854
 
  # See if we are running on zsh, and set the options which allow our commands through
14855
 
  # without removal of \ escapes.
14856
 
  if test -n "${ZSH_VERSION+set}" ; then
14857
 
    setopt NO_GLOB_SUBST
14858
 
  fi
14859
 
  # Now quote all the things that may contain metacharacters while being
14860
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14861
 
  # variables and quote the copies for generation of the libtool script.
14862
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14863
 
    SED SHELL STRIP \
14864
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14865
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14866
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14867
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14868
 
    lt_cv_sys_global_symbol_to_c_name_address \
14869
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14870
 
    old_postinstall_cmds old_postuninstall_cmds \
14871
 
    compiler_CXX \
14872
 
    CC_CXX \
14873
 
    LD_CXX \
14874
 
    lt_prog_compiler_wl_CXX \
14875
 
    lt_prog_compiler_pic_CXX \
14876
 
    lt_prog_compiler_static_CXX \
14877
 
    lt_prog_compiler_no_builtin_flag_CXX \
14878
 
    export_dynamic_flag_spec_CXX \
14879
 
    thread_safe_flag_spec_CXX \
14880
 
    whole_archive_flag_spec_CXX \
14881
 
    enable_shared_with_static_runtimes_CXX \
14882
 
    old_archive_cmds_CXX \
14883
 
    old_archive_from_new_cmds_CXX \
14884
 
    predep_objects_CXX \
14885
 
    postdep_objects_CXX \
14886
 
    predeps_CXX \
14887
 
    postdeps_CXX \
14888
 
    compiler_lib_search_path_CXX \
14889
 
    archive_cmds_CXX \
14890
 
    archive_expsym_cmds_CXX \
14891
 
    postinstall_cmds_CXX \
14892
 
    postuninstall_cmds_CXX \
14893
 
    old_archive_from_expsyms_cmds_CXX \
14894
 
    allow_undefined_flag_CXX \
14895
 
    no_undefined_flag_CXX \
14896
 
    export_symbols_cmds_CXX \
14897
 
    hardcode_libdir_flag_spec_CXX \
14898
 
    hardcode_libdir_flag_spec_ld_CXX \
14899
 
    hardcode_libdir_separator_CXX \
14900
 
    hardcode_automatic_CXX \
14901
 
    module_cmds_CXX \
14902
 
    module_expsym_cmds_CXX \
14903
 
    lt_cv_prog_compiler_c_o_CXX \
14904
 
    exclude_expsyms_CXX \
14905
 
    include_expsyms_CXX; do
14906
 
 
14907
 
    case $var in
14908
 
    old_archive_cmds_CXX | \
14909
 
    old_archive_from_new_cmds_CXX | \
14910
 
    archive_cmds_CXX | \
14911
 
    archive_expsym_cmds_CXX | \
14912
 
    module_cmds_CXX | \
14913
 
    module_expsym_cmds_CXX | \
14914
 
    old_archive_from_expsyms_cmds_CXX | \
14915
 
    export_symbols_cmds_CXX | \
14916
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14917
 
    postinstall_cmds | postuninstall_cmds | \
14918
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14919
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14920
 
      # Double-quote double-evaled strings.
14921
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14922
 
      ;;
14923
 
    *)
14924
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14925
 
      ;;
14926
 
    esac
14927
 
  done
14928
 
 
14929
 
  case $lt_echo in
14930
 
  *'\$0 --fallback-echo"')
14931
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14932
 
    ;;
14933
 
  esac
14934
 
 
14935
 
cfgfile="$ofile"
14936
 
 
14937
 
  cat <<__EOF__ >> "$cfgfile"
14938
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14939
 
 
14940
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14941
 
 
14942
 
# Shell to use when invoking shell scripts.
14943
 
SHELL=$lt_SHELL
14944
 
 
14945
 
# Whether or not to build shared libraries.
14946
 
build_libtool_libs=$enable_shared
14947
 
 
14948
 
# Whether or not to build static libraries.
14949
 
build_old_libs=$enable_static
14950
 
 
14951
 
# Whether or not to add -lc for building shared libraries.
14952
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14953
 
 
14954
 
# Whether or not to disallow shared libs when runtime libs are static
14955
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14956
 
 
14957
 
# Whether or not to optimize for fast installation.
14958
 
fast_install=$enable_fast_install
14959
 
 
14960
 
# The host system.
14961
 
host_alias=$host_alias
14962
 
host=$host
14963
 
host_os=$host_os
14964
 
 
14965
 
# The build system.
14966
 
build_alias=$build_alias
14967
 
build=$build
14968
 
build_os=$build_os
14969
 
 
14970
 
# An echo program that does not interpret backslashes.
14971
 
echo=$lt_echo
14972
 
 
14973
 
# The archiver.
14974
 
AR=$lt_AR
14975
 
AR_FLAGS=$lt_AR_FLAGS
14976
 
 
14977
 
# A C compiler.
14978
 
LTCC=$lt_LTCC
14979
 
 
14980
 
# LTCC compiler flags.
14981
 
LTCFLAGS=$lt_LTCFLAGS
14982
 
 
14983
 
# A language-specific compiler.
14984
 
CC=$lt_compiler_CXX
14985
 
 
14986
 
# Is the compiler the GNU C compiler?
14987
 
with_gcc=$GCC_CXX
14988
 
 
14989
 
# An ERE matcher.
14990
 
EGREP=$lt_EGREP
14991
 
 
14992
 
# The linker used to build libraries.
14993
 
LD=$lt_LD_CXX
14994
 
 
14995
 
# Whether we need hard or soft links.
14996
 
LN_S=$lt_LN_S
14997
 
 
14998
 
# A BSD-compatible nm program.
14999
 
NM=$lt_NM
15000
 
 
15001
 
# A symbol stripping program
15002
 
STRIP=$lt_STRIP
15003
 
 
15004
 
# Used to examine libraries when file_magic_cmd begins "file"
15005
 
MAGIC_CMD=$MAGIC_CMD
15006
 
 
15007
 
# Used on cygwin: DLL creation program.
15008
 
DLLTOOL="$DLLTOOL"
15009
 
 
15010
 
# Used on cygwin: object dumper.
15011
 
OBJDUMP="$OBJDUMP"
15012
 
 
15013
 
# Used on cygwin: assembler.
15014
 
AS="$AS"
15015
 
 
15016
 
# The name of the directory that contains temporary libtool files.
15017
 
objdir=$objdir
15018
 
 
15019
 
# How to create reloadable object files.
15020
 
reload_flag=$lt_reload_flag
15021
 
reload_cmds=$lt_reload_cmds
15022
 
 
15023
 
# How to pass a linker flag through the compiler.
15024
 
wl=$lt_lt_prog_compiler_wl_CXX
15025
 
 
15026
 
# Object file suffix (normally "o").
15027
 
objext="$ac_objext"
15028
 
 
15029
 
# Old archive suffix (normally "a").
15030
 
libext="$libext"
15031
 
 
15032
 
# Shared library suffix (normally ".so").
15033
 
shrext_cmds='$shrext_cmds'
15034
 
 
15035
 
# Executable file suffix (normally "").
15036
 
exeext="$exeext"
15037
 
 
15038
 
# Additional compiler flags for building library objects.
15039
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
15040
 
pic_mode=$pic_mode
15041
 
 
15042
 
# What is the maximum length of a command?
15043
 
max_cmd_len=$lt_cv_sys_max_cmd_len
15044
 
 
15045
 
# Does compiler simultaneously support -c and -o options?
15046
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15047
 
 
15048
 
# Must we lock files when doing compilation?
15049
 
need_locks=$lt_need_locks
15050
 
 
15051
 
# Do we need the lib prefix for modules?
15052
 
need_lib_prefix=$need_lib_prefix
15053
 
 
15054
 
# Do we need a version for libraries?
15055
 
need_version=$need_version
15056
 
 
15057
 
# Whether dlopen is supported.
15058
 
dlopen_support=$enable_dlopen
15059
 
 
15060
 
# Whether dlopen of programs is supported.
15061
 
dlopen_self=$enable_dlopen_self
15062
 
 
15063
 
# Whether dlopen of statically linked programs is supported.
15064
 
dlopen_self_static=$enable_dlopen_self_static
15065
 
 
15066
 
# Compiler flag to prevent dynamic linking.
15067
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
15068
 
 
15069
 
# Compiler flag to turn off builtin functions.
15070
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15071
 
 
15072
 
# Compiler flag to allow reflexive dlopens.
15073
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15074
 
 
15075
 
# Compiler flag to generate shared objects directly from archives.
15076
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15077
 
 
15078
 
# Compiler flag to generate thread-safe objects.
15079
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15080
 
 
15081
 
# Library versioning type.
15082
 
version_type=$version_type
15083
 
 
15084
 
# Format of library name prefix.
15085
 
libname_spec=$lt_libname_spec
15086
 
 
15087
 
# List of archive names.  First name is the real one, the rest are links.
15088
 
# The last name is the one that the linker finds with -lNAME.
15089
 
library_names_spec=$lt_library_names_spec
15090
 
 
15091
 
# The coded name of the library, if different from the real name.
15092
 
soname_spec=$lt_soname_spec
15093
 
 
15094
 
# Commands used to build and install an old-style archive.
15095
 
RANLIB=$lt_RANLIB
15096
 
old_archive_cmds=$lt_old_archive_cmds_CXX
15097
 
old_postinstall_cmds=$lt_old_postinstall_cmds
15098
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15099
 
 
15100
 
# Create an old-style archive from a shared archive.
15101
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15102
 
 
15103
 
# Create a temporary old-style archive to link instead of a shared archive.
15104
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15105
 
 
15106
 
# Commands used to build and install a shared archive.
15107
 
archive_cmds=$lt_archive_cmds_CXX
15108
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15109
 
postinstall_cmds=$lt_postinstall_cmds
15110
 
postuninstall_cmds=$lt_postuninstall_cmds
15111
 
 
15112
 
# Commands used to build a loadable module (assumed same as above if empty)
15113
 
module_cmds=$lt_module_cmds_CXX
15114
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15115
 
 
15116
 
# Commands to strip libraries.
15117
 
old_striplib=$lt_old_striplib
15118
 
striplib=$lt_striplib
15119
 
 
15120
 
# Dependencies to place before the objects being linked to create a
15121
 
# shared library.
15122
 
predep_objects=$lt_predep_objects_CXX
15123
 
 
15124
 
# Dependencies to place after the objects being linked to create a
15125
 
# shared library.
15126
 
postdep_objects=$lt_postdep_objects_CXX
15127
 
 
15128
 
# Dependencies to place before the objects being linked to create a
15129
 
# shared library.
15130
 
predeps=$lt_predeps_CXX
15131
 
 
15132
 
# Dependencies to place after the objects being linked to create a
15133
 
# shared library.
15134
 
postdeps=$lt_postdeps_CXX
15135
 
 
15136
 
# The library search path used internally by the compiler when linking
15137
 
# a shared library.
15138
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15139
 
 
15140
 
# Method to check whether dependent libraries are shared objects.
15141
 
deplibs_check_method=$lt_deplibs_check_method
15142
 
 
15143
 
# Command to use when deplibs_check_method == file_magic.
15144
 
file_magic_cmd=$lt_file_magic_cmd
15145
 
 
15146
 
# Flag that allows shared libraries with undefined symbols to be built.
15147
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15148
 
 
15149
 
# Flag that forces no undefined symbols.
15150
 
no_undefined_flag=$lt_no_undefined_flag_CXX
15151
 
 
15152
 
# Commands used to finish a libtool library installation in a directory.
15153
 
finish_cmds=$lt_finish_cmds
15154
 
 
15155
 
# Same as above, but a single script fragment to be evaled but not shown.
15156
 
finish_eval=$lt_finish_eval
15157
 
 
15158
 
# Take the output of nm and produce a listing of raw symbols and C names.
15159
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15160
 
 
15161
 
# Transform the output of nm in a proper C declaration
15162
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15163
 
 
15164
 
# Transform the output of nm in a C name address pair
15165
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15166
 
 
15167
 
# This is the shared library runtime path variable.
15168
 
runpath_var=$runpath_var
15169
 
 
15170
 
# This is the shared library path variable.
15171
 
shlibpath_var=$shlibpath_var
15172
 
 
15173
 
# Is shlibpath searched before the hard-coded library search path?
15174
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15175
 
 
15176
 
# How to hardcode a shared library path into an executable.
15177
 
hardcode_action=$hardcode_action_CXX
15178
 
 
15179
 
# Whether we should hardcode library paths into libraries.
15180
 
hardcode_into_libs=$hardcode_into_libs
15181
 
 
15182
 
# Flag to hardcode \$libdir into a binary during linking.
15183
 
# This must work even if \$libdir does not exist.
15184
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15185
 
 
15186
 
# If ld is used when linking, flag to hardcode \$libdir into
15187
 
# a binary during linking. This must work even if \$libdir does
15188
 
# not exist.
15189
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15190
 
 
15191
 
# Whether we need a single -rpath flag with a separated argument.
15192
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15193
 
 
15194
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15195
 
# resulting binary.
15196
 
hardcode_direct=$hardcode_direct_CXX
15197
 
 
15198
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15199
 
# resulting binary.
15200
 
hardcode_minus_L=$hardcode_minus_L_CXX
15201
 
 
15202
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15203
 
# the resulting binary.
15204
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15205
 
 
15206
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
15207
 
# and all subsequent libraries and executables linked against it.
15208
 
hardcode_automatic=$hardcode_automatic_CXX
15209
 
 
15210
 
# Variables whose values should be saved in libtool wrapper scripts and
15211
 
# restored at relink time.
15212
 
variables_saved_for_relink="$variables_saved_for_relink"
15213
 
 
15214
 
# Whether libtool must link a program against all its dependency libraries.
15215
 
link_all_deplibs=$link_all_deplibs_CXX
15216
 
 
15217
 
# Compile-time system search path for libraries
15218
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15219
 
 
15220
 
# Run-time system search path for libraries
15221
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15222
 
 
15223
 
# Fix the shell variable \$srcfile for the compiler.
15224
 
fix_srcfile_path="$fix_srcfile_path_CXX"
15225
 
 
15226
 
# Set to yes if exported symbols are required.
15227
 
always_export_symbols=$always_export_symbols_CXX
15228
 
 
15229
 
# The commands to list exported symbols.
15230
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15231
 
 
15232
 
# The commands to extract the exported symbol list from a shared archive.
15233
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15234
 
 
15235
 
# Symbols that should not be listed in the preloaded symbols.
15236
 
exclude_expsyms=$lt_exclude_expsyms_CXX
15237
 
 
15238
 
# Symbols that must always be exported.
15239
 
include_expsyms=$lt_include_expsyms_CXX
15240
 
 
15241
 
# ### END LIBTOOL TAG CONFIG: $tagname
15242
 
 
15243
 
__EOF__
15244
 
 
15245
 
 
15246
 
else
15247
 
  # If there is no Makefile yet, we rely on a make rule to execute
15248
 
  # `config.status --recheck' to rerun these tests and create the
15249
 
  # libtool script then.
15250
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15251
 
  if test -f "$ltmain_in"; then
15252
 
    test -f Makefile && make "$ltmain"
15253
 
  fi
15254
 
fi
15255
 
 
15256
 
 
15257
 
ac_ext=c
15258
 
ac_cpp='$CPP $CPPFLAGS'
15259
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15260
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15261
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15262
 
 
15263
 
CC=$lt_save_CC
15264
 
LDCXX=$LD
15265
 
LD=$lt_save_LD
15266
 
GCC=$lt_save_GCC
15267
 
with_gnu_ldcxx=$with_gnu_ld
15268
 
with_gnu_ld=$lt_save_with_gnu_ld
15269
 
lt_cv_path_LDCXX=$lt_cv_path_LD
15270
 
lt_cv_path_LD=$lt_save_path_LD
15271
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15272
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15273
 
 
15274
 
        else
15275
 
          tagname=""
15276
 
        fi
15277
 
        ;;
15278
 
 
15279
 
      F77)
15280
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
15281
 
          
15282
 
ac_ext=f
15283
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15284
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15285
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15286
 
 
15287
 
 
15288
 
archive_cmds_need_lc_F77=no
15289
 
allow_undefined_flag_F77=
15290
 
always_export_symbols_F77=no
15291
 
archive_expsym_cmds_F77=
15292
 
export_dynamic_flag_spec_F77=
15293
 
hardcode_direct_F77=no
15294
 
hardcode_libdir_flag_spec_F77=
15295
 
hardcode_libdir_flag_spec_ld_F77=
15296
 
hardcode_libdir_separator_F77=
15297
 
hardcode_minus_L_F77=no
15298
 
hardcode_automatic_F77=no
15299
 
module_cmds_F77=
15300
 
module_expsym_cmds_F77=
15301
 
link_all_deplibs_F77=unknown
15302
 
old_archive_cmds_F77=$old_archive_cmds
15303
 
no_undefined_flag_F77=
15304
 
whole_archive_flag_spec_F77=
15305
 
enable_shared_with_static_runtimes_F77=no
15306
 
 
15307
 
# Source file extension for f77 test sources.
15308
 
ac_ext=f
15309
 
 
15310
 
# Object file extension for compiled f77 test sources.
15311
 
objext=o
15312
 
objext_F77=$objext
15313
 
 
15314
 
# Code to be used in simple compile tests
15315
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15316
 
 
15317
 
# Code to be used in simple link tests
15318
 
lt_simple_link_test_code="      program t\n      end\n"
15319
 
 
15320
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15321
 
 
15322
 
# If no C compiler was specified, use CC.
15323
 
LTCC=${LTCC-"$CC"}
15324
 
 
15325
 
# If no C compiler flags were specified, use CFLAGS.
15326
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15327
 
 
15328
 
# Allow CC to be a program name with arguments.
15329
 
compiler=$CC
15330
 
 
15331
 
 
15332
 
# save warnings/boilerplate of simple test code
15333
 
ac_outfile=conftest.$ac_objext
15334
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15335
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15336
 
_lt_compiler_boilerplate=`cat conftest.err`
15337
 
$rm conftest*
15338
 
 
15339
 
ac_outfile=conftest.$ac_objext
15340
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15341
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15342
 
_lt_linker_boilerplate=`cat conftest.err`
15343
 
$rm conftest*
15344
 
 
15345
 
 
15346
 
# Allow CC to be a program name with arguments.
15347
 
lt_save_CC="$CC"
15348
 
CC=${F77-"f77"}
15349
 
compiler=$CC
15350
 
compiler_F77=$CC
15351
 
for cc_temp in $compiler""; do
15352
 
  case $cc_temp in
15353
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15354
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15355
 
    \-*) ;;
15356
 
    *) break;;
15357
 
  esac
15358
 
done
15359
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15360
 
 
15361
 
 
15362
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15363
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15364
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15365
 
echo "${ECHO_T}$can_build_shared" >&6; }
15366
 
 
15367
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15368
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15369
 
test "$can_build_shared" = "no" && enable_shared=no
15370
 
 
15371
 
# On AIX, shared libraries and static libraries use the same namespace, and
15372
 
# are all built from PIC.
15373
 
case $host_os in
15374
 
aix3*)
15375
 
  test "$enable_shared" = yes && enable_static=no
15376
 
  if test -n "$RANLIB"; then
15377
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15378
 
    postinstall_cmds='$RANLIB $lib'
15379
 
  fi
15380
 
  ;;
15381
 
aix4* | aix5*)
15382
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15383
 
    test "$enable_shared" = yes && enable_static=no
15384
 
  fi
15385
 
  ;;
15386
 
esac
15387
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15388
 
echo "${ECHO_T}$enable_shared" >&6; }
15389
 
 
15390
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15391
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15392
 
# Make sure either enable_shared or enable_static is yes.
15393
 
test "$enable_shared" = yes || enable_static=yes
15394
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15395
 
echo "${ECHO_T}$enable_static" >&6; }
15396
 
 
15397
 
GCC_F77="$G77"
15398
 
LD_F77="$LD"
15399
 
 
15400
 
lt_prog_compiler_wl_F77=
15401
 
lt_prog_compiler_pic_F77=
15402
 
lt_prog_compiler_static_F77=
15403
 
 
15404
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15405
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15406
 
 
15407
 
  if test "$GCC" = yes; then
15408
 
    lt_prog_compiler_wl_F77='-Wl,'
15409
 
    lt_prog_compiler_static_F77='-static'
15410
 
 
15411
 
    case $host_os in
15412
 
      aix*)
15413
 
      # All AIX code is PIC.
15414
 
      if test "$host_cpu" = ia64; then
15415
 
        # AIX 5 now supports IA64 processor
15416
 
        lt_prog_compiler_static_F77='-Bstatic'
15417
 
      fi
15418
 
      ;;
15419
 
 
15420
 
    amigaos*)
15421
 
      # FIXME: we need at least 68020 code to build shared libraries, but
15422
 
      # adding the `-m68020' flag to GCC prevents building anything better,
15423
 
      # like `-m68040'.
15424
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15425
 
      ;;
15426
 
 
15427
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15428
 
      # PIC is the default for these OSes.
15429
 
      ;;
15430
 
 
15431
 
    mingw* | pw32* | os2*)
15432
 
      # This hack is so that the source file can tell whether it is being
15433
 
      # built for inclusion in a dll (and should export symbols for example).
15434
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15435
 
      ;;
15436
 
 
15437
 
    darwin* | rhapsody*)
15438
 
      # PIC is the default on this platform
15439
 
      # Common symbols not allowed in MH_DYLIB files
15440
 
      lt_prog_compiler_pic_F77='-fno-common'
15441
 
      ;;
15442
 
 
15443
 
    interix3*)
15444
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15445
 
      # Instead, we relocate shared libraries at runtime.
15446
 
      ;;
15447
 
 
15448
 
    msdosdjgpp*)
15449
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15450
 
      # on systems that don't support them.
15451
 
      lt_prog_compiler_can_build_shared_F77=no
15452
 
      enable_shared=no
15453
 
      ;;
15454
 
 
15455
 
    sysv4*MP*)
15456
 
      if test -d /usr/nec; then
15457
 
        lt_prog_compiler_pic_F77=-Kconform_pic
15458
 
      fi
15459
 
      ;;
15460
 
 
15461
 
    hpux*)
15462
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15463
 
      # not for PA HP-UX.
15464
 
      case $host_cpu in
15465
 
      hppa*64*|ia64*)
15466
 
        # +Z the default
15467
 
        ;;
15468
 
      *)
15469
 
        lt_prog_compiler_pic_F77='-fPIC'
15470
 
        ;;
15471
 
      esac
15472
 
      ;;
15473
 
 
15474
 
    *)
15475
 
      lt_prog_compiler_pic_F77='-fPIC'
15476
 
      ;;
15477
 
    esac
15478
 
  else
15479
 
    # PORTME Check for flag to pass linker flags through the system compiler.
15480
 
    case $host_os in
15481
 
    aix*)
15482
 
      lt_prog_compiler_wl_F77='-Wl,'
15483
 
      if test "$host_cpu" = ia64; then
15484
 
        # AIX 5 now supports IA64 processor
15485
 
        lt_prog_compiler_static_F77='-Bstatic'
15486
 
      else
15487
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15488
 
      fi
15489
 
      ;;
15490
 
      darwin*)
15491
 
        # PIC is the default on this platform
15492
 
        # Common symbols not allowed in MH_DYLIB files
15493
 
       case $cc_basename in
15494
 
         xlc*)
15495
 
         lt_prog_compiler_pic_F77='-qnocommon'
15496
 
         lt_prog_compiler_wl_F77='-Wl,'
15497
 
         ;;
15498
 
       esac
15499
 
       ;;
15500
 
 
15501
 
    mingw* | pw32* | os2*)
15502
 
      # This hack is so that the source file can tell whether it is being
15503
 
      # built for inclusion in a dll (and should export symbols for example).
15504
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15505
 
      ;;
15506
 
 
15507
 
    hpux9* | hpux10* | hpux11*)
15508
 
      lt_prog_compiler_wl_F77='-Wl,'
15509
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15510
 
      # not for PA HP-UX.
15511
 
      case $host_cpu in
15512
 
      hppa*64*|ia64*)
15513
 
        # +Z the default
15514
 
        ;;
15515
 
      *)
15516
 
        lt_prog_compiler_pic_F77='+Z'
15517
 
        ;;
15518
 
      esac
15519
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15520
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15521
 
      ;;
15522
 
 
15523
 
    irix5* | irix6* | nonstopux*)
15524
 
      lt_prog_compiler_wl_F77='-Wl,'
15525
 
      # PIC (with -KPIC) is the default.
15526
 
      lt_prog_compiler_static_F77='-non_shared'
15527
 
      ;;
15528
 
 
15529
 
    newsos6)
15530
 
      lt_prog_compiler_pic_F77='-KPIC'
15531
 
      lt_prog_compiler_static_F77='-Bstatic'
15532
 
      ;;
15533
 
 
15534
 
    linux* | k*bsd*-gnu)
15535
 
      case $cc_basename in
15536
 
      icc* | ecc*)
15537
 
        lt_prog_compiler_wl_F77='-Wl,'
15538
 
        lt_prog_compiler_pic_F77='-KPIC'
15539
 
        lt_prog_compiler_static_F77='-static'
15540
 
        ;;
15541
 
      pgcc* | pgf77* | pgf90* | pgf95*)
15542
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
15543
 
        # which looks to be a dead project)
15544
 
        lt_prog_compiler_wl_F77='-Wl,'
15545
 
        lt_prog_compiler_pic_F77='-fpic'
15546
 
        lt_prog_compiler_static_F77='-Bstatic'
15547
 
        ;;
15548
 
      ccc*)
15549
 
        lt_prog_compiler_wl_F77='-Wl,'
15550
 
        # All Alpha code is PIC.
15551
 
        lt_prog_compiler_static_F77='-non_shared'
15552
 
        ;;
15553
 
      esac
15554
 
      ;;
15555
 
 
15556
 
    osf3* | osf4* | osf5*)
15557
 
      lt_prog_compiler_wl_F77='-Wl,'
15558
 
      # All OSF/1 code is PIC.
15559
 
      lt_prog_compiler_static_F77='-non_shared'
15560
 
      ;;
15561
 
 
15562
 
    solaris*)
15563
 
      lt_prog_compiler_pic_F77='-KPIC'
15564
 
      lt_prog_compiler_static_F77='-Bstatic'
15565
 
      case $cc_basename in
15566
 
      f77* | f90* | f95*)
15567
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
15568
 
      *)
15569
 
        lt_prog_compiler_wl_F77='-Wl,';;
15570
 
      esac
15571
 
      ;;
15572
 
 
15573
 
    sunos4*)
15574
 
      lt_prog_compiler_wl_F77='-Qoption ld '
15575
 
      lt_prog_compiler_pic_F77='-PIC'
15576
 
      lt_prog_compiler_static_F77='-Bstatic'
15577
 
      ;;
15578
 
 
15579
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
15580
 
      lt_prog_compiler_wl_F77='-Wl,'
15581
 
      lt_prog_compiler_pic_F77='-KPIC'
15582
 
      lt_prog_compiler_static_F77='-Bstatic'
15583
 
      ;;
15584
 
 
15585
 
    sysv4*MP*)
15586
 
      if test -d /usr/nec ;then
15587
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
15588
 
        lt_prog_compiler_static_F77='-Bstatic'
15589
 
      fi
15590
 
      ;;
15591
 
 
15592
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15593
 
      lt_prog_compiler_wl_F77='-Wl,'
15594
 
      lt_prog_compiler_pic_F77='-KPIC'
15595
 
      lt_prog_compiler_static_F77='-Bstatic'
15596
 
      ;;
15597
 
 
15598
 
    unicos*)
15599
 
      lt_prog_compiler_wl_F77='-Wl,'
15600
 
      lt_prog_compiler_can_build_shared_F77=no
15601
 
      ;;
15602
 
 
15603
 
    uts4*)
15604
 
      lt_prog_compiler_pic_F77='-pic'
15605
 
      lt_prog_compiler_static_F77='-Bstatic'
15606
 
      ;;
15607
 
 
15608
 
    *)
15609
 
      lt_prog_compiler_can_build_shared_F77=no
15610
 
      ;;
15611
 
    esac
15612
 
  fi
15613
 
 
15614
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15615
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15616
 
 
15617
 
#
15618
 
# Check to make sure the PIC flag actually works.
15619
 
#
15620
 
if test -n "$lt_prog_compiler_pic_F77"; then
15621
 
  
15622
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15623
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15624
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15625
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15626
 
else
15627
 
  lt_prog_compiler_pic_works_F77=no
15628
 
  ac_outfile=conftest.$ac_objext
15629
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15630
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15631
 
   # Insert the option either (1) after the last *FLAGS variable, or
15632
 
   # (2) before a word containing "conftest.", or (3) at the end.
15633
 
   # Note that $ac_compile itself does not contain backslashes and begins
15634
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15635
 
   # The option is referenced via a variable to avoid confusing sed.
15636
 
   lt_compile=`echo "$ac_compile" | $SED \
15637
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15638
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15639
 
   -e 's:$: $lt_compiler_flag:'`
15640
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15641
 
   (eval "$lt_compile" 2>conftest.err)
15642
 
   ac_status=$?
15643
 
   cat conftest.err >&5
15644
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15645
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15646
 
     # The compiler can only warn and ignore the option if not recognized
15647
 
     # So say no if there are warnings other than the usual output.
15648
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15649
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15650
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15651
 
       lt_prog_compiler_pic_works_F77=yes
15652
 
     fi
15653
 
   fi
15654
 
   $rm conftest*
15655
 
 
15656
 
fi
15657
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15658
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15659
 
 
15660
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15661
 
    case $lt_prog_compiler_pic_F77 in
15662
 
     "" | " "*) ;;
15663
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15664
 
     esac
15665
 
else
15666
 
    lt_prog_compiler_pic_F77=
15667
 
     lt_prog_compiler_can_build_shared_F77=no
15668
 
fi
15669
 
 
15670
 
fi
15671
 
case $host_os in
15672
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15673
 
  *djgpp*)
15674
 
    lt_prog_compiler_pic_F77=
15675
 
    ;;
15676
 
  *)
15677
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15678
 
    ;;
15679
 
esac
15680
 
 
15681
 
#
15682
 
# Check to make sure the static flag actually works.
15683
 
#
15684
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15685
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15686
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15687
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15688
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15689
 
else
15690
 
  lt_prog_compiler_static_works_F77=no
15691
 
   save_LDFLAGS="$LDFLAGS"
15692
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15693
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15694
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15695
 
     # The linker can only warn and ignore the option if not recognized
15696
 
     # So say no if there are warnings
15697
 
     if test -s conftest.err; then
15698
 
       # Append any errors to the config.log.
15699
 
       cat conftest.err 1>&5
15700
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15701
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15702
 
       if diff conftest.exp conftest.er2 >/dev/null; then
15703
 
         lt_prog_compiler_static_works_F77=yes
15704
 
       fi
15705
 
     else
15706
 
       lt_prog_compiler_static_works_F77=yes
15707
 
     fi
15708
 
   fi
15709
 
   $rm conftest*
15710
 
   LDFLAGS="$save_LDFLAGS"
15711
 
 
15712
 
fi
15713
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15714
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15715
 
 
15716
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15717
 
    :
15718
 
else
15719
 
    lt_prog_compiler_static_F77=
15720
 
fi
15721
 
 
15722
 
 
15723
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15724
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15725
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15726
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15727
 
else
15728
 
  lt_cv_prog_compiler_c_o_F77=no
15729
 
   $rm -r conftest 2>/dev/null
15730
 
   mkdir conftest
15731
 
   cd conftest
15732
 
   mkdir out
15733
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15734
 
 
15735
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15736
 
   # Insert the option either (1) after the last *FLAGS variable, or
15737
 
   # (2) before a word containing "conftest.", or (3) at the end.
15738
 
   # Note that $ac_compile itself does not contain backslashes and begins
15739
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15740
 
   lt_compile=`echo "$ac_compile" | $SED \
15741
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15742
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15743
 
   -e 's:$: $lt_compiler_flag:'`
15744
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15745
 
   (eval "$lt_compile" 2>out/conftest.err)
15746
 
   ac_status=$?
15747
 
   cat out/conftest.err >&5
15748
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15749
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15750
 
   then
15751
 
     # The compiler can only warn and ignore the option if not recognized
15752
 
     # So say no if there are warnings
15753
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15754
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15755
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15756
 
       lt_cv_prog_compiler_c_o_F77=yes
15757
 
     fi
15758
 
   fi
15759
 
   chmod u+w . 2>&5
15760
 
   $rm conftest*
15761
 
   # SGI C++ compiler will create directory out/ii_files/ for
15762
 
   # template instantiation
15763
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15764
 
   $rm out/* && rmdir out
15765
 
   cd ..
15766
 
   rmdir conftest
15767
 
   $rm conftest*
15768
 
 
15769
 
fi
15770
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15771
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15772
 
 
15773
 
 
15774
 
hard_links="nottested"
15775
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15776
 
  # do not overwrite the value of need_locks provided by the user
15777
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15778
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15779
 
  hard_links=yes
15780
 
  $rm conftest*
15781
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15782
 
  touch conftest.a
15783
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15784
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15785
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
15786
 
echo "${ECHO_T}$hard_links" >&6; }
15787
 
  if test "$hard_links" = no; then
15788
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15789
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15790
 
    need_locks=warn
15791
 
  fi
15792
 
else
15793
 
  need_locks=no
15794
 
fi
15795
 
 
15796
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15797
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15798
 
 
15799
 
  runpath_var=
15800
 
  allow_undefined_flag_F77=
15801
 
  enable_shared_with_static_runtimes_F77=no
15802
 
  archive_cmds_F77=
15803
 
  archive_expsym_cmds_F77=
15804
 
  old_archive_From_new_cmds_F77=
15805
 
  old_archive_from_expsyms_cmds_F77=
15806
 
  export_dynamic_flag_spec_F77=
15807
 
  whole_archive_flag_spec_F77=
15808
 
  thread_safe_flag_spec_F77=
15809
 
  hardcode_libdir_flag_spec_F77=
15810
 
  hardcode_libdir_flag_spec_ld_F77=
15811
 
  hardcode_libdir_separator_F77=
15812
 
  hardcode_direct_F77=no
15813
 
  hardcode_minus_L_F77=no
15814
 
  hardcode_shlibpath_var_F77=unsupported
15815
 
  link_all_deplibs_F77=unknown
15816
 
  hardcode_automatic_F77=no
15817
 
  module_cmds_F77=
15818
 
  module_expsym_cmds_F77=
15819
 
  always_export_symbols_F77=no
15820
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15821
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15822
 
  # included in the symbol list
15823
 
  include_expsyms_F77=
15824
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15825
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15826
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15827
 
  # as well as any symbol that contains `d'.
15828
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15829
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15830
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15831
 
  # the symbol is explicitly referenced.  Since portable code cannot
15832
 
  # rely on this symbol name, it's probably fine to never include it in
15833
 
  # preloaded symbol tables.
15834
 
  extract_expsyms_cmds=
15835
 
  # Just being paranoid about ensuring that cc_basename is set.
15836
 
  for cc_temp in $compiler""; do
15837
 
  case $cc_temp in
15838
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15839
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15840
 
    \-*) ;;
15841
 
    *) break;;
15842
 
  esac
15843
 
done
15844
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15845
 
 
15846
 
  case $host_os in
15847
 
  cygwin* | mingw* | pw32*)
15848
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15849
 
    # When not using gcc, we currently assume that we are using
15850
 
    # Microsoft Visual C++.
15851
 
    if test "$GCC" != yes; then
15852
 
      with_gnu_ld=no
15853
 
    fi
15854
 
    ;;
15855
 
  interix*)
15856
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
15857
 
    with_gnu_ld=yes
15858
 
    ;;
15859
 
  openbsd*)
15860
 
    with_gnu_ld=no
15861
 
    ;;
15862
 
  esac
15863
 
 
15864
 
  ld_shlibs_F77=yes
15865
 
  if test "$with_gnu_ld" = yes; then
15866
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
15867
 
    wlarc='${wl}'
15868
 
 
15869
 
    # Set some defaults for GNU ld with shared library support. These
15870
 
    # are reset later if shared libraries are not supported. Putting them
15871
 
    # here allows them to be overridden if necessary.
15872
 
    runpath_var=LD_RUN_PATH
15873
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15874
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15875
 
    # ancient GNU ld didn't support --whole-archive et. al.
15876
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15877
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15878
 
      else
15879
 
        whole_archive_flag_spec_F77=
15880
 
    fi
15881
 
    supports_anon_versioning=no
15882
 
    case `$LD -v 2>/dev/null` in
15883
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15884
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15885
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15886
 
      *\ 2.11.*) ;; # other 2.11 versions
15887
 
      *) supports_anon_versioning=yes ;;
15888
 
    esac
15889
 
 
15890
 
    # See if GNU ld supports shared libraries.
15891
 
    case $host_os in
15892
 
    aix3* | aix4* | aix5*)
15893
 
      # On AIX/PPC, the GNU linker is very broken
15894
 
      if test "$host_cpu" != ia64; then
15895
 
        ld_shlibs_F77=no
15896
 
        cat <<EOF 1>&2
15897
 
 
15898
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15899
 
*** to be unable to reliably create shared libraries on AIX.
15900
 
*** Therefore, libtool is disabling shared libraries support.  If you
15901
 
*** really care for shared libraries, you may want to modify your PATH
15902
 
*** so that a non-GNU linker is found, and then restart.
15903
 
 
15904
 
EOF
15905
 
      fi
15906
 
      ;;
15907
 
 
15908
 
    amigaos*)
15909
 
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15910
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15911
 
      hardcode_minus_L_F77=yes
15912
 
 
15913
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15914
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
15915
 
      # to version 4, is to share data among multiple programs linked
15916
 
      # with the same dynamic library.  Since this doesn't match the
15917
 
      # behavior of shared libraries on other platforms, we can't use
15918
 
      # them.
15919
 
      ld_shlibs_F77=no
15920
 
      ;;
15921
 
 
15922
 
    beos*)
15923
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15924
 
        allow_undefined_flag_F77=unsupported
15925
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15926
 
        # support --undefined.  This deserves some investigation.  FIXME
15927
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15928
 
      else
15929
 
        ld_shlibs_F77=no
15930
 
      fi
15931
 
      ;;
15932
 
 
15933
 
    cygwin* | mingw* | pw32*)
15934
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15935
 
      # as there is no search path for DLLs.
15936
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15937
 
      allow_undefined_flag_F77=unsupported
15938
 
      always_export_symbols_F77=no
15939
 
      enable_shared_with_static_runtimes_F77=yes
15940
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15941
 
 
15942
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15943
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15944
 
        # If the export-symbols file already is a .def file (1st line
15945
 
        # is EXPORTS), use it as is; otherwise, prepend...
15946
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15947
 
          cp $export_symbols $output_objdir/$soname.def;
15948
 
        else
15949
 
          echo EXPORTS > $output_objdir/$soname.def;
15950
 
          cat $export_symbols >> $output_objdir/$soname.def;
15951
 
        fi~
15952
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15953
 
      else
15954
 
        ld_shlibs_F77=no
15955
 
      fi
15956
 
      ;;
15957
 
 
15958
 
    interix3*)
15959
 
      hardcode_direct_F77=no
15960
 
      hardcode_shlibpath_var_F77=no
15961
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15962
 
      export_dynamic_flag_spec_F77='${wl}-E'
15963
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15964
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
15965
 
      # default) and relocated if they conflict, which is a slow very memory
15966
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
15967
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15968
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15969
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15970
 
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15971
 
      ;;
15972
 
 
15973
 
    linux* | k*bsd*-gnu)
15974
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15975
 
        tmp_addflag=
15976
 
        case $cc_basename,$host_cpu in
15977
 
        pgcc*)                          # Portland Group C compiler
15978
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15979
 
          tmp_addflag=' $pic_flag'
15980
 
          ;;
15981
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15982
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15983
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
15984
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15985
 
          tmp_addflag=' -i_dynamic' ;;
15986
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15987
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
15988
 
        ifc* | ifort*)                  # Intel Fortran compiler
15989
 
          tmp_addflag=' -nofor_main' ;;
15990
 
        esac
15991
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15992
 
 
15993
 
        if test $supports_anon_versioning = yes; then
15994
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15995
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15996
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
15997
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15998
 
        fi
15999
 
        link_all_deplibs_F77=no
16000
 
      else
16001
 
        ld_shlibs_F77=no
16002
 
      fi
16003
 
      ;;
16004
 
 
16005
 
    netbsd* | netbsdelf*-gnu)
16006
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16007
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16008
 
        wlarc=
16009
 
      else
16010
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16011
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16012
 
      fi
16013
 
      ;;
16014
 
 
16015
 
    solaris*)
16016
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16017
 
        ld_shlibs_F77=no
16018
 
        cat <<EOF 1>&2
16019
 
 
16020
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16021
 
*** create shared libraries on Solaris systems.  Therefore, libtool
16022
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16023
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
16024
 
*** your PATH or compiler configuration so that the native linker is
16025
 
*** used, and then restart.
16026
 
 
16027
 
EOF
16028
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16029
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16031
 
      else
16032
 
        ld_shlibs_F77=no
16033
 
      fi
16034
 
      ;;
16035
 
 
16036
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16037
 
      case `$LD -v 2>&1` in
16038
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
16039
 
        ld_shlibs_F77=no
16040
 
        cat <<_LT_EOF 1>&2
16041
 
 
16042
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16043
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16044
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16045
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16046
 
*** your PATH or compiler configuration so that the native linker is
16047
 
*** used, and then restart.
16048
 
 
16049
 
_LT_EOF
16050
 
        ;;
16051
 
        *)
16052
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16053
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16054
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16055
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16056
 
          else
16057
 
            ld_shlibs_F77=no
16058
 
          fi
16059
 
        ;;
16060
 
      esac
16061
 
      ;;
16062
 
 
16063
 
    sunos4*)
16064
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065
 
      wlarc=
16066
 
      hardcode_direct_F77=yes
16067
 
      hardcode_shlibpath_var_F77=no
16068
 
      ;;
16069
 
 
16070
 
    *)
16071
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16072
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16074
 
      else
16075
 
        ld_shlibs_F77=no
16076
 
      fi
16077
 
      ;;
16078
 
    esac
16079
 
 
16080
 
    if test "$ld_shlibs_F77" = no; then
16081
 
      runpath_var=
16082
 
      hardcode_libdir_flag_spec_F77=
16083
 
      export_dynamic_flag_spec_F77=
16084
 
      whole_archive_flag_spec_F77=
16085
 
    fi
16086
 
  else
16087
 
    # PORTME fill in a description of your system's linker (not GNU ld)
16088
 
    case $host_os in
16089
 
    aix3*)
16090
 
      allow_undefined_flag_F77=unsupported
16091
 
      always_export_symbols_F77=yes
16092
 
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16093
 
      # Note: this linker hardcodes the directories in LIBPATH if there
16094
 
      # are no directories specified by -L.
16095
 
      hardcode_minus_L_F77=yes
16096
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16097
 
        # Neither direct hardcoding nor static linking is supported with a
16098
 
        # broken collect2.
16099
 
        hardcode_direct_F77=unsupported
16100
 
      fi
16101
 
      ;;
16102
 
 
16103
 
    aix4* | aix5*)
16104
 
      if test "$host_cpu" = ia64; then
16105
 
        # On IA64, the linker does run time linking by default, so we don't
16106
 
        # have to do anything special.
16107
 
        aix_use_runtimelinking=no
16108
 
        exp_sym_flag='-Bexport'
16109
 
        no_entry_flag=""
16110
 
      else
16111
 
        # If we're using GNU nm, then we don't want the "-C" option.
16112
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16113
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16114
 
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16115
 
        else
16116
 
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16117
 
        fi
16118
 
        aix_use_runtimelinking=no
16119
 
 
16120
 
        # Test if we are trying to use run time linking or normal
16121
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16122
 
        # need to do runtime linking.
16123
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16124
 
          for ld_flag in $LDFLAGS; do
16125
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16126
 
            aix_use_runtimelinking=yes
16127
 
            break
16128
 
          fi
16129
 
          done
16130
 
          ;;
16131
 
        esac
16132
 
 
16133
 
        exp_sym_flag='-bexport'
16134
 
        no_entry_flag='-bnoentry'
16135
 
      fi
16136
 
 
16137
 
      # When large executables or shared objects are built, AIX ld can
16138
 
      # have problems creating the table of contents.  If linking a library
16139
 
      # or program results in "error TOC overflow" add -mminimal-toc to
16140
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16141
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16142
 
 
16143
 
      archive_cmds_F77=''
16144
 
      hardcode_direct_F77=yes
16145
 
      hardcode_libdir_separator_F77=':'
16146
 
      link_all_deplibs_F77=yes
16147
 
 
16148
 
      if test "$GCC" = yes; then
16149
 
        case $host_os in aix4.[012]|aix4.[012].*)
16150
 
        # We only want to do this on AIX 4.2 and lower, the check
16151
 
        # below for broken collect2 doesn't work under 4.3+
16152
 
          collect2name=`${CC} -print-prog-name=collect2`
16153
 
          if test -f "$collect2name" && \
16154
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16155
 
          then
16156
 
          # We have reworked collect2
16157
 
          hardcode_direct_F77=yes
16158
 
          else
16159
 
          # We have old collect2
16160
 
          hardcode_direct_F77=unsupported
16161
 
          # It fails to find uninstalled libraries when the uninstalled
16162
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
16163
 
          # to unsupported forces relinking
16164
 
          hardcode_minus_L_F77=yes
16165
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
16166
 
          hardcode_libdir_separator_F77=
16167
 
          fi
16168
 
          ;;
16169
 
        esac
16170
 
        shared_flag='-shared'
16171
 
        if test "$aix_use_runtimelinking" = yes; then
16172
 
          shared_flag="$shared_flag "'${wl}-G'
16173
 
        fi
16174
 
      else
16175
 
        # not using gcc
16176
 
        if test "$host_cpu" = ia64; then
16177
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16178
 
        # chokes on -Wl,-G. The following line is correct:
16179
 
          shared_flag='-G'
16180
 
        else
16181
 
          if test "$aix_use_runtimelinking" = yes; then
16182
 
            shared_flag='${wl}-G'
16183
 
          else
16184
 
            shared_flag='${wl}-bM:SRE'
16185
 
          fi
16186
 
        fi
16187
 
      fi
16188
 
 
16189
 
      # It seems that -bexpall does not export symbols beginning with
16190
 
      # underscore (_), so it is better to generate a list of symbols to export.
16191
 
      always_export_symbols_F77=yes
16192
 
      if test "$aix_use_runtimelinking" = yes; then
16193
 
        # Warning - without using the other runtime loading flags (-brtl),
16194
 
        # -berok will link without error, but may produce a broken library.
16195
 
        allow_undefined_flag_F77='-berok'
16196
 
       # Determine the default libpath from the value encoded in an empty executable.
16197
 
       cat >conftest.$ac_ext <<_ACEOF
16198
 
      program main
16199
 
 
16200
 
      end
16201
 
_ACEOF
16202
 
rm -f conftest.$ac_objext conftest$ac_exeext
16203
 
if { (ac_try="$ac_link"
16204
 
case "(($ac_try" in
16205
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206
 
  *) ac_try_echo=$ac_try;;
16207
 
esac
16208
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209
 
  (eval "$ac_link") 2>conftest.er1
16210
 
  ac_status=$?
16211
 
  grep -v '^ *+' conftest.er1 >conftest.err
16212
 
  rm -f conftest.er1
16213
 
  cat conftest.err >&5
16214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215
 
  (exit $ac_status); } &&
16216
 
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16217
 
  { (case "(($ac_try" in
16218
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219
 
  *) ac_try_echo=$ac_try;;
16220
 
esac
16221
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222
 
  (eval "$ac_try") 2>&5
16223
 
  ac_status=$?
16224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225
 
  (exit $ac_status); }; } &&
16226
 
         { ac_try='test -s conftest$ac_exeext'
16227
 
  { (case "(($ac_try" in
16228
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229
 
  *) ac_try_echo=$ac_try;;
16230
 
esac
16231
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232
 
  (eval "$ac_try") 2>&5
16233
 
  ac_status=$?
16234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235
 
  (exit $ac_status); }; }; then
16236
 
  
16237
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16238
 
}'`
16239
 
# Check for a 64-bit object if we didn't find anything.
16240
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16241
 
}'`; fi
16242
 
else
16243
 
  echo "$as_me: failed program was:" >&5
16244
 
sed 's/^/| /' conftest.$ac_ext >&5
16245
 
 
16246
 
        
16247
 
fi
16248
 
 
16249
 
rm -f conftest.err conftest.$ac_objext \
16250
 
      conftest$ac_exeext conftest.$ac_ext
16251
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16252
 
 
16253
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16254
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16255
 
       else
16256
 
        if test "$host_cpu" = ia64; then
16257
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16258
 
          allow_undefined_flag_F77="-z nodefs"
16259
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16260
 
        else
16261
 
         # Determine the default libpath from the value encoded in an empty executable.
16262
 
         cat >conftest.$ac_ext <<_ACEOF
16263
 
      program main
16264
 
 
16265
 
      end
16266
 
_ACEOF
16267
 
rm -f conftest.$ac_objext conftest$ac_exeext
16268
 
if { (ac_try="$ac_link"
16269
 
case "(($ac_try" in
16270
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271
 
  *) ac_try_echo=$ac_try;;
16272
 
esac
16273
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274
 
  (eval "$ac_link") 2>conftest.er1
16275
 
  ac_status=$?
16276
 
  grep -v '^ *+' conftest.er1 >conftest.err
16277
 
  rm -f conftest.er1
16278
 
  cat conftest.err >&5
16279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280
 
  (exit $ac_status); } &&
16281
 
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16282
 
  { (case "(($ac_try" in
16283
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284
 
  *) ac_try_echo=$ac_try;;
16285
 
esac
16286
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287
 
  (eval "$ac_try") 2>&5
16288
 
  ac_status=$?
16289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290
 
  (exit $ac_status); }; } &&
16291
 
         { ac_try='test -s conftest$ac_exeext'
16292
 
  { (case "(($ac_try" in
16293
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294
 
  *) ac_try_echo=$ac_try;;
16295
 
esac
16296
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297
 
  (eval "$ac_try") 2>&5
16298
 
  ac_status=$?
16299
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300
 
  (exit $ac_status); }; }; then
16301
 
  
16302
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16303
 
}'`
16304
 
# Check for a 64-bit object if we didn't find anything.
16305
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16306
 
}'`; fi
16307
 
else
16308
 
  echo "$as_me: failed program was:" >&5
16309
 
sed 's/^/| /' conftest.$ac_ext >&5
16310
 
 
16311
 
        
16312
 
fi
16313
 
 
16314
 
rm -f conftest.err conftest.$ac_objext \
16315
 
      conftest$ac_exeext conftest.$ac_ext
16316
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16317
 
 
16318
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16319
 
          # Warning - without using the other run time loading flags,
16320
 
          # -berok will link without error, but may produce a broken library.
16321
 
          no_undefined_flag_F77=' ${wl}-bernotok'
16322
 
          allow_undefined_flag_F77=' ${wl}-berok'
16323
 
          # Exported symbols can be pulled into shared objects from archives
16324
 
          whole_archive_flag_spec_F77='$convenience'
16325
 
          archive_cmds_need_lc_F77=yes
16326
 
          # This is similar to how AIX traditionally builds its shared libraries.
16327
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16328
 
        fi
16329
 
      fi
16330
 
      ;;
16331
 
 
16332
 
    amigaos*)
16333
 
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16334
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16335
 
      hardcode_minus_L_F77=yes
16336
 
      # see comment about different semantics on the GNU ld section
16337
 
      ld_shlibs_F77=no
16338
 
      ;;
16339
 
 
16340
 
    bsdi[45]*)
16341
 
      export_dynamic_flag_spec_F77=-rdynamic
16342
 
      ;;
16343
 
 
16344
 
    cygwin* | mingw* | pw32*)
16345
 
      # When not using gcc, we currently assume that we are using
16346
 
      # Microsoft Visual C++.
16347
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16348
 
      # no search path for DLLs.
16349
 
      hardcode_libdir_flag_spec_F77=' '
16350
 
      allow_undefined_flag_F77=unsupported
16351
 
      # Tell ltmain to make .lib files, not .a files.
16352
 
      libext=lib
16353
 
      # Tell ltmain to make .dll files, not .so files.
16354
 
      shrext_cmds=".dll"
16355
 
      # FIXME: Setting linknames here is a bad hack.
16356
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16357
 
      # The linker will automatically build a .lib file if we build a DLL.
16358
 
      old_archive_From_new_cmds_F77='true'
16359
 
      # FIXME: Should let the user specify the lib program.
16360
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16361
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16362
 
      enable_shared_with_static_runtimes_F77=yes
16363
 
      ;;
16364
 
 
16365
 
    darwin* | rhapsody*)
16366
 
      case $host_os in
16367
 
        rhapsody* | darwin1.[012])
16368
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16369
 
         ;;
16370
 
       *) # Darwin 1.3 on
16371
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16372
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16373
 
         else
16374
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
16375
 
             10.[012])
16376
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16377
 
               ;;
16378
 
             10.*)
16379
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16380
 
               ;;
16381
 
           esac
16382
 
         fi
16383
 
         ;;
16384
 
      esac
16385
 
      archive_cmds_need_lc_F77=no
16386
 
      hardcode_direct_F77=no
16387
 
      hardcode_automatic_F77=yes
16388
 
      hardcode_shlibpath_var_F77=unsupported
16389
 
      whole_archive_flag_spec_F77=''
16390
 
      link_all_deplibs_F77=yes
16391
 
    if test "$GCC" = yes ; then
16392
 
        output_verbose_link_cmd='echo'
16393
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16394
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16395
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16396
 
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16397
 
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16398
 
    else
16399
 
      case $cc_basename in
16400
 
        xlc*)
16401
 
         output_verbose_link_cmd='echo'
16402
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16403
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16404
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16405
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16406
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16407
 
          ;;
16408
 
       *)
16409
 
         ld_shlibs_F77=no
16410
 
          ;;
16411
 
      esac
16412
 
    fi
16413
 
      ;;
16414
 
 
16415
 
    dgux*)
16416
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16417
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16418
 
      hardcode_shlibpath_var_F77=no
16419
 
      ;;
16420
 
 
16421
 
    freebsd1*)
16422
 
      ld_shlibs_F77=no
16423
 
      ;;
16424
 
 
16425
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16426
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16427
 
    # does not break anything, and helps significantly (at the cost of a little
16428
 
    # extra space).
16429
 
    freebsd2.2*)
16430
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16431
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16432
 
      hardcode_direct_F77=yes
16433
 
      hardcode_shlibpath_var_F77=no
16434
 
      ;;
16435
 
 
16436
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16437
 
    freebsd2*)
16438
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16439
 
      hardcode_direct_F77=yes
16440
 
      hardcode_minus_L_F77=yes
16441
 
      hardcode_shlibpath_var_F77=no
16442
 
      ;;
16443
 
 
16444
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16445
 
    freebsd* | dragonfly*)
16446
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16447
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16448
 
      hardcode_direct_F77=yes
16449
 
      hardcode_shlibpath_var_F77=no
16450
 
      ;;
16451
 
 
16452
 
    hpux9*)
16453
 
      if test "$GCC" = yes; then
16454
 
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16455
 
      else
16456
 
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16457
 
      fi
16458
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16459
 
      hardcode_libdir_separator_F77=:
16460
 
      hardcode_direct_F77=yes
16461
 
 
16462
 
      # hardcode_minus_L: Not really in the search PATH,
16463
 
      # but as the default location of the library.
16464
 
      hardcode_minus_L_F77=yes
16465
 
      export_dynamic_flag_spec_F77='${wl}-E'
16466
 
      ;;
16467
 
 
16468
 
    hpux10*)
16469
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16470
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16471
 
      else
16472
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16473
 
      fi
16474
 
      if test "$with_gnu_ld" = no; then
16475
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16476
 
        hardcode_libdir_separator_F77=:
16477
 
 
16478
 
        hardcode_direct_F77=yes
16479
 
        export_dynamic_flag_spec_F77='${wl}-E'
16480
 
 
16481
 
        # hardcode_minus_L: Not really in the search PATH,
16482
 
        # but as the default location of the library.
16483
 
        hardcode_minus_L_F77=yes
16484
 
      fi
16485
 
      ;;
16486
 
 
16487
 
    hpux11*)
16488
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16489
 
        case $host_cpu in
16490
 
        hppa*64*)
16491
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16492
 
          ;;
16493
 
        ia64*)
16494
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16495
 
          ;;
16496
 
        *)
16497
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16498
 
          ;;
16499
 
        esac
16500
 
      else
16501
 
        case $host_cpu in
16502
 
        hppa*64*)
16503
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16504
 
          ;;
16505
 
        ia64*)
16506
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16507
 
          ;;
16508
 
        *)
16509
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16510
 
          ;;
16511
 
        esac
16512
 
      fi
16513
 
      if test "$with_gnu_ld" = no; then
16514
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16515
 
        hardcode_libdir_separator_F77=:
16516
 
 
16517
 
        case $host_cpu in
16518
 
        hppa*64*|ia64*)
16519
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16520
 
          hardcode_direct_F77=no
16521
 
          hardcode_shlibpath_var_F77=no
16522
 
          ;;
16523
 
        *)
16524
 
          hardcode_direct_F77=yes
16525
 
          export_dynamic_flag_spec_F77='${wl}-E'
16526
 
 
16527
 
          # hardcode_minus_L: Not really in the search PATH,
16528
 
          # but as the default location of the library.
16529
 
          hardcode_minus_L_F77=yes
16530
 
          ;;
16531
 
        esac
16532
 
      fi
16533
 
      ;;
16534
 
 
16535
 
    irix5* | irix6* | nonstopux*)
16536
 
      if test "$GCC" = yes; then
16537
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16538
 
      else
16539
 
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16540
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16541
 
      fi
16542
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16543
 
      hardcode_libdir_separator_F77=:
16544
 
      link_all_deplibs_F77=yes
16545
 
      ;;
16546
 
 
16547
 
    netbsd* | netbsdelf*-gnu)
16548
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16549
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16550
 
      else
16551
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16552
 
      fi
16553
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16554
 
      hardcode_direct_F77=yes
16555
 
      hardcode_shlibpath_var_F77=no
16556
 
      ;;
16557
 
 
16558
 
    newsos6)
16559
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560
 
      hardcode_direct_F77=yes
16561
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16562
 
      hardcode_libdir_separator_F77=:
16563
 
      hardcode_shlibpath_var_F77=no
16564
 
      ;;
16565
 
 
16566
 
    openbsd*)
16567
 
      hardcode_direct_F77=yes
16568
 
      hardcode_shlibpath_var_F77=no
16569
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16570
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16571
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16572
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16573
 
        export_dynamic_flag_spec_F77='${wl}-E'
16574
 
      else
16575
 
       case $host_os in
16576
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16577
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16578
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
16579
 
           ;;
16580
 
         *)
16581
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16582
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16583
 
           ;;
16584
 
       esac
16585
 
      fi
16586
 
      ;;
16587
 
 
16588
 
    os2*)
16589
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16590
 
      hardcode_minus_L_F77=yes
16591
 
      allow_undefined_flag_F77=unsupported
16592
 
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16593
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16594
 
      ;;
16595
 
 
16596
 
    osf3*)
16597
 
      if test "$GCC" = yes; then
16598
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16599
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16600
 
      else
16601
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
16602
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16603
 
      fi
16604
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16605
 
      hardcode_libdir_separator_F77=:
16606
 
      ;;
16607
 
 
16608
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16609
 
      if test "$GCC" = yes; then
16610
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16611
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16612
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16613
 
      else
16614
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
16615
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16616
 
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16617
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16618
 
 
16619
 
        # Both c and cxx compiler support -rpath directly
16620
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
16621
 
      fi
16622
 
      hardcode_libdir_separator_F77=:
16623
 
      ;;
16624
 
 
16625
 
    solaris*)
16626
 
      no_undefined_flag_F77=' -z text'
16627
 
      if test "$GCC" = yes; then
16628
 
        wlarc='${wl}'
16629
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16630
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16631
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16632
 
      else
16633
 
        wlarc=''
16634
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16635
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16636
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16637
 
      fi
16638
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16639
 
      hardcode_shlibpath_var_F77=no
16640
 
      case $host_os in
16641
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16642
 
      *)
16643
 
        # The compiler driver will combine linker options so we
16644
 
        # cannot just pass the convience library names through
16645
 
        # without $wl, iff we do not link with $LD.
16646
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
16647
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16648
 
        case $wlarc in
16649
 
        '')
16650
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16651
 
        *)
16652
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16653
 
        esac ;;
16654
 
      esac
16655
 
      link_all_deplibs_F77=yes
16656
 
      ;;
16657
 
 
16658
 
    sunos4*)
16659
 
      if test "x$host_vendor" = xsequent; then
16660
 
        # Use $CC to link under sequent, because it throws in some extra .o
16661
 
        # files that make .init and .fini sections work.
16662
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16663
 
      else
16664
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16665
 
      fi
16666
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16667
 
      hardcode_direct_F77=yes
16668
 
      hardcode_minus_L_F77=yes
16669
 
      hardcode_shlibpath_var_F77=no
16670
 
      ;;
16671
 
 
16672
 
    sysv4)
16673
 
      case $host_vendor in
16674
 
        sni)
16675
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676
 
          hardcode_direct_F77=yes # is this really true???
16677
 
        ;;
16678
 
        siemens)
16679
 
          ## LD is ld it makes a PLAMLIB
16680
 
          ## CC just makes a GrossModule.
16681
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16682
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
16683
 
          hardcode_direct_F77=no
16684
 
        ;;
16685
 
        motorola)
16686
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16688
 
        ;;
16689
 
      esac
16690
 
      runpath_var='LD_RUN_PATH'
16691
 
      hardcode_shlibpath_var_F77=no
16692
 
      ;;
16693
 
 
16694
 
    sysv4.3*)
16695
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696
 
      hardcode_shlibpath_var_F77=no
16697
 
      export_dynamic_flag_spec_F77='-Bexport'
16698
 
      ;;
16699
 
 
16700
 
    sysv4*MP*)
16701
 
      if test -d /usr/nec; then
16702
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703
 
        hardcode_shlibpath_var_F77=no
16704
 
        runpath_var=LD_RUN_PATH
16705
 
        hardcode_runpath_var=yes
16706
 
        ld_shlibs_F77=yes
16707
 
      fi
16708
 
      ;;
16709
 
 
16710
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16711
 
      no_undefined_flag_F77='${wl}-z,text'
16712
 
      archive_cmds_need_lc_F77=no
16713
 
      hardcode_shlibpath_var_F77=no
16714
 
      runpath_var='LD_RUN_PATH'
16715
 
 
16716
 
      if test "$GCC" = yes; then
16717
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16719
 
      else
16720
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16722
 
      fi
16723
 
      ;;
16724
 
 
16725
 
    sysv5* | sco3.2v5* | sco5v6*)
16726
 
      # Note: We can NOT use -z defs as we might desire, because we do not
16727
 
      # link with -lc, and that would cause any symbols used from libc to
16728
 
      # always be unresolved, which means just about no library would
16729
 
      # ever link correctly.  If we're not using GNU ld we use -z text
16730
 
      # though, which does catch some bad symbols but isn't as heavy-handed
16731
 
      # as -z defs.
16732
 
      no_undefined_flag_F77='${wl}-z,text'
16733
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
16734
 
      archive_cmds_need_lc_F77=no
16735
 
      hardcode_shlibpath_var_F77=no
16736
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16737
 
      hardcode_libdir_separator_F77=':'
16738
 
      link_all_deplibs_F77=yes
16739
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
16740
 
      runpath_var='LD_RUN_PATH'
16741
 
 
16742
 
      if test "$GCC" = yes; then
16743
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16744
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16745
 
      else
16746
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748
 
      fi
16749
 
      ;;
16750
 
 
16751
 
    uts4*)
16752
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16753
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16754
 
      hardcode_shlibpath_var_F77=no
16755
 
      ;;
16756
 
 
16757
 
    *)
16758
 
      ld_shlibs_F77=no
16759
 
      ;;
16760
 
    esac
16761
 
  fi
16762
 
 
16763
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16764
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16765
 
test "$ld_shlibs_F77" = no && can_build_shared=no
16766
 
 
16767
 
#
16768
 
# Do we need to explicitly link libc?
16769
 
#
16770
 
case "x$archive_cmds_need_lc_F77" in
16771
 
x|xyes)
16772
 
  # Assume -lc should be added
16773
 
  archive_cmds_need_lc_F77=yes
16774
 
 
16775
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16776
 
    case $archive_cmds_F77 in
16777
 
    *'~'*)
16778
 
      # FIXME: we may have to deal with multi-command sequences.
16779
 
      ;;
16780
 
    '$CC '*)
16781
 
      # Test whether the compiler implicitly links with -lc since on some
16782
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16783
 
      # to ld, don't add -lc before -lgcc.
16784
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16785
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16786
 
      $rm conftest*
16787
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16788
 
 
16789
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790
 
  (eval $ac_compile) 2>&5
16791
 
  ac_status=$?
16792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793
 
  (exit $ac_status); } 2>conftest.err; then
16794
 
        soname=conftest
16795
 
        lib=conftest
16796
 
        libobjs=conftest.$ac_objext
16797
 
        deplibs=
16798
 
        wl=$lt_prog_compiler_wl_F77
16799
 
        pic_flag=$lt_prog_compiler_pic_F77
16800
 
        compiler_flags=-v
16801
 
        linker_flags=-v
16802
 
        verstring=
16803
 
        output_objdir=.
16804
 
        libname=conftest
16805
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16806
 
        allow_undefined_flag_F77=
16807
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16808
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16809
 
  ac_status=$?
16810
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811
 
  (exit $ac_status); }
16812
 
        then
16813
 
          archive_cmds_need_lc_F77=no
16814
 
        else
16815
 
          archive_cmds_need_lc_F77=yes
16816
 
        fi
16817
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16818
 
      else
16819
 
        cat conftest.err 1>&5
16820
 
      fi
16821
 
      $rm conftest*
16822
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16823
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16824
 
      ;;
16825
 
    esac
16826
 
  fi
16827
 
  ;;
16828
 
esac
16829
 
 
16830
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16831
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16832
 
library_names_spec=
16833
 
libname_spec='lib$name'
16834
 
soname_spec=
16835
 
shrext_cmds=".so"
16836
 
postinstall_cmds=
16837
 
postuninstall_cmds=
16838
 
finish_cmds=
16839
 
finish_eval=
16840
 
shlibpath_var=
16841
 
shlibpath_overrides_runpath=unknown
16842
 
version_type=none
16843
 
dynamic_linker="$host_os ld.so"
16844
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16845
 
if test "$GCC" = yes; then
16846
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16847
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16848
 
    # if the path contains ";" then we assume it to be the separator
16849
 
    # otherwise default to the standard path separator (i.e. ":") - it is
16850
 
    # assumed that no part of a normal pathname contains ";" but that should
16851
 
    # okay in the real world where ";" in dirpaths is itself problematic.
16852
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16853
 
  else
16854
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16855
 
  fi
16856
 
else
16857
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16858
 
fi
16859
 
need_lib_prefix=unknown
16860
 
hardcode_into_libs=no
16861
 
 
16862
 
# when you set need_version to no, make sure it does not cause -set_version
16863
 
# flags to be left without arguments
16864
 
need_version=unknown
16865
 
 
16866
 
case $host_os in
16867
 
aix3*)
16868
 
  version_type=linux
16869
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16870
 
  shlibpath_var=LIBPATH
16871
 
 
16872
 
  # AIX 3 has no versioning support, so we append a major version to the name.
16873
 
  soname_spec='${libname}${release}${shared_ext}$major'
16874
 
  ;;
16875
 
 
16876
 
aix4* | aix5*)
16877
 
  version_type=linux
16878
 
  need_lib_prefix=no
16879
 
  need_version=no
16880
 
  hardcode_into_libs=yes
16881
 
  if test "$host_cpu" = ia64; then
16882
 
    # AIX 5 supports IA64
16883
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16884
 
    shlibpath_var=LD_LIBRARY_PATH
16885
 
  else
16886
 
    # With GCC up to 2.95.x, collect2 would create an import file
16887
 
    # for dependence libraries.  The import file would start with
16888
 
    # the line `#! .'.  This would cause the generated library to
16889
 
    # depend on `.', always an invalid library.  This was fixed in
16890
 
    # development snapshots of GCC prior to 3.0.
16891
 
    case $host_os in
16892
 
      aix4 | aix4.[01] | aix4.[01].*)
16893
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16894
 
           echo ' yes '
16895
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16896
 
        :
16897
 
      else
16898
 
        can_build_shared=no
16899
 
      fi
16900
 
      ;;
16901
 
    esac
16902
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16903
 
    # soname into executable. Probably we can add versioning support to
16904
 
    # collect2, so additional links can be useful in future.
16905
 
    if test "$aix_use_runtimelinking" = yes; then
16906
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16907
 
      # instead of lib<name>.a to let people know that these are not
16908
 
      # typical AIX shared libraries.
16909
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910
 
    else
16911
 
      # We preserve .a as extension for shared libraries through AIX4.2
16912
 
      # and later when we are not doing run time linking.
16913
 
      library_names_spec='${libname}${release}.a $libname.a'
16914
 
      soname_spec='${libname}${release}${shared_ext}$major'
16915
 
    fi
16916
 
    shlibpath_var=LIBPATH
16917
 
  fi
16918
 
  ;;
16919
 
 
16920
 
amigaos*)
16921
 
  library_names_spec='$libname.ixlibrary $libname.a'
16922
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16923
 
  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'
16924
 
  ;;
16925
 
 
16926
 
beos*)
16927
 
  library_names_spec='${libname}${shared_ext}'
16928
 
  dynamic_linker="$host_os ld.so"
16929
 
  shlibpath_var=LIBRARY_PATH
16930
 
  ;;
16931
 
 
16932
 
bsdi[45]*)
16933
 
  version_type=linux
16934
 
  need_version=no
16935
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16936
 
  soname_spec='${libname}${release}${shared_ext}$major'
16937
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16938
 
  shlibpath_var=LD_LIBRARY_PATH
16939
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16940
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16941
 
  # the default ld.so.conf also contains /usr/contrib/lib and
16942
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16943
 
  # libtool to hard-code these into programs
16944
 
  ;;
16945
 
 
16946
 
cygwin* | mingw* | pw32*)
16947
 
  version_type=windows
16948
 
  shrext_cmds=".dll"
16949
 
  need_version=no
16950
 
  need_lib_prefix=no
16951
 
 
16952
 
  case $GCC,$host_os in
16953
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
16954
 
    library_names_spec='$libname.dll.a'
16955
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16956
 
    postinstall_cmds='base_file=`basename \${file}`~
16957
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16958
 
      dldir=$destdir/`dirname \$dlpath`~
16959
 
      test -d \$dldir || mkdir -p \$dldir~
16960
 
      $install_prog $dir/$dlname \$dldir/$dlname~
16961
 
      chmod a+x \$dldir/$dlname'
16962
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16963
 
      dlpath=$dir/\$dldll~
16964
 
       $rm \$dlpath'
16965
 
    shlibpath_overrides_runpath=yes
16966
 
 
16967
 
    case $host_os in
16968
 
    cygwin*)
16969
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16970
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16971
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16972
 
      ;;
16973
 
    mingw*)
16974
 
      # MinGW DLLs use traditional 'lib' prefix
16975
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16976
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16977
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16978
 
        # It is most probably a Windows format PATH printed by
16979
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16980
 
        # path with ; separators, and with drive letters. We can handle the
16981
 
        # drive letters (cygwin fileutils understands them), so leave them,
16982
 
        # especially as we might pass files found there to a mingw objdump,
16983
 
        # which wouldn't understand a cygwinified path. Ahh.
16984
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16985
 
      else
16986
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16987
 
      fi
16988
 
      ;;
16989
 
    pw32*)
16990
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16991
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16992
 
      ;;
16993
 
    esac
16994
 
    ;;
16995
 
 
16996
 
  *)
16997
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16998
 
    ;;
16999
 
  esac
17000
 
  dynamic_linker='Win32 ld.exe'
17001
 
  # FIXME: first we should search . and the directory the executable is in
17002
 
  shlibpath_var=PATH
17003
 
  ;;
17004
 
 
17005
 
darwin* | rhapsody*)
17006
 
  dynamic_linker="$host_os dyld"
17007
 
  version_type=darwin
17008
 
  need_lib_prefix=no
17009
 
  need_version=no
17010
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17011
 
  soname_spec='${libname}${release}${major}$shared_ext'
17012
 
  shlibpath_overrides_runpath=yes
17013
 
  shlibpath_var=DYLD_LIBRARY_PATH
17014
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17015
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17016
 
  if test "$GCC" = yes; then
17017
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17018
 
  else
17019
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17020
 
  fi
17021
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17022
 
  ;;
17023
 
 
17024
 
dgux*)
17025
 
  version_type=linux
17026
 
  need_lib_prefix=no
17027
 
  need_version=no
17028
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17029
 
  soname_spec='${libname}${release}${shared_ext}$major'
17030
 
  shlibpath_var=LD_LIBRARY_PATH
17031
 
  ;;
17032
 
 
17033
 
freebsd1*)
17034
 
  dynamic_linker=no
17035
 
  ;;
17036
 
 
17037
 
freebsd* | dragonfly*)
17038
 
  # DragonFly does not have aout.  When/if they implement a new
17039
 
  # versioning mechanism, adjust this.
17040
 
  if test -x /usr/bin/objformat; then
17041
 
    objformat=`/usr/bin/objformat`
17042
 
  else
17043
 
    case $host_os in
17044
 
    freebsd[123]*) objformat=aout ;;
17045
 
    *) objformat=elf ;;
17046
 
    esac
17047
 
  fi
17048
 
  version_type=freebsd-$objformat
17049
 
  case $version_type in
17050
 
    freebsd-elf*)
17051
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17052
 
      need_version=no
17053
 
      need_lib_prefix=no
17054
 
      ;;
17055
 
    freebsd-*)
17056
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17057
 
      need_version=yes
17058
 
      ;;
17059
 
  esac
17060
 
  shlibpath_var=LD_LIBRARY_PATH
17061
 
  case $host_os in
17062
 
  freebsd2*)
17063
 
    shlibpath_overrides_runpath=yes
17064
 
    ;;
17065
 
  freebsd3.[01]* | freebsdelf3.[01]*)
17066
 
    shlibpath_overrides_runpath=yes
17067
 
    hardcode_into_libs=yes
17068
 
    ;;
17069
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17070
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17071
 
    shlibpath_overrides_runpath=no
17072
 
    hardcode_into_libs=yes
17073
 
    ;;
17074
 
  freebsd*) # from 4.6 on
17075
 
    shlibpath_overrides_runpath=yes
17076
 
    hardcode_into_libs=yes
17077
 
    ;;
17078
 
  esac
17079
 
  ;;
17080
 
 
17081
 
gnu*)
17082
 
  version_type=linux
17083
 
  need_lib_prefix=no
17084
 
  need_version=no
17085
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17086
 
  soname_spec='${libname}${release}${shared_ext}$major'
17087
 
  shlibpath_var=LD_LIBRARY_PATH
17088
 
  hardcode_into_libs=yes
17089
 
  ;;
17090
 
 
17091
 
hpux9* | hpux10* | hpux11*)
17092
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
17093
 
  # link against other versions.
17094
 
  version_type=sunos
17095
 
  need_lib_prefix=no
17096
 
  need_version=no
17097
 
  case $host_cpu in
17098
 
  ia64*)
17099
 
    shrext_cmds='.so'
17100
 
    hardcode_into_libs=yes
17101
 
    dynamic_linker="$host_os dld.so"
17102
 
    shlibpath_var=LD_LIBRARY_PATH
17103
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17104
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105
 
    soname_spec='${libname}${release}${shared_ext}$major'
17106
 
    if test "X$HPUX_IA64_MODE" = X32; then
17107
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17108
 
    else
17109
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17110
 
    fi
17111
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17112
 
    ;;
17113
 
   hppa*64*)
17114
 
     shrext_cmds='.sl'
17115
 
     hardcode_into_libs=yes
17116
 
     dynamic_linker="$host_os dld.sl"
17117
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17118
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17119
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120
 
     soname_spec='${libname}${release}${shared_ext}$major'
17121
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17122
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17123
 
     ;;
17124
 
   *)
17125
 
    shrext_cmds='.sl'
17126
 
    dynamic_linker="$host_os dld.sl"
17127
 
    shlibpath_var=SHLIB_PATH
17128
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17129
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130
 
    soname_spec='${libname}${release}${shared_ext}$major'
17131
 
    ;;
17132
 
  esac
17133
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17134
 
  postinstall_cmds='chmod 555 $lib'
17135
 
  ;;
17136
 
 
17137
 
interix3*)
17138
 
  version_type=linux
17139
 
  need_lib_prefix=no
17140
 
  need_version=no
17141
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17142
 
  soname_spec='${libname}${release}${shared_ext}$major'
17143
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17144
 
  shlibpath_var=LD_LIBRARY_PATH
17145
 
  shlibpath_overrides_runpath=no
17146
 
  hardcode_into_libs=yes
17147
 
  ;;
17148
 
 
17149
 
irix5* | irix6* | nonstopux*)
17150
 
  case $host_os in
17151
 
    nonstopux*) version_type=nonstopux ;;
17152
 
    *)
17153
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
17154
 
                version_type=linux
17155
 
        else
17156
 
                version_type=irix
17157
 
        fi ;;
17158
 
  esac
17159
 
  need_lib_prefix=no
17160
 
  need_version=no
17161
 
  soname_spec='${libname}${release}${shared_ext}$major'
17162
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17163
 
  case $host_os in
17164
 
  irix5* | nonstopux*)
17165
 
    libsuff= shlibsuff=
17166
 
    ;;
17167
 
  *)
17168
 
    case $LD in # libtool.m4 will add one of these switches to LD
17169
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17170
 
      libsuff= shlibsuff= libmagic=32-bit;;
17171
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17172
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17173
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17174
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17175
 
    *) libsuff= shlibsuff= libmagic=never-match;;
17176
 
    esac
17177
 
    ;;
17178
 
  esac
17179
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17180
 
  shlibpath_overrides_runpath=no
17181
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17182
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17183
 
  hardcode_into_libs=yes
17184
 
  ;;
17185
 
 
17186
 
# No shared lib support for Linux oldld, aout, or coff.
17187
 
linux*oldld* | linux*aout* | linux*coff*)
17188
 
  dynamic_linker=no
17189
 
  ;;
17190
 
 
17191
 
# This must be Linux ELF.
17192
 
linux* | k*bsd*-gnu)
17193
 
  version_type=linux
17194
 
  need_lib_prefix=no
17195
 
  need_version=no
17196
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197
 
  soname_spec='${libname}${release}${shared_ext}$major'
17198
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17199
 
  shlibpath_var=LD_LIBRARY_PATH
17200
 
  shlibpath_overrides_runpath=no
17201
 
  # This implies no fast_install, which is unacceptable.
17202
 
  # Some rework will be needed to allow for fast_install
17203
 
  # before this can be enabled.
17204
 
  hardcode_into_libs=yes
17205
 
 
17206
 
  # Append ld.so.conf contents to the search path
17207
 
  if test -f /etc/ld.so.conf; then
17208
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17209
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17210
 
  fi
17211
 
 
17212
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17213
 
  # powerpc, because MkLinux only supported shared libraries with the
17214
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
17215
 
  # most powerpc-linux boxes support dynamic linking these days and
17216
 
  # people can always --disable-shared, the test was removed, and we
17217
 
  # assume the GNU/Linux dynamic linker is in use.
17218
 
  dynamic_linker='GNU/Linux ld.so'
17219
 
  ;;
17220
 
 
17221
 
netbsdelf*-gnu)
17222
 
  version_type=linux
17223
 
  need_lib_prefix=no
17224
 
  need_version=no
17225
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17226
 
  soname_spec='${libname}${release}${shared_ext}$major'
17227
 
  shlibpath_var=LD_LIBRARY_PATH
17228
 
  shlibpath_overrides_runpath=no
17229
 
  hardcode_into_libs=yes
17230
 
  dynamic_linker='NetBSD ld.elf_so'
17231
 
  ;;
17232
 
 
17233
 
netbsd*)
17234
 
  version_type=sunos
17235
 
  need_lib_prefix=no
17236
 
  need_version=no
17237
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17238
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17239
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17240
 
    dynamic_linker='NetBSD (a.out) ld.so'
17241
 
  else
17242
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17243
 
    soname_spec='${libname}${release}${shared_ext}$major'
17244
 
    dynamic_linker='NetBSD ld.elf_so'
17245
 
  fi
17246
 
  shlibpath_var=LD_LIBRARY_PATH
17247
 
  shlibpath_overrides_runpath=yes
17248
 
  hardcode_into_libs=yes
17249
 
  ;;
17250
 
 
17251
 
newsos6)
17252
 
  version_type=linux
17253
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254
 
  shlibpath_var=LD_LIBRARY_PATH
17255
 
  shlibpath_overrides_runpath=yes
17256
 
  ;;
17257
 
 
17258
 
nto-qnx*)
17259
 
  version_type=linux
17260
 
  need_lib_prefix=no
17261
 
  need_version=no
17262
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263
 
  soname_spec='${libname}${release}${shared_ext}$major'
17264
 
  shlibpath_var=LD_LIBRARY_PATH
17265
 
  shlibpath_overrides_runpath=yes
17266
 
  ;;
17267
 
 
17268
 
openbsd*)
17269
 
  version_type=sunos
17270
 
  sys_lib_dlsearch_path_spec="/usr/lib"
17271
 
  need_lib_prefix=no
17272
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17273
 
  case $host_os in
17274
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17275
 
    *)                         need_version=no  ;;
17276
 
  esac
17277
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17278
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17279
 
  shlibpath_var=LD_LIBRARY_PATH
17280
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17281
 
    case $host_os in
17282
 
      openbsd2.[89] | openbsd2.[89].*)
17283
 
        shlibpath_overrides_runpath=no
17284
 
        ;;
17285
 
      *)
17286
 
        shlibpath_overrides_runpath=yes
17287
 
        ;;
17288
 
      esac
17289
 
  else
17290
 
    shlibpath_overrides_runpath=yes
17291
 
  fi
17292
 
  ;;
17293
 
 
17294
 
os2*)
17295
 
  libname_spec='$name'
17296
 
  shrext_cmds=".dll"
17297
 
  need_lib_prefix=no
17298
 
  library_names_spec='$libname${shared_ext} $libname.a'
17299
 
  dynamic_linker='OS/2 ld.exe'
17300
 
  shlibpath_var=LIBPATH
17301
 
  ;;
17302
 
 
17303
 
osf3* | osf4* | osf5*)
17304
 
  version_type=osf
17305
 
  need_lib_prefix=no
17306
 
  need_version=no
17307
 
  soname_spec='${libname}${release}${shared_ext}$major'
17308
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309
 
  shlibpath_var=LD_LIBRARY_PATH
17310
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17311
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17312
 
  ;;
17313
 
 
17314
 
solaris*)
17315
 
  version_type=linux
17316
 
  need_lib_prefix=no
17317
 
  need_version=no
17318
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319
 
  soname_spec='${libname}${release}${shared_ext}$major'
17320
 
  shlibpath_var=LD_LIBRARY_PATH
17321
 
  shlibpath_overrides_runpath=yes
17322
 
  hardcode_into_libs=yes
17323
 
  # ldd complains unless libraries are executable
17324
 
  postinstall_cmds='chmod +x $lib'
17325
 
  ;;
17326
 
 
17327
 
sunos4*)
17328
 
  version_type=sunos
17329
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17330
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17331
 
  shlibpath_var=LD_LIBRARY_PATH
17332
 
  shlibpath_overrides_runpath=yes
17333
 
  if test "$with_gnu_ld" = yes; then
17334
 
    need_lib_prefix=no
17335
 
  fi
17336
 
  need_version=yes
17337
 
  ;;
17338
 
 
17339
 
sysv4 | sysv4.3*)
17340
 
  version_type=linux
17341
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342
 
  soname_spec='${libname}${release}${shared_ext}$major'
17343
 
  shlibpath_var=LD_LIBRARY_PATH
17344
 
  case $host_vendor in
17345
 
    sni)
17346
 
      shlibpath_overrides_runpath=no
17347
 
      need_lib_prefix=no
17348
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17349
 
      runpath_var=LD_RUN_PATH
17350
 
      ;;
17351
 
    siemens)
17352
 
      need_lib_prefix=no
17353
 
      ;;
17354
 
    motorola)
17355
 
      need_lib_prefix=no
17356
 
      need_version=no
17357
 
      shlibpath_overrides_runpath=no
17358
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17359
 
      ;;
17360
 
  esac
17361
 
  ;;
17362
 
 
17363
 
sysv4*MP*)
17364
 
  if test -d /usr/nec ;then
17365
 
    version_type=linux
17366
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17367
 
    soname_spec='$libname${shared_ext}.$major'
17368
 
    shlibpath_var=LD_LIBRARY_PATH
17369
 
  fi
17370
 
  ;;
17371
 
 
17372
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17373
 
  version_type=freebsd-elf
17374
 
  need_lib_prefix=no
17375
 
  need_version=no
17376
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17377
 
  soname_spec='${libname}${release}${shared_ext}$major'
17378
 
  shlibpath_var=LD_LIBRARY_PATH
17379
 
  hardcode_into_libs=yes
17380
 
  if test "$with_gnu_ld" = yes; then
17381
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17382
 
    shlibpath_overrides_runpath=no
17383
 
  else
17384
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17385
 
    shlibpath_overrides_runpath=yes
17386
 
    case $host_os in
17387
 
      sco3.2v5*)
17388
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17389
 
        ;;
17390
 
    esac
17391
 
  fi
17392
 
  sys_lib_dlsearch_path_spec='/usr/lib'
17393
 
  ;;
17394
 
 
17395
 
uts4*)
17396
 
  version_type=linux
17397
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398
 
  soname_spec='${libname}${release}${shared_ext}$major'
17399
 
  shlibpath_var=LD_LIBRARY_PATH
17400
 
  ;;
17401
 
 
17402
 
*)
17403
 
  dynamic_linker=no
17404
 
  ;;
17405
 
esac
17406
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17407
 
echo "${ECHO_T}$dynamic_linker" >&6; }
17408
 
test "$dynamic_linker" = no && can_build_shared=no
17409
 
 
17410
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17411
 
if test "$GCC" = yes; then
17412
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17413
 
fi
17414
 
 
17415
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17416
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17417
 
hardcode_action_F77=
17418
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
17419
 
   test -n "$runpath_var_F77" || \
17420
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
17421
 
 
17422
 
  # We can hardcode non-existant directories.
17423
 
  if test "$hardcode_direct_F77" != no &&
17424
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17425
 
     # have to relink, otherwise we might link with an installed library
17426
 
     # when we should be linking with a yet-to-be-installed one
17427
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17428
 
     test "$hardcode_minus_L_F77" != no; then
17429
 
    # Linking always hardcodes the temporary library directory.
17430
 
    hardcode_action_F77=relink
17431
 
  else
17432
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17433
 
    hardcode_action_F77=immediate
17434
 
  fi
17435
 
else
17436
 
  # We cannot hardcode anything, or else we can only hardcode existing
17437
 
  # directories.
17438
 
  hardcode_action_F77=unsupported
17439
 
fi
17440
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17441
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17442
 
 
17443
 
if test "$hardcode_action_F77" = relink; then
17444
 
  # Fast installation is not supported
17445
 
  enable_fast_install=no
17446
 
elif test "$shlibpath_overrides_runpath" = yes ||
17447
 
     test "$enable_shared" = no; then
17448
 
  # Fast installation is not necessary
17449
 
  enable_fast_install=needless
17450
 
fi
17451
 
 
17452
 
 
17453
 
# The else clause should only fire when bootstrapping the
17454
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
17455
 
# with your package, and you will get complaints that there are
17456
 
# no rules to generate ltmain.sh.
17457
 
if test -f "$ltmain"; then
17458
 
  # See if we are running on zsh, and set the options which allow our commands through
17459
 
  # without removal of \ escapes.
17460
 
  if test -n "${ZSH_VERSION+set}" ; then
17461
 
    setopt NO_GLOB_SUBST
17462
 
  fi
17463
 
  # Now quote all the things that may contain metacharacters while being
17464
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17465
 
  # variables and quote the copies for generation of the libtool script.
17466
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17467
 
    SED SHELL STRIP \
17468
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17469
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17470
 
    deplibs_check_method reload_flag reload_cmds need_locks \
17471
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17472
 
    lt_cv_sys_global_symbol_to_c_name_address \
17473
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17474
 
    old_postinstall_cmds old_postuninstall_cmds \
17475
 
    compiler_F77 \
17476
 
    CC_F77 \
17477
 
    LD_F77 \
17478
 
    lt_prog_compiler_wl_F77 \
17479
 
    lt_prog_compiler_pic_F77 \
17480
 
    lt_prog_compiler_static_F77 \
17481
 
    lt_prog_compiler_no_builtin_flag_F77 \
17482
 
    export_dynamic_flag_spec_F77 \
17483
 
    thread_safe_flag_spec_F77 \
17484
 
    whole_archive_flag_spec_F77 \
17485
 
    enable_shared_with_static_runtimes_F77 \
17486
 
    old_archive_cmds_F77 \
17487
 
    old_archive_from_new_cmds_F77 \
17488
 
    predep_objects_F77 \
17489
 
    postdep_objects_F77 \
17490
 
    predeps_F77 \
17491
 
    postdeps_F77 \
17492
 
    compiler_lib_search_path_F77 \
17493
 
    archive_cmds_F77 \
17494
 
    archive_expsym_cmds_F77 \
17495
 
    postinstall_cmds_F77 \
17496
 
    postuninstall_cmds_F77 \
17497
 
    old_archive_from_expsyms_cmds_F77 \
17498
 
    allow_undefined_flag_F77 \
17499
 
    no_undefined_flag_F77 \
17500
 
    export_symbols_cmds_F77 \
17501
 
    hardcode_libdir_flag_spec_F77 \
17502
 
    hardcode_libdir_flag_spec_ld_F77 \
17503
 
    hardcode_libdir_separator_F77 \
17504
 
    hardcode_automatic_F77 \
17505
 
    module_cmds_F77 \
17506
 
    module_expsym_cmds_F77 \
17507
 
    lt_cv_prog_compiler_c_o_F77 \
17508
 
    exclude_expsyms_F77 \
17509
 
    include_expsyms_F77; do
17510
 
 
17511
 
    case $var in
17512
 
    old_archive_cmds_F77 | \
17513
 
    old_archive_from_new_cmds_F77 | \
17514
 
    archive_cmds_F77 | \
17515
 
    archive_expsym_cmds_F77 | \
17516
 
    module_cmds_F77 | \
17517
 
    module_expsym_cmds_F77 | \
17518
 
    old_archive_from_expsyms_cmds_F77 | \
17519
 
    export_symbols_cmds_F77 | \
17520
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17521
 
    postinstall_cmds | postuninstall_cmds | \
17522
 
    old_postinstall_cmds | old_postuninstall_cmds | \
17523
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17524
 
      # Double-quote double-evaled strings.
17525
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17526
 
      ;;
17527
 
    *)
17528
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17529
 
      ;;
17530
 
    esac
17531
 
  done
17532
 
 
17533
 
  case $lt_echo in
17534
 
  *'\$0 --fallback-echo"')
17535
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17536
 
    ;;
17537
 
  esac
17538
 
 
17539
 
cfgfile="$ofile"
17540
 
 
17541
 
  cat <<__EOF__ >> "$cfgfile"
17542
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17543
 
 
17544
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17545
 
 
17546
 
# Shell to use when invoking shell scripts.
17547
 
SHELL=$lt_SHELL
17548
 
 
17549
 
# Whether or not to build shared libraries.
17550
 
build_libtool_libs=$enable_shared
17551
 
 
17552
 
# Whether or not to build static libraries.
17553
 
build_old_libs=$enable_static
17554
 
 
17555
 
# Whether or not to add -lc for building shared libraries.
17556
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
17557
 
 
17558
 
# Whether or not to disallow shared libs when runtime libs are static
17559
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17560
 
 
17561
 
# Whether or not to optimize for fast installation.
17562
 
fast_install=$enable_fast_install
17563
 
 
17564
 
# The host system.
17565
 
host_alias=$host_alias
17566
 
host=$host
17567
 
host_os=$host_os
17568
 
 
17569
 
# The build system.
17570
 
build_alias=$build_alias
17571
 
build=$build
17572
 
build_os=$build_os
17573
 
 
17574
 
# An echo program that does not interpret backslashes.
17575
 
echo=$lt_echo
17576
 
 
17577
 
# The archiver.
17578
 
AR=$lt_AR
17579
 
AR_FLAGS=$lt_AR_FLAGS
17580
 
 
17581
 
# A C compiler.
17582
 
LTCC=$lt_LTCC
17583
 
 
17584
 
# LTCC compiler flags.
17585
 
LTCFLAGS=$lt_LTCFLAGS
17586
 
 
17587
 
# A language-specific compiler.
17588
 
CC=$lt_compiler_F77
17589
 
 
17590
 
# Is the compiler the GNU C compiler?
17591
 
with_gcc=$GCC_F77
17592
 
 
17593
 
# An ERE matcher.
17594
 
EGREP=$lt_EGREP
17595
 
 
17596
 
# The linker used to build libraries.
17597
 
LD=$lt_LD_F77
17598
 
 
17599
 
# Whether we need hard or soft links.
17600
 
LN_S=$lt_LN_S
17601
 
 
17602
 
# A BSD-compatible nm program.
17603
 
NM=$lt_NM
17604
 
 
17605
 
# A symbol stripping program
17606
 
STRIP=$lt_STRIP
17607
 
 
17608
 
# Used to examine libraries when file_magic_cmd begins "file"
17609
 
MAGIC_CMD=$MAGIC_CMD
17610
 
 
17611
 
# Used on cygwin: DLL creation program.
17612
 
DLLTOOL="$DLLTOOL"
17613
 
 
17614
 
# Used on cygwin: object dumper.
17615
 
OBJDUMP="$OBJDUMP"
17616
 
 
17617
 
# Used on cygwin: assembler.
17618
 
AS="$AS"
17619
 
 
17620
 
# The name of the directory that contains temporary libtool files.
17621
 
objdir=$objdir
17622
 
 
17623
 
# How to create reloadable object files.
17624
 
reload_flag=$lt_reload_flag
17625
 
reload_cmds=$lt_reload_cmds
17626
 
 
17627
 
# How to pass a linker flag through the compiler.
17628
 
wl=$lt_lt_prog_compiler_wl_F77
17629
 
 
17630
 
# Object file suffix (normally "o").
17631
 
objext="$ac_objext"
17632
 
 
17633
 
# Old archive suffix (normally "a").
17634
 
libext="$libext"
17635
 
 
17636
 
# Shared library suffix (normally ".so").
17637
 
shrext_cmds='$shrext_cmds'
17638
 
 
17639
 
# Executable file suffix (normally "").
17640
 
exeext="$exeext"
17641
 
 
17642
 
# Additional compiler flags for building library objects.
17643
 
pic_flag=$lt_lt_prog_compiler_pic_F77
17644
 
pic_mode=$pic_mode
17645
 
 
17646
 
# What is the maximum length of a command?
17647
 
max_cmd_len=$lt_cv_sys_max_cmd_len
17648
 
 
17649
 
# Does compiler simultaneously support -c and -o options?
17650
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17651
 
 
17652
 
# Must we lock files when doing compilation?
17653
 
need_locks=$lt_need_locks
17654
 
 
17655
 
# Do we need the lib prefix for modules?
17656
 
need_lib_prefix=$need_lib_prefix
17657
 
 
17658
 
# Do we need a version for libraries?
17659
 
need_version=$need_version
17660
 
 
17661
 
# Whether dlopen is supported.
17662
 
dlopen_support=$enable_dlopen
17663
 
 
17664
 
# Whether dlopen of programs is supported.
17665
 
dlopen_self=$enable_dlopen_self
17666
 
 
17667
 
# Whether dlopen of statically linked programs is supported.
17668
 
dlopen_self_static=$enable_dlopen_self_static
17669
 
 
17670
 
# Compiler flag to prevent dynamic linking.
17671
 
link_static_flag=$lt_lt_prog_compiler_static_F77
17672
 
 
17673
 
# Compiler flag to turn off builtin functions.
17674
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17675
 
 
17676
 
# Compiler flag to allow reflexive dlopens.
17677
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17678
 
 
17679
 
# Compiler flag to generate shared objects directly from archives.
17680
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17681
 
 
17682
 
# Compiler flag to generate thread-safe objects.
17683
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17684
 
 
17685
 
# Library versioning type.
17686
 
version_type=$version_type
17687
 
 
17688
 
# Format of library name prefix.
17689
 
libname_spec=$lt_libname_spec
17690
 
 
17691
 
# List of archive names.  First name is the real one, the rest are links.
17692
 
# The last name is the one that the linker finds with -lNAME.
17693
 
library_names_spec=$lt_library_names_spec
17694
 
 
17695
 
# The coded name of the library, if different from the real name.
17696
 
soname_spec=$lt_soname_spec
17697
 
 
17698
 
# Commands used to build and install an old-style archive.
17699
 
RANLIB=$lt_RANLIB
17700
 
old_archive_cmds=$lt_old_archive_cmds_F77
17701
 
old_postinstall_cmds=$lt_old_postinstall_cmds
17702
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17703
 
 
17704
 
# Create an old-style archive from a shared archive.
17705
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17706
 
 
17707
 
# Create a temporary old-style archive to link instead of a shared archive.
17708
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17709
 
 
17710
 
# Commands used to build and install a shared archive.
17711
 
archive_cmds=$lt_archive_cmds_F77
17712
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17713
 
postinstall_cmds=$lt_postinstall_cmds
17714
 
postuninstall_cmds=$lt_postuninstall_cmds
17715
 
 
17716
 
# Commands used to build a loadable module (assumed same as above if empty)
17717
 
module_cmds=$lt_module_cmds_F77
17718
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
17719
 
 
17720
 
# Commands to strip libraries.
17721
 
old_striplib=$lt_old_striplib
17722
 
striplib=$lt_striplib
17723
 
 
17724
 
# Dependencies to place before the objects being linked to create a
17725
 
# shared library.
17726
 
predep_objects=$lt_predep_objects_F77
17727
 
 
17728
 
# Dependencies to place after the objects being linked to create a
17729
 
# shared library.
17730
 
postdep_objects=$lt_postdep_objects_F77
17731
 
 
17732
 
# Dependencies to place before the objects being linked to create a
17733
 
# shared library.
17734
 
predeps=$lt_predeps_F77
17735
 
 
17736
 
# Dependencies to place after the objects being linked to create a
17737
 
# shared library.
17738
 
postdeps=$lt_postdeps_F77
17739
 
 
17740
 
# The library search path used internally by the compiler when linking
17741
 
# a shared library.
17742
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17743
 
 
17744
 
# Method to check whether dependent libraries are shared objects.
17745
 
deplibs_check_method=$lt_deplibs_check_method
17746
 
 
17747
 
# Command to use when deplibs_check_method == file_magic.
17748
 
file_magic_cmd=$lt_file_magic_cmd
17749
 
 
17750
 
# Flag that allows shared libraries with undefined symbols to be built.
17751
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
17752
 
 
17753
 
# Flag that forces no undefined symbols.
17754
 
no_undefined_flag=$lt_no_undefined_flag_F77
17755
 
 
17756
 
# Commands used to finish a libtool library installation in a directory.
17757
 
finish_cmds=$lt_finish_cmds
17758
 
 
17759
 
# Same as above, but a single script fragment to be evaled but not shown.
17760
 
finish_eval=$lt_finish_eval
17761
 
 
17762
 
# Take the output of nm and produce a listing of raw symbols and C names.
17763
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17764
 
 
17765
 
# Transform the output of nm in a proper C declaration
17766
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17767
 
 
17768
 
# Transform the output of nm in a C name address pair
17769
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17770
 
 
17771
 
# This is the shared library runtime path variable.
17772
 
runpath_var=$runpath_var
17773
 
 
17774
 
# This is the shared library path variable.
17775
 
shlibpath_var=$shlibpath_var
17776
 
 
17777
 
# Is shlibpath searched before the hard-coded library search path?
17778
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17779
 
 
17780
 
# How to hardcode a shared library path into an executable.
17781
 
hardcode_action=$hardcode_action_F77
17782
 
 
17783
 
# Whether we should hardcode library paths into libraries.
17784
 
hardcode_into_libs=$hardcode_into_libs
17785
 
 
17786
 
# Flag to hardcode \$libdir into a binary during linking.
17787
 
# This must work even if \$libdir does not exist.
17788
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17789
 
 
17790
 
# If ld is used when linking, flag to hardcode \$libdir into
17791
 
# a binary during linking. This must work even if \$libdir does
17792
 
# not exist.
17793
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17794
 
 
17795
 
# Whether we need a single -rpath flag with a separated argument.
17796
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17797
 
 
17798
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17799
 
# resulting binary.
17800
 
hardcode_direct=$hardcode_direct_F77
17801
 
 
17802
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17803
 
# resulting binary.
17804
 
hardcode_minus_L=$hardcode_minus_L_F77
17805
 
 
17806
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17807
 
# the resulting binary.
17808
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17809
 
 
17810
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
17811
 
# and all subsequent libraries and executables linked against it.
17812
 
hardcode_automatic=$hardcode_automatic_F77
17813
 
 
17814
 
# Variables whose values should be saved in libtool wrapper scripts and
17815
 
# restored at relink time.
17816
 
variables_saved_for_relink="$variables_saved_for_relink"
17817
 
 
17818
 
# Whether libtool must link a program against all its dependency libraries.
17819
 
link_all_deplibs=$link_all_deplibs_F77
17820
 
 
17821
 
# Compile-time system search path for libraries
17822
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17823
 
 
17824
 
# Run-time system search path for libraries
17825
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17826
 
 
17827
 
# Fix the shell variable \$srcfile for the compiler.
17828
 
fix_srcfile_path="$fix_srcfile_path_F77"
17829
 
 
17830
 
# Set to yes if exported symbols are required.
17831
 
always_export_symbols=$always_export_symbols_F77
17832
 
 
17833
 
# The commands to list exported symbols.
17834
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
17835
 
 
17836
 
# The commands to extract the exported symbol list from a shared archive.
17837
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17838
 
 
17839
 
# Symbols that should not be listed in the preloaded symbols.
17840
 
exclude_expsyms=$lt_exclude_expsyms_F77
17841
 
 
17842
 
# Symbols that must always be exported.
17843
 
include_expsyms=$lt_include_expsyms_F77
17844
 
 
17845
 
# ### END LIBTOOL TAG CONFIG: $tagname
17846
 
 
17847
 
__EOF__
17848
 
 
17849
 
 
17850
 
else
17851
 
  # If there is no Makefile yet, we rely on a make rule to execute
17852
 
  # `config.status --recheck' to rerun these tests and create the
17853
 
  # libtool script then.
17854
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17855
 
  if test -f "$ltmain_in"; then
17856
 
    test -f Makefile && make "$ltmain"
17857
 
  fi
17858
 
fi
17859
 
 
17860
 
 
17861
 
ac_ext=c
17862
 
ac_cpp='$CPP $CPPFLAGS'
17863
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17864
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17865
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17866
 
 
17867
 
CC="$lt_save_CC"
17868
 
 
17869
 
        else
17870
 
          tagname=""
17871
 
        fi
17872
 
        ;;
17873
 
 
17874
 
      GCJ)
17875
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17876
 
          
17877
 
 
17878
 
# Source file extension for Java test sources.
17879
 
ac_ext=java
17880
 
 
17881
 
# Object file extension for compiled Java test sources.
17882
 
objext=o
17883
 
objext_GCJ=$objext
17884
 
 
17885
 
# Code to be used in simple compile tests
17886
 
lt_simple_compile_test_code="class foo {}\n"
17887
 
 
17888
 
# Code to be used in simple link tests
17889
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17890
 
 
17891
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17892
 
 
17893
 
# If no C compiler was specified, use CC.
17894
 
LTCC=${LTCC-"$CC"}
17895
 
 
17896
 
# If no C compiler flags were specified, use CFLAGS.
17897
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17898
 
 
17899
 
# Allow CC to be a program name with arguments.
17900
 
compiler=$CC
17901
 
 
17902
 
 
17903
 
# save warnings/boilerplate of simple test code
17904
 
ac_outfile=conftest.$ac_objext
17905
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17906
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17907
 
_lt_compiler_boilerplate=`cat conftest.err`
17908
 
$rm conftest*
17909
 
 
17910
 
ac_outfile=conftest.$ac_objext
17911
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
17912
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17913
 
_lt_linker_boilerplate=`cat conftest.err`
17914
 
$rm conftest*
17915
 
 
17916
 
 
17917
 
# Allow CC to be a program name with arguments.
17918
 
lt_save_CC="$CC"
17919
 
CC=${GCJ-"gcj"}
17920
 
compiler=$CC
17921
 
compiler_GCJ=$CC
17922
 
for cc_temp in $compiler""; do
17923
 
  case $cc_temp in
17924
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17925
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17926
 
    \-*) ;;
17927
 
    *) break;;
17928
 
  esac
17929
 
done
17930
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17931
 
 
17932
 
 
17933
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17934
 
archive_cmds_need_lc_GCJ=no
17935
 
 
17936
 
old_archive_cmds_GCJ=$old_archive_cmds
17937
 
 
17938
 
## CAVEAT EMPTOR:
17939
 
## There is no encapsulation within the following macros, do not change
17940
 
## the running order or otherwise move them around unless you know exactly
17941
 
## what you are doing...
17942
 
 
17943
 
lt_prog_compiler_no_builtin_flag_GCJ=
17944
 
 
17945
 
if test "$GCC" = yes; then
17946
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17947
 
 
17948
 
  
17949
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17950
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17951
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17952
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17953
 
else
17954
 
  lt_cv_prog_compiler_rtti_exceptions=no
17955
 
  ac_outfile=conftest.$ac_objext
17956
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17957
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
17958
 
   # Insert the option either (1) after the last *FLAGS variable, or
17959
 
   # (2) before a word containing "conftest.", or (3) at the end.
17960
 
   # Note that $ac_compile itself does not contain backslashes and begins
17961
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17962
 
   # The option is referenced via a variable to avoid confusing sed.
17963
 
   lt_compile=`echo "$ac_compile" | $SED \
17964
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17965
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17966
 
   -e 's:$: $lt_compiler_flag:'`
17967
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17968
 
   (eval "$lt_compile" 2>conftest.err)
17969
 
   ac_status=$?
17970
 
   cat conftest.err >&5
17971
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
17972
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17973
 
     # The compiler can only warn and ignore the option if not recognized
17974
 
     # So say no if there are warnings other than the usual output.
17975
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17976
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17977
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17978
 
       lt_cv_prog_compiler_rtti_exceptions=yes
17979
 
     fi
17980
 
   fi
17981
 
   $rm conftest*
17982
 
 
17983
 
fi
17984
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17985
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17986
 
 
17987
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17988
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17989
 
else
17990
 
    :
17991
 
fi
17992
 
 
17993
 
fi
17994
 
 
17995
 
lt_prog_compiler_wl_GCJ=
17996
 
lt_prog_compiler_pic_GCJ=
17997
 
lt_prog_compiler_static_GCJ=
17998
 
 
17999
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18000
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18001
 
 
18002
 
  if test "$GCC" = yes; then
18003
 
    lt_prog_compiler_wl_GCJ='-Wl,'
18004
 
    lt_prog_compiler_static_GCJ='-static'
18005
 
 
18006
 
    case $host_os in
18007
 
      aix*)
18008
 
      # All AIX code is PIC.
18009
 
      if test "$host_cpu" = ia64; then
18010
 
        # AIX 5 now supports IA64 processor
18011
 
        lt_prog_compiler_static_GCJ='-Bstatic'
18012
 
      fi
18013
 
      ;;
18014
 
 
18015
 
    amigaos*)
18016
 
      # FIXME: we need at least 68020 code to build shared libraries, but
18017
 
      # adding the `-m68020' flag to GCC prevents building anything better,
18018
 
      # like `-m68040'.
18019
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18020
 
      ;;
18021
 
 
18022
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18023
 
      # PIC is the default for these OSes.
18024
 
      ;;
18025
 
 
18026
 
    mingw* | pw32* | os2*)
18027
 
      # This hack is so that the source file can tell whether it is being
18028
 
      # built for inclusion in a dll (and should export symbols for example).
18029
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18030
 
      ;;
18031
 
 
18032
 
    darwin* | rhapsody*)
18033
 
      # PIC is the default on this platform
18034
 
      # Common symbols not allowed in MH_DYLIB files
18035
 
      lt_prog_compiler_pic_GCJ='-fno-common'
18036
 
      ;;
18037
 
 
18038
 
    interix3*)
18039
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18040
 
      # Instead, we relocate shared libraries at runtime.
18041
 
      ;;
18042
 
 
18043
 
    msdosdjgpp*)
18044
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
18045
 
      # on systems that don't support them.
18046
 
      lt_prog_compiler_can_build_shared_GCJ=no
18047
 
      enable_shared=no
18048
 
      ;;
18049
 
 
18050
 
    sysv4*MP*)
18051
 
      if test -d /usr/nec; then
18052
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
18053
 
      fi
18054
 
      ;;
18055
 
 
18056
 
    hpux*)
18057
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18058
 
      # not for PA HP-UX.
18059
 
      case $host_cpu in
18060
 
      hppa*64*|ia64*)
18061
 
        # +Z the default
18062
 
        ;;
18063
 
      *)
18064
 
        lt_prog_compiler_pic_GCJ='-fPIC'
18065
 
        ;;
18066
 
      esac
18067
 
      ;;
18068
 
 
18069
 
    *)
18070
 
      lt_prog_compiler_pic_GCJ='-fPIC'
18071
 
      ;;
18072
 
    esac
18073
 
  else
18074
 
    # PORTME Check for flag to pass linker flags through the system compiler.
18075
 
    case $host_os in
18076
 
    aix*)
18077
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18078
 
      if test "$host_cpu" = ia64; then
18079
 
        # AIX 5 now supports IA64 processor
18080
 
        lt_prog_compiler_static_GCJ='-Bstatic'
18081
 
      else
18082
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18083
 
      fi
18084
 
      ;;
18085
 
      darwin*)
18086
 
        # PIC is the default on this platform
18087
 
        # Common symbols not allowed in MH_DYLIB files
18088
 
       case $cc_basename in
18089
 
         xlc*)
18090
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
18091
 
         lt_prog_compiler_wl_GCJ='-Wl,'
18092
 
         ;;
18093
 
       esac
18094
 
       ;;
18095
 
 
18096
 
    mingw* | pw32* | os2*)
18097
 
      # This hack is so that the source file can tell whether it is being
18098
 
      # built for inclusion in a dll (and should export symbols for example).
18099
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18100
 
      ;;
18101
 
 
18102
 
    hpux9* | hpux10* | hpux11*)
18103
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18104
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18105
 
      # not for PA HP-UX.
18106
 
      case $host_cpu in
18107
 
      hppa*64*|ia64*)
18108
 
        # +Z the default
18109
 
        ;;
18110
 
      *)
18111
 
        lt_prog_compiler_pic_GCJ='+Z'
18112
 
        ;;
18113
 
      esac
18114
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18115
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18116
 
      ;;
18117
 
 
18118
 
    irix5* | irix6* | nonstopux*)
18119
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18120
 
      # PIC (with -KPIC) is the default.
18121
 
      lt_prog_compiler_static_GCJ='-non_shared'
18122
 
      ;;
18123
 
 
18124
 
    newsos6)
18125
 
      lt_prog_compiler_pic_GCJ='-KPIC'
18126
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18127
 
      ;;
18128
 
 
18129
 
    linux* | k*bsd*-gnu)
18130
 
      case $cc_basename in
18131
 
      icc* | ecc*)
18132
 
        lt_prog_compiler_wl_GCJ='-Wl,'
18133
 
        lt_prog_compiler_pic_GCJ='-KPIC'
18134
 
        lt_prog_compiler_static_GCJ='-static'
18135
 
        ;;
18136
 
      pgcc* | pgf77* | pgf90* | pgf95*)
18137
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
18138
 
        # which looks to be a dead project)
18139
 
        lt_prog_compiler_wl_GCJ='-Wl,'
18140
 
        lt_prog_compiler_pic_GCJ='-fpic'
18141
 
        lt_prog_compiler_static_GCJ='-Bstatic'
18142
 
        ;;
18143
 
      ccc*)
18144
 
        lt_prog_compiler_wl_GCJ='-Wl,'
18145
 
        # All Alpha code is PIC.
18146
 
        lt_prog_compiler_static_GCJ='-non_shared'
18147
 
        ;;
18148
 
      esac
18149
 
      ;;
18150
 
 
18151
 
    osf3* | osf4* | osf5*)
18152
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18153
 
      # All OSF/1 code is PIC.
18154
 
      lt_prog_compiler_static_GCJ='-non_shared'
18155
 
      ;;
18156
 
 
18157
 
    solaris*)
18158
 
      lt_prog_compiler_pic_GCJ='-KPIC'
18159
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18160
 
      case $cc_basename in
18161
 
      f77* | f90* | f95*)
18162
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18163
 
      *)
18164
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
18165
 
      esac
18166
 
      ;;
18167
 
 
18168
 
    sunos4*)
18169
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
18170
 
      lt_prog_compiler_pic_GCJ='-PIC'
18171
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18172
 
      ;;
18173
 
 
18174
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
18175
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18176
 
      lt_prog_compiler_pic_GCJ='-KPIC'
18177
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18178
 
      ;;
18179
 
 
18180
 
    sysv4*MP*)
18181
 
      if test -d /usr/nec ;then
18182
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
18183
 
        lt_prog_compiler_static_GCJ='-Bstatic'
18184
 
      fi
18185
 
      ;;
18186
 
 
18187
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18188
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18189
 
      lt_prog_compiler_pic_GCJ='-KPIC'
18190
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18191
 
      ;;
18192
 
 
18193
 
    unicos*)
18194
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18195
 
      lt_prog_compiler_can_build_shared_GCJ=no
18196
 
      ;;
18197
 
 
18198
 
    uts4*)
18199
 
      lt_prog_compiler_pic_GCJ='-pic'
18200
 
      lt_prog_compiler_static_GCJ='-Bstatic'
18201
 
      ;;
18202
 
 
18203
 
    *)
18204
 
      lt_prog_compiler_can_build_shared_GCJ=no
18205
 
      ;;
18206
 
    esac
18207
 
  fi
18208
 
 
18209
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18210
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18211
 
 
18212
 
#
18213
 
# Check to make sure the PIC flag actually works.
18214
 
#
18215
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
18216
 
  
18217
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18218
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18219
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18220
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18221
 
else
18222
 
  lt_prog_compiler_pic_works_GCJ=no
18223
 
  ac_outfile=conftest.$ac_objext
18224
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18225
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18226
 
   # Insert the option either (1) after the last *FLAGS variable, or
18227
 
   # (2) before a word containing "conftest.", or (3) at the end.
18228
 
   # Note that $ac_compile itself does not contain backslashes and begins
18229
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18230
 
   # The option is referenced via a variable to avoid confusing sed.
18231
 
   lt_compile=`echo "$ac_compile" | $SED \
18232
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18233
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18234
 
   -e 's:$: $lt_compiler_flag:'`
18235
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18236
 
   (eval "$lt_compile" 2>conftest.err)
18237
 
   ac_status=$?
18238
 
   cat conftest.err >&5
18239
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
18240
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
18241
 
     # The compiler can only warn and ignore the option if not recognized
18242
 
     # So say no if there are warnings other than the usual output.
18243
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18244
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18245
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18246
 
       lt_prog_compiler_pic_works_GCJ=yes
18247
 
     fi
18248
 
   fi
18249
 
   $rm conftest*
18250
 
 
18251
 
fi
18252
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18253
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18254
 
 
18255
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18256
 
    case $lt_prog_compiler_pic_GCJ in
18257
 
     "" | " "*) ;;
18258
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18259
 
     esac
18260
 
else
18261
 
    lt_prog_compiler_pic_GCJ=
18262
 
     lt_prog_compiler_can_build_shared_GCJ=no
18263
 
fi
18264
 
 
18265
 
fi
18266
 
case $host_os in
18267
 
  # For platforms which do not support PIC, -DPIC is meaningless:
18268
 
  *djgpp*)
18269
 
    lt_prog_compiler_pic_GCJ=
18270
 
    ;;
18271
 
  *)
18272
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18273
 
    ;;
18274
 
esac
18275
 
 
18276
 
#
18277
 
# Check to make sure the static flag actually works.
18278
 
#
18279
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18280
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18281
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18282
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18283
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18284
 
else
18285
 
  lt_prog_compiler_static_works_GCJ=no
18286
 
   save_LDFLAGS="$LDFLAGS"
18287
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18288
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18289
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18290
 
     # The linker can only warn and ignore the option if not recognized
18291
 
     # So say no if there are warnings
18292
 
     if test -s conftest.err; then
18293
 
       # Append any errors to the config.log.
18294
 
       cat conftest.err 1>&5
18295
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18296
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18297
 
       if diff conftest.exp conftest.er2 >/dev/null; then
18298
 
         lt_prog_compiler_static_works_GCJ=yes
18299
 
       fi
18300
 
     else
18301
 
       lt_prog_compiler_static_works_GCJ=yes
18302
 
     fi
18303
 
   fi
18304
 
   $rm conftest*
18305
 
   LDFLAGS="$save_LDFLAGS"
18306
 
 
18307
 
fi
18308
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18309
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18310
 
 
18311
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18312
 
    :
18313
 
else
18314
 
    lt_prog_compiler_static_GCJ=
18315
 
fi
18316
 
 
18317
 
 
18318
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18319
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18320
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18322
 
else
18323
 
  lt_cv_prog_compiler_c_o_GCJ=no
18324
 
   $rm -r conftest 2>/dev/null
18325
 
   mkdir conftest
18326
 
   cd conftest
18327
 
   mkdir out
18328
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18329
 
 
18330
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
18331
 
   # Insert the option either (1) after the last *FLAGS variable, or
18332
 
   # (2) before a word containing "conftest.", or (3) at the end.
18333
 
   # Note that $ac_compile itself does not contain backslashes and begins
18334
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18335
 
   lt_compile=`echo "$ac_compile" | $SED \
18336
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18337
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18338
 
   -e 's:$: $lt_compiler_flag:'`
18339
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18340
 
   (eval "$lt_compile" 2>out/conftest.err)
18341
 
   ac_status=$?
18342
 
   cat out/conftest.err >&5
18343
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
18344
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18345
 
   then
18346
 
     # The compiler can only warn and ignore the option if not recognized
18347
 
     # So say no if there are warnings
18348
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18349
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18350
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18351
 
       lt_cv_prog_compiler_c_o_GCJ=yes
18352
 
     fi
18353
 
   fi
18354
 
   chmod u+w . 2>&5
18355
 
   $rm conftest*
18356
 
   # SGI C++ compiler will create directory out/ii_files/ for
18357
 
   # template instantiation
18358
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18359
 
   $rm out/* && rmdir out
18360
 
   cd ..
18361
 
   rmdir conftest
18362
 
   $rm conftest*
18363
 
 
18364
 
fi
18365
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18366
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18367
 
 
18368
 
 
18369
 
hard_links="nottested"
18370
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18371
 
  # do not overwrite the value of need_locks provided by the user
18372
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18373
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18374
 
  hard_links=yes
18375
 
  $rm conftest*
18376
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18377
 
  touch conftest.a
18378
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
18379
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18380
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
18381
 
echo "${ECHO_T}$hard_links" >&6; }
18382
 
  if test "$hard_links" = no; then
18383
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18384
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18385
 
    need_locks=warn
18386
 
  fi
18387
 
else
18388
 
  need_locks=no
18389
 
fi
18390
 
 
18391
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18392
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18393
 
 
18394
 
  runpath_var=
18395
 
  allow_undefined_flag_GCJ=
18396
 
  enable_shared_with_static_runtimes_GCJ=no
18397
 
  archive_cmds_GCJ=
18398
 
  archive_expsym_cmds_GCJ=
18399
 
  old_archive_From_new_cmds_GCJ=
18400
 
  old_archive_from_expsyms_cmds_GCJ=
18401
 
  export_dynamic_flag_spec_GCJ=
18402
 
  whole_archive_flag_spec_GCJ=
18403
 
  thread_safe_flag_spec_GCJ=
18404
 
  hardcode_libdir_flag_spec_GCJ=
18405
 
  hardcode_libdir_flag_spec_ld_GCJ=
18406
 
  hardcode_libdir_separator_GCJ=
18407
 
  hardcode_direct_GCJ=no
18408
 
  hardcode_minus_L_GCJ=no
18409
 
  hardcode_shlibpath_var_GCJ=unsupported
18410
 
  link_all_deplibs_GCJ=unknown
18411
 
  hardcode_automatic_GCJ=no
18412
 
  module_cmds_GCJ=
18413
 
  module_expsym_cmds_GCJ=
18414
 
  always_export_symbols_GCJ=no
18415
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18416
 
  # include_expsyms should be a list of space-separated symbols to be *always*
18417
 
  # included in the symbol list
18418
 
  include_expsyms_GCJ=
18419
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
18420
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18421
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18422
 
  # as well as any symbol that contains `d'.
18423
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18424
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18425
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
18426
 
  # the symbol is explicitly referenced.  Since portable code cannot
18427
 
  # rely on this symbol name, it's probably fine to never include it in
18428
 
  # preloaded symbol tables.
18429
 
  extract_expsyms_cmds=
18430
 
  # Just being paranoid about ensuring that cc_basename is set.
18431
 
  for cc_temp in $compiler""; do
18432
 
  case $cc_temp in
18433
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18434
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18435
 
    \-*) ;;
18436
 
    *) break;;
18437
 
  esac
18438
 
done
18439
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18440
 
 
18441
 
  case $host_os in
18442
 
  cygwin* | mingw* | pw32*)
18443
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18444
 
    # When not using gcc, we currently assume that we are using
18445
 
    # Microsoft Visual C++.
18446
 
    if test "$GCC" != yes; then
18447
 
      with_gnu_ld=no
18448
 
    fi
18449
 
    ;;
18450
 
  interix*)
18451
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
18452
 
    with_gnu_ld=yes
18453
 
    ;;
18454
 
  openbsd*)
18455
 
    with_gnu_ld=no
18456
 
    ;;
18457
 
  esac
18458
 
 
18459
 
  ld_shlibs_GCJ=yes
18460
 
  if test "$with_gnu_ld" = yes; then
18461
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
18462
 
    wlarc='${wl}'
18463
 
 
18464
 
    # Set some defaults for GNU ld with shared library support. These
18465
 
    # are reset later if shared libraries are not supported. Putting them
18466
 
    # here allows them to be overridden if necessary.
18467
 
    runpath_var=LD_RUN_PATH
18468
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18469
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18470
 
    # ancient GNU ld didn't support --whole-archive et. al.
18471
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18472
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18473
 
      else
18474
 
        whole_archive_flag_spec_GCJ=
18475
 
    fi
18476
 
    supports_anon_versioning=no
18477
 
    case `$LD -v 2>/dev/null` in
18478
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18479
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18480
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18481
 
      *\ 2.11.*) ;; # other 2.11 versions
18482
 
      *) supports_anon_versioning=yes ;;
18483
 
    esac
18484
 
 
18485
 
    # See if GNU ld supports shared libraries.
18486
 
    case $host_os in
18487
 
    aix3* | aix4* | aix5*)
18488
 
      # On AIX/PPC, the GNU linker is very broken
18489
 
      if test "$host_cpu" != ia64; then
18490
 
        ld_shlibs_GCJ=no
18491
 
        cat <<EOF 1>&2
18492
 
 
18493
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18494
 
*** to be unable to reliably create shared libraries on AIX.
18495
 
*** Therefore, libtool is disabling shared libraries support.  If you
18496
 
*** really care for shared libraries, you may want to modify your PATH
18497
 
*** so that a non-GNU linker is found, and then restart.
18498
 
 
18499
 
EOF
18500
 
      fi
18501
 
      ;;
18502
 
 
18503
 
    amigaos*)
18504
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18505
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18506
 
      hardcode_minus_L_GCJ=yes
18507
 
 
18508
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18509
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
18510
 
      # to version 4, is to share data among multiple programs linked
18511
 
      # with the same dynamic library.  Since this doesn't match the
18512
 
      # behavior of shared libraries on other platforms, we can't use
18513
 
      # them.
18514
 
      ld_shlibs_GCJ=no
18515
 
      ;;
18516
 
 
18517
 
    beos*)
18518
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18519
 
        allow_undefined_flag_GCJ=unsupported
18520
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18521
 
        # support --undefined.  This deserves some investigation.  FIXME
18522
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18523
 
      else
18524
 
        ld_shlibs_GCJ=no
18525
 
      fi
18526
 
      ;;
18527
 
 
18528
 
    cygwin* | mingw* | pw32*)
18529
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18530
 
      # as there is no search path for DLLs.
18531
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18532
 
      allow_undefined_flag_GCJ=unsupported
18533
 
      always_export_symbols_GCJ=no
18534
 
      enable_shared_with_static_runtimes_GCJ=yes
18535
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18536
 
 
18537
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18538
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18539
 
        # If the export-symbols file already is a .def file (1st line
18540
 
        # is EXPORTS), use it as is; otherwise, prepend...
18541
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18542
 
          cp $export_symbols $output_objdir/$soname.def;
18543
 
        else
18544
 
          echo EXPORTS > $output_objdir/$soname.def;
18545
 
          cat $export_symbols >> $output_objdir/$soname.def;
18546
 
        fi~
18547
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18548
 
      else
18549
 
        ld_shlibs_GCJ=no
18550
 
      fi
18551
 
      ;;
18552
 
 
18553
 
    interix3*)
18554
 
      hardcode_direct_GCJ=no
18555
 
      hardcode_shlibpath_var_GCJ=no
18556
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18557
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18558
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18559
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
18560
 
      # default) and relocated if they conflict, which is a slow very memory
18561
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
18562
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18563
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18564
 
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18565
 
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18566
 
      ;;
18567
 
 
18568
 
    linux* | k*bsd*-gnu)
18569
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18570
 
        tmp_addflag=
18571
 
        case $cc_basename,$host_cpu in
18572
 
        pgcc*)                          # Portland Group C compiler
18573
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18574
 
          tmp_addflag=' $pic_flag'
18575
 
          ;;
18576
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18577
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18578
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
18579
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18580
 
          tmp_addflag=' -i_dynamic' ;;
18581
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18582
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
18583
 
        ifc* | ifort*)                  # Intel Fortran compiler
18584
 
          tmp_addflag=' -nofor_main' ;;
18585
 
        esac
18586
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18587
 
 
18588
 
        if test $supports_anon_versioning = yes; then
18589
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18590
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18591
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
18592
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18593
 
        fi
18594
 
        link_all_deplibs_GCJ=no
18595
 
      else
18596
 
        ld_shlibs_GCJ=no
18597
 
      fi
18598
 
      ;;
18599
 
 
18600
 
    netbsd* | netbsdelf*-gnu)
18601
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18602
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18603
 
        wlarc=
18604
 
      else
18605
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18607
 
      fi
18608
 
      ;;
18609
 
 
18610
 
    solaris*)
18611
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18612
 
        ld_shlibs_GCJ=no
18613
 
        cat <<EOF 1>&2
18614
 
 
18615
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18616
 
*** create shared libraries on Solaris systems.  Therefore, libtool
18617
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
18618
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
18619
 
*** your PATH or compiler configuration so that the native linker is
18620
 
*** used, and then restart.
18621
 
 
18622
 
EOF
18623
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18624
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18625
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18626
 
      else
18627
 
        ld_shlibs_GCJ=no
18628
 
      fi
18629
 
      ;;
18630
 
 
18631
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18632
 
      case `$LD -v 2>&1` in
18633
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
18634
 
        ld_shlibs_GCJ=no
18635
 
        cat <<_LT_EOF 1>&2
18636
 
 
18637
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18638
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
18639
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
18640
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18641
 
*** your PATH or compiler configuration so that the native linker is
18642
 
*** used, and then restart.
18643
 
 
18644
 
_LT_EOF
18645
 
        ;;
18646
 
        *)
18647
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18648
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18649
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18650
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18651
 
          else
18652
 
            ld_shlibs_GCJ=no
18653
 
          fi
18654
 
        ;;
18655
 
      esac
18656
 
      ;;
18657
 
 
18658
 
    sunos4*)
18659
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18660
 
      wlarc=
18661
 
      hardcode_direct_GCJ=yes
18662
 
      hardcode_shlibpath_var_GCJ=no
18663
 
      ;;
18664
 
 
18665
 
    *)
18666
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18667
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18668
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18669
 
      else
18670
 
        ld_shlibs_GCJ=no
18671
 
      fi
18672
 
      ;;
18673
 
    esac
18674
 
 
18675
 
    if test "$ld_shlibs_GCJ" = no; then
18676
 
      runpath_var=
18677
 
      hardcode_libdir_flag_spec_GCJ=
18678
 
      export_dynamic_flag_spec_GCJ=
18679
 
      whole_archive_flag_spec_GCJ=
18680
 
    fi
18681
 
  else
18682
 
    # PORTME fill in a description of your system's linker (not GNU ld)
18683
 
    case $host_os in
18684
 
    aix3*)
18685
 
      allow_undefined_flag_GCJ=unsupported
18686
 
      always_export_symbols_GCJ=yes
18687
 
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18688
 
      # Note: this linker hardcodes the directories in LIBPATH if there
18689
 
      # are no directories specified by -L.
18690
 
      hardcode_minus_L_GCJ=yes
18691
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18692
 
        # Neither direct hardcoding nor static linking is supported with a
18693
 
        # broken collect2.
18694
 
        hardcode_direct_GCJ=unsupported
18695
 
      fi
18696
 
      ;;
18697
 
 
18698
 
    aix4* | aix5*)
18699
 
      if test "$host_cpu" = ia64; then
18700
 
        # On IA64, the linker does run time linking by default, so we don't
18701
 
        # have to do anything special.
18702
 
        aix_use_runtimelinking=no
18703
 
        exp_sym_flag='-Bexport'
18704
 
        no_entry_flag=""
18705
 
      else
18706
 
        # If we're using GNU nm, then we don't want the "-C" option.
18707
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
18708
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18709
 
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18710
 
        else
18711
 
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18712
 
        fi
18713
 
        aix_use_runtimelinking=no
18714
 
 
18715
 
        # Test if we are trying to use run time linking or normal
18716
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18717
 
        # need to do runtime linking.
18718
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18719
 
          for ld_flag in $LDFLAGS; do
18720
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18721
 
            aix_use_runtimelinking=yes
18722
 
            break
18723
 
          fi
18724
 
          done
18725
 
          ;;
18726
 
        esac
18727
 
 
18728
 
        exp_sym_flag='-bexport'
18729
 
        no_entry_flag='-bnoentry'
18730
 
      fi
18731
 
 
18732
 
      # When large executables or shared objects are built, AIX ld can
18733
 
      # have problems creating the table of contents.  If linking a library
18734
 
      # or program results in "error TOC overflow" add -mminimal-toc to
18735
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18736
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18737
 
 
18738
 
      archive_cmds_GCJ=''
18739
 
      hardcode_direct_GCJ=yes
18740
 
      hardcode_libdir_separator_GCJ=':'
18741
 
      link_all_deplibs_GCJ=yes
18742
 
 
18743
 
      if test "$GCC" = yes; then
18744
 
        case $host_os in aix4.[012]|aix4.[012].*)
18745
 
        # We only want to do this on AIX 4.2 and lower, the check
18746
 
        # below for broken collect2 doesn't work under 4.3+
18747
 
          collect2name=`${CC} -print-prog-name=collect2`
18748
 
          if test -f "$collect2name" && \
18749
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
18750
 
          then
18751
 
          # We have reworked collect2
18752
 
          hardcode_direct_GCJ=yes
18753
 
          else
18754
 
          # We have old collect2
18755
 
          hardcode_direct_GCJ=unsupported
18756
 
          # It fails to find uninstalled libraries when the uninstalled
18757
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
18758
 
          # to unsupported forces relinking
18759
 
          hardcode_minus_L_GCJ=yes
18760
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
18761
 
          hardcode_libdir_separator_GCJ=
18762
 
          fi
18763
 
          ;;
18764
 
        esac
18765
 
        shared_flag='-shared'
18766
 
        if test "$aix_use_runtimelinking" = yes; then
18767
 
          shared_flag="$shared_flag "'${wl}-G'
18768
 
        fi
18769
 
      else
18770
 
        # not using gcc
18771
 
        if test "$host_cpu" = ia64; then
18772
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18773
 
        # chokes on -Wl,-G. The following line is correct:
18774
 
          shared_flag='-G'
18775
 
        else
18776
 
          if test "$aix_use_runtimelinking" = yes; then
18777
 
            shared_flag='${wl}-G'
18778
 
          else
18779
 
            shared_flag='${wl}-bM:SRE'
18780
 
          fi
18781
 
        fi
18782
 
      fi
18783
 
 
18784
 
      # It seems that -bexpall does not export symbols beginning with
18785
 
      # underscore (_), so it is better to generate a list of symbols to export.
18786
 
      always_export_symbols_GCJ=yes
18787
 
      if test "$aix_use_runtimelinking" = yes; then
18788
 
        # Warning - without using the other runtime loading flags (-brtl),
18789
 
        # -berok will link without error, but may produce a broken library.
18790
 
        allow_undefined_flag_GCJ='-berok'
18791
 
       # Determine the default libpath from the value encoded in an empty executable.
18792
 
       cat >conftest.$ac_ext <<_ACEOF
18793
 
/* confdefs.h.  */
18794
 
_ACEOF
18795
 
cat confdefs.h >>conftest.$ac_ext
18796
 
cat >>conftest.$ac_ext <<_ACEOF
18797
 
/* end confdefs.h.  */
18798
 
 
18799
 
int
18800
 
main ()
18801
 
{
18802
 
 
18803
 
  ;
18804
 
  return 0;
18805
 
}
18806
 
_ACEOF
18807
 
rm -f conftest.$ac_objext conftest$ac_exeext
18808
 
if { (ac_try="$ac_link"
18809
 
case "(($ac_try" in
18810
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811
 
  *) ac_try_echo=$ac_try;;
18812
 
esac
18813
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814
 
  (eval "$ac_link") 2>conftest.er1
18815
 
  ac_status=$?
18816
 
  grep -v '^ *+' conftest.er1 >conftest.err
18817
 
  rm -f conftest.er1
18818
 
  cat conftest.err >&5
18819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820
 
  (exit $ac_status); } &&
18821
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18822
 
  { (case "(($ac_try" in
18823
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824
 
  *) ac_try_echo=$ac_try;;
18825
 
esac
18826
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827
 
  (eval "$ac_try") 2>&5
18828
 
  ac_status=$?
18829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830
 
  (exit $ac_status); }; } &&
18831
 
         { ac_try='test -s conftest$ac_exeext'
18832
 
  { (case "(($ac_try" in
18833
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834
 
  *) ac_try_echo=$ac_try;;
18835
 
esac
18836
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837
 
  (eval "$ac_try") 2>&5
18838
 
  ac_status=$?
18839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840
 
  (exit $ac_status); }; }; then
18841
 
  
18842
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18843
 
}'`
18844
 
# Check for a 64-bit object if we didn't find anything.
18845
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18846
 
}'`; fi
18847
 
else
18848
 
  echo "$as_me: failed program was:" >&5
18849
 
sed 's/^/| /' conftest.$ac_ext >&5
18850
 
 
18851
 
        
18852
 
fi
18853
 
 
18854
 
rm -f conftest.err conftest.$ac_objext \
18855
 
      conftest$ac_exeext conftest.$ac_ext
18856
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18857
 
 
18858
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18859
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18860
 
       else
18861
 
        if test "$host_cpu" = ia64; then
18862
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18863
 
          allow_undefined_flag_GCJ="-z nodefs"
18864
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18865
 
        else
18866
 
         # Determine the default libpath from the value encoded in an empty executable.
18867
 
         cat >conftest.$ac_ext <<_ACEOF
18868
 
/* confdefs.h.  */
18869
 
_ACEOF
18870
 
cat confdefs.h >>conftest.$ac_ext
18871
 
cat >>conftest.$ac_ext <<_ACEOF
18872
 
/* end confdefs.h.  */
18873
 
 
18874
 
int
18875
 
main ()
18876
 
{
18877
 
 
18878
 
  ;
18879
 
  return 0;
18880
 
}
18881
 
_ACEOF
18882
 
rm -f conftest.$ac_objext conftest$ac_exeext
18883
 
if { (ac_try="$ac_link"
18884
 
case "(($ac_try" in
18885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886
 
  *) ac_try_echo=$ac_try;;
18887
 
esac
18888
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889
 
  (eval "$ac_link") 2>conftest.er1
18890
 
  ac_status=$?
18891
 
  grep -v '^ *+' conftest.er1 >conftest.err
18892
 
  rm -f conftest.er1
18893
 
  cat conftest.err >&5
18894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895
 
  (exit $ac_status); } &&
18896
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897
 
  { (case "(($ac_try" in
18898
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899
 
  *) ac_try_echo=$ac_try;;
18900
 
esac
18901
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902
 
  (eval "$ac_try") 2>&5
18903
 
  ac_status=$?
18904
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905
 
  (exit $ac_status); }; } &&
18906
 
         { ac_try='test -s conftest$ac_exeext'
18907
 
  { (case "(($ac_try" in
18908
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909
 
  *) ac_try_echo=$ac_try;;
18910
 
esac
18911
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912
 
  (eval "$ac_try") 2>&5
18913
 
  ac_status=$?
18914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915
 
  (exit $ac_status); }; }; then
18916
 
  
18917
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18918
 
}'`
18919
 
# Check for a 64-bit object if we didn't find anything.
18920
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18921
 
}'`; fi
18922
 
else
18923
 
  echo "$as_me: failed program was:" >&5
18924
 
sed 's/^/| /' conftest.$ac_ext >&5
18925
 
 
18926
 
        
18927
 
fi
18928
 
 
18929
 
rm -f conftest.err conftest.$ac_objext \
18930
 
      conftest$ac_exeext conftest.$ac_ext
18931
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18932
 
 
18933
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18934
 
          # Warning - without using the other run time loading flags,
18935
 
          # -berok will link without error, but may produce a broken library.
18936
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
18937
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
18938
 
          # Exported symbols can be pulled into shared objects from archives
18939
 
          whole_archive_flag_spec_GCJ='$convenience'
18940
 
          archive_cmds_need_lc_GCJ=yes
18941
 
          # This is similar to how AIX traditionally builds its shared libraries.
18942
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18943
 
        fi
18944
 
      fi
18945
 
      ;;
18946
 
 
18947
 
    amigaos*)
18948
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18949
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18950
 
      hardcode_minus_L_GCJ=yes
18951
 
      # see comment about different semantics on the GNU ld section
18952
 
      ld_shlibs_GCJ=no
18953
 
      ;;
18954
 
 
18955
 
    bsdi[45]*)
18956
 
      export_dynamic_flag_spec_GCJ=-rdynamic
18957
 
      ;;
18958
 
 
18959
 
    cygwin* | mingw* | pw32*)
18960
 
      # When not using gcc, we currently assume that we are using
18961
 
      # Microsoft Visual C++.
18962
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
18963
 
      # no search path for DLLs.
18964
 
      hardcode_libdir_flag_spec_GCJ=' '
18965
 
      allow_undefined_flag_GCJ=unsupported
18966
 
      # Tell ltmain to make .lib files, not .a files.
18967
 
      libext=lib
18968
 
      # Tell ltmain to make .dll files, not .so files.
18969
 
      shrext_cmds=".dll"
18970
 
      # FIXME: Setting linknames here is a bad hack.
18971
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18972
 
      # The linker will automatically build a .lib file if we build a DLL.
18973
 
      old_archive_From_new_cmds_GCJ='true'
18974
 
      # FIXME: Should let the user specify the lib program.
18975
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18976
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18977
 
      enable_shared_with_static_runtimes_GCJ=yes
18978
 
      ;;
18979
 
 
18980
 
    darwin* | rhapsody*)
18981
 
      case $host_os in
18982
 
        rhapsody* | darwin1.[012])
18983
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18984
 
         ;;
18985
 
       *) # Darwin 1.3 on
18986
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18987
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18988
 
         else
18989
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
18990
 
             10.[012])
18991
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18992
 
               ;;
18993
 
             10.*)
18994
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18995
 
               ;;
18996
 
           esac
18997
 
         fi
18998
 
         ;;
18999
 
      esac
19000
 
      archive_cmds_need_lc_GCJ=no
19001
 
      hardcode_direct_GCJ=no
19002
 
      hardcode_automatic_GCJ=yes
19003
 
      hardcode_shlibpath_var_GCJ=unsupported
19004
 
      whole_archive_flag_spec_GCJ=''
19005
 
      link_all_deplibs_GCJ=yes
19006
 
    if test "$GCC" = yes ; then
19007
 
        output_verbose_link_cmd='echo'
19008
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19009
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19010
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19011
 
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19012
 
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19013
 
    else
19014
 
      case $cc_basename in
19015
 
        xlc*)
19016
 
         output_verbose_link_cmd='echo'
19017
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19018
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19019
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19020
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19021
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19022
 
          ;;
19023
 
       *)
19024
 
         ld_shlibs_GCJ=no
19025
 
          ;;
19026
 
      esac
19027
 
    fi
19028
 
      ;;
19029
 
 
19030
 
    dgux*)
19031
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19032
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19033
 
      hardcode_shlibpath_var_GCJ=no
19034
 
      ;;
19035
 
 
19036
 
    freebsd1*)
19037
 
      ld_shlibs_GCJ=no
19038
 
      ;;
19039
 
 
19040
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19041
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
19042
 
    # does not break anything, and helps significantly (at the cost of a little
19043
 
    # extra space).
19044
 
    freebsd2.2*)
19045
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19046
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19047
 
      hardcode_direct_GCJ=yes
19048
 
      hardcode_shlibpath_var_GCJ=no
19049
 
      ;;
19050
 
 
19051
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19052
 
    freebsd2*)
19053
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19054
 
      hardcode_direct_GCJ=yes
19055
 
      hardcode_minus_L_GCJ=yes
19056
 
      hardcode_shlibpath_var_GCJ=no
19057
 
      ;;
19058
 
 
19059
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19060
 
    freebsd* | dragonfly*)
19061
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19062
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19063
 
      hardcode_direct_GCJ=yes
19064
 
      hardcode_shlibpath_var_GCJ=no
19065
 
      ;;
19066
 
 
19067
 
    hpux9*)
19068
 
      if test "$GCC" = yes; then
19069
 
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19070
 
      else
19071
 
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19072
 
      fi
19073
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19074
 
      hardcode_libdir_separator_GCJ=:
19075
 
      hardcode_direct_GCJ=yes
19076
 
 
19077
 
      # hardcode_minus_L: Not really in the search PATH,
19078
 
      # but as the default location of the library.
19079
 
      hardcode_minus_L_GCJ=yes
19080
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
19081
 
      ;;
19082
 
 
19083
 
    hpux10*)
19084
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19085
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19086
 
      else
19087
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19088
 
      fi
19089
 
      if test "$with_gnu_ld" = no; then
19090
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19091
 
        hardcode_libdir_separator_GCJ=:
19092
 
 
19093
 
        hardcode_direct_GCJ=yes
19094
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
19095
 
 
19096
 
        # hardcode_minus_L: Not really in the search PATH,
19097
 
        # but as the default location of the library.
19098
 
        hardcode_minus_L_GCJ=yes
19099
 
      fi
19100
 
      ;;
19101
 
 
19102
 
    hpux11*)
19103
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19104
 
        case $host_cpu in
19105
 
        hppa*64*)
19106
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19107
 
          ;;
19108
 
        ia64*)
19109
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19110
 
          ;;
19111
 
        *)
19112
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19113
 
          ;;
19114
 
        esac
19115
 
      else
19116
 
        case $host_cpu in
19117
 
        hppa*64*)
19118
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19119
 
          ;;
19120
 
        ia64*)
19121
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19122
 
          ;;
19123
 
        *)
19124
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19125
 
          ;;
19126
 
        esac
19127
 
      fi
19128
 
      if test "$with_gnu_ld" = no; then
19129
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19130
 
        hardcode_libdir_separator_GCJ=:
19131
 
 
19132
 
        case $host_cpu in
19133
 
        hppa*64*|ia64*)
19134
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19135
 
          hardcode_direct_GCJ=no
19136
 
          hardcode_shlibpath_var_GCJ=no
19137
 
          ;;
19138
 
        *)
19139
 
          hardcode_direct_GCJ=yes
19140
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
19141
 
 
19142
 
          # hardcode_minus_L: Not really in the search PATH,
19143
 
          # but as the default location of the library.
19144
 
          hardcode_minus_L_GCJ=yes
19145
 
          ;;
19146
 
        esac
19147
 
      fi
19148
 
      ;;
19149
 
 
19150
 
    irix5* | irix6* | nonstopux*)
19151
 
      if test "$GCC" = yes; then
19152
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19153
 
      else
19154
 
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19155
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19156
 
      fi
19157
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19158
 
      hardcode_libdir_separator_GCJ=:
19159
 
      link_all_deplibs_GCJ=yes
19160
 
      ;;
19161
 
 
19162
 
    netbsd* | netbsdelf*-gnu)
19163
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19164
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19165
 
      else
19166
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19167
 
      fi
19168
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19169
 
      hardcode_direct_GCJ=yes
19170
 
      hardcode_shlibpath_var_GCJ=no
19171
 
      ;;
19172
 
 
19173
 
    newsos6)
19174
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19175
 
      hardcode_direct_GCJ=yes
19176
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19177
 
      hardcode_libdir_separator_GCJ=:
19178
 
      hardcode_shlibpath_var_GCJ=no
19179
 
      ;;
19180
 
 
19181
 
    openbsd*)
19182
 
      hardcode_direct_GCJ=yes
19183
 
      hardcode_shlibpath_var_GCJ=no
19184
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19185
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19186
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19187
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19188
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
19189
 
      else
19190
 
       case $host_os in
19191
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19192
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19193
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
19194
 
           ;;
19195
 
         *)
19196
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19197
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19198
 
           ;;
19199
 
       esac
19200
 
      fi
19201
 
      ;;
19202
 
 
19203
 
    os2*)
19204
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19205
 
      hardcode_minus_L_GCJ=yes
19206
 
      allow_undefined_flag_GCJ=unsupported
19207
 
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19208
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19209
 
      ;;
19210
 
 
19211
 
    osf3*)
19212
 
      if test "$GCC" = yes; then
19213
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19214
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19215
 
      else
19216
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
19217
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19218
 
      fi
19219
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19220
 
      hardcode_libdir_separator_GCJ=:
19221
 
      ;;
19222
 
 
19223
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
19224
 
      if test "$GCC" = yes; then
19225
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19226
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19227
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19228
 
      else
19229
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
19230
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19231
 
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19232
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19233
 
 
19234
 
        # Both c and cxx compiler support -rpath directly
19235
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19236
 
      fi
19237
 
      hardcode_libdir_separator_GCJ=:
19238
 
      ;;
19239
 
 
19240
 
    solaris*)
19241
 
      no_undefined_flag_GCJ=' -z text'
19242
 
      if test "$GCC" = yes; then
19243
 
        wlarc='${wl}'
19244
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19245
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19246
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19247
 
      else
19248
 
        wlarc=''
19249
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19250
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19251
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19252
 
      fi
19253
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19254
 
      hardcode_shlibpath_var_GCJ=no
19255
 
      case $host_os in
19256
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
19257
 
      *)
19258
 
        # The compiler driver will combine linker options so we
19259
 
        # cannot just pass the convience library names through
19260
 
        # without $wl, iff we do not link with $LD.
19261
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
19262
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
19263
 
        case $wlarc in
19264
 
        '')
19265
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19266
 
        *)
19267
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19268
 
        esac ;;
19269
 
      esac
19270
 
      link_all_deplibs_GCJ=yes
19271
 
      ;;
19272
 
 
19273
 
    sunos4*)
19274
 
      if test "x$host_vendor" = xsequent; then
19275
 
        # Use $CC to link under sequent, because it throws in some extra .o
19276
 
        # files that make .init and .fini sections work.
19277
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19278
 
      else
19279
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19280
 
      fi
19281
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19282
 
      hardcode_direct_GCJ=yes
19283
 
      hardcode_minus_L_GCJ=yes
19284
 
      hardcode_shlibpath_var_GCJ=no
19285
 
      ;;
19286
 
 
19287
 
    sysv4)
19288
 
      case $host_vendor in
19289
 
        sni)
19290
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19291
 
          hardcode_direct_GCJ=yes # is this really true???
19292
 
        ;;
19293
 
        siemens)
19294
 
          ## LD is ld it makes a PLAMLIB
19295
 
          ## CC just makes a GrossModule.
19296
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19297
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19298
 
          hardcode_direct_GCJ=no
19299
 
        ;;
19300
 
        motorola)
19301
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19302
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19303
 
        ;;
19304
 
      esac
19305
 
      runpath_var='LD_RUN_PATH'
19306
 
      hardcode_shlibpath_var_GCJ=no
19307
 
      ;;
19308
 
 
19309
 
    sysv4.3*)
19310
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19311
 
      hardcode_shlibpath_var_GCJ=no
19312
 
      export_dynamic_flag_spec_GCJ='-Bexport'
19313
 
      ;;
19314
 
 
19315
 
    sysv4*MP*)
19316
 
      if test -d /usr/nec; then
19317
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19318
 
        hardcode_shlibpath_var_GCJ=no
19319
 
        runpath_var=LD_RUN_PATH
19320
 
        hardcode_runpath_var=yes
19321
 
        ld_shlibs_GCJ=yes
19322
 
      fi
19323
 
      ;;
19324
 
 
19325
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19326
 
      no_undefined_flag_GCJ='${wl}-z,text'
19327
 
      archive_cmds_need_lc_GCJ=no
19328
 
      hardcode_shlibpath_var_GCJ=no
19329
 
      runpath_var='LD_RUN_PATH'
19330
 
 
19331
 
      if test "$GCC" = yes; then
19332
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19333
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19334
 
      else
19335
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19336
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19337
 
      fi
19338
 
      ;;
19339
 
 
19340
 
    sysv5* | sco3.2v5* | sco5v6*)
19341
 
      # Note: We can NOT use -z defs as we might desire, because we do not
19342
 
      # link with -lc, and that would cause any symbols used from libc to
19343
 
      # always be unresolved, which means just about no library would
19344
 
      # ever link correctly.  If we're not using GNU ld we use -z text
19345
 
      # though, which does catch some bad symbols but isn't as heavy-handed
19346
 
      # as -z defs.
19347
 
      no_undefined_flag_GCJ='${wl}-z,text'
19348
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19349
 
      archive_cmds_need_lc_GCJ=no
19350
 
      hardcode_shlibpath_var_GCJ=no
19351
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19352
 
      hardcode_libdir_separator_GCJ=':'
19353
 
      link_all_deplibs_GCJ=yes
19354
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19355
 
      runpath_var='LD_RUN_PATH'
19356
 
 
19357
 
      if test "$GCC" = yes; then
19358
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19359
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19360
 
      else
19361
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19362
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19363
 
      fi
19364
 
      ;;
19365
 
 
19366
 
    uts4*)
19367
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19368
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19369
 
      hardcode_shlibpath_var_GCJ=no
19370
 
      ;;
19371
 
 
19372
 
    *)
19373
 
      ld_shlibs_GCJ=no
19374
 
      ;;
19375
 
    esac
19376
 
  fi
19377
 
 
19378
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19379
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19380
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19381
 
 
19382
 
#
19383
 
# Do we need to explicitly link libc?
19384
 
#
19385
 
case "x$archive_cmds_need_lc_GCJ" in
19386
 
x|xyes)
19387
 
  # Assume -lc should be added
19388
 
  archive_cmds_need_lc_GCJ=yes
19389
 
 
19390
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
19391
 
    case $archive_cmds_GCJ in
19392
 
    *'~'*)
19393
 
      # FIXME: we may have to deal with multi-command sequences.
19394
 
      ;;
19395
 
    '$CC '*)
19396
 
      # Test whether the compiler implicitly links with -lc since on some
19397
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19398
 
      # to ld, don't add -lc before -lgcc.
19399
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19400
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19401
 
      $rm conftest*
19402
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19403
 
 
19404
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405
 
  (eval $ac_compile) 2>&5
19406
 
  ac_status=$?
19407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408
 
  (exit $ac_status); } 2>conftest.err; then
19409
 
        soname=conftest
19410
 
        lib=conftest
19411
 
        libobjs=conftest.$ac_objext
19412
 
        deplibs=
19413
 
        wl=$lt_prog_compiler_wl_GCJ
19414
 
        pic_flag=$lt_prog_compiler_pic_GCJ
19415
 
        compiler_flags=-v
19416
 
        linker_flags=-v
19417
 
        verstring=
19418
 
        output_objdir=.
19419
 
        libname=conftest
19420
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19421
 
        allow_undefined_flag_GCJ=
19422
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19423
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19424
 
  ac_status=$?
19425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426
 
  (exit $ac_status); }
19427
 
        then
19428
 
          archive_cmds_need_lc_GCJ=no
19429
 
        else
19430
 
          archive_cmds_need_lc_GCJ=yes
19431
 
        fi
19432
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19433
 
      else
19434
 
        cat conftest.err 1>&5
19435
 
      fi
19436
 
      $rm conftest*
19437
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19438
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19439
 
      ;;
19440
 
    esac
19441
 
  fi
19442
 
  ;;
19443
 
esac
19444
 
 
19445
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19446
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19447
 
library_names_spec=
19448
 
libname_spec='lib$name'
19449
 
soname_spec=
19450
 
shrext_cmds=".so"
19451
 
postinstall_cmds=
19452
 
postuninstall_cmds=
19453
 
finish_cmds=
19454
 
finish_eval=
19455
 
shlibpath_var=
19456
 
shlibpath_overrides_runpath=unknown
19457
 
version_type=none
19458
 
dynamic_linker="$host_os ld.so"
19459
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19460
 
if test "$GCC" = yes; then
19461
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19462
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19463
 
    # if the path contains ";" then we assume it to be the separator
19464
 
    # otherwise default to the standard path separator (i.e. ":") - it is
19465
 
    # assumed that no part of a normal pathname contains ";" but that should
19466
 
    # okay in the real world where ";" in dirpaths is itself problematic.
19467
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19468
 
  else
19469
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19470
 
  fi
19471
 
else
19472
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19473
 
fi
19474
 
need_lib_prefix=unknown
19475
 
hardcode_into_libs=no
19476
 
 
19477
 
# when you set need_version to no, make sure it does not cause -set_version
19478
 
# flags to be left without arguments
19479
 
need_version=unknown
19480
 
 
19481
 
case $host_os in
19482
 
aix3*)
19483
 
  version_type=linux
19484
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19485
 
  shlibpath_var=LIBPATH
19486
 
 
19487
 
  # AIX 3 has no versioning support, so we append a major version to the name.
19488
 
  soname_spec='${libname}${release}${shared_ext}$major'
19489
 
  ;;
19490
 
 
19491
 
aix4* | aix5*)
19492
 
  version_type=linux
19493
 
  need_lib_prefix=no
19494
 
  need_version=no
19495
 
  hardcode_into_libs=yes
19496
 
  if test "$host_cpu" = ia64; then
19497
 
    # AIX 5 supports IA64
19498
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19499
 
    shlibpath_var=LD_LIBRARY_PATH
19500
 
  else
19501
 
    # With GCC up to 2.95.x, collect2 would create an import file
19502
 
    # for dependence libraries.  The import file would start with
19503
 
    # the line `#! .'.  This would cause the generated library to
19504
 
    # depend on `.', always an invalid library.  This was fixed in
19505
 
    # development snapshots of GCC prior to 3.0.
19506
 
    case $host_os in
19507
 
      aix4 | aix4.[01] | aix4.[01].*)
19508
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19509
 
           echo ' yes '
19510
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19511
 
        :
19512
 
      else
19513
 
        can_build_shared=no
19514
 
      fi
19515
 
      ;;
19516
 
    esac
19517
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19518
 
    # soname into executable. Probably we can add versioning support to
19519
 
    # collect2, so additional links can be useful in future.
19520
 
    if test "$aix_use_runtimelinking" = yes; then
19521
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19522
 
      # instead of lib<name>.a to let people know that these are not
19523
 
      # typical AIX shared libraries.
19524
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19525
 
    else
19526
 
      # We preserve .a as extension for shared libraries through AIX4.2
19527
 
      # and later when we are not doing run time linking.
19528
 
      library_names_spec='${libname}${release}.a $libname.a'
19529
 
      soname_spec='${libname}${release}${shared_ext}$major'
19530
 
    fi
19531
 
    shlibpath_var=LIBPATH
19532
 
  fi
19533
 
  ;;
19534
 
 
19535
 
amigaos*)
19536
 
  library_names_spec='$libname.ixlibrary $libname.a'
19537
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19538
 
  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'
19539
 
  ;;
19540
 
 
19541
 
beos*)
19542
 
  library_names_spec='${libname}${shared_ext}'
19543
 
  dynamic_linker="$host_os ld.so"
19544
 
  shlibpath_var=LIBRARY_PATH
19545
 
  ;;
19546
 
 
19547
 
bsdi[45]*)
19548
 
  version_type=linux
19549
 
  need_version=no
19550
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551
 
  soname_spec='${libname}${release}${shared_ext}$major'
19552
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19553
 
  shlibpath_var=LD_LIBRARY_PATH
19554
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19555
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19556
 
  # the default ld.so.conf also contains /usr/contrib/lib and
19557
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19558
 
  # libtool to hard-code these into programs
19559
 
  ;;
19560
 
 
19561
 
cygwin* | mingw* | pw32*)
19562
 
  version_type=windows
19563
 
  shrext_cmds=".dll"
19564
 
  need_version=no
19565
 
  need_lib_prefix=no
19566
 
 
19567
 
  case $GCC,$host_os in
19568
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
19569
 
    library_names_spec='$libname.dll.a'
19570
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19571
 
    postinstall_cmds='base_file=`basename \${file}`~
19572
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19573
 
      dldir=$destdir/`dirname \$dlpath`~
19574
 
      test -d \$dldir || mkdir -p \$dldir~
19575
 
      $install_prog $dir/$dlname \$dldir/$dlname~
19576
 
      chmod a+x \$dldir/$dlname'
19577
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19578
 
      dlpath=$dir/\$dldll~
19579
 
       $rm \$dlpath'
19580
 
    shlibpath_overrides_runpath=yes
19581
 
 
19582
 
    case $host_os in
19583
 
    cygwin*)
19584
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19585
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19586
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19587
 
      ;;
19588
 
    mingw*)
19589
 
      # MinGW DLLs use traditional 'lib' prefix
19590
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19591
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19592
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19593
 
        # It is most probably a Windows format PATH printed by
19594
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19595
 
        # path with ; separators, and with drive letters. We can handle the
19596
 
        # drive letters (cygwin fileutils understands them), so leave them,
19597
 
        # especially as we might pass files found there to a mingw objdump,
19598
 
        # which wouldn't understand a cygwinified path. Ahh.
19599
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19600
 
      else
19601
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19602
 
      fi
19603
 
      ;;
19604
 
    pw32*)
19605
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
19606
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19607
 
      ;;
19608
 
    esac
19609
 
    ;;
19610
 
 
19611
 
  *)
19612
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19613
 
    ;;
19614
 
  esac
19615
 
  dynamic_linker='Win32 ld.exe'
19616
 
  # FIXME: first we should search . and the directory the executable is in
19617
 
  shlibpath_var=PATH
19618
 
  ;;
19619
 
 
19620
 
darwin* | rhapsody*)
19621
 
  dynamic_linker="$host_os dyld"
19622
 
  version_type=darwin
19623
 
  need_lib_prefix=no
19624
 
  need_version=no
19625
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19626
 
  soname_spec='${libname}${release}${major}$shared_ext'
19627
 
  shlibpath_overrides_runpath=yes
19628
 
  shlibpath_var=DYLD_LIBRARY_PATH
19629
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19630
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19631
 
  if test "$GCC" = yes; then
19632
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19633
 
  else
19634
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19635
 
  fi
19636
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19637
 
  ;;
19638
 
 
19639
 
dgux*)
19640
 
  version_type=linux
19641
 
  need_lib_prefix=no
19642
 
  need_version=no
19643
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19644
 
  soname_spec='${libname}${release}${shared_ext}$major'
19645
 
  shlibpath_var=LD_LIBRARY_PATH
19646
 
  ;;
19647
 
 
19648
 
freebsd1*)
19649
 
  dynamic_linker=no
19650
 
  ;;
19651
 
 
19652
 
freebsd* | dragonfly*)
19653
 
  # DragonFly does not have aout.  When/if they implement a new
19654
 
  # versioning mechanism, adjust this.
19655
 
  if test -x /usr/bin/objformat; then
19656
 
    objformat=`/usr/bin/objformat`
19657
 
  else
19658
 
    case $host_os in
19659
 
    freebsd[123]*) objformat=aout ;;
19660
 
    *) objformat=elf ;;
19661
 
    esac
19662
 
  fi
19663
 
  version_type=freebsd-$objformat
19664
 
  case $version_type in
19665
 
    freebsd-elf*)
19666
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19667
 
      need_version=no
19668
 
      need_lib_prefix=no
19669
 
      ;;
19670
 
    freebsd-*)
19671
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19672
 
      need_version=yes
19673
 
      ;;
19674
 
  esac
19675
 
  shlibpath_var=LD_LIBRARY_PATH
19676
 
  case $host_os in
19677
 
  freebsd2*)
19678
 
    shlibpath_overrides_runpath=yes
19679
 
    ;;
19680
 
  freebsd3.[01]* | freebsdelf3.[01]*)
19681
 
    shlibpath_overrides_runpath=yes
19682
 
    hardcode_into_libs=yes
19683
 
    ;;
19684
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19685
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19686
 
    shlibpath_overrides_runpath=no
19687
 
    hardcode_into_libs=yes
19688
 
    ;;
19689
 
  freebsd*) # from 4.6 on
19690
 
    shlibpath_overrides_runpath=yes
19691
 
    hardcode_into_libs=yes
19692
 
    ;;
19693
 
  esac
19694
 
  ;;
19695
 
 
19696
 
gnu*)
19697
 
  version_type=linux
19698
 
  need_lib_prefix=no
19699
 
  need_version=no
19700
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19701
 
  soname_spec='${libname}${release}${shared_ext}$major'
19702
 
  shlibpath_var=LD_LIBRARY_PATH
19703
 
  hardcode_into_libs=yes
19704
 
  ;;
19705
 
 
19706
 
hpux9* | hpux10* | hpux11*)
19707
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
19708
 
  # link against other versions.
19709
 
  version_type=sunos
19710
 
  need_lib_prefix=no
19711
 
  need_version=no
19712
 
  case $host_cpu in
19713
 
  ia64*)
19714
 
    shrext_cmds='.so'
19715
 
    hardcode_into_libs=yes
19716
 
    dynamic_linker="$host_os dld.so"
19717
 
    shlibpath_var=LD_LIBRARY_PATH
19718
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19719
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19720
 
    soname_spec='${libname}${release}${shared_ext}$major'
19721
 
    if test "X$HPUX_IA64_MODE" = X32; then
19722
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19723
 
    else
19724
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19725
 
    fi
19726
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19727
 
    ;;
19728
 
   hppa*64*)
19729
 
     shrext_cmds='.sl'
19730
 
     hardcode_into_libs=yes
19731
 
     dynamic_linker="$host_os dld.sl"
19732
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19733
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19734
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19735
 
     soname_spec='${libname}${release}${shared_ext}$major'
19736
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19737
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19738
 
     ;;
19739
 
   *)
19740
 
    shrext_cmds='.sl'
19741
 
    dynamic_linker="$host_os dld.sl"
19742
 
    shlibpath_var=SHLIB_PATH
19743
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19744
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19745
 
    soname_spec='${libname}${release}${shared_ext}$major'
19746
 
    ;;
19747
 
  esac
19748
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19749
 
  postinstall_cmds='chmod 555 $lib'
19750
 
  ;;
19751
 
 
19752
 
interix3*)
19753
 
  version_type=linux
19754
 
  need_lib_prefix=no
19755
 
  need_version=no
19756
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19757
 
  soname_spec='${libname}${release}${shared_ext}$major'
19758
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19759
 
  shlibpath_var=LD_LIBRARY_PATH
19760
 
  shlibpath_overrides_runpath=no
19761
 
  hardcode_into_libs=yes
19762
 
  ;;
19763
 
 
19764
 
irix5* | irix6* | nonstopux*)
19765
 
  case $host_os in
19766
 
    nonstopux*) version_type=nonstopux ;;
19767
 
    *)
19768
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
19769
 
                version_type=linux
19770
 
        else
19771
 
                version_type=irix
19772
 
        fi ;;
19773
 
  esac
19774
 
  need_lib_prefix=no
19775
 
  need_version=no
19776
 
  soname_spec='${libname}${release}${shared_ext}$major'
19777
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19778
 
  case $host_os in
19779
 
  irix5* | nonstopux*)
19780
 
    libsuff= shlibsuff=
19781
 
    ;;
19782
 
  *)
19783
 
    case $LD in # libtool.m4 will add one of these switches to LD
19784
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19785
 
      libsuff= shlibsuff= libmagic=32-bit;;
19786
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19787
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
19788
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19789
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19790
 
    *) libsuff= shlibsuff= libmagic=never-match;;
19791
 
    esac
19792
 
    ;;
19793
 
  esac
19794
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19795
 
  shlibpath_overrides_runpath=no
19796
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19797
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19798
 
  hardcode_into_libs=yes
19799
 
  ;;
19800
 
 
19801
 
# No shared lib support for Linux oldld, aout, or coff.
19802
 
linux*oldld* | linux*aout* | linux*coff*)
19803
 
  dynamic_linker=no
19804
 
  ;;
19805
 
 
19806
 
# This must be Linux ELF.
19807
 
linux* | k*bsd*-gnu)
19808
 
  version_type=linux
19809
 
  need_lib_prefix=no
19810
 
  need_version=no
19811
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812
 
  soname_spec='${libname}${release}${shared_ext}$major'
19813
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19814
 
  shlibpath_var=LD_LIBRARY_PATH
19815
 
  shlibpath_overrides_runpath=no
19816
 
  # This implies no fast_install, which is unacceptable.
19817
 
  # Some rework will be needed to allow for fast_install
19818
 
  # before this can be enabled.
19819
 
  hardcode_into_libs=yes
19820
 
 
19821
 
  # Append ld.so.conf contents to the search path
19822
 
  if test -f /etc/ld.so.conf; then
19823
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19824
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19825
 
  fi
19826
 
 
19827
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
19828
 
  # powerpc, because MkLinux only supported shared libraries with the
19829
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
19830
 
  # most powerpc-linux boxes support dynamic linking these days and
19831
 
  # people can always --disable-shared, the test was removed, and we
19832
 
  # assume the GNU/Linux dynamic linker is in use.
19833
 
  dynamic_linker='GNU/Linux ld.so'
19834
 
  ;;
19835
 
 
19836
 
netbsdelf*-gnu)
19837
 
  version_type=linux
19838
 
  need_lib_prefix=no
19839
 
  need_version=no
19840
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19841
 
  soname_spec='${libname}${release}${shared_ext}$major'
19842
 
  shlibpath_var=LD_LIBRARY_PATH
19843
 
  shlibpath_overrides_runpath=no
19844
 
  hardcode_into_libs=yes
19845
 
  dynamic_linker='NetBSD ld.elf_so'
19846
 
  ;;
19847
 
 
19848
 
netbsd*)
19849
 
  version_type=sunos
19850
 
  need_lib_prefix=no
19851
 
  need_version=no
19852
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19853
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19854
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19855
 
    dynamic_linker='NetBSD (a.out) ld.so'
19856
 
  else
19857
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19858
 
    soname_spec='${libname}${release}${shared_ext}$major'
19859
 
    dynamic_linker='NetBSD ld.elf_so'
19860
 
  fi
19861
 
  shlibpath_var=LD_LIBRARY_PATH
19862
 
  shlibpath_overrides_runpath=yes
19863
 
  hardcode_into_libs=yes
19864
 
  ;;
19865
 
 
19866
 
newsos6)
19867
 
  version_type=linux
19868
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19869
 
  shlibpath_var=LD_LIBRARY_PATH
19870
 
  shlibpath_overrides_runpath=yes
19871
 
  ;;
19872
 
 
19873
 
nto-qnx*)
19874
 
  version_type=linux
19875
 
  need_lib_prefix=no
19876
 
  need_version=no
19877
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19878
 
  soname_spec='${libname}${release}${shared_ext}$major'
19879
 
  shlibpath_var=LD_LIBRARY_PATH
19880
 
  shlibpath_overrides_runpath=yes
19881
 
  ;;
19882
 
 
19883
 
openbsd*)
19884
 
  version_type=sunos
19885
 
  sys_lib_dlsearch_path_spec="/usr/lib"
19886
 
  need_lib_prefix=no
19887
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19888
 
  case $host_os in
19889
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19890
 
    *)                         need_version=no  ;;
19891
 
  esac
19892
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19893
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19894
 
  shlibpath_var=LD_LIBRARY_PATH
19895
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19896
 
    case $host_os in
19897
 
      openbsd2.[89] | openbsd2.[89].*)
19898
 
        shlibpath_overrides_runpath=no
19899
 
        ;;
19900
 
      *)
19901
 
        shlibpath_overrides_runpath=yes
19902
 
        ;;
19903
 
      esac
19904
 
  else
19905
 
    shlibpath_overrides_runpath=yes
19906
 
  fi
19907
 
  ;;
19908
 
 
19909
 
os2*)
19910
 
  libname_spec='$name'
19911
 
  shrext_cmds=".dll"
19912
 
  need_lib_prefix=no
19913
 
  library_names_spec='$libname${shared_ext} $libname.a'
19914
 
  dynamic_linker='OS/2 ld.exe'
19915
 
  shlibpath_var=LIBPATH
19916
 
  ;;
19917
 
 
19918
 
osf3* | osf4* | osf5*)
19919
 
  version_type=osf
19920
 
  need_lib_prefix=no
19921
 
  need_version=no
19922
 
  soname_spec='${libname}${release}${shared_ext}$major'
19923
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19924
 
  shlibpath_var=LD_LIBRARY_PATH
19925
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19926
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19927
 
  ;;
19928
 
 
19929
 
solaris*)
19930
 
  version_type=linux
19931
 
  need_lib_prefix=no
19932
 
  need_version=no
19933
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19934
 
  soname_spec='${libname}${release}${shared_ext}$major'
19935
 
  shlibpath_var=LD_LIBRARY_PATH
19936
 
  shlibpath_overrides_runpath=yes
19937
 
  hardcode_into_libs=yes
19938
 
  # ldd complains unless libraries are executable
19939
 
  postinstall_cmds='chmod +x $lib'
19940
 
  ;;
19941
 
 
19942
 
sunos4*)
19943
 
  version_type=sunos
19944
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19945
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19946
 
  shlibpath_var=LD_LIBRARY_PATH
19947
 
  shlibpath_overrides_runpath=yes
19948
 
  if test "$with_gnu_ld" = yes; then
19949
 
    need_lib_prefix=no
19950
 
  fi
19951
 
  need_version=yes
19952
 
  ;;
19953
 
 
19954
 
sysv4 | sysv4.3*)
19955
 
  version_type=linux
19956
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19957
 
  soname_spec='${libname}${release}${shared_ext}$major'
19958
 
  shlibpath_var=LD_LIBRARY_PATH
19959
 
  case $host_vendor in
19960
 
    sni)
19961
 
      shlibpath_overrides_runpath=no
19962
 
      need_lib_prefix=no
19963
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
19964
 
      runpath_var=LD_RUN_PATH
19965
 
      ;;
19966
 
    siemens)
19967
 
      need_lib_prefix=no
19968
 
      ;;
19969
 
    motorola)
19970
 
      need_lib_prefix=no
19971
 
      need_version=no
19972
 
      shlibpath_overrides_runpath=no
19973
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19974
 
      ;;
19975
 
  esac
19976
 
  ;;
19977
 
 
19978
 
sysv4*MP*)
19979
 
  if test -d /usr/nec ;then
19980
 
    version_type=linux
19981
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19982
 
    soname_spec='$libname${shared_ext}.$major'
19983
 
    shlibpath_var=LD_LIBRARY_PATH
19984
 
  fi
19985
 
  ;;
19986
 
 
19987
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19988
 
  version_type=freebsd-elf
19989
 
  need_lib_prefix=no
19990
 
  need_version=no
19991
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19992
 
  soname_spec='${libname}${release}${shared_ext}$major'
19993
 
  shlibpath_var=LD_LIBRARY_PATH
19994
 
  hardcode_into_libs=yes
19995
 
  if test "$with_gnu_ld" = yes; then
19996
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19997
 
    shlibpath_overrides_runpath=no
19998
 
  else
19999
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20000
 
    shlibpath_overrides_runpath=yes
20001
 
    case $host_os in
20002
 
      sco3.2v5*)
20003
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20004
 
        ;;
20005
 
    esac
20006
 
  fi
20007
 
  sys_lib_dlsearch_path_spec='/usr/lib'
20008
 
  ;;
20009
 
 
20010
 
uts4*)
20011
 
  version_type=linux
20012
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20013
 
  soname_spec='${libname}${release}${shared_ext}$major'
20014
 
  shlibpath_var=LD_LIBRARY_PATH
20015
 
  ;;
20016
 
 
20017
 
*)
20018
 
  dynamic_linker=no
20019
 
  ;;
20020
 
esac
20021
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20022
 
echo "${ECHO_T}$dynamic_linker" >&6; }
20023
 
test "$dynamic_linker" = no && can_build_shared=no
20024
 
 
20025
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20026
 
if test "$GCC" = yes; then
20027
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20028
 
fi
20029
 
 
20030
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20031
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20032
 
hardcode_action_GCJ=
20033
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20034
 
   test -n "$runpath_var_GCJ" || \
20035
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20036
 
 
20037
 
  # We can hardcode non-existant directories.
20038
 
  if test "$hardcode_direct_GCJ" != no &&
20039
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20040
 
     # have to relink, otherwise we might link with an installed library
20041
 
     # when we should be linking with a yet-to-be-installed one
20042
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20043
 
     test "$hardcode_minus_L_GCJ" != no; then
20044
 
    # Linking always hardcodes the temporary library directory.
20045
 
    hardcode_action_GCJ=relink
20046
 
  else
20047
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20048
 
    hardcode_action_GCJ=immediate
20049
 
  fi
20050
 
else
20051
 
  # We cannot hardcode anything, or else we can only hardcode existing
20052
 
  # directories.
20053
 
  hardcode_action_GCJ=unsupported
20054
 
fi
20055
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20056
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20057
 
 
20058
 
if test "$hardcode_action_GCJ" = relink; then
20059
 
  # Fast installation is not supported
20060
 
  enable_fast_install=no
20061
 
elif test "$shlibpath_overrides_runpath" = yes ||
20062
 
     test "$enable_shared" = no; then
20063
 
  # Fast installation is not necessary
20064
 
  enable_fast_install=needless
20065
 
fi
20066
 
 
20067
 
 
20068
 
# The else clause should only fire when bootstrapping the
20069
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20070
 
# with your package, and you will get complaints that there are
20071
 
# no rules to generate ltmain.sh.
20072
 
if test -f "$ltmain"; then
20073
 
  # See if we are running on zsh, and set the options which allow our commands through
20074
 
  # without removal of \ escapes.
20075
 
  if test -n "${ZSH_VERSION+set}" ; then
20076
 
    setopt NO_GLOB_SUBST
20077
 
  fi
20078
 
  # Now quote all the things that may contain metacharacters while being
20079
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20080
 
  # variables and quote the copies for generation of the libtool script.
20081
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20082
 
    SED SHELL STRIP \
20083
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20084
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20085
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20086
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20087
 
    lt_cv_sys_global_symbol_to_c_name_address \
20088
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20089
 
    old_postinstall_cmds old_postuninstall_cmds \
20090
 
    compiler_GCJ \
20091
 
    CC_GCJ \
20092
 
    LD_GCJ \
20093
 
    lt_prog_compiler_wl_GCJ \
20094
 
    lt_prog_compiler_pic_GCJ \
20095
 
    lt_prog_compiler_static_GCJ \
20096
 
    lt_prog_compiler_no_builtin_flag_GCJ \
20097
 
    export_dynamic_flag_spec_GCJ \
20098
 
    thread_safe_flag_spec_GCJ \
20099
 
    whole_archive_flag_spec_GCJ \
20100
 
    enable_shared_with_static_runtimes_GCJ \
20101
 
    old_archive_cmds_GCJ \
20102
 
    old_archive_from_new_cmds_GCJ \
20103
 
    predep_objects_GCJ \
20104
 
    postdep_objects_GCJ \
20105
 
    predeps_GCJ \
20106
 
    postdeps_GCJ \
20107
 
    compiler_lib_search_path_GCJ \
20108
 
    archive_cmds_GCJ \
20109
 
    archive_expsym_cmds_GCJ \
20110
 
    postinstall_cmds_GCJ \
20111
 
    postuninstall_cmds_GCJ \
20112
 
    old_archive_from_expsyms_cmds_GCJ \
20113
 
    allow_undefined_flag_GCJ \
20114
 
    no_undefined_flag_GCJ \
20115
 
    export_symbols_cmds_GCJ \
20116
 
    hardcode_libdir_flag_spec_GCJ \
20117
 
    hardcode_libdir_flag_spec_ld_GCJ \
20118
 
    hardcode_libdir_separator_GCJ \
20119
 
    hardcode_automatic_GCJ \
20120
 
    module_cmds_GCJ \
20121
 
    module_expsym_cmds_GCJ \
20122
 
    lt_cv_prog_compiler_c_o_GCJ \
20123
 
    exclude_expsyms_GCJ \
20124
 
    include_expsyms_GCJ; do
20125
 
 
20126
 
    case $var in
20127
 
    old_archive_cmds_GCJ | \
20128
 
    old_archive_from_new_cmds_GCJ | \
20129
 
    archive_cmds_GCJ | \
20130
 
    archive_expsym_cmds_GCJ | \
20131
 
    module_cmds_GCJ | \
20132
 
    module_expsym_cmds_GCJ | \
20133
 
    old_archive_from_expsyms_cmds_GCJ | \
20134
 
    export_symbols_cmds_GCJ | \
20135
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20136
 
    postinstall_cmds | postuninstall_cmds | \
20137
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20138
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20139
 
      # Double-quote double-evaled strings.
20140
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20141
 
      ;;
20142
 
    *)
20143
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20144
 
      ;;
20145
 
    esac
20146
 
  done
20147
 
 
20148
 
  case $lt_echo in
20149
 
  *'\$0 --fallback-echo"')
20150
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20151
 
    ;;
20152
 
  esac
20153
 
 
20154
 
cfgfile="$ofile"
20155
 
 
20156
 
  cat <<__EOF__ >> "$cfgfile"
20157
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20158
 
 
20159
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20160
 
 
20161
 
# Shell to use when invoking shell scripts.
20162
 
SHELL=$lt_SHELL
20163
 
 
20164
 
# Whether or not to build shared libraries.
20165
 
build_libtool_libs=$enable_shared
20166
 
 
20167
 
# Whether or not to build static libraries.
20168
 
build_old_libs=$enable_static
20169
 
 
20170
 
# Whether or not to add -lc for building shared libraries.
20171
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20172
 
 
20173
 
# Whether or not to disallow shared libs when runtime libs are static
20174
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20175
 
 
20176
 
# Whether or not to optimize for fast installation.
20177
 
fast_install=$enable_fast_install
20178
 
 
20179
 
# The host system.
20180
 
host_alias=$host_alias
20181
 
host=$host
20182
 
host_os=$host_os
20183
 
 
20184
 
# The build system.
20185
 
build_alias=$build_alias
20186
 
build=$build
20187
 
build_os=$build_os
20188
 
 
20189
 
# An echo program that does not interpret backslashes.
20190
 
echo=$lt_echo
20191
 
 
20192
 
# The archiver.
20193
 
AR=$lt_AR
20194
 
AR_FLAGS=$lt_AR_FLAGS
20195
 
 
20196
 
# A C compiler.
20197
 
LTCC=$lt_LTCC
20198
 
 
20199
 
# LTCC compiler flags.
20200
 
LTCFLAGS=$lt_LTCFLAGS
20201
 
 
20202
 
# A language-specific compiler.
20203
 
CC=$lt_compiler_GCJ
20204
 
 
20205
 
# Is the compiler the GNU C compiler?
20206
 
with_gcc=$GCC_GCJ
20207
 
 
20208
 
# An ERE matcher.
20209
 
EGREP=$lt_EGREP
20210
 
 
20211
 
# The linker used to build libraries.
20212
 
LD=$lt_LD_GCJ
20213
 
 
20214
 
# Whether we need hard or soft links.
20215
 
LN_S=$lt_LN_S
20216
 
 
20217
 
# A BSD-compatible nm program.
20218
 
NM=$lt_NM
20219
 
 
20220
 
# A symbol stripping program
20221
 
STRIP=$lt_STRIP
20222
 
 
20223
 
# Used to examine libraries when file_magic_cmd begins "file"
20224
 
MAGIC_CMD=$MAGIC_CMD
20225
 
 
20226
 
# Used on cygwin: DLL creation program.
20227
 
DLLTOOL="$DLLTOOL"
20228
 
 
20229
 
# Used on cygwin: object dumper.
20230
 
OBJDUMP="$OBJDUMP"
20231
 
 
20232
 
# Used on cygwin: assembler.
20233
 
AS="$AS"
20234
 
 
20235
 
# The name of the directory that contains temporary libtool files.
20236
 
objdir=$objdir
20237
 
 
20238
 
# How to create reloadable object files.
20239
 
reload_flag=$lt_reload_flag
20240
 
reload_cmds=$lt_reload_cmds
20241
 
 
20242
 
# How to pass a linker flag through the compiler.
20243
 
wl=$lt_lt_prog_compiler_wl_GCJ
20244
 
 
20245
 
# Object file suffix (normally "o").
20246
 
objext="$ac_objext"
20247
 
 
20248
 
# Old archive suffix (normally "a").
20249
 
libext="$libext"
20250
 
 
20251
 
# Shared library suffix (normally ".so").
20252
 
shrext_cmds='$shrext_cmds'
20253
 
 
20254
 
# Executable file suffix (normally "").
20255
 
exeext="$exeext"
20256
 
 
20257
 
# Additional compiler flags for building library objects.
20258
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20259
 
pic_mode=$pic_mode
20260
 
 
20261
 
# What is the maximum length of a command?
20262
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20263
 
 
20264
 
# Does compiler simultaneously support -c and -o options?
20265
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20266
 
 
20267
 
# Must we lock files when doing compilation?
20268
 
need_locks=$lt_need_locks
20269
 
 
20270
 
# Do we need the lib prefix for modules?
20271
 
need_lib_prefix=$need_lib_prefix
20272
 
 
20273
 
# Do we need a version for libraries?
20274
 
need_version=$need_version
20275
 
 
20276
 
# Whether dlopen is supported.
20277
 
dlopen_support=$enable_dlopen
20278
 
 
20279
 
# Whether dlopen of programs is supported.
20280
 
dlopen_self=$enable_dlopen_self
20281
 
 
20282
 
# Whether dlopen of statically linked programs is supported.
20283
 
dlopen_self_static=$enable_dlopen_self_static
20284
 
 
20285
 
# Compiler flag to prevent dynamic linking.
20286
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20287
 
 
20288
 
# Compiler flag to turn off builtin functions.
20289
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20290
 
 
20291
 
# Compiler flag to allow reflexive dlopens.
20292
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20293
 
 
20294
 
# Compiler flag to generate shared objects directly from archives.
20295
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20296
 
 
20297
 
# Compiler flag to generate thread-safe objects.
20298
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20299
 
 
20300
 
# Library versioning type.
20301
 
version_type=$version_type
20302
 
 
20303
 
# Format of library name prefix.
20304
 
libname_spec=$lt_libname_spec
20305
 
 
20306
 
# List of archive names.  First name is the real one, the rest are links.
20307
 
# The last name is the one that the linker finds with -lNAME.
20308
 
library_names_spec=$lt_library_names_spec
20309
 
 
20310
 
# The coded name of the library, if different from the real name.
20311
 
soname_spec=$lt_soname_spec
20312
 
 
20313
 
# Commands used to build and install an old-style archive.
20314
 
RANLIB=$lt_RANLIB
20315
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
20316
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20317
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20318
 
 
20319
 
# Create an old-style archive from a shared archive.
20320
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20321
 
 
20322
 
# Create a temporary old-style archive to link instead of a shared archive.
20323
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20324
 
 
20325
 
# Commands used to build and install a shared archive.
20326
 
archive_cmds=$lt_archive_cmds_GCJ
20327
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20328
 
postinstall_cmds=$lt_postinstall_cmds
20329
 
postuninstall_cmds=$lt_postuninstall_cmds
20330
 
 
20331
 
# Commands used to build a loadable module (assumed same as above if empty)
20332
 
module_cmds=$lt_module_cmds_GCJ
20333
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20334
 
 
20335
 
# Commands to strip libraries.
20336
 
old_striplib=$lt_old_striplib
20337
 
striplib=$lt_striplib
20338
 
 
20339
 
# Dependencies to place before the objects being linked to create a
20340
 
# shared library.
20341
 
predep_objects=$lt_predep_objects_GCJ
20342
 
 
20343
 
# Dependencies to place after the objects being linked to create a
20344
 
# shared library.
20345
 
postdep_objects=$lt_postdep_objects_GCJ
20346
 
 
20347
 
# Dependencies to place before the objects being linked to create a
20348
 
# shared library.
20349
 
predeps=$lt_predeps_GCJ
20350
 
 
20351
 
# Dependencies to place after the objects being linked to create a
20352
 
# shared library.
20353
 
postdeps=$lt_postdeps_GCJ
20354
 
 
20355
 
# The library search path used internally by the compiler when linking
20356
 
# a shared library.
20357
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20358
 
 
20359
 
# Method to check whether dependent libraries are shared objects.
20360
 
deplibs_check_method=$lt_deplibs_check_method
20361
 
 
20362
 
# Command to use when deplibs_check_method == file_magic.
20363
 
file_magic_cmd=$lt_file_magic_cmd
20364
 
 
20365
 
# Flag that allows shared libraries with undefined symbols to be built.
20366
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20367
 
 
20368
 
# Flag that forces no undefined symbols.
20369
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
20370
 
 
20371
 
# Commands used to finish a libtool library installation in a directory.
20372
 
finish_cmds=$lt_finish_cmds
20373
 
 
20374
 
# Same as above, but a single script fragment to be evaled but not shown.
20375
 
finish_eval=$lt_finish_eval
20376
 
 
20377
 
# Take the output of nm and produce a listing of raw symbols and C names.
20378
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20379
 
 
20380
 
# Transform the output of nm in a proper C declaration
20381
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20382
 
 
20383
 
# Transform the output of nm in a C name address pair
20384
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20385
 
 
20386
 
# This is the shared library runtime path variable.
20387
 
runpath_var=$runpath_var
20388
 
 
20389
 
# This is the shared library path variable.
20390
 
shlibpath_var=$shlibpath_var
20391
 
 
20392
 
# Is shlibpath searched before the hard-coded library search path?
20393
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20394
 
 
20395
 
# How to hardcode a shared library path into an executable.
20396
 
hardcode_action=$hardcode_action_GCJ
20397
 
 
20398
 
# Whether we should hardcode library paths into libraries.
20399
 
hardcode_into_libs=$hardcode_into_libs
20400
 
 
20401
 
# Flag to hardcode \$libdir into a binary during linking.
20402
 
# This must work even if \$libdir does not exist.
20403
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20404
 
 
20405
 
# If ld is used when linking, flag to hardcode \$libdir into
20406
 
# a binary during linking. This must work even if \$libdir does
20407
 
# not exist.
20408
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20409
 
 
20410
 
# Whether we need a single -rpath flag with a separated argument.
20411
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20412
 
 
20413
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20414
 
# resulting binary.
20415
 
hardcode_direct=$hardcode_direct_GCJ
20416
 
 
20417
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20418
 
# resulting binary.
20419
 
hardcode_minus_L=$hardcode_minus_L_GCJ
20420
 
 
20421
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20422
 
# the resulting binary.
20423
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20424
 
 
20425
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20426
 
# and all subsequent libraries and executables linked against it.
20427
 
hardcode_automatic=$hardcode_automatic_GCJ
20428
 
 
20429
 
# Variables whose values should be saved in libtool wrapper scripts and
20430
 
# restored at relink time.
20431
 
variables_saved_for_relink="$variables_saved_for_relink"
20432
 
 
20433
 
# Whether libtool must link a program against all its dependency libraries.
20434
 
link_all_deplibs=$link_all_deplibs_GCJ
20435
 
 
20436
 
# Compile-time system search path for libraries
20437
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20438
 
 
20439
 
# Run-time system search path for libraries
20440
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20441
 
 
20442
 
# Fix the shell variable \$srcfile for the compiler.
20443
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
20444
 
 
20445
 
# Set to yes if exported symbols are required.
20446
 
always_export_symbols=$always_export_symbols_GCJ
20447
 
 
20448
 
# The commands to list exported symbols.
20449
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20450
 
 
20451
 
# The commands to extract the exported symbol list from a shared archive.
20452
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20453
 
 
20454
 
# Symbols that should not be listed in the preloaded symbols.
20455
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
20456
 
 
20457
 
# Symbols that must always be exported.
20458
 
include_expsyms=$lt_include_expsyms_GCJ
20459
 
 
20460
 
# ### END LIBTOOL TAG CONFIG: $tagname
20461
 
 
20462
 
__EOF__
20463
 
 
20464
 
 
20465
 
else
20466
 
  # If there is no Makefile yet, we rely on a make rule to execute
20467
 
  # `config.status --recheck' to rerun these tests and create the
20468
 
  # libtool script then.
20469
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20470
 
  if test -f "$ltmain_in"; then
20471
 
    test -f Makefile && make "$ltmain"
20472
 
  fi
20473
 
fi
20474
 
 
20475
 
 
20476
 
ac_ext=c
20477
 
ac_cpp='$CPP $CPPFLAGS'
20478
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20479
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20480
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20481
 
 
20482
 
CC="$lt_save_CC"
20483
 
 
20484
 
        else
20485
 
          tagname=""
20486
 
        fi
20487
 
        ;;
20488
 
 
20489
 
      RC)
20490
 
        
20491
 
 
20492
 
# Source file extension for RC test sources.
20493
 
ac_ext=rc
20494
 
 
20495
 
# Object file extension for compiled RC test sources.
20496
 
objext=o
20497
 
objext_RC=$objext
20498
 
 
20499
 
# Code to be used in simple compile tests
20500
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20501
 
 
20502
 
# Code to be used in simple link tests
20503
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
20504
 
 
20505
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20506
 
 
20507
 
# If no C compiler was specified, use CC.
20508
 
LTCC=${LTCC-"$CC"}
20509
 
 
20510
 
# If no C compiler flags were specified, use CFLAGS.
20511
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20512
 
 
20513
 
# Allow CC to be a program name with arguments.
20514
 
compiler=$CC
20515
 
 
20516
 
 
20517
 
# save warnings/boilerplate of simple test code
20518
 
ac_outfile=conftest.$ac_objext
20519
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20520
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20521
 
_lt_compiler_boilerplate=`cat conftest.err`
20522
 
$rm conftest*
20523
 
 
20524
 
ac_outfile=conftest.$ac_objext
20525
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
20526
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20527
 
_lt_linker_boilerplate=`cat conftest.err`
20528
 
$rm conftest*
20529
 
 
20530
 
 
20531
 
# Allow CC to be a program name with arguments.
20532
 
lt_save_CC="$CC"
20533
 
CC=${RC-"windres"}
20534
 
compiler=$CC
20535
 
compiler_RC=$CC
20536
 
for cc_temp in $compiler""; do
20537
 
  case $cc_temp in
20538
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20539
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20540
 
    \-*) ;;
20541
 
    *) break;;
20542
 
  esac
20543
 
done
20544
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20545
 
 
20546
 
lt_cv_prog_compiler_c_o_RC=yes
20547
 
 
20548
 
# The else clause should only fire when bootstrapping the
20549
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20550
 
# with your package, and you will get complaints that there are
20551
 
# no rules to generate ltmain.sh.
20552
 
if test -f "$ltmain"; then
20553
 
  # See if we are running on zsh, and set the options which allow our commands through
20554
 
  # without removal of \ escapes.
20555
 
  if test -n "${ZSH_VERSION+set}" ; then
20556
 
    setopt NO_GLOB_SUBST
20557
 
  fi
20558
 
  # Now quote all the things that may contain metacharacters while being
20559
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20560
 
  # variables and quote the copies for generation of the libtool script.
20561
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20562
 
    SED SHELL STRIP \
20563
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20564
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20565
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20566
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20567
 
    lt_cv_sys_global_symbol_to_c_name_address \
20568
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20569
 
    old_postinstall_cmds old_postuninstall_cmds \
20570
 
    compiler_RC \
20571
 
    CC_RC \
20572
 
    LD_RC \
20573
 
    lt_prog_compiler_wl_RC \
20574
 
    lt_prog_compiler_pic_RC \
20575
 
    lt_prog_compiler_static_RC \
20576
 
    lt_prog_compiler_no_builtin_flag_RC \
20577
 
    export_dynamic_flag_spec_RC \
20578
 
    thread_safe_flag_spec_RC \
20579
 
    whole_archive_flag_spec_RC \
20580
 
    enable_shared_with_static_runtimes_RC \
20581
 
    old_archive_cmds_RC \
20582
 
    old_archive_from_new_cmds_RC \
20583
 
    predep_objects_RC \
20584
 
    postdep_objects_RC \
20585
 
    predeps_RC \
20586
 
    postdeps_RC \
20587
 
    compiler_lib_search_path_RC \
20588
 
    archive_cmds_RC \
20589
 
    archive_expsym_cmds_RC \
20590
 
    postinstall_cmds_RC \
20591
 
    postuninstall_cmds_RC \
20592
 
    old_archive_from_expsyms_cmds_RC \
20593
 
    allow_undefined_flag_RC \
20594
 
    no_undefined_flag_RC \
20595
 
    export_symbols_cmds_RC \
20596
 
    hardcode_libdir_flag_spec_RC \
20597
 
    hardcode_libdir_flag_spec_ld_RC \
20598
 
    hardcode_libdir_separator_RC \
20599
 
    hardcode_automatic_RC \
20600
 
    module_cmds_RC \
20601
 
    module_expsym_cmds_RC \
20602
 
    lt_cv_prog_compiler_c_o_RC \
20603
 
    exclude_expsyms_RC \
20604
 
    include_expsyms_RC; do
20605
 
 
20606
 
    case $var in
20607
 
    old_archive_cmds_RC | \
20608
 
    old_archive_from_new_cmds_RC | \
20609
 
    archive_cmds_RC | \
20610
 
    archive_expsym_cmds_RC | \
20611
 
    module_cmds_RC | \
20612
 
    module_expsym_cmds_RC | \
20613
 
    old_archive_from_expsyms_cmds_RC | \
20614
 
    export_symbols_cmds_RC | \
20615
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20616
 
    postinstall_cmds | postuninstall_cmds | \
20617
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20618
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20619
 
      # Double-quote double-evaled strings.
20620
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20621
 
      ;;
20622
 
    *)
20623
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20624
 
      ;;
20625
 
    esac
20626
 
  done
20627
 
 
20628
 
  case $lt_echo in
20629
 
  *'\$0 --fallback-echo"')
20630
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20631
 
    ;;
20632
 
  esac
20633
 
 
20634
 
cfgfile="$ofile"
20635
 
 
20636
 
  cat <<__EOF__ >> "$cfgfile"
20637
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20638
 
 
20639
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20640
 
 
20641
 
# Shell to use when invoking shell scripts.
20642
 
SHELL=$lt_SHELL
20643
 
 
20644
 
# Whether or not to build shared libraries.
20645
 
build_libtool_libs=$enable_shared
20646
 
 
20647
 
# Whether or not to build static libraries.
20648
 
build_old_libs=$enable_static
20649
 
 
20650
 
# Whether or not to add -lc for building shared libraries.
20651
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
20652
 
 
20653
 
# Whether or not to disallow shared libs when runtime libs are static
20654
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20655
 
 
20656
 
# Whether or not to optimize for fast installation.
20657
 
fast_install=$enable_fast_install
20658
 
 
20659
 
# The host system.
20660
 
host_alias=$host_alias
20661
 
host=$host
20662
 
host_os=$host_os
20663
 
 
20664
 
# The build system.
20665
 
build_alias=$build_alias
20666
 
build=$build
20667
 
build_os=$build_os
20668
 
 
20669
 
# An echo program that does not interpret backslashes.
20670
 
echo=$lt_echo
20671
 
 
20672
 
# The archiver.
20673
 
AR=$lt_AR
20674
 
AR_FLAGS=$lt_AR_FLAGS
20675
 
 
20676
 
# A C compiler.
20677
 
LTCC=$lt_LTCC
20678
 
 
20679
 
# LTCC compiler flags.
20680
 
LTCFLAGS=$lt_LTCFLAGS
20681
 
 
20682
 
# A language-specific compiler.
20683
 
CC=$lt_compiler_RC
20684
 
 
20685
 
# Is the compiler the GNU C compiler?
20686
 
with_gcc=$GCC_RC
20687
 
 
20688
 
# An ERE matcher.
20689
 
EGREP=$lt_EGREP
20690
 
 
20691
 
# The linker used to build libraries.
20692
 
LD=$lt_LD_RC
20693
 
 
20694
 
# Whether we need hard or soft links.
20695
 
LN_S=$lt_LN_S
20696
 
 
20697
 
# A BSD-compatible nm program.
20698
 
NM=$lt_NM
20699
 
 
20700
 
# A symbol stripping program
20701
 
STRIP=$lt_STRIP
20702
 
 
20703
 
# Used to examine libraries when file_magic_cmd begins "file"
20704
 
MAGIC_CMD=$MAGIC_CMD
20705
 
 
20706
 
# Used on cygwin: DLL creation program.
20707
 
DLLTOOL="$DLLTOOL"
20708
 
 
20709
 
# Used on cygwin: object dumper.
20710
 
OBJDUMP="$OBJDUMP"
20711
 
 
20712
 
# Used on cygwin: assembler.
20713
 
AS="$AS"
20714
 
 
20715
 
# The name of the directory that contains temporary libtool files.
20716
 
objdir=$objdir
20717
 
 
20718
 
# How to create reloadable object files.
20719
 
reload_flag=$lt_reload_flag
20720
 
reload_cmds=$lt_reload_cmds
20721
 
 
20722
 
# How to pass a linker flag through the compiler.
20723
 
wl=$lt_lt_prog_compiler_wl_RC
20724
 
 
20725
 
# Object file suffix (normally "o").
20726
 
objext="$ac_objext"
20727
 
 
20728
 
# Old archive suffix (normally "a").
20729
 
libext="$libext"
20730
 
 
20731
 
# Shared library suffix (normally ".so").
20732
 
shrext_cmds='$shrext_cmds'
20733
 
 
20734
 
# Executable file suffix (normally "").
20735
 
exeext="$exeext"
20736
 
 
20737
 
# Additional compiler flags for building library objects.
20738
 
pic_flag=$lt_lt_prog_compiler_pic_RC
20739
 
pic_mode=$pic_mode
20740
 
 
20741
 
# What is the maximum length of a command?
20742
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20743
 
 
20744
 
# Does compiler simultaneously support -c and -o options?
20745
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20746
 
 
20747
 
# Must we lock files when doing compilation?
20748
 
need_locks=$lt_need_locks
20749
 
 
20750
 
# Do we need the lib prefix for modules?
20751
 
need_lib_prefix=$need_lib_prefix
20752
 
 
20753
 
# Do we need a version for libraries?
20754
 
need_version=$need_version
20755
 
 
20756
 
# Whether dlopen is supported.
20757
 
dlopen_support=$enable_dlopen
20758
 
 
20759
 
# Whether dlopen of programs is supported.
20760
 
dlopen_self=$enable_dlopen_self
20761
 
 
20762
 
# Whether dlopen of statically linked programs is supported.
20763
 
dlopen_self_static=$enable_dlopen_self_static
20764
 
 
20765
 
# Compiler flag to prevent dynamic linking.
20766
 
link_static_flag=$lt_lt_prog_compiler_static_RC
20767
 
 
20768
 
# Compiler flag to turn off builtin functions.
20769
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20770
 
 
20771
 
# Compiler flag to allow reflexive dlopens.
20772
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20773
 
 
20774
 
# Compiler flag to generate shared objects directly from archives.
20775
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20776
 
 
20777
 
# Compiler flag to generate thread-safe objects.
20778
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20779
 
 
20780
 
# Library versioning type.
20781
 
version_type=$version_type
20782
 
 
20783
 
# Format of library name prefix.
20784
 
libname_spec=$lt_libname_spec
20785
 
 
20786
 
# List of archive names.  First name is the real one, the rest are links.
20787
 
# The last name is the one that the linker finds with -lNAME.
20788
 
library_names_spec=$lt_library_names_spec
20789
 
 
20790
 
# The coded name of the library, if different from the real name.
20791
 
soname_spec=$lt_soname_spec
20792
 
 
20793
 
# Commands used to build and install an old-style archive.
20794
 
RANLIB=$lt_RANLIB
20795
 
old_archive_cmds=$lt_old_archive_cmds_RC
20796
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20797
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20798
 
 
20799
 
# Create an old-style archive from a shared archive.
20800
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20801
 
 
20802
 
# Create a temporary old-style archive to link instead of a shared archive.
20803
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20804
 
 
20805
 
# Commands used to build and install a shared archive.
20806
 
archive_cmds=$lt_archive_cmds_RC
20807
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20808
 
postinstall_cmds=$lt_postinstall_cmds
20809
 
postuninstall_cmds=$lt_postuninstall_cmds
20810
 
 
20811
 
# Commands used to build a loadable module (assumed same as above if empty)
20812
 
module_cmds=$lt_module_cmds_RC
20813
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
20814
 
 
20815
 
# Commands to strip libraries.
20816
 
old_striplib=$lt_old_striplib
20817
 
striplib=$lt_striplib
20818
 
 
20819
 
# Dependencies to place before the objects being linked to create a
20820
 
# shared library.
20821
 
predep_objects=$lt_predep_objects_RC
20822
 
 
20823
 
# Dependencies to place after the objects being linked to create a
20824
 
# shared library.
20825
 
postdep_objects=$lt_postdep_objects_RC
20826
 
 
20827
 
# Dependencies to place before the objects being linked to create a
20828
 
# shared library.
20829
 
predeps=$lt_predeps_RC
20830
 
 
20831
 
# Dependencies to place after the objects being linked to create a
20832
 
# shared library.
20833
 
postdeps=$lt_postdeps_RC
20834
 
 
20835
 
# The library search path used internally by the compiler when linking
20836
 
# a shared library.
20837
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20838
 
 
20839
 
# Method to check whether dependent libraries are shared objects.
20840
 
deplibs_check_method=$lt_deplibs_check_method
20841
 
 
20842
 
# Command to use when deplibs_check_method == file_magic.
20843
 
file_magic_cmd=$lt_file_magic_cmd
20844
 
 
20845
 
# Flag that allows shared libraries with undefined symbols to be built.
20846
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20847
 
 
20848
 
# Flag that forces no undefined symbols.
20849
 
no_undefined_flag=$lt_no_undefined_flag_RC
20850
 
 
20851
 
# Commands used to finish a libtool library installation in a directory.
20852
 
finish_cmds=$lt_finish_cmds
20853
 
 
20854
 
# Same as above, but a single script fragment to be evaled but not shown.
20855
 
finish_eval=$lt_finish_eval
20856
 
 
20857
 
# Take the output of nm and produce a listing of raw symbols and C names.
20858
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20859
 
 
20860
 
# Transform the output of nm in a proper C declaration
20861
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20862
 
 
20863
 
# Transform the output of nm in a C name address pair
20864
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20865
 
 
20866
 
# This is the shared library runtime path variable.
20867
 
runpath_var=$runpath_var
20868
 
 
20869
 
# This is the shared library path variable.
20870
 
shlibpath_var=$shlibpath_var
20871
 
 
20872
 
# Is shlibpath searched before the hard-coded library search path?
20873
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20874
 
 
20875
 
# How to hardcode a shared library path into an executable.
20876
 
hardcode_action=$hardcode_action_RC
20877
 
 
20878
 
# Whether we should hardcode library paths into libraries.
20879
 
hardcode_into_libs=$hardcode_into_libs
20880
 
 
20881
 
# Flag to hardcode \$libdir into a binary during linking.
20882
 
# This must work even if \$libdir does not exist.
20883
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20884
 
 
20885
 
# If ld is used when linking, flag to hardcode \$libdir into
20886
 
# a binary during linking. This must work even if \$libdir does
20887
 
# not exist.
20888
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20889
 
 
20890
 
# Whether we need a single -rpath flag with a separated argument.
20891
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20892
 
 
20893
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20894
 
# resulting binary.
20895
 
hardcode_direct=$hardcode_direct_RC
20896
 
 
20897
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20898
 
# resulting binary.
20899
 
hardcode_minus_L=$hardcode_minus_L_RC
20900
 
 
20901
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20902
 
# the resulting binary.
20903
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20904
 
 
20905
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20906
 
# and all subsequent libraries and executables linked against it.
20907
 
hardcode_automatic=$hardcode_automatic_RC
20908
 
 
20909
 
# Variables whose values should be saved in libtool wrapper scripts and
20910
 
# restored at relink time.
20911
 
variables_saved_for_relink="$variables_saved_for_relink"
20912
 
 
20913
 
# Whether libtool must link a program against all its dependency libraries.
20914
 
link_all_deplibs=$link_all_deplibs_RC
20915
 
 
20916
 
# Compile-time system search path for libraries
20917
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20918
 
 
20919
 
# Run-time system search path for libraries
20920
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20921
 
 
20922
 
# Fix the shell variable \$srcfile for the compiler.
20923
 
fix_srcfile_path="$fix_srcfile_path_RC"
20924
 
 
20925
 
# Set to yes if exported symbols are required.
20926
 
always_export_symbols=$always_export_symbols_RC
20927
 
 
20928
 
# The commands to list exported symbols.
20929
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20930
 
 
20931
 
# The commands to extract the exported symbol list from a shared archive.
20932
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20933
 
 
20934
 
# Symbols that should not be listed in the preloaded symbols.
20935
 
exclude_expsyms=$lt_exclude_expsyms_RC
20936
 
 
20937
 
# Symbols that must always be exported.
20938
 
include_expsyms=$lt_include_expsyms_RC
20939
 
 
20940
 
# ### END LIBTOOL TAG CONFIG: $tagname
20941
 
 
20942
 
__EOF__
20943
 
 
20944
 
 
20945
 
else
20946
 
  # If there is no Makefile yet, we rely on a make rule to execute
20947
 
  # `config.status --recheck' to rerun these tests and create the
20948
 
  # libtool script then.
20949
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20950
 
  if test -f "$ltmain_in"; then
20951
 
    test -f Makefile && make "$ltmain"
20952
 
  fi
20953
 
fi
20954
 
 
20955
 
 
20956
 
ac_ext=c
20957
 
ac_cpp='$CPP $CPPFLAGS'
20958
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20961
 
 
20962
 
CC="$lt_save_CC"
20963
 
 
20964
 
        ;;
20965
 
 
20966
 
      *)
20967
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20968
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20969
 
   { (exit 1); exit 1; }; }
20970
 
        ;;
20971
 
      esac
20972
 
 
20973
 
      # Append the new tag name to the list of available tags.
20974
 
      if test -n "$tagname" ; then
20975
 
      available_tags="$available_tags $tagname"
20976
 
    fi
20977
 
    fi
20978
 
  done
20979
 
  IFS="$lt_save_ifs"
20980
 
 
20981
 
  # Now substitute the updated list of available tags.
20982
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20983
 
    mv "${ofile}T" "$ofile"
20984
 
    chmod +x "$ofile"
20985
 
  else
20986
 
    rm -f "${ofile}T"
20987
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20988
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20989
 
   { (exit 1); exit 1; }; }
20990
 
  fi
20991
 
fi
20992
 
 
20993
 
 
20994
 
 
20995
 
# This can be used to rebuild libtool when needed
20996
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20997
 
 
20998
 
# Always use our own libtool.
20999
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21000
 
 
21001
 
# Prevent multiple expansion
21002
 
 
21003
 
 
21004
 
 
21005
 
 
21006
 
 
21007
 
 
21008
 
 
21009
 
 
21010
 
 
21011
 
 
21012
 
 
21013
 
  
21014
 
 
21015
 
  
21016
 
 
21017
 
 
21018
 
  
21019
 
       
21020
 
       
21021
 
 
21022
 
 
21023
 
if test "x$cross_compiling" = "xno"; then
21024
 
        CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21025
 
else
21026
 
        CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21027
 
fi
21028
 
 
21029
 
 
21030
 
 
21031
 
if test -n "$ac_tool_prefix"; then
21032
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21033
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
21034
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21035
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21036
 
if test "${ac_cv_prog_AR+set}" = set; then
21037
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21038
 
else
21039
 
  if test -n "$AR"; then
21040
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
21041
 
else
21042
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21043
 
for as_dir in $PATH
21044
 
do
21045
 
  IFS=$as_save_IFS
21046
 
  test -z "$as_dir" && as_dir=.
21047
 
  for ac_exec_ext in '' $ac_executable_extensions; do
21048
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21049
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
21050
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21051
 
    break 2
21052
 
  fi
21053
 
done
21054
 
done
21055
 
IFS=$as_save_IFS
21056
 
 
21057
 
fi
21058
 
fi
21059
 
AR=$ac_cv_prog_AR
21060
 
if test -n "$AR"; then
21061
 
  { echo "$as_me:$LINENO: result: $AR" >&5
21062
 
echo "${ECHO_T}$AR" >&6; }
21063
 
else
21064
 
  { echo "$as_me:$LINENO: result: no" >&5
21065
 
echo "${ECHO_T}no" >&6; }
21066
 
fi
21067
 
 
21068
 
 
21069
 
fi
21070
 
if test -z "$ac_cv_prog_AR"; then
21071
 
  ac_ct_AR=$AR
21072
 
  # Extract the first word of "ar", so it can be a program name with args.
21073
 
set dummy ar; ac_word=$2
21074
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21075
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21076
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21077
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21078
 
else
21079
 
  if test -n "$ac_ct_AR"; then
21080
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21081
 
else
21082
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21083
 
for as_dir in $PATH
21084
 
do
21085
 
  IFS=$as_save_IFS
21086
 
  test -z "$as_dir" && as_dir=.
21087
 
  for ac_exec_ext in '' $ac_executable_extensions; do
21088
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21089
 
    ac_cv_prog_ac_ct_AR="ar"
21090
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21091
 
    break 2
21092
 
  fi
21093
 
done
21094
 
done
21095
 
IFS=$as_save_IFS
21096
 
 
21097
 
fi
21098
 
fi
21099
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
21100
 
if test -n "$ac_ct_AR"; then
21101
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21102
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
21103
 
else
21104
 
  { echo "$as_me:$LINENO: result: no" >&5
21105
 
echo "${ECHO_T}no" >&6; }
21106
 
fi
21107
 
 
21108
 
  if test "x$ac_ct_AR" = x; then
21109
 
    AR=""
21110
 
  else
21111
 
    case $cross_compiling:$ac_tool_warned in
21112
 
yes:)
21113
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21114
 
whose name does not start with the host triplet.  If you think this
21115
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
21116
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21117
 
whose name does not start with the host triplet.  If you think this
21118
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21119
 
ac_tool_warned=yes ;;
21120
 
esac
21121
 
    AR=$ac_ct_AR
21122
 
  fi
21123
 
else
21124
 
  AR="$ac_cv_prog_AR"
21125
 
fi
21126
 
 
21127
 
if test -n "$ac_tool_prefix"; then
21128
 
  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21129
 
set dummy ${ac_tool_prefix}ld; ac_word=$2
21130
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21131
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21132
 
if test "${ac_cv_prog_LD+set}" = set; then
21133
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21134
 
else
21135
 
  if test -n "$LD"; then
21136
 
  ac_cv_prog_LD="$LD" # Let the user override the test.
21137
 
else
21138
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21139
 
for as_dir in $PATH
21140
 
do
21141
 
  IFS=$as_save_IFS
21142
 
  test -z "$as_dir" && as_dir=.
21143
 
  for ac_exec_ext in '' $ac_executable_extensions; do
21144
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21145
 
    ac_cv_prog_LD="${ac_tool_prefix}ld"
21146
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21147
 
    break 2
21148
 
  fi
21149
 
done
21150
 
done
21151
 
IFS=$as_save_IFS
21152
 
 
21153
 
fi
21154
 
fi
21155
 
LD=$ac_cv_prog_LD
21156
 
if test -n "$LD"; then
21157
 
  { echo "$as_me:$LINENO: result: $LD" >&5
21158
 
echo "${ECHO_T}$LD" >&6; }
21159
 
else
21160
 
  { echo "$as_me:$LINENO: result: no" >&5
21161
 
echo "${ECHO_T}no" >&6; }
21162
 
fi
21163
 
 
21164
 
 
21165
 
fi
21166
 
if test -z "$ac_cv_prog_LD"; then
21167
 
  ac_ct_LD=$LD
21168
 
  # Extract the first word of "ld", so it can be a program name with args.
21169
 
set dummy ld; ac_word=$2
21170
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21171
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21172
 
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21173
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21174
 
else
21175
 
  if test -n "$ac_ct_LD"; then
21176
 
  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21177
 
else
21178
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21179
 
for as_dir in $PATH
21180
 
do
21181
 
  IFS=$as_save_IFS
21182
 
  test -z "$as_dir" && as_dir=.
21183
 
  for ac_exec_ext in '' $ac_executable_extensions; do
21184
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21185
 
    ac_cv_prog_ac_ct_LD="ld"
21186
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21187
 
    break 2
21188
 
  fi
21189
 
done
21190
 
done
21191
 
IFS=$as_save_IFS
21192
 
 
21193
 
fi
21194
 
fi
21195
 
ac_ct_LD=$ac_cv_prog_ac_ct_LD
21196
 
if test -n "$ac_ct_LD"; then
21197
 
  { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21198
 
echo "${ECHO_T}$ac_ct_LD" >&6; }
21199
 
else
21200
 
  { echo "$as_me:$LINENO: result: no" >&5
21201
 
echo "${ECHO_T}no" >&6; }
21202
 
fi
21203
 
 
21204
 
  if test "x$ac_ct_LD" = x; then
21205
 
    LD=""
21206
 
  else
21207
 
    case $cross_compiling:$ac_tool_warned in
21208
 
yes:)
21209
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21210
 
whose name does not start with the host triplet.  If you think this
21211
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
21212
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21213
 
whose name does not start with the host triplet.  If you think this
21214
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21215
 
ac_tool_warned=yes ;;
21216
 
esac
21217
 
    LD=$ac_ct_LD
21218
 
  fi
21219
 
else
21220
 
  LD="$ac_cv_prog_LD"
21221
 
fi
21222
 
 
21223
 
 
21224
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21225
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21226
 
if test "${ac_cv_header_stdc+set}" = set; then
21227
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21228
 
else
21229
 
  cat >conftest.$ac_ext <<_ACEOF
21230
 
/* confdefs.h.  */
21231
 
_ACEOF
21232
 
cat confdefs.h >>conftest.$ac_ext
21233
 
cat >>conftest.$ac_ext <<_ACEOF
21234
 
/* end confdefs.h.  */
21235
 
#include <stdlib.h>
21236
 
#include <stdarg.h>
21237
 
#include <string.h>
21238
 
#include <float.h>
21239
 
 
21240
 
int
21241
 
main ()
21242
 
{
21243
 
 
21244
 
  ;
21245
 
  return 0;
21246
 
}
21247
 
_ACEOF
21248
 
rm -f conftest.$ac_objext
21249
 
if { (ac_try="$ac_compile"
21250
 
case "(($ac_try" in
21251
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252
 
  *) ac_try_echo=$ac_try;;
21253
 
esac
21254
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255
 
  (eval "$ac_compile") 2>conftest.er1
21256
 
  ac_status=$?
21257
 
  grep -v '^ *+' conftest.er1 >conftest.err
21258
 
  rm -f conftest.er1
21259
 
  cat conftest.err >&5
21260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261
 
  (exit $ac_status); } &&
21262
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21263
 
  { (case "(($ac_try" in
21264
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265
 
  *) ac_try_echo=$ac_try;;
21266
 
esac
21267
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268
 
  (eval "$ac_try") 2>&5
21269
 
  ac_status=$?
21270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271
 
  (exit $ac_status); }; } &&
21272
 
         { ac_try='test -s conftest.$ac_objext'
21273
 
  { (case "(($ac_try" in
21274
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275
 
  *) ac_try_echo=$ac_try;;
21276
 
esac
21277
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278
 
  (eval "$ac_try") 2>&5
21279
 
  ac_status=$?
21280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281
 
  (exit $ac_status); }; }; then
21282
 
  ac_cv_header_stdc=yes
21283
 
else
21284
 
  echo "$as_me: failed program was:" >&5
21285
 
sed 's/^/| /' conftest.$ac_ext >&5
21286
 
 
21287
 
        ac_cv_header_stdc=no
21288
 
fi
21289
 
 
21290
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21291
 
 
21292
 
if test $ac_cv_header_stdc = yes; then
21293
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21294
 
  cat >conftest.$ac_ext <<_ACEOF
21295
 
/* confdefs.h.  */
21296
 
_ACEOF
21297
 
cat confdefs.h >>conftest.$ac_ext
21298
 
cat >>conftest.$ac_ext <<_ACEOF
21299
 
/* end confdefs.h.  */
21300
 
#include <string.h>
21301
 
 
21302
 
_ACEOF
21303
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21304
 
  $EGREP "memchr" >/dev/null 2>&1; then
21305
 
  :
21306
 
else
21307
 
  ac_cv_header_stdc=no
21308
 
fi
21309
 
rm -f conftest*
21310
 
 
21311
 
fi
21312
 
 
21313
 
if test $ac_cv_header_stdc = yes; then
21314
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21315
 
  cat >conftest.$ac_ext <<_ACEOF
21316
 
/* confdefs.h.  */
21317
 
_ACEOF
21318
 
cat confdefs.h >>conftest.$ac_ext
21319
 
cat >>conftest.$ac_ext <<_ACEOF
21320
 
/* end confdefs.h.  */
21321
 
#include <stdlib.h>
21322
 
 
21323
 
_ACEOF
21324
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21325
 
  $EGREP "free" >/dev/null 2>&1; then
21326
 
  :
21327
 
else
21328
 
  ac_cv_header_stdc=no
21329
 
fi
21330
 
rm -f conftest*
21331
 
 
21332
 
fi
21333
 
 
21334
 
if test $ac_cv_header_stdc = yes; then
21335
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21336
 
  if test "$cross_compiling" = yes; then
21337
 
  :
21338
 
else
21339
 
  cat >conftest.$ac_ext <<_ACEOF
21340
 
/* confdefs.h.  */
21341
 
_ACEOF
21342
 
cat confdefs.h >>conftest.$ac_ext
21343
 
cat >>conftest.$ac_ext <<_ACEOF
21344
 
/* end confdefs.h.  */
21345
 
#include <ctype.h>
21346
 
#include <stdlib.h>
21347
 
#if ((' ' & 0x0FF) == 0x020)
21348
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21349
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21350
 
#else
21351
 
# define ISLOWER(c) \
21352
 
                   (('a' <= (c) && (c) <= 'i') \
21353
 
                     || ('j' <= (c) && (c) <= 'r') \
21354
 
                     || ('s' <= (c) && (c) <= 'z'))
21355
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21356
 
#endif
21357
 
 
21358
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21359
 
int
21360
 
main ()
21361
 
{
21362
 
  int i;
21363
 
  for (i = 0; i < 256; i++)
21364
 
    if (XOR (islower (i), ISLOWER (i))
21365
 
        || toupper (i) != TOUPPER (i))
21366
 
      return 2;
21367
 
  return 0;
21368
 
}
21369
 
_ACEOF
21370
 
rm -f conftest$ac_exeext
21371
 
if { (ac_try="$ac_link"
21372
 
case "(($ac_try" in
21373
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374
 
  *) ac_try_echo=$ac_try;;
21375
 
esac
21376
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377
 
  (eval "$ac_link") 2>&5
21378
 
  ac_status=$?
21379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21381
 
  { (case "(($ac_try" in
21382
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383
 
  *) ac_try_echo=$ac_try;;
21384
 
esac
21385
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386
 
  (eval "$ac_try") 2>&5
21387
 
  ac_status=$?
21388
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389
 
  (exit $ac_status); }; }; then
21390
 
  :
21391
 
else
21392
 
  echo "$as_me: program exited with status $ac_status" >&5
21393
 
echo "$as_me: failed program was:" >&5
21394
 
sed 's/^/| /' conftest.$ac_ext >&5
21395
 
 
21396
 
( exit $ac_status )
21397
 
ac_cv_header_stdc=no
21398
 
fi
21399
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21400
 
fi
21401
 
 
21402
 
 
21403
 
fi
21404
 
fi
21405
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21406
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21407
 
if test $ac_cv_header_stdc = yes; then
21408
 
  
21409
 
cat >>confdefs.h <<\_ACEOF
21410
 
@%:@define STDC_HEADERS 1
21411
 
_ACEOF
21412
 
 
21413
 
fi
21414
 
 
21415
 
 
21416
 
  { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21417
 
echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21418
 
  if test "${knfsd_cv_glibc2+set}" = set; then
21419
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21420
 
else
21421
 
  cat >conftest.$ac_ext <<_ACEOF
21422
 
/* confdefs.h.  */
21423
 
_ACEOF
21424
 
cat confdefs.h >>conftest.$ac_ext
21425
 
cat >>conftest.$ac_ext <<_ACEOF
21426
 
/* end confdefs.h.  */
21427
 
 
21428
 
      #include <features.h>
21429
 
      #if !defined(__GLIBC__)
21430
 
      # error Nope
21431
 
      #endif
21432
 
      
21433
 
_ACEOF
21434
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21435
 
case "(($ac_try" in
21436
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437
 
  *) ac_try_echo=$ac_try;;
21438
 
esac
21439
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21441
 
  ac_status=$?
21442
 
  grep -v '^ *+' conftest.er1 >conftest.err
21443
 
  rm -f conftest.er1
21444
 
  cat conftest.err >&5
21445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446
 
  (exit $ac_status); } >/dev/null; then
21447
 
  if test -s conftest.err; then
21448
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21449
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21450
 
  else
21451
 
    ac_cpp_err=
21452
 
  fi
21453
 
else
21454
 
  ac_cpp_err=yes
21455
 
fi
21456
 
if test -z "$ac_cpp_err"; then
21457
 
  knfsd_cv_glibc2=yes
21458
 
else
21459
 
  echo "$as_me: failed program was:" >&5
21460
 
sed 's/^/| /' conftest.$ac_ext >&5
21461
 
 
21462
 
  knfsd_cv_glibc2=no
21463
 
fi
21464
 
 
21465
 
rm -f conftest.err conftest.$ac_ext
21466
 
fi
21467
 
 
21468
 
  { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21469
 
echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21470
 
  if test $knfsd_cv_glibc2 = yes; then
21471
 
    CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21472
 
    CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21473
 
  fi
21474
 
 
21475
 
 
21476
 
  { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21477
 
echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21478
 
  if test "${knfsd_cv_bsd_signals+set}" = set; then
21479
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21480
 
else
21481
 
  if test "$cross_compiling" = yes; then
21482
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21483
 
See \`config.log' for more details." >&5
21484
 
echo "$as_me: error: cannot run test program while cross compiling
21485
 
See \`config.log' for more details." >&2;}
21486
 
   { (exit 1); exit 1; }; }
21487
 
else
21488
 
  cat >conftest.$ac_ext <<_ACEOF
21489
 
/* confdefs.h.  */
21490
 
_ACEOF
21491
 
cat confdefs.h >>conftest.$ac_ext
21492
 
cat >>conftest.$ac_ext <<_ACEOF
21493
 
/* end confdefs.h.  */
21494
 
 
21495
 
        #include <signal.h>
21496
 
        #include <unistd.h>
21497
 
        #include <sys/wait.h>
21498
 
 
21499
 
        static int counter = 0;
21500
 
        static RETSIGTYPE handler(int num) { counter++; }
21501
 
 
21502
 
        int main()
21503
 
        {
21504
 
                int     s;
21505
 
                if ((s = fork()) < 0) return 1;
21506
 
                if (s != 0) {
21507
 
                        if (wait(&s) < 0) return 1;
21508
 
                        return WIFSIGNALED(s)? 1 : 0;
21509
 
                }
21510
 
 
21511
 
                signal(SIGHUP, handler);
21512
 
                kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21513
 
                return (counter == 2)? 0 : 1;
21514
 
        }
21515
 
    
21516
 
_ACEOF
21517
 
rm -f conftest$ac_exeext
21518
 
if { (ac_try="$ac_link"
21519
 
case "(($ac_try" in
21520
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521
 
  *) ac_try_echo=$ac_try;;
21522
 
esac
21523
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524
 
  (eval "$ac_link") 2>&5
21525
 
  ac_status=$?
21526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528
 
  { (case "(($ac_try" in
21529
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530
 
  *) ac_try_echo=$ac_try;;
21531
 
esac
21532
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533
 
  (eval "$ac_try") 2>&5
21534
 
  ac_status=$?
21535
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536
 
  (exit $ac_status); }; }; then
21537
 
  knfsd_cv_bsd_signals=yes
21538
 
else
21539
 
  echo "$as_me: program exited with status $ac_status" >&5
21540
 
echo "$as_me: failed program was:" >&5
21541
 
sed 's/^/| /' conftest.$ac_ext >&5
21542
 
 
21543
 
( exit $ac_status )
21544
 
knfsd_cv_bsd_signals=no
21545
 
fi
21546
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21547
 
fi
21548
 
 
21549
 
 
21550
 
fi
21551
 
     { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21552
 
echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21553
 
    test $knfsd_cv_bsd_signals = yes && 
21554
 
cat >>confdefs.h <<\_ACEOF
21555
 
@%:@define HAVE_BSD_SIGNALS 1
21556
 
_ACEOF
21557
 
 
21558
 
 
21559
 
 
21560
 
{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21561
 
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
21562
 
if test "${ac_cv_lib_socket_main+set}" = set; then
21563
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21564
 
else
21565
 
  ac_check_lib_save_LIBS=$LIBS
21566
 
LIBS="-lsocket  $LIBS"
21567
 
cat >conftest.$ac_ext <<_ACEOF
21568
 
/* confdefs.h.  */
21569
 
_ACEOF
21570
 
cat confdefs.h >>conftest.$ac_ext
21571
 
cat >>conftest.$ac_ext <<_ACEOF
21572
 
/* end confdefs.h.  */
21573
 
 
21574
 
 
21575
 
int
21576
 
main ()
21577
 
{
21578
 
return main ();
21579
 
  ;
21580
 
  return 0;
21581
 
}
21582
 
_ACEOF
21583
 
rm -f conftest.$ac_objext conftest$ac_exeext
21584
 
if { (ac_try="$ac_link"
21585
 
case "(($ac_try" in
21586
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587
 
  *) ac_try_echo=$ac_try;;
21588
 
esac
21589
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590
 
  (eval "$ac_link") 2>conftest.er1
21591
 
  ac_status=$?
21592
 
  grep -v '^ *+' conftest.er1 >conftest.err
21593
 
  rm -f conftest.er1
21594
 
  cat conftest.err >&5
21595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596
 
  (exit $ac_status); } &&
21597
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21598
 
  { (case "(($ac_try" in
21599
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600
 
  *) ac_try_echo=$ac_try;;
21601
 
esac
21602
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603
 
  (eval "$ac_try") 2>&5
21604
 
  ac_status=$?
21605
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606
 
  (exit $ac_status); }; } &&
21607
 
         { ac_try='test -s conftest$ac_exeext'
21608
 
  { (case "(($ac_try" in
21609
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610
 
  *) ac_try_echo=$ac_try;;
21611
 
esac
21612
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613
 
  (eval "$ac_try") 2>&5
21614
 
  ac_status=$?
21615
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616
 
  (exit $ac_status); }; }; then
21617
 
  ac_cv_lib_socket_main=yes
21618
 
else
21619
 
  echo "$as_me: failed program was:" >&5
21620
 
sed 's/^/| /' conftest.$ac_ext >&5
21621
 
 
21622
 
        ac_cv_lib_socket_main=no
21623
 
fi
21624
 
 
21625
 
rm -f conftest.err conftest.$ac_objext \
21626
 
      conftest$ac_exeext conftest.$ac_ext
21627
 
LIBS=$ac_check_lib_save_LIBS
21628
 
fi
21629
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21630
 
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
21631
 
if test $ac_cv_lib_socket_main = yes; then
21632
 
  LIBSOCKET="-lnsl"
21633
 
fi
21634
 
 
21635
 
{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21636
 
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
21637
 
if test "${ac_cv_lib_nsl_main+set}" = set; then
21638
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21639
 
else
21640
 
  ac_check_lib_save_LIBS=$LIBS
21641
 
LIBS="-lnsl  $LIBS"
21642
 
cat >conftest.$ac_ext <<_ACEOF
21643
 
/* confdefs.h.  */
21644
 
_ACEOF
21645
 
cat confdefs.h >>conftest.$ac_ext
21646
 
cat >>conftest.$ac_ext <<_ACEOF
21647
 
/* end confdefs.h.  */
21648
 
 
21649
 
 
21650
 
int
21651
 
main ()
21652
 
{
21653
 
return main ();
21654
 
  ;
21655
 
  return 0;
21656
 
}
21657
 
_ACEOF
21658
 
rm -f conftest.$ac_objext conftest$ac_exeext
21659
 
if { (ac_try="$ac_link"
21660
 
case "(($ac_try" in
21661
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662
 
  *) ac_try_echo=$ac_try;;
21663
 
esac
21664
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665
 
  (eval "$ac_link") 2>conftest.er1
21666
 
  ac_status=$?
21667
 
  grep -v '^ *+' conftest.er1 >conftest.err
21668
 
  rm -f conftest.er1
21669
 
  cat conftest.err >&5
21670
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671
 
  (exit $ac_status); } &&
21672
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21673
 
  { (case "(($ac_try" in
21674
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675
 
  *) ac_try_echo=$ac_try;;
21676
 
esac
21677
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678
 
  (eval "$ac_try") 2>&5
21679
 
  ac_status=$?
21680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681
 
  (exit $ac_status); }; } &&
21682
 
         { ac_try='test -s conftest$ac_exeext'
21683
 
  { (case "(($ac_try" in
21684
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685
 
  *) ac_try_echo=$ac_try;;
21686
 
esac
21687
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688
 
  (eval "$ac_try") 2>&5
21689
 
  ac_status=$?
21690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691
 
  (exit $ac_status); }; }; then
21692
 
  ac_cv_lib_nsl_main=yes
21693
 
else
21694
 
  echo "$as_me: failed program was:" >&5
21695
 
sed 's/^/| /' conftest.$ac_ext >&5
21696
 
 
21697
 
        ac_cv_lib_nsl_main=no
21698
 
fi
21699
 
 
21700
 
rm -f conftest.err conftest.$ac_objext \
21701
 
      conftest$ac_exeext conftest.$ac_ext
21702
 
LIBS=$ac_check_lib_save_LIBS
21703
 
fi
21704
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21705
 
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
21706
 
if test $ac_cv_lib_nsl_main = yes; then
21707
 
  LIBNSL="-lnsl"
21708
 
fi
21709
 
 
21710
 
{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21711
 
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21712
 
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21713
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21714
 
else
21715
 
  ac_check_lib_save_LIBS=$LIBS
21716
 
LIBS="-lcrypt  $LIBS"
21717
 
cat >conftest.$ac_ext <<_ACEOF
21718
 
/* confdefs.h.  */
21719
 
_ACEOF
21720
 
cat confdefs.h >>conftest.$ac_ext
21721
 
cat >>conftest.$ac_ext <<_ACEOF
21722
 
/* end confdefs.h.  */
21723
 
 
21724
 
/* Override any GCC internal prototype to avoid an error.
21725
 
   Use char because int might match the return type of a GCC
21726
 
   builtin and then its argument prototype would still apply.  */
21727
 
#ifdef __cplusplus
21728
 
extern "C"
21729
 
#endif
21730
 
char crypt ();
21731
 
int
21732
 
main ()
21733
 
{
21734
 
return crypt ();
21735
 
  ;
21736
 
  return 0;
21737
 
}
21738
 
_ACEOF
21739
 
rm -f conftest.$ac_objext conftest$ac_exeext
21740
 
if { (ac_try="$ac_link"
21741
 
case "(($ac_try" in
21742
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743
 
  *) ac_try_echo=$ac_try;;
21744
 
esac
21745
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746
 
  (eval "$ac_link") 2>conftest.er1
21747
 
  ac_status=$?
21748
 
  grep -v '^ *+' conftest.er1 >conftest.err
21749
 
  rm -f conftest.er1
21750
 
  cat conftest.err >&5
21751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752
 
  (exit $ac_status); } &&
21753
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21754
 
  { (case "(($ac_try" in
21755
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756
 
  *) ac_try_echo=$ac_try;;
21757
 
esac
21758
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759
 
  (eval "$ac_try") 2>&5
21760
 
  ac_status=$?
21761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762
 
  (exit $ac_status); }; } &&
21763
 
         { ac_try='test -s conftest$ac_exeext'
21764
 
  { (case "(($ac_try" in
21765
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766
 
  *) ac_try_echo=$ac_try;;
21767
 
esac
21768
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769
 
  (eval "$ac_try") 2>&5
21770
 
  ac_status=$?
21771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772
 
  (exit $ac_status); }; }; then
21773
 
  ac_cv_lib_crypt_crypt=yes
21774
 
else
21775
 
  echo "$as_me: failed program was:" >&5
21776
 
sed 's/^/| /' conftest.$ac_ext >&5
21777
 
 
21778
 
        ac_cv_lib_crypt_crypt=no
21779
 
fi
21780
 
 
21781
 
rm -f conftest.err conftest.$ac_objext \
21782
 
      conftest$ac_exeext conftest.$ac_ext
21783
 
LIBS=$ac_check_lib_save_LIBS
21784
 
fi
21785
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21786
 
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21787
 
if test $ac_cv_lib_crypt_crypt = yes; then
21788
 
  LIBCRYPT="-lcrypt"
21789
 
fi
21790
 
 
21791
 
if test "$enable_nfsv4" = yes; then
21792
 
    { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21793
 
echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21794
 
if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21795
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21796
 
else
21797
 
  ac_check_lib_save_LIBS=$LIBS
21798
 
LIBS="-levent  $LIBS"
21799
 
cat >conftest.$ac_ext <<_ACEOF
21800
 
/* confdefs.h.  */
21801
 
_ACEOF
21802
 
cat confdefs.h >>conftest.$ac_ext
21803
 
cat >>conftest.$ac_ext <<_ACEOF
21804
 
/* end confdefs.h.  */
21805
 
 
21806
 
/* Override any GCC internal prototype to avoid an error.
21807
 
   Use char because int might match the return type of a GCC
21808
 
   builtin and then its argument prototype would still apply.  */
21809
 
#ifdef __cplusplus
21810
 
extern "C"
21811
 
#endif
21812
 
char event_dispatch ();
21813
 
int
21814
 
main ()
21815
 
{
21816
 
return event_dispatch ();
21817
 
  ;
21818
 
  return 0;
21819
 
}
21820
 
_ACEOF
21821
 
rm -f conftest.$ac_objext conftest$ac_exeext
21822
 
if { (ac_try="$ac_link"
21823
 
case "(($ac_try" in
21824
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825
 
  *) ac_try_echo=$ac_try;;
21826
 
esac
21827
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828
 
  (eval "$ac_link") 2>conftest.er1
21829
 
  ac_status=$?
21830
 
  grep -v '^ *+' conftest.er1 >conftest.err
21831
 
  rm -f conftest.er1
21832
 
  cat conftest.err >&5
21833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834
 
  (exit $ac_status); } &&
21835
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21836
 
  { (case "(($ac_try" in
21837
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838
 
  *) ac_try_echo=$ac_try;;
21839
 
esac
21840
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841
 
  (eval "$ac_try") 2>&5
21842
 
  ac_status=$?
21843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844
 
  (exit $ac_status); }; } &&
21845
 
         { ac_try='test -s conftest$ac_exeext'
21846
 
  { (case "(($ac_try" in
21847
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848
 
  *) ac_try_echo=$ac_try;;
21849
 
esac
21850
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851
 
  (eval "$ac_try") 2>&5
21852
 
  ac_status=$?
21853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854
 
  (exit $ac_status); }; }; then
21855
 
  ac_cv_lib_event_event_dispatch=yes
21856
 
else
21857
 
  echo "$as_me: failed program was:" >&5
21858
 
sed 's/^/| /' conftest.$ac_ext >&5
21859
 
 
21860
 
        ac_cv_lib_event_event_dispatch=no
21861
 
fi
21862
 
 
21863
 
rm -f conftest.err conftest.$ac_objext \
21864
 
      conftest$ac_exeext conftest.$ac_ext
21865
 
LIBS=$ac_check_lib_save_LIBS
21866
 
fi
21867
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21868
 
echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21869
 
if test $ac_cv_lib_event_event_dispatch = yes; then
21870
 
  libevent=1
21871
 
else
21872
 
  { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21873
 
echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21874
 
   { (exit 1); exit 1; }; }
21875
 
fi
21876
 
 
21877
 
    { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21878
 
echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21879
 
if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21880
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21881
 
else
21882
 
  ac_check_lib_save_LIBS=$LIBS
21883
 
LIBS="-lnfsidmap  $LIBS"
21884
 
cat >conftest.$ac_ext <<_ACEOF
21885
 
/* confdefs.h.  */
21886
 
_ACEOF
21887
 
cat confdefs.h >>conftest.$ac_ext
21888
 
cat >>conftest.$ac_ext <<_ACEOF
21889
 
/* end confdefs.h.  */
21890
 
 
21891
 
/* Override any GCC internal prototype to avoid an error.
21892
 
   Use char because int might match the return type of a GCC
21893
 
   builtin and then its argument prototype would still apply.  */
21894
 
#ifdef __cplusplus
21895
 
extern "C"
21896
 
#endif
21897
 
char nfs4_init_name_mapping ();
21898
 
int
21899
 
main ()
21900
 
{
21901
 
return nfs4_init_name_mapping ();
21902
 
  ;
21903
 
  return 0;
21904
 
}
21905
 
_ACEOF
21906
 
rm -f conftest.$ac_objext conftest$ac_exeext
21907
 
if { (ac_try="$ac_link"
21908
 
case "(($ac_try" in
21909
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910
 
  *) ac_try_echo=$ac_try;;
21911
 
esac
21912
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913
 
  (eval "$ac_link") 2>conftest.er1
21914
 
  ac_status=$?
21915
 
  grep -v '^ *+' conftest.er1 >conftest.err
21916
 
  rm -f conftest.er1
21917
 
  cat conftest.err >&5
21918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919
 
  (exit $ac_status); } &&
21920
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21921
 
  { (case "(($ac_try" in
21922
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923
 
  *) ac_try_echo=$ac_try;;
21924
 
esac
21925
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926
 
  (eval "$ac_try") 2>&5
21927
 
  ac_status=$?
21928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929
 
  (exit $ac_status); }; } &&
21930
 
         { ac_try='test -s conftest$ac_exeext'
21931
 
  { (case "(($ac_try" in
21932
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933
 
  *) ac_try_echo=$ac_try;;
21934
 
esac
21935
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936
 
  (eval "$ac_try") 2>&5
21937
 
  ac_status=$?
21938
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939
 
  (exit $ac_status); }; }; then
21940
 
  ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21941
 
else
21942
 
  echo "$as_me: failed program was:" >&5
21943
 
sed 's/^/| /' conftest.$ac_ext >&5
21944
 
 
21945
 
        ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21946
 
fi
21947
 
 
21948
 
rm -f conftest.err conftest.$ac_objext \
21949
 
      conftest$ac_exeext conftest.$ac_ext
21950
 
LIBS=$ac_check_lib_save_LIBS
21951
 
fi
21952
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21953
 
echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21954
 
if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21955
 
  libnfsidmap=1
21956
 
else
21957
 
  { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21958
 
echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21959
 
   { (exit 1); exit 1; }; }
21960
 
fi
21961
 
 
21962
 
    
21963
 
for ac_header in event.h
21964
 
do
21965
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21966
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21967
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21968
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21969
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21970
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21971
 
fi
21972
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21973
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21974
 
echo "${ECHO_T}$ac_res" >&6; }
21975
 
else
21976
 
  # Is the header compilable?
21977
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21978
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21979
 
cat >conftest.$ac_ext <<_ACEOF
21980
 
/* confdefs.h.  */
21981
 
_ACEOF
21982
 
cat confdefs.h >>conftest.$ac_ext
21983
 
cat >>conftest.$ac_ext <<_ACEOF
21984
 
/* end confdefs.h.  */
21985
 
$ac_includes_default
21986
 
@%:@include <$ac_header>
21987
 
_ACEOF
21988
 
rm -f conftest.$ac_objext
21989
 
if { (ac_try="$ac_compile"
21990
 
case "(($ac_try" in
21991
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992
 
  *) ac_try_echo=$ac_try;;
21993
 
esac
21994
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995
 
  (eval "$ac_compile") 2>conftest.er1
21996
 
  ac_status=$?
21997
 
  grep -v '^ *+' conftest.er1 >conftest.err
21998
 
  rm -f conftest.er1
21999
 
  cat conftest.err >&5
22000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001
 
  (exit $ac_status); } &&
22002
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22003
 
  { (case "(($ac_try" in
22004
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005
 
  *) ac_try_echo=$ac_try;;
22006
 
esac
22007
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008
 
  (eval "$ac_try") 2>&5
22009
 
  ac_status=$?
22010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011
 
  (exit $ac_status); }; } &&
22012
 
         { ac_try='test -s conftest.$ac_objext'
22013
 
  { (case "(($ac_try" in
22014
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015
 
  *) ac_try_echo=$ac_try;;
22016
 
esac
22017
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018
 
  (eval "$ac_try") 2>&5
22019
 
  ac_status=$?
22020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021
 
  (exit $ac_status); }; }; then
22022
 
  ac_header_compiler=yes
22023
 
else
22024
 
  echo "$as_me: failed program was:" >&5
22025
 
sed 's/^/| /' conftest.$ac_ext >&5
22026
 
 
22027
 
        ac_header_compiler=no
22028
 
fi
22029
 
 
22030
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22031
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22033
 
 
22034
 
# Is the header present?
22035
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22036
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22037
 
cat >conftest.$ac_ext <<_ACEOF
22038
 
/* confdefs.h.  */
22039
 
_ACEOF
22040
 
cat confdefs.h >>conftest.$ac_ext
22041
 
cat >>conftest.$ac_ext <<_ACEOF
22042
 
/* end confdefs.h.  */
22043
 
@%:@include <$ac_header>
22044
 
_ACEOF
22045
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22046
 
case "(($ac_try" in
22047
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048
 
  *) ac_try_echo=$ac_try;;
22049
 
esac
22050
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22052
 
  ac_status=$?
22053
 
  grep -v '^ *+' conftest.er1 >conftest.err
22054
 
  rm -f conftest.er1
22055
 
  cat conftest.err >&5
22056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057
 
  (exit $ac_status); } >/dev/null; then
22058
 
  if test -s conftest.err; then
22059
 
    ac_cpp_err=$ac_c_preproc_warn_flag
22060
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22061
 
  else
22062
 
    ac_cpp_err=
22063
 
  fi
22064
 
else
22065
 
  ac_cpp_err=yes
22066
 
fi
22067
 
if test -z "$ac_cpp_err"; then
22068
 
  ac_header_preproc=yes
22069
 
else
22070
 
  echo "$as_me: failed program was:" >&5
22071
 
sed 's/^/| /' conftest.$ac_ext >&5
22072
 
 
22073
 
  ac_header_preproc=no
22074
 
fi
22075
 
 
22076
 
rm -f conftest.err conftest.$ac_ext
22077
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22078
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22079
 
 
22080
 
# So?  What about this header?
22081
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22082
 
  yes:no: )
22083
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22084
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22085
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22086
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22087
 
    ac_header_preproc=yes
22088
 
    ;;
22089
 
  no:yes:* )
22090
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22091
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22092
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22093
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22094
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22095
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22096
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22097
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22098
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22099
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22100
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22101
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22102
 
    ( cat <<\_ASBOX
22103
 
@%:@@%:@ ------------------------------- @%:@@%:@
22104
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22105
 
@%:@@%:@ ------------------------------- @%:@@%:@
22106
 
_ASBOX
22107
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22108
 
    ;;
22109
 
esac
22110
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22111
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22112
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22113
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22114
 
else
22115
 
  eval "$as_ac_Header=\$ac_header_preproc"
22116
 
fi
22117
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22118
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22119
 
echo "${ECHO_T}$ac_res" >&6; }
22120
 
 
22121
 
fi
22122
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22123
 
  cat >>confdefs.h <<_ACEOF
22124
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22125
 
_ACEOF
22126
 
 
22127
 
else
22128
 
  { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22129
 
echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22130
 
   { (exit 1); exit 1; }; }
22131
 
fi
22132
 
 
22133
 
done
22134
 
 
22135
 
    
22136
 
for ac_header in nfsidmap.h
22137
 
do
22138
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22139
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22140
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22141
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22142
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22143
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22144
 
fi
22145
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22146
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22147
 
echo "${ECHO_T}$ac_res" >&6; }
22148
 
else
22149
 
  # Is the header compilable?
22150
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22151
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22152
 
cat >conftest.$ac_ext <<_ACEOF
22153
 
/* confdefs.h.  */
22154
 
_ACEOF
22155
 
cat confdefs.h >>conftest.$ac_ext
22156
 
cat >>conftest.$ac_ext <<_ACEOF
22157
 
/* end confdefs.h.  */
22158
 
$ac_includes_default
22159
 
@%:@include <$ac_header>
22160
 
_ACEOF
22161
 
rm -f conftest.$ac_objext
22162
 
if { (ac_try="$ac_compile"
22163
 
case "(($ac_try" in
22164
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165
 
  *) ac_try_echo=$ac_try;;
22166
 
esac
22167
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168
 
  (eval "$ac_compile") 2>conftest.er1
22169
 
  ac_status=$?
22170
 
  grep -v '^ *+' conftest.er1 >conftest.err
22171
 
  rm -f conftest.er1
22172
 
  cat conftest.err >&5
22173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174
 
  (exit $ac_status); } &&
22175
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22176
 
  { (case "(($ac_try" in
22177
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178
 
  *) ac_try_echo=$ac_try;;
22179
 
esac
22180
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181
 
  (eval "$ac_try") 2>&5
22182
 
  ac_status=$?
22183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184
 
  (exit $ac_status); }; } &&
22185
 
         { ac_try='test -s conftest.$ac_objext'
22186
 
  { (case "(($ac_try" in
22187
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188
 
  *) ac_try_echo=$ac_try;;
22189
 
esac
22190
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191
 
  (eval "$ac_try") 2>&5
22192
 
  ac_status=$?
22193
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194
 
  (exit $ac_status); }; }; then
22195
 
  ac_header_compiler=yes
22196
 
else
22197
 
  echo "$as_me: failed program was:" >&5
22198
 
sed 's/^/| /' conftest.$ac_ext >&5
22199
 
 
22200
 
        ac_header_compiler=no
22201
 
fi
22202
 
 
22203
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22204
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22205
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22206
 
 
22207
 
# Is the header present?
22208
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22209
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22210
 
cat >conftest.$ac_ext <<_ACEOF
22211
 
/* confdefs.h.  */
22212
 
_ACEOF
22213
 
cat confdefs.h >>conftest.$ac_ext
22214
 
cat >>conftest.$ac_ext <<_ACEOF
22215
 
/* end confdefs.h.  */
22216
 
@%:@include <$ac_header>
22217
 
_ACEOF
22218
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22219
 
case "(($ac_try" in
22220
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221
 
  *) ac_try_echo=$ac_try;;
22222
 
esac
22223
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22225
 
  ac_status=$?
22226
 
  grep -v '^ *+' conftest.er1 >conftest.err
22227
 
  rm -f conftest.er1
22228
 
  cat conftest.err >&5
22229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230
 
  (exit $ac_status); } >/dev/null; then
22231
 
  if test -s conftest.err; then
22232
 
    ac_cpp_err=$ac_c_preproc_warn_flag
22233
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22234
 
  else
22235
 
    ac_cpp_err=
22236
 
  fi
22237
 
else
22238
 
  ac_cpp_err=yes
22239
 
fi
22240
 
if test -z "$ac_cpp_err"; then
22241
 
  ac_header_preproc=yes
22242
 
else
22243
 
  echo "$as_me: failed program was:" >&5
22244
 
sed 's/^/| /' conftest.$ac_ext >&5
22245
 
 
22246
 
  ac_header_preproc=no
22247
 
fi
22248
 
 
22249
 
rm -f conftest.err conftest.$ac_ext
22250
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22251
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22252
 
 
22253
 
# So?  What about this header?
22254
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22255
 
  yes:no: )
22256
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22257
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22258
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22259
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22260
 
    ac_header_preproc=yes
22261
 
    ;;
22262
 
  no:yes:* )
22263
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22264
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22265
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22266
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22267
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22268
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22269
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22270
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22271
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22272
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22273
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22274
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22275
 
    ( cat <<\_ASBOX
22276
 
@%:@@%:@ ------------------------------- @%:@@%:@
22277
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22278
 
@%:@@%:@ ------------------------------- @%:@@%:@
22279
 
_ASBOX
22280
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22281
 
    ;;
22282
 
esac
22283
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22284
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22285
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22286
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22287
 
else
22288
 
  eval "$as_ac_Header=\$ac_header_preproc"
22289
 
fi
22290
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22291
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22292
 
echo "${ECHO_T}$ac_res" >&6; }
22293
 
 
22294
 
fi
22295
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22296
 
  cat >>confdefs.h <<_ACEOF
22297
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22298
 
_ACEOF
22299
 
 
22300
 
else
22301
 
  { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22302
 
echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22303
 
   { (exit 1); exit 1; }; }
22304
 
fi
22305
 
 
22306
 
done
22307
 
 
22308
 
            if test "$enable_gss" = yes; then
22309
 
     
22310
 
 
22311
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22312
 
        if test -n "$ac_tool_prefix"; then
22313
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22314
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22315
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22316
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22317
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22318
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22319
 
else
22320
 
  case $PKG_CONFIG in
22321
 
  [\\/]* | ?:[\\/]*)
22322
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22323
 
  ;;
22324
 
  *)
22325
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22326
 
for as_dir in $PATH
22327
 
do
22328
 
  IFS=$as_save_IFS
22329
 
  test -z "$as_dir" && as_dir=.
22330
 
  for ac_exec_ext in '' $ac_executable_extensions; do
22331
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22332
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22333
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22334
 
    break 2
22335
 
  fi
22336
 
done
22337
 
done
22338
 
IFS=$as_save_IFS
22339
 
 
22340
 
  ;;
22341
 
esac
22342
 
fi
22343
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22344
 
if test -n "$PKG_CONFIG"; then
22345
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22346
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
22347
 
else
22348
 
  { echo "$as_me:$LINENO: result: no" >&5
22349
 
echo "${ECHO_T}no" >&6; }
22350
 
fi
22351
 
 
22352
 
 
22353
 
fi
22354
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
22355
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
22356
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
22357
 
set dummy pkg-config; ac_word=$2
22358
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22359
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22360
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22361
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22362
 
else
22363
 
  case $ac_pt_PKG_CONFIG in
22364
 
  [\\/]* | ?:[\\/]*)
22365
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22366
 
  ;;
22367
 
  *)
22368
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22369
 
for as_dir in $PATH
22370
 
do
22371
 
  IFS=$as_save_IFS
22372
 
  test -z "$as_dir" && as_dir=.
22373
 
  for ac_exec_ext in '' $ac_executable_extensions; do
22374
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22375
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22376
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22377
 
    break 2
22378
 
  fi
22379
 
done
22380
 
done
22381
 
IFS=$as_save_IFS
22382
 
 
22383
 
  ;;
22384
 
esac
22385
 
fi
22386
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22387
 
if test -n "$ac_pt_PKG_CONFIG"; then
22388
 
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22389
 
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22390
 
else
22391
 
  { echo "$as_me:$LINENO: result: no" >&5
22392
 
echo "${ECHO_T}no" >&6; }
22393
 
fi
22394
 
 
22395
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
22396
 
    PKG_CONFIG=""
22397
 
  else
22398
 
    case $cross_compiling:$ac_tool_warned in
22399
 
yes:)
22400
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22401
 
whose name does not start with the host triplet.  If you think this
22402
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
22403
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22404
 
whose name does not start with the host triplet.  If you think this
22405
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22406
 
ac_tool_warned=yes ;;
22407
 
esac
22408
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
22409
 
  fi
22410
 
else
22411
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22412
 
fi
22413
 
 
22414
 
fi
22415
 
if test -n "$PKG_CONFIG"; then
22416
 
        _pkg_min_version=0.9.0
22417
 
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22418
 
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22419
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22420
 
                { echo "$as_me:$LINENO: result: yes" >&5
22421
 
echo "${ECHO_T}yes" >&6; }
22422
 
        else
22423
 
                { echo "$as_me:$LINENO: result: no" >&5
22424
 
echo "${ECHO_T}no" >&6; }
22425
 
                PKG_CONFIG=""
22426
 
        fi
22427
 
                
22428
 
fi
22429
 
 
22430
 
pkg_failed=no
22431
 
{ echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22432
 
echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22433
 
 
22434
 
if test -n "$PKG_CONFIG"; then
22435
 
    if test -n "$RPCSECGSS_CFLAGS"; then
22436
 
        pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22437
 
    else
22438
 
        if test -n "$PKG_CONFIG" && \
22439
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22440
 
  ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22441
 
  ac_status=$?
22442
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443
 
  (exit $ac_status); }; then
22444
 
  pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22445
 
else
22446
 
  pkg_failed=yes
22447
 
fi
22448
 
    fi
22449
 
else
22450
 
        pkg_failed=untried
22451
 
fi
22452
 
if test -n "$PKG_CONFIG"; then
22453
 
    if test -n "$RPCSECGSS_LIBS"; then
22454
 
        pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22455
 
    else
22456
 
        if test -n "$PKG_CONFIG" && \
22457
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22458
 
  ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22459
 
  ac_status=$?
22460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461
 
  (exit $ac_status); }; then
22462
 
  pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22463
 
else
22464
 
  pkg_failed=yes
22465
 
fi
22466
 
    fi
22467
 
else
22468
 
        pkg_failed=untried
22469
 
fi
22470
 
 
22471
 
 
22472
 
 
22473
 
if test $pkg_failed = yes; then
22474
 
        
22475
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22476
 
        _pkg_short_errors_supported=yes
22477
 
else
22478
 
        _pkg_short_errors_supported=no
22479
 
fi
22480
 
        if test $_pkg_short_errors_supported = yes; then
22481
 
                RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22482
 
        else 
22483
 
                RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22484
 
        fi
22485
 
        # Put the nasty error message in config.log where it belongs
22486
 
        echo "$RPCSECGSS_PKG_ERRORS" >&5
22487
 
 
22488
 
        { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
22489
 
       If you have pkgconfig installed, you might try setting environment
22490
 
       variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22491
 
echo "$as_me: error: Unable to locate information required to use librpcsecgss.
22492
 
       If you have pkgconfig installed, you might try setting environment
22493
 
       variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22494
 
   { (exit 1); exit 1; }; }
22495
 
      
22496
 
     
22497
 
elif test $pkg_failed = untried; then
22498
 
        { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
22499
 
       If you have pkgconfig installed, you might try setting environment
22500
 
       variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22501
 
echo "$as_me: error: Unable to locate information required to use librpcsecgss.
22502
 
       If you have pkgconfig installed, you might try setting environment
22503
 
       variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22504
 
   { (exit 1); exit 1; }; }
22505
 
      
22506
 
     
22507
 
else
22508
 
        RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22509
 
        RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22510
 
        { echo "$as_me:$LINENO: result: yes" >&5
22511
 
echo "${ECHO_T}yes" >&6; }
22512
 
        :
22513
 
fi
22514
 
    
22515
 
pkg_failed=no
22516
 
{ echo "$as_me:$LINENO: checking for GSSAPI" >&5
22517
 
echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22518
 
 
22519
 
if test -n "$PKG_CONFIG"; then
22520
 
    if test -n "$GSSAPI_CFLAGS"; then
22521
 
        pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22522
 
    else
22523
 
        if test -n "$PKG_CONFIG" && \
22524
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22525
 
  ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22526
 
  ac_status=$?
22527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528
 
  (exit $ac_status); }; then
22529
 
  pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22530
 
else
22531
 
  pkg_failed=yes
22532
 
fi
22533
 
    fi
22534
 
else
22535
 
        pkg_failed=untried
22536
 
fi
22537
 
if test -n "$PKG_CONFIG"; then
22538
 
    if test -n "$GSSAPI_LIBS"; then
22539
 
        pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22540
 
    else
22541
 
        if test -n "$PKG_CONFIG" && \
22542
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22543
 
  ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22544
 
  ac_status=$?
22545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546
 
  (exit $ac_status); }; then
22547
 
  pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22548
 
else
22549
 
  pkg_failed=yes
22550
 
fi
22551
 
    fi
22552
 
else
22553
 
        pkg_failed=untried
22554
 
fi
22555
 
 
22556
 
 
22557
 
 
22558
 
if test $pkg_failed = yes; then
22559
 
        
22560
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22561
 
        _pkg_short_errors_supported=yes
22562
 
else
22563
 
        _pkg_short_errors_supported=no
22564
 
fi
22565
 
        if test $_pkg_short_errors_supported = yes; then
22566
 
                GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22567
 
        else 
22568
 
                GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22569
 
        fi
22570
 
        # Put the nasty error message in config.log where it belongs
22571
 
        echo "$GSSAPI_PKG_ERRORS" >&5
22572
 
 
22573
 
        { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22574
 
 
22575
 
$GSSAPI_PKG_ERRORS
22576
 
 
22577
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22578
 
installed software in a non-standard prefix.
22579
 
 
22580
 
Alternatively, you may set the environment variables GSSAPI_CFLAGS
22581
 
and GSSAPI_LIBS to avoid the need to call pkg-config.
22582
 
See the pkg-config man page for more details.
22583
 
" >&5
22584
 
echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22585
 
 
22586
 
$GSSAPI_PKG_ERRORS
22587
 
 
22588
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22589
 
installed software in a non-standard prefix.
22590
 
 
22591
 
Alternatively, you may set the environment variables GSSAPI_CFLAGS
22592
 
and GSSAPI_LIBS to avoid the need to call pkg-config.
22593
 
See the pkg-config man page for more details.
22594
 
" >&2;}
22595
 
   { (exit 1); exit 1; }; }
22596
 
elif test $pkg_failed = untried; then
22597
 
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22598
 
is in your PATH or set the PKG_CONFIG environment variable to the full
22599
 
path to pkg-config.
22600
 
 
22601
 
Alternatively, you may set the environment variables GSSAPI_CFLAGS
22602
 
and GSSAPI_LIBS to avoid the need to call pkg-config.
22603
 
See the pkg-config man page for more details.
22604
 
 
22605
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22606
 
See \`config.log' for more details." >&5
22607
 
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22608
 
is in your PATH or set the PKG_CONFIG environment variable to the full
22609
 
path to pkg-config.
22610
 
 
22611
 
Alternatively, you may set the environment variables GSSAPI_CFLAGS
22612
 
and GSSAPI_LIBS to avoid the need to call pkg-config.
22613
 
See the pkg-config man page for more details.
22614
 
 
22615
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22616
 
See \`config.log' for more details." >&2;}
22617
 
   { (exit 1); exit 1; }; }
22618
 
else
22619
 
        GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22620
 
        GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22621
 
        { echo "$as_me:$LINENO: result: yes" >&5
22622
 
echo "${ECHO_T}yes" >&6; }
22623
 
        :
22624
 
fi
22625
 
    fi
22626
 
 
22627
 
fi
22628
 
if test "$knfsd_cv_glibc2" = no; then
22629
 
    { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22630
 
echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22631
 
if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22632
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22633
 
else
22634
 
  ac_check_lib_save_LIBS=$LIBS
22635
 
LIBS="-lbsd  $LIBS"
22636
 
cat >conftest.$ac_ext <<_ACEOF
22637
 
/* confdefs.h.  */
22638
 
_ACEOF
22639
 
cat confdefs.h >>conftest.$ac_ext
22640
 
cat >>conftest.$ac_ext <<_ACEOF
22641
 
/* end confdefs.h.  */
22642
 
 
22643
 
/* Override any GCC internal prototype to avoid an error.
22644
 
   Use char because int might match the return type of a GCC
22645
 
   builtin and then its argument prototype would still apply.  */
22646
 
#ifdef __cplusplus
22647
 
extern "C"
22648
 
#endif
22649
 
char daemon ();
22650
 
int
22651
 
main ()
22652
 
{
22653
 
return daemon ();
22654
 
  ;
22655
 
  return 0;
22656
 
}
22657
 
_ACEOF
22658
 
rm -f conftest.$ac_objext conftest$ac_exeext
22659
 
if { (ac_try="$ac_link"
22660
 
case "(($ac_try" in
22661
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662
 
  *) ac_try_echo=$ac_try;;
22663
 
esac
22664
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22665
 
  (eval "$ac_link") 2>conftest.er1
22666
 
  ac_status=$?
22667
 
  grep -v '^ *+' conftest.er1 >conftest.err
22668
 
  rm -f conftest.er1
22669
 
  cat conftest.err >&5
22670
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671
 
  (exit $ac_status); } &&
22672
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22673
 
  { (case "(($ac_try" in
22674
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675
 
  *) ac_try_echo=$ac_try;;
22676
 
esac
22677
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678
 
  (eval "$ac_try") 2>&5
22679
 
  ac_status=$?
22680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681
 
  (exit $ac_status); }; } &&
22682
 
         { ac_try='test -s conftest$ac_exeext'
22683
 
  { (case "(($ac_try" in
22684
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685
 
  *) ac_try_echo=$ac_try;;
22686
 
esac
22687
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688
 
  (eval "$ac_try") 2>&5
22689
 
  ac_status=$?
22690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691
 
  (exit $ac_status); }; }; then
22692
 
  ac_cv_lib_bsd_daemon=yes
22693
 
else
22694
 
  echo "$as_me: failed program was:" >&5
22695
 
sed 's/^/| /' conftest.$ac_ext >&5
22696
 
 
22697
 
        ac_cv_lib_bsd_daemon=no
22698
 
fi
22699
 
 
22700
 
rm -f conftest.err conftest.$ac_objext \
22701
 
      conftest$ac_exeext conftest.$ac_ext
22702
 
LIBS=$ac_check_lib_save_LIBS
22703
 
fi
22704
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22705
 
echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22706
 
if test $ac_cv_lib_bsd_daemon = yes; then
22707
 
  LIBBSD="-lbsd"
22708
 
fi
22709
 
 
22710
 
fi
22711
 
 
22712
 
 
22713
 
 
22714
 
 
22715
 
 
22716
 
if test "$enable_gss" = yes; then
22717
 
    
22718
 
for ac_header in nfsidmap.h
22719
 
do
22720
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22721
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22722
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22723
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22724
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22725
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22726
 
fi
22727
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22728
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22729
 
echo "${ECHO_T}$ac_res" >&6; }
22730
 
else
22731
 
  # Is the header compilable?
22732
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22733
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22734
 
cat >conftest.$ac_ext <<_ACEOF
22735
 
/* confdefs.h.  */
22736
 
_ACEOF
22737
 
cat confdefs.h >>conftest.$ac_ext
22738
 
cat >>conftest.$ac_ext <<_ACEOF
22739
 
/* end confdefs.h.  */
22740
 
$ac_includes_default
22741
 
@%:@include <$ac_header>
22742
 
_ACEOF
22743
 
rm -f conftest.$ac_objext
22744
 
if { (ac_try="$ac_compile"
22745
 
case "(($ac_try" in
22746
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747
 
  *) ac_try_echo=$ac_try;;
22748
 
esac
22749
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750
 
  (eval "$ac_compile") 2>conftest.er1
22751
 
  ac_status=$?
22752
 
  grep -v '^ *+' conftest.er1 >conftest.err
22753
 
  rm -f conftest.er1
22754
 
  cat conftest.err >&5
22755
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756
 
  (exit $ac_status); } &&
22757
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22758
 
  { (case "(($ac_try" in
22759
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760
 
  *) ac_try_echo=$ac_try;;
22761
 
esac
22762
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763
 
  (eval "$ac_try") 2>&5
22764
 
  ac_status=$?
22765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766
 
  (exit $ac_status); }; } &&
22767
 
         { ac_try='test -s conftest.$ac_objext'
22768
 
  { (case "(($ac_try" in
22769
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770
 
  *) ac_try_echo=$ac_try;;
22771
 
esac
22772
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773
 
  (eval "$ac_try") 2>&5
22774
 
  ac_status=$?
22775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776
 
  (exit $ac_status); }; }; then
22777
 
  ac_header_compiler=yes
22778
 
else
22779
 
  echo "$as_me: failed program was:" >&5
22780
 
sed 's/^/| /' conftest.$ac_ext >&5
22781
 
 
22782
 
        ac_header_compiler=no
22783
 
fi
22784
 
 
22785
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22786
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22787
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22788
 
 
22789
 
# Is the header present?
22790
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22791
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22792
 
cat >conftest.$ac_ext <<_ACEOF
22793
 
/* confdefs.h.  */
22794
 
_ACEOF
22795
 
cat confdefs.h >>conftest.$ac_ext
22796
 
cat >>conftest.$ac_ext <<_ACEOF
22797
 
/* end confdefs.h.  */
22798
 
@%:@include <$ac_header>
22799
 
_ACEOF
22800
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22801
 
case "(($ac_try" in
22802
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803
 
  *) ac_try_echo=$ac_try;;
22804
 
esac
22805
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22807
 
  ac_status=$?
22808
 
  grep -v '^ *+' conftest.er1 >conftest.err
22809
 
  rm -f conftest.er1
22810
 
  cat conftest.err >&5
22811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812
 
  (exit $ac_status); } >/dev/null; then
22813
 
  if test -s conftest.err; then
22814
 
    ac_cpp_err=$ac_c_preproc_warn_flag
22815
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22816
 
  else
22817
 
    ac_cpp_err=
22818
 
  fi
22819
 
else
22820
 
  ac_cpp_err=yes
22821
 
fi
22822
 
if test -z "$ac_cpp_err"; then
22823
 
  ac_header_preproc=yes
22824
 
else
22825
 
  echo "$as_me: failed program was:" >&5
22826
 
sed 's/^/| /' conftest.$ac_ext >&5
22827
 
 
22828
 
  ac_header_preproc=no
22829
 
fi
22830
 
 
22831
 
rm -f conftest.err conftest.$ac_ext
22832
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22833
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22834
 
 
22835
 
# So?  What about this header?
22836
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22837
 
  yes:no: )
22838
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22839
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22840
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22841
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22842
 
    ac_header_preproc=yes
22843
 
    ;;
22844
 
  no:yes:* )
22845
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22846
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22847
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22848
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22849
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22850
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22851
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22852
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22853
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22854
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22855
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22856
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22857
 
    ( cat <<\_ASBOX
22858
 
@%:@@%:@ ------------------------------- @%:@@%:@
22859
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22860
 
@%:@@%:@ ------------------------------- @%:@@%:@
22861
 
_ASBOX
22862
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22863
 
    ;;
22864
 
esac
22865
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22866
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22867
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22868
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22869
 
else
22870
 
  eval "$as_ac_Header=\$ac_header_preproc"
22871
 
fi
22872
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22873
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22874
 
echo "${ECHO_T}$ac_res" >&6; }
22875
 
 
22876
 
fi
22877
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22878
 
  cat >>confdefs.h <<_ACEOF
22879
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22880
 
_ACEOF
22881
 
 
22882
 
else
22883
 
  { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22884
 
echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22885
 
   { (exit 1); exit 1; }; }
22886
 
fi
22887
 
 
22888
 
done
22889
 
 
22890
 
  
22891
 
for ac_header in spkm3.h
22892
 
do
22893
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22894
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22896
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22897
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22899
 
fi
22900
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22901
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22902
 
echo "${ECHO_T}$ac_res" >&6; }
22903
 
else
22904
 
  # Is the header compilable?
22905
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22906
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22907
 
cat >conftest.$ac_ext <<_ACEOF
22908
 
/* confdefs.h.  */
22909
 
_ACEOF
22910
 
cat confdefs.h >>conftest.$ac_ext
22911
 
cat >>conftest.$ac_ext <<_ACEOF
22912
 
/* end confdefs.h.  */
22913
 
$ac_includes_default
22914
 
@%:@include <$ac_header>
22915
 
_ACEOF
22916
 
rm -f conftest.$ac_objext
22917
 
if { (ac_try="$ac_compile"
22918
 
case "(($ac_try" in
22919
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920
 
  *) ac_try_echo=$ac_try;;
22921
 
esac
22922
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923
 
  (eval "$ac_compile") 2>conftest.er1
22924
 
  ac_status=$?
22925
 
  grep -v '^ *+' conftest.er1 >conftest.err
22926
 
  rm -f conftest.er1
22927
 
  cat conftest.err >&5
22928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929
 
  (exit $ac_status); } &&
22930
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22931
 
  { (case "(($ac_try" in
22932
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933
 
  *) ac_try_echo=$ac_try;;
22934
 
esac
22935
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936
 
  (eval "$ac_try") 2>&5
22937
 
  ac_status=$?
22938
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939
 
  (exit $ac_status); }; } &&
22940
 
         { ac_try='test -s conftest.$ac_objext'
22941
 
  { (case "(($ac_try" in
22942
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943
 
  *) ac_try_echo=$ac_try;;
22944
 
esac
22945
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946
 
  (eval "$ac_try") 2>&5
22947
 
  ac_status=$?
22948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949
 
  (exit $ac_status); }; }; then
22950
 
  ac_header_compiler=yes
22951
 
else
22952
 
  echo "$as_me: failed program was:" >&5
22953
 
sed 's/^/| /' conftest.$ac_ext >&5
22954
 
 
22955
 
        ac_header_compiler=no
22956
 
fi
22957
 
 
22958
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22959
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22960
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22961
 
 
22962
 
# Is the header present?
22963
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22964
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22965
 
cat >conftest.$ac_ext <<_ACEOF
22966
 
/* confdefs.h.  */
22967
 
_ACEOF
22968
 
cat confdefs.h >>conftest.$ac_ext
22969
 
cat >>conftest.$ac_ext <<_ACEOF
22970
 
/* end confdefs.h.  */
22971
 
@%:@include <$ac_header>
22972
 
_ACEOF
22973
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22974
 
case "(($ac_try" in
22975
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976
 
  *) ac_try_echo=$ac_try;;
22977
 
esac
22978
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22980
 
  ac_status=$?
22981
 
  grep -v '^ *+' conftest.er1 >conftest.err
22982
 
  rm -f conftest.er1
22983
 
  cat conftest.err >&5
22984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985
 
  (exit $ac_status); } >/dev/null; then
22986
 
  if test -s conftest.err; then
22987
 
    ac_cpp_err=$ac_c_preproc_warn_flag
22988
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22989
 
  else
22990
 
    ac_cpp_err=
22991
 
  fi
22992
 
else
22993
 
  ac_cpp_err=yes
22994
 
fi
22995
 
if test -z "$ac_cpp_err"; then
22996
 
  ac_header_preproc=yes
22997
 
else
22998
 
  echo "$as_me: failed program was:" >&5
22999
 
sed 's/^/| /' conftest.$ac_ext >&5
23000
 
 
23001
 
  ac_header_preproc=no
23002
 
fi
23003
 
 
23004
 
rm -f conftest.err conftest.$ac_ext
23005
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23006
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
23007
 
 
23008
 
# So?  What about this header?
23009
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23010
 
  yes:no: )
23011
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23012
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23013
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23014
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23015
 
    ac_header_preproc=yes
23016
 
    ;;
23017
 
  no:yes:* )
23018
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23019
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23020
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23021
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23022
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23023
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23024
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23025
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23026
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23027
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23028
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23029
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23030
 
    ( cat <<\_ASBOX
23031
 
@%:@@%:@ ------------------------------- @%:@@%:@
23032
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23033
 
@%:@@%:@ ------------------------------- @%:@@%:@
23034
 
_ASBOX
23035
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
23036
 
    ;;
23037
 
esac
23038
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23039
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23040
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23041
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23042
 
else
23043
 
  eval "$as_ac_Header=\$ac_header_preproc"
23044
 
fi
23045
 
ac_res=`eval echo '${'$as_ac_Header'}'`
23046
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
23047
 
echo "${ECHO_T}$ac_res" >&6; }
23048
 
 
23049
 
fi
23050
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23051
 
  cat >>confdefs.h <<_ACEOF
23052
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23053
 
_ACEOF
23054
 
 
23055
 
else
23056
 
  { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23057
 
echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23058
 
fi
23059
 
 
23060
 
done
23061
 
 
23062
 
 
23063
 
    
23064
 
  { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23065
 
echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23066
 
  
23067
 
# Check whether --with-krb5 was given.
23068
 
if test "${with_krb5+set}" = set; then
23069
 
  withval=$with_krb5;  case "$withval" in
23070
 
    yes|no)
23071
 
       krb5_with=""
23072
 
       ;;
23073
 
    *)
23074
 
       krb5_with="$withval"
23075
 
       ;;
23076
 
    esac 
23077
 
  
23078
 
fi
23079
 
 
23080
 
 
23081
 
  for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23082
 
             /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23083
 
            K5CONFIG=""
23084
 
    if test -f $dir/bin/krb5-config; then
23085
 
      K5CONFIG=$dir/bin/krb5-config
23086
 
    elif test -f "/usr/kerberos/bin/krb5-config"; then
23087
 
      K5CONFIG="/usr/kerberos/bin/krb5-config"
23088
 
    elif test -f "/usr/lib/mit/bin/krb5-config"; then
23089
 
      K5CONFIG="/usr/lib/mit/bin/krb5-config"
23090
 
    fi
23091
 
    if test "$K5CONFIG" != ""; then
23092
 
      KRBCFLAGS=`$K5CONFIG --cflags`
23093
 
      KRBLIBS=`$K5CONFIG --libs gssapi`
23094
 
      K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23095
 
      
23096
 
cat >>confdefs.h <<_ACEOF
23097
 
@%:@define KRB5_VERSION $K5VERS
23098
 
_ACEOF
23099
 
 
23100
 
      if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23101
 
                \( -f $dir/lib/libgssapi_krb5.a -o \
23102
 
                   -f $dir/lib/libgssapi_krb5.so \) ; then
23103
 
         
23104
 
cat >>confdefs.h <<\_ACEOF
23105
 
@%:@define HAVE_KRB5 1
23106
 
_ACEOF
23107
 
 
23108
 
         KRBDIR="$dir"
23109
 
                     if test $K5VERS -le 131; then
23110
 
           
23111
 
cat >>confdefs.h <<\_ACEOF
23112
 
@%:@define USE_GSS_KRB5_CCACHE_NAME 1
23113
 
_ACEOF
23114
 
 
23115
 
         fi
23116
 
         gssapi_lib=gssapi_krb5
23117
 
         break
23118
 
                  elif test \( -f $dir/include/heim_err.h -o\
23119
 
                 -f $dir/include/heimdal/heim_err.h \) -a \
23120
 
                -f $dir/lib/libroken.a; then
23121
 
         
23122
 
cat >>confdefs.h <<\_ACEOF
23123
 
@%:@define HAVE_HEIMDAL 1
23124
 
_ACEOF
23125
 
 
23126
 
         KRBDIR="$dir"
23127
 
         gssapi_lib=gssapi
23128
 
        break
23129
 
      fi
23130
 
    fi
23131
 
  done
23132
 
    if test "x$KRBDIR" = "x"; then
23133
 
    if test "x$krb5_with" = "x"; then
23134
 
      { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23135
 
echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23136
 
   { (exit 1); exit 1; }; }
23137
 
    else
23138
 
      { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23139
 
echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23140
 
   { (exit 1); exit 1; }; }
23141
 
    fi
23142
 
  fi
23143
 
  { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23144
 
echo "${ECHO_T}$KRBDIR" >&6; }
23145
 
 
23146
 
    as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23147
 
{ echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23148
 
echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23149
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23151
 
else
23152
 
  ac_check_lib_save_LIBS=$LIBS
23153
 
LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23154
 
cat >conftest.$ac_ext <<_ACEOF
23155
 
/* confdefs.h.  */
23156
 
_ACEOF
23157
 
cat confdefs.h >>conftest.$ac_ext
23158
 
cat >>conftest.$ac_ext <<_ACEOF
23159
 
/* end confdefs.h.  */
23160
 
 
23161
 
/* Override any GCC internal prototype to avoid an error.
23162
 
   Use char because int might match the return type of a GCC
23163
 
   builtin and then its argument prototype would still apply.  */
23164
 
#ifdef __cplusplus
23165
 
extern "C"
23166
 
#endif
23167
 
char gss_krb5_export_lucid_sec_context ();
23168
 
int
23169
 
main ()
23170
 
{
23171
 
return gss_krb5_export_lucid_sec_context ();
23172
 
  ;
23173
 
  return 0;
23174
 
}
23175
 
_ACEOF
23176
 
rm -f conftest.$ac_objext conftest$ac_exeext
23177
 
if { (ac_try="$ac_link"
23178
 
case "(($ac_try" in
23179
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180
 
  *) ac_try_echo=$ac_try;;
23181
 
esac
23182
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183
 
  (eval "$ac_link") 2>conftest.er1
23184
 
  ac_status=$?
23185
 
  grep -v '^ *+' conftest.er1 >conftest.err
23186
 
  rm -f conftest.er1
23187
 
  cat conftest.err >&5
23188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189
 
  (exit $ac_status); } &&
23190
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23191
 
  { (case "(($ac_try" in
23192
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193
 
  *) ac_try_echo=$ac_try;;
23194
 
esac
23195
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196
 
  (eval "$ac_try") 2>&5
23197
 
  ac_status=$?
23198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199
 
  (exit $ac_status); }; } &&
23200
 
         { ac_try='test -s conftest$ac_exeext'
23201
 
  { (case "(($ac_try" in
23202
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203
 
  *) ac_try_echo=$ac_try;;
23204
 
esac
23205
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206
 
  (eval "$ac_try") 2>&5
23207
 
  ac_status=$?
23208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209
 
  (exit $ac_status); }; }; then
23210
 
  eval "$as_ac_Lib=yes"
23211
 
else
23212
 
  echo "$as_me: failed program was:" >&5
23213
 
sed 's/^/| /' conftest.$ac_ext >&5
23214
 
 
23215
 
        eval "$as_ac_Lib=no"
23216
 
fi
23217
 
 
23218
 
rm -f conftest.err conftest.$ac_objext \
23219
 
      conftest$ac_exeext conftest.$ac_ext
23220
 
LIBS=$ac_check_lib_save_LIBS
23221
 
fi
23222
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
23223
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
23224
 
echo "${ECHO_T}$ac_res" >&6; }
23225
 
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23226
 
  
23227
 
cat >>confdefs.h <<\_ACEOF
23228
 
@%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23229
 
_ACEOF
23230
 
 
23231
 
fi
23232
 
 
23233
 
  as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23234
 
{ echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23235
 
echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23236
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23238
 
else
23239
 
  ac_check_lib_save_LIBS=$LIBS
23240
 
LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23241
 
cat >conftest.$ac_ext <<_ACEOF
23242
 
/* confdefs.h.  */
23243
 
_ACEOF
23244
 
cat confdefs.h >>conftest.$ac_ext
23245
 
cat >>conftest.$ac_ext <<_ACEOF
23246
 
/* end confdefs.h.  */
23247
 
 
23248
 
/* Override any GCC internal prototype to avoid an error.
23249
 
   Use char because int might match the return type of a GCC
23250
 
   builtin and then its argument prototype would still apply.  */
23251
 
#ifdef __cplusplus
23252
 
extern "C"
23253
 
#endif
23254
 
char gss_krb5_set_allowable_enctypes ();
23255
 
int
23256
 
main ()
23257
 
{
23258
 
return gss_krb5_set_allowable_enctypes ();
23259
 
  ;
23260
 
  return 0;
23261
 
}
23262
 
_ACEOF
23263
 
rm -f conftest.$ac_objext conftest$ac_exeext
23264
 
if { (ac_try="$ac_link"
23265
 
case "(($ac_try" in
23266
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267
 
  *) ac_try_echo=$ac_try;;
23268
 
esac
23269
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23270
 
  (eval "$ac_link") 2>conftest.er1
23271
 
  ac_status=$?
23272
 
  grep -v '^ *+' conftest.er1 >conftest.err
23273
 
  rm -f conftest.er1
23274
 
  cat conftest.err >&5
23275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276
 
  (exit $ac_status); } &&
23277
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23278
 
  { (case "(($ac_try" in
23279
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280
 
  *) ac_try_echo=$ac_try;;
23281
 
esac
23282
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283
 
  (eval "$ac_try") 2>&5
23284
 
  ac_status=$?
23285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286
 
  (exit $ac_status); }; } &&
23287
 
         { ac_try='test -s conftest$ac_exeext'
23288
 
  { (case "(($ac_try" in
23289
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290
 
  *) ac_try_echo=$ac_try;;
23291
 
esac
23292
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293
 
  (eval "$ac_try") 2>&5
23294
 
  ac_status=$?
23295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296
 
  (exit $ac_status); }; }; then
23297
 
  eval "$as_ac_Lib=yes"
23298
 
else
23299
 
  echo "$as_me: failed program was:" >&5
23300
 
sed 's/^/| /' conftest.$ac_ext >&5
23301
 
 
23302
 
        eval "$as_ac_Lib=no"
23303
 
fi
23304
 
 
23305
 
rm -f conftest.err conftest.$ac_objext \
23306
 
      conftest$ac_exeext conftest.$ac_ext
23307
 
LIBS=$ac_check_lib_save_LIBS
23308
 
fi
23309
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
23310
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
23311
 
echo "${ECHO_T}$ac_res" >&6; }
23312
 
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23313
 
  
23314
 
cat >>confdefs.h <<\_ACEOF
23315
 
@%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23316
 
_ACEOF
23317
 
 
23318
 
fi
23319
 
 
23320
 
  as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23321
 
{ echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23322
 
echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23323
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23324
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23325
 
else
23326
 
  ac_check_lib_save_LIBS=$LIBS
23327
 
LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23328
 
cat >conftest.$ac_ext <<_ACEOF
23329
 
/* confdefs.h.  */
23330
 
_ACEOF
23331
 
cat confdefs.h >>conftest.$ac_ext
23332
 
cat >>conftest.$ac_ext <<_ACEOF
23333
 
/* end confdefs.h.  */
23334
 
 
23335
 
/* Override any GCC internal prototype to avoid an error.
23336
 
   Use char because int might match the return type of a GCC
23337
 
   builtin and then its argument prototype would still apply.  */
23338
 
#ifdef __cplusplus
23339
 
extern "C"
23340
 
#endif
23341
 
char gss_krb5_ccache_name ();
23342
 
int
23343
 
main ()
23344
 
{
23345
 
return gss_krb5_ccache_name ();
23346
 
  ;
23347
 
  return 0;
23348
 
}
23349
 
_ACEOF
23350
 
rm -f conftest.$ac_objext conftest$ac_exeext
23351
 
if { (ac_try="$ac_link"
23352
 
case "(($ac_try" in
23353
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354
 
  *) ac_try_echo=$ac_try;;
23355
 
esac
23356
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357
 
  (eval "$ac_link") 2>conftest.er1
23358
 
  ac_status=$?
23359
 
  grep -v '^ *+' conftest.er1 >conftest.err
23360
 
  rm -f conftest.er1
23361
 
  cat conftest.err >&5
23362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363
 
  (exit $ac_status); } &&
23364
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23365
 
  { (case "(($ac_try" in
23366
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23367
 
  *) ac_try_echo=$ac_try;;
23368
 
esac
23369
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23370
 
  (eval "$ac_try") 2>&5
23371
 
  ac_status=$?
23372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373
 
  (exit $ac_status); }; } &&
23374
 
         { ac_try='test -s conftest$ac_exeext'
23375
 
  { (case "(($ac_try" in
23376
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377
 
  *) ac_try_echo=$ac_try;;
23378
 
esac
23379
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380
 
  (eval "$ac_try") 2>&5
23381
 
  ac_status=$?
23382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383
 
  (exit $ac_status); }; }; then
23384
 
  eval "$as_ac_Lib=yes"
23385
 
else
23386
 
  echo "$as_me: failed program was:" >&5
23387
 
sed 's/^/| /' conftest.$ac_ext >&5
23388
 
 
23389
 
        eval "$as_ac_Lib=no"
23390
 
fi
23391
 
 
23392
 
rm -f conftest.err conftest.$ac_objext \
23393
 
      conftest$ac_exeext conftest.$ac_ext
23394
 
LIBS=$ac_check_lib_save_LIBS
23395
 
fi
23396
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
23397
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
23398
 
echo "${ECHO_T}$ac_res" >&6; }
23399
 
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23400
 
  
23401
 
cat >>confdefs.h <<\_ACEOF
23402
 
@%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23403
 
_ACEOF
23404
 
 
23405
 
fi
23406
 
 
23407
 
 
23408
 
    if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23409
 
    { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23410
 
echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23411
 
  fi
23412
 
 
23413
 
  
23414
 
  
23415
 
  
23416
 
  
23417
 
 
23418
 
 
23419
 
 
23420
 
      { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23421
 
echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23422
 
if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23423
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23424
 
else
23425
 
  ac_check_lib_save_LIBS=$LIBS
23426
 
LIBS="-lrpcsecgss $KRBLIBS $LIBS"
23427
 
cat >conftest.$ac_ext <<_ACEOF
23428
 
/* confdefs.h.  */
23429
 
_ACEOF
23430
 
cat confdefs.h >>conftest.$ac_ext
23431
 
cat >>conftest.$ac_ext <<_ACEOF
23432
 
/* end confdefs.h.  */
23433
 
 
23434
 
/* Override any GCC internal prototype to avoid an error.
23435
 
   Use char because int might match the return type of a GCC
23436
 
   builtin and then its argument prototype would still apply.  */
23437
 
#ifdef __cplusplus
23438
 
extern "C"
23439
 
#endif
23440
 
char authgss_create_default ();
23441
 
int
23442
 
main ()
23443
 
{
23444
 
return authgss_create_default ();
23445
 
  ;
23446
 
  return 0;
23447
 
}
23448
 
_ACEOF
23449
 
rm -f conftest.$ac_objext conftest$ac_exeext
23450
 
if { (ac_try="$ac_link"
23451
 
case "(($ac_try" in
23452
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453
 
  *) ac_try_echo=$ac_try;;
23454
 
esac
23455
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23456
 
  (eval "$ac_link") 2>conftest.er1
23457
 
  ac_status=$?
23458
 
  grep -v '^ *+' conftest.er1 >conftest.err
23459
 
  rm -f conftest.er1
23460
 
  cat conftest.err >&5
23461
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462
 
  (exit $ac_status); } &&
23463
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23464
 
  { (case "(($ac_try" in
23465
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466
 
  *) ac_try_echo=$ac_try;;
23467
 
esac
23468
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469
 
  (eval "$ac_try") 2>&5
23470
 
  ac_status=$?
23471
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472
 
  (exit $ac_status); }; } &&
23473
 
         { ac_try='test -s conftest$ac_exeext'
23474
 
  { (case "(($ac_try" in
23475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476
 
  *) ac_try_echo=$ac_try;;
23477
 
esac
23478
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479
 
  (eval "$ac_try") 2>&5
23480
 
  ac_status=$?
23481
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482
 
  (exit $ac_status); }; }; then
23483
 
  ac_cv_lib_rpcsecgss_authgss_create_default=yes
23484
 
else
23485
 
  echo "$as_me: failed program was:" >&5
23486
 
sed 's/^/| /' conftest.$ac_ext >&5
23487
 
 
23488
 
        ac_cv_lib_rpcsecgss_authgss_create_default=no
23489
 
fi
23490
 
 
23491
 
rm -f conftest.err conftest.$ac_objext \
23492
 
      conftest$ac_exeext conftest.$ac_ext
23493
 
LIBS=$ac_check_lib_save_LIBS
23494
 
fi
23495
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23496
 
echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23497
 
if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23498
 
  librpcsecgss=1
23499
 
else
23500
 
  { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23501
 
echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23502
 
   { (exit 1); exit 1; }; }
23503
 
fi
23504
 
 
23505
 
  { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23506
 
echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23507
 
if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23508
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23509
 
else
23510
 
  ac_check_lib_save_LIBS=$LIBS
23511
 
LIBS="-lrpcsecgss $KRBLIBS $LIBS"
23512
 
cat >conftest.$ac_ext <<_ACEOF
23513
 
/* confdefs.h.  */
23514
 
_ACEOF
23515
 
cat confdefs.h >>conftest.$ac_ext
23516
 
cat >>conftest.$ac_ext <<_ACEOF
23517
 
/* end confdefs.h.  */
23518
 
 
23519
 
/* Override any GCC internal prototype to avoid an error.
23520
 
   Use char because int might match the return type of a GCC
23521
 
   builtin and then its argument prototype would still apply.  */
23522
 
#ifdef __cplusplus
23523
 
extern "C"
23524
 
#endif
23525
 
char authgss_set_debug_level ();
23526
 
int
23527
 
main ()
23528
 
{
23529
 
return authgss_set_debug_level ();
23530
 
  ;
23531
 
  return 0;
23532
 
}
23533
 
_ACEOF
23534
 
rm -f conftest.$ac_objext conftest$ac_exeext
23535
 
if { (ac_try="$ac_link"
23536
 
case "(($ac_try" in
23537
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538
 
  *) ac_try_echo=$ac_try;;
23539
 
esac
23540
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541
 
  (eval "$ac_link") 2>conftest.er1
23542
 
  ac_status=$?
23543
 
  grep -v '^ *+' conftest.er1 >conftest.err
23544
 
  rm -f conftest.er1
23545
 
  cat conftest.err >&5
23546
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547
 
  (exit $ac_status); } &&
23548
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23549
 
  { (case "(($ac_try" in
23550
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551
 
  *) ac_try_echo=$ac_try;;
23552
 
esac
23553
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554
 
  (eval "$ac_try") 2>&5
23555
 
  ac_status=$?
23556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557
 
  (exit $ac_status); }; } &&
23558
 
         { ac_try='test -s conftest$ac_exeext'
23559
 
  { (case "(($ac_try" in
23560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561
 
  *) ac_try_echo=$ac_try;;
23562
 
esac
23563
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564
 
  (eval "$ac_try") 2>&5
23565
 
  ac_status=$?
23566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567
 
  (exit $ac_status); }; }; then
23568
 
  ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23569
 
else
23570
 
  echo "$as_me: failed program was:" >&5
23571
 
sed 's/^/| /' conftest.$ac_ext >&5
23572
 
 
23573
 
        ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23574
 
fi
23575
 
 
23576
 
rm -f conftest.err conftest.$ac_objext \
23577
 
      conftest$ac_exeext conftest.$ac_ext
23578
 
LIBS=$ac_check_lib_save_LIBS
23579
 
fi
23580
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23581
 
echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23582
 
if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23583
 
  
23584
 
cat >>confdefs.h <<\_ACEOF
23585
 
@%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23586
 
_ACEOF
23587
 
 
23588
 
fi
23589
 
 
23590
 
 
23591
 
fi
23592
 
 
23593
 
 
23594
 
 
23595
 
 
23596
 
 
23597
 
 
23598
 
 
23599
 
 
23600
 
 
23601
 
 
23602
 
 
23603
 
 
23604
 
 
23605
 
 
23606
 
 
23607
 
 
23608
 
 
23609
 
 
23610
 
 
23611
 
 
23612
 
 
23613
 
 
23614
 
 
23615
 
 
23616
 
for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23617
 
                 malloc.h memory.h netdb.h netinet/in.h paths.h \
23618
 
                 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23619
 
                 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23620
 
                 syslog.h unistd.h com_err.h et/com_err.h \
23621
 
                 ifaddrs.h
23622
 
do
23623
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23624
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23625
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23626
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23627
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23628
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23629
 
fi
23630
 
ac_res=`eval echo '${'$as_ac_Header'}'`
23631
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
23632
 
echo "${ECHO_T}$ac_res" >&6; }
23633
 
else
23634
 
  # Is the header compilable?
23635
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23636
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23637
 
cat >conftest.$ac_ext <<_ACEOF
23638
 
/* confdefs.h.  */
23639
 
_ACEOF
23640
 
cat confdefs.h >>conftest.$ac_ext
23641
 
cat >>conftest.$ac_ext <<_ACEOF
23642
 
/* end confdefs.h.  */
23643
 
$ac_includes_default
23644
 
@%:@include <$ac_header>
23645
 
_ACEOF
23646
 
rm -f conftest.$ac_objext
23647
 
if { (ac_try="$ac_compile"
23648
 
case "(($ac_try" in
23649
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650
 
  *) ac_try_echo=$ac_try;;
23651
 
esac
23652
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653
 
  (eval "$ac_compile") 2>conftest.er1
23654
 
  ac_status=$?
23655
 
  grep -v '^ *+' conftest.er1 >conftest.err
23656
 
  rm -f conftest.er1
23657
 
  cat conftest.err >&5
23658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659
 
  (exit $ac_status); } &&
23660
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23661
 
  { (case "(($ac_try" in
23662
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663
 
  *) ac_try_echo=$ac_try;;
23664
 
esac
23665
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666
 
  (eval "$ac_try") 2>&5
23667
 
  ac_status=$?
23668
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669
 
  (exit $ac_status); }; } &&
23670
 
         { ac_try='test -s conftest.$ac_objext'
23671
 
  { (case "(($ac_try" in
23672
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673
 
  *) ac_try_echo=$ac_try;;
23674
 
esac
23675
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676
 
  (eval "$ac_try") 2>&5
23677
 
  ac_status=$?
23678
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679
 
  (exit $ac_status); }; }; then
23680
 
  ac_header_compiler=yes
23681
 
else
23682
 
  echo "$as_me: failed program was:" >&5
23683
 
sed 's/^/| /' conftest.$ac_ext >&5
23684
 
 
23685
 
        ac_header_compiler=no
23686
 
fi
23687
 
 
23688
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23689
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23690
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
23691
 
 
23692
 
# Is the header present?
23693
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23694
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23695
 
cat >conftest.$ac_ext <<_ACEOF
23696
 
/* confdefs.h.  */
23697
 
_ACEOF
23698
 
cat confdefs.h >>conftest.$ac_ext
23699
 
cat >>conftest.$ac_ext <<_ACEOF
23700
 
/* end confdefs.h.  */
23701
 
@%:@include <$ac_header>
23702
 
_ACEOF
23703
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
23704
 
case "(($ac_try" in
23705
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706
 
  *) ac_try_echo=$ac_try;;
23707
 
esac
23708
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23710
 
  ac_status=$?
23711
 
  grep -v '^ *+' conftest.er1 >conftest.err
23712
 
  rm -f conftest.er1
23713
 
  cat conftest.err >&5
23714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715
 
  (exit $ac_status); } >/dev/null; then
23716
 
  if test -s conftest.err; then
23717
 
    ac_cpp_err=$ac_c_preproc_warn_flag
23718
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23719
 
  else
23720
 
    ac_cpp_err=
23721
 
  fi
23722
 
else
23723
 
  ac_cpp_err=yes
23724
 
fi
23725
 
if test -z "$ac_cpp_err"; then
23726
 
  ac_header_preproc=yes
23727
 
else
23728
 
  echo "$as_me: failed program was:" >&5
23729
 
sed 's/^/| /' conftest.$ac_ext >&5
23730
 
 
23731
 
  ac_header_preproc=no
23732
 
fi
23733
 
 
23734
 
rm -f conftest.err conftest.$ac_ext
23735
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23736
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
23737
 
 
23738
 
# So?  What about this header?
23739
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23740
 
  yes:no: )
23741
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23742
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23743
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23744
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23745
 
    ac_header_preproc=yes
23746
 
    ;;
23747
 
  no:yes:* )
23748
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23749
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23750
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23751
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23752
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23753
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23754
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23755
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23756
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23757
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23758
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23759
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23760
 
    ( cat <<\_ASBOX
23761
 
@%:@@%:@ ------------------------------- @%:@@%:@
23762
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23763
 
@%:@@%:@ ------------------------------- @%:@@%:@
23764
 
_ASBOX
23765
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
23766
 
    ;;
23767
 
esac
23768
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23769
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23770
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23771
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23772
 
else
23773
 
  eval "$as_ac_Header=\$ac_header_preproc"
23774
 
fi
23775
 
ac_res=`eval echo '${'$as_ac_Header'}'`
23776
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
23777
 
echo "${ECHO_T}$ac_res" >&6; }
23778
 
 
23779
 
fi
23780
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23781
 
  cat >>confdefs.h <<_ACEOF
23782
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23783
 
_ACEOF
23784
 
 
23785
 
fi
23786
 
 
23787
 
done
23788
 
 
23789
 
 
23790
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23791
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23792
 
if test "${ac_cv_c_const+set}" = set; then
23793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23794
 
else
23795
 
  cat >conftest.$ac_ext <<_ACEOF
23796
 
/* confdefs.h.  */
23797
 
_ACEOF
23798
 
cat confdefs.h >>conftest.$ac_ext
23799
 
cat >>conftest.$ac_ext <<_ACEOF
23800
 
/* end confdefs.h.  */
23801
 
 
23802
 
int
23803
 
main ()
23804
 
{
23805
 
/* FIXME: Include the comments suggested by Paul. */
23806
 
#ifndef __cplusplus
23807
 
  /* Ultrix mips cc rejects this.  */
23808
 
  typedef int charset[2];
23809
 
  const charset x;
23810
 
  /* SunOS 4.1.1 cc rejects this.  */
23811
 
  char const *const *ccp;
23812
 
  char **p;
23813
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
23814
 
  struct point {int x, y;};
23815
 
  static struct point const zero = {0,0};
23816
 
  /* AIX XL C 1.02.0.0 rejects this.
23817
 
     It does not let you subtract one const X* pointer from another in
23818
 
     an arm of an if-expression whose if-part is not a constant
23819
 
     expression */
23820
 
  const char *g = "string";
23821
 
  ccp = &g + (g ? g-g : 0);
23822
 
  /* HPUX 7.0 cc rejects these. */
23823
 
  ++ccp;
23824
 
  p = (char**) ccp;
23825
 
  ccp = (char const *const *) p;
23826
 
  { /* SCO 3.2v4 cc rejects this.  */
23827
 
    char *t;
23828
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
23829
 
 
23830
 
    *t++ = 0;
23831
 
    if (s) return 0;
23832
 
  }
23833
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23834
 
    int x[] = {25, 17};
23835
 
    const int *foo = &x[0];
23836
 
    ++foo;
23837
 
  }
23838
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23839
 
    typedef const int *iptr;
23840
 
    iptr p = 0;
23841
 
    ++p;
23842
 
  }
23843
 
  { /* AIX XL C 1.02.0.0 rejects this saying
23844
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23845
 
    struct s { int j; const int *ap[3]; };
23846
 
    struct s *b; b->j = 5;
23847
 
  }
23848
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23849
 
    const int foo = 10;
23850
 
    if (!foo) return 0;
23851
 
  }
23852
 
  return !x[0] && !zero.x;
23853
 
#endif
23854
 
 
23855
 
  ;
23856
 
  return 0;
23857
 
}
23858
 
_ACEOF
23859
 
rm -f conftest.$ac_objext
23860
 
if { (ac_try="$ac_compile"
23861
 
case "(($ac_try" in
23862
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23863
 
  *) ac_try_echo=$ac_try;;
23864
 
esac
23865
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23866
 
  (eval "$ac_compile") 2>conftest.er1
23867
 
  ac_status=$?
23868
 
  grep -v '^ *+' conftest.er1 >conftest.err
23869
 
  rm -f conftest.er1
23870
 
  cat conftest.err >&5
23871
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872
 
  (exit $ac_status); } &&
23873
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23874
 
  { (case "(($ac_try" in
23875
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23876
 
  *) ac_try_echo=$ac_try;;
23877
 
esac
23878
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23879
 
  (eval "$ac_try") 2>&5
23880
 
  ac_status=$?
23881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882
 
  (exit $ac_status); }; } &&
23883
 
         { ac_try='test -s conftest.$ac_objext'
23884
 
  { (case "(($ac_try" in
23885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886
 
  *) ac_try_echo=$ac_try;;
23887
 
esac
23888
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889
 
  (eval "$ac_try") 2>&5
23890
 
  ac_status=$?
23891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892
 
  (exit $ac_status); }; }; then
23893
 
  ac_cv_c_const=yes
23894
 
else
23895
 
  echo "$as_me: failed program was:" >&5
23896
 
sed 's/^/| /' conftest.$ac_ext >&5
23897
 
 
23898
 
        ac_cv_c_const=no
23899
 
fi
23900
 
 
23901
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23902
 
fi
23903
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23904
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
23905
 
if test $ac_cv_c_const = no; then
23906
 
  
23907
 
cat >>confdefs.h <<\_ACEOF
23908
 
@%:@define const 
23909
 
_ACEOF
23910
 
 
23911
 
fi
23912
 
 
23913
 
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23914
 
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23915
 
if test "${ac_cv_type_uid_t+set}" = set; then
23916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23917
 
else
23918
 
  cat >conftest.$ac_ext <<_ACEOF
23919
 
/* confdefs.h.  */
23920
 
_ACEOF
23921
 
cat confdefs.h >>conftest.$ac_ext
23922
 
cat >>conftest.$ac_ext <<_ACEOF
23923
 
/* end confdefs.h.  */
23924
 
#include <sys/types.h>
23925
 
 
23926
 
_ACEOF
23927
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23928
 
  $EGREP "uid_t" >/dev/null 2>&1; then
23929
 
  ac_cv_type_uid_t=yes
23930
 
else
23931
 
  ac_cv_type_uid_t=no
23932
 
fi
23933
 
rm -f conftest*
23934
 
 
23935
 
fi
23936
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23937
 
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23938
 
if test $ac_cv_type_uid_t = no; then
23939
 
  
23940
 
cat >>confdefs.h <<\_ACEOF
23941
 
@%:@define uid_t int
23942
 
_ACEOF
23943
 
 
23944
 
  
23945
 
cat >>confdefs.h <<\_ACEOF
23946
 
@%:@define gid_t int
23947
 
_ACEOF
23948
 
 
23949
 
fi
23950
 
 
23951
 
{ echo "$as_me:$LINENO: checking for inline" >&5
23952
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23953
 
if test "${ac_cv_c_inline+set}" = set; then
23954
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23955
 
else
23956
 
  ac_cv_c_inline=no
23957
 
for ac_kw in inline __inline__ __inline; do
23958
 
  cat >conftest.$ac_ext <<_ACEOF
23959
 
/* confdefs.h.  */
23960
 
_ACEOF
23961
 
cat confdefs.h >>conftest.$ac_ext
23962
 
cat >>conftest.$ac_ext <<_ACEOF
23963
 
/* end confdefs.h.  */
23964
 
#ifndef __cplusplus
23965
 
typedef int foo_t;
23966
 
static $ac_kw foo_t static_foo () {return 0; }
23967
 
$ac_kw foo_t foo () {return 0; }
23968
 
#endif
23969
 
 
23970
 
_ACEOF
23971
 
rm -f conftest.$ac_objext
23972
 
if { (ac_try="$ac_compile"
23973
 
case "(($ac_try" in
23974
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975
 
  *) ac_try_echo=$ac_try;;
23976
 
esac
23977
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978
 
  (eval "$ac_compile") 2>conftest.er1
23979
 
  ac_status=$?
23980
 
  grep -v '^ *+' conftest.er1 >conftest.err
23981
 
  rm -f conftest.er1
23982
 
  cat conftest.err >&5
23983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984
 
  (exit $ac_status); } &&
23985
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23986
 
  { (case "(($ac_try" in
23987
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988
 
  *) ac_try_echo=$ac_try;;
23989
 
esac
23990
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991
 
  (eval "$ac_try") 2>&5
23992
 
  ac_status=$?
23993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994
 
  (exit $ac_status); }; } &&
23995
 
         { ac_try='test -s conftest.$ac_objext'
23996
 
  { (case "(($ac_try" in
23997
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998
 
  *) ac_try_echo=$ac_try;;
23999
 
esac
24000
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001
 
  (eval "$ac_try") 2>&5
24002
 
  ac_status=$?
24003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004
 
  (exit $ac_status); }; }; then
24005
 
  ac_cv_c_inline=$ac_kw
24006
 
else
24007
 
  echo "$as_me: failed program was:" >&5
24008
 
sed 's/^/| /' conftest.$ac_ext >&5
24009
 
 
24010
 
        
24011
 
fi
24012
 
 
24013
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24014
 
  test "$ac_cv_c_inline" != no && break
24015
 
done
24016
 
 
24017
 
fi
24018
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24019
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24020
 
 
24021
 
 
24022
 
case $ac_cv_c_inline in
24023
 
  inline | yes) ;;
24024
 
  *)
24025
 
    case $ac_cv_c_inline in
24026
 
      no) ac_val=;;
24027
 
      *) ac_val=$ac_cv_c_inline;;
24028
 
    esac
24029
 
    cat >>confdefs.h <<_ACEOF
24030
 
#ifndef __cplusplus
24031
 
#define inline $ac_val
24032
 
#endif
24033
 
_ACEOF
24034
 
    ;;
24035
 
esac
24036
 
 
24037
 
{ echo "$as_me:$LINENO: checking for off_t" >&5
24038
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24039
 
if test "${ac_cv_type_off_t+set}" = set; then
24040
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24041
 
else
24042
 
  cat >conftest.$ac_ext <<_ACEOF
24043
 
/* confdefs.h.  */
24044
 
_ACEOF
24045
 
cat confdefs.h >>conftest.$ac_ext
24046
 
cat >>conftest.$ac_ext <<_ACEOF
24047
 
/* end confdefs.h.  */
24048
 
$ac_includes_default
24049
 
typedef off_t ac__type_new_;
24050
 
int
24051
 
main ()
24052
 
{
24053
 
if ((ac__type_new_ *) 0)
24054
 
  return 0;
24055
 
if (sizeof (ac__type_new_))
24056
 
  return 0;
24057
 
  ;
24058
 
  return 0;
24059
 
}
24060
 
_ACEOF
24061
 
rm -f conftest.$ac_objext
24062
 
if { (ac_try="$ac_compile"
24063
 
case "(($ac_try" in
24064
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065
 
  *) ac_try_echo=$ac_try;;
24066
 
esac
24067
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068
 
  (eval "$ac_compile") 2>conftest.er1
24069
 
  ac_status=$?
24070
 
  grep -v '^ *+' conftest.er1 >conftest.err
24071
 
  rm -f conftest.er1
24072
 
  cat conftest.err >&5
24073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074
 
  (exit $ac_status); } &&
24075
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24076
 
  { (case "(($ac_try" in
24077
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078
 
  *) ac_try_echo=$ac_try;;
24079
 
esac
24080
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081
 
  (eval "$ac_try") 2>&5
24082
 
  ac_status=$?
24083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084
 
  (exit $ac_status); }; } &&
24085
 
         { ac_try='test -s conftest.$ac_objext'
24086
 
  { (case "(($ac_try" in
24087
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088
 
  *) ac_try_echo=$ac_try;;
24089
 
esac
24090
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091
 
  (eval "$ac_try") 2>&5
24092
 
  ac_status=$?
24093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094
 
  (exit $ac_status); }; }; then
24095
 
  ac_cv_type_off_t=yes
24096
 
else
24097
 
  echo "$as_me: failed program was:" >&5
24098
 
sed 's/^/| /' conftest.$ac_ext >&5
24099
 
 
24100
 
        ac_cv_type_off_t=no
24101
 
fi
24102
 
 
24103
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24104
 
fi
24105
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24106
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24107
 
if test $ac_cv_type_off_t = yes; then
24108
 
  :
24109
 
else
24110
 
  
24111
 
cat >>confdefs.h <<_ACEOF
24112
 
@%:@define off_t long int
24113
 
_ACEOF
24114
 
 
24115
 
fi
24116
 
 
24117
 
{ echo "$as_me:$LINENO: checking for pid_t" >&5
24118
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24119
 
if test "${ac_cv_type_pid_t+set}" = set; then
24120
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24121
 
else
24122
 
  cat >conftest.$ac_ext <<_ACEOF
24123
 
/* confdefs.h.  */
24124
 
_ACEOF
24125
 
cat confdefs.h >>conftest.$ac_ext
24126
 
cat >>conftest.$ac_ext <<_ACEOF
24127
 
/* end confdefs.h.  */
24128
 
$ac_includes_default
24129
 
typedef pid_t ac__type_new_;
24130
 
int
24131
 
main ()
24132
 
{
24133
 
if ((ac__type_new_ *) 0)
24134
 
  return 0;
24135
 
if (sizeof (ac__type_new_))
24136
 
  return 0;
24137
 
  ;
24138
 
  return 0;
24139
 
}
24140
 
_ACEOF
24141
 
rm -f conftest.$ac_objext
24142
 
if { (ac_try="$ac_compile"
24143
 
case "(($ac_try" in
24144
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24145
 
  *) ac_try_echo=$ac_try;;
24146
 
esac
24147
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148
 
  (eval "$ac_compile") 2>conftest.er1
24149
 
  ac_status=$?
24150
 
  grep -v '^ *+' conftest.er1 >conftest.err
24151
 
  rm -f conftest.er1
24152
 
  cat conftest.err >&5
24153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154
 
  (exit $ac_status); } &&
24155
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24156
 
  { (case "(($ac_try" in
24157
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158
 
  *) ac_try_echo=$ac_try;;
24159
 
esac
24160
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161
 
  (eval "$ac_try") 2>&5
24162
 
  ac_status=$?
24163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164
 
  (exit $ac_status); }; } &&
24165
 
         { ac_try='test -s conftest.$ac_objext'
24166
 
  { (case "(($ac_try" in
24167
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168
 
  *) ac_try_echo=$ac_try;;
24169
 
esac
24170
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171
 
  (eval "$ac_try") 2>&5
24172
 
  ac_status=$?
24173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174
 
  (exit $ac_status); }; }; then
24175
 
  ac_cv_type_pid_t=yes
24176
 
else
24177
 
  echo "$as_me: failed program was:" >&5
24178
 
sed 's/^/| /' conftest.$ac_ext >&5
24179
 
 
24180
 
        ac_cv_type_pid_t=no
24181
 
fi
24182
 
 
24183
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24184
 
fi
24185
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24186
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24187
 
if test $ac_cv_type_pid_t = yes; then
24188
 
  :
24189
 
else
24190
 
  
24191
 
cat >>confdefs.h <<_ACEOF
24192
 
@%:@define pid_t int
24193
 
_ACEOF
24194
 
 
24195
 
fi
24196
 
 
24197
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
24198
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24199
 
if test "${ac_cv_type_size_t+set}" = set; then
24200
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24201
 
else
24202
 
  cat >conftest.$ac_ext <<_ACEOF
24203
 
/* confdefs.h.  */
24204
 
_ACEOF
24205
 
cat confdefs.h >>conftest.$ac_ext
24206
 
cat >>conftest.$ac_ext <<_ACEOF
24207
 
/* end confdefs.h.  */
24208
 
$ac_includes_default
24209
 
typedef size_t ac__type_new_;
24210
 
int
24211
 
main ()
24212
 
{
24213
 
if ((ac__type_new_ *) 0)
24214
 
  return 0;
24215
 
if (sizeof (ac__type_new_))
24216
 
  return 0;
24217
 
  ;
24218
 
  return 0;
24219
 
}
24220
 
_ACEOF
24221
 
rm -f conftest.$ac_objext
24222
 
if { (ac_try="$ac_compile"
24223
 
case "(($ac_try" in
24224
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225
 
  *) ac_try_echo=$ac_try;;
24226
 
esac
24227
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24228
 
  (eval "$ac_compile") 2>conftest.er1
24229
 
  ac_status=$?
24230
 
  grep -v '^ *+' conftest.er1 >conftest.err
24231
 
  rm -f conftest.er1
24232
 
  cat conftest.err >&5
24233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234
 
  (exit $ac_status); } &&
24235
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24236
 
  { (case "(($ac_try" in
24237
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24238
 
  *) ac_try_echo=$ac_try;;
24239
 
esac
24240
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24241
 
  (eval "$ac_try") 2>&5
24242
 
  ac_status=$?
24243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244
 
  (exit $ac_status); }; } &&
24245
 
         { ac_try='test -s conftest.$ac_objext'
24246
 
  { (case "(($ac_try" in
24247
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248
 
  *) ac_try_echo=$ac_try;;
24249
 
esac
24250
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24251
 
  (eval "$ac_try") 2>&5
24252
 
  ac_status=$?
24253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254
 
  (exit $ac_status); }; }; then
24255
 
  ac_cv_type_size_t=yes
24256
 
else
24257
 
  echo "$as_me: failed program was:" >&5
24258
 
sed 's/^/| /' conftest.$ac_ext >&5
24259
 
 
24260
 
        ac_cv_type_size_t=no
24261
 
fi
24262
 
 
24263
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24264
 
fi
24265
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24266
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24267
 
if test $ac_cv_type_size_t = yes; then
24268
 
  :
24269
 
else
24270
 
  
24271
 
cat >>confdefs.h <<_ACEOF
24272
 
@%:@define size_t unsigned int
24273
 
_ACEOF
24274
 
 
24275
 
fi
24276
 
 
24277
 
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24278
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24279
 
if test "${ac_cv_header_time+set}" = set; then
24280
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24281
 
else
24282
 
  cat >conftest.$ac_ext <<_ACEOF
24283
 
/* confdefs.h.  */
24284
 
_ACEOF
24285
 
cat confdefs.h >>conftest.$ac_ext
24286
 
cat >>conftest.$ac_ext <<_ACEOF
24287
 
/* end confdefs.h.  */
24288
 
#include <sys/types.h>
24289
 
#include <sys/time.h>
24290
 
#include <time.h>
24291
 
 
24292
 
int
24293
 
main ()
24294
 
{
24295
 
if ((struct tm *) 0)
24296
 
return 0;
24297
 
  ;
24298
 
  return 0;
24299
 
}
24300
 
_ACEOF
24301
 
rm -f conftest.$ac_objext
24302
 
if { (ac_try="$ac_compile"
24303
 
case "(($ac_try" in
24304
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305
 
  *) ac_try_echo=$ac_try;;
24306
 
esac
24307
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24308
 
  (eval "$ac_compile") 2>conftest.er1
24309
 
  ac_status=$?
24310
 
  grep -v '^ *+' conftest.er1 >conftest.err
24311
 
  rm -f conftest.er1
24312
 
  cat conftest.err >&5
24313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314
 
  (exit $ac_status); } &&
24315
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24316
 
  { (case "(($ac_try" in
24317
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318
 
  *) ac_try_echo=$ac_try;;
24319
 
esac
24320
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321
 
  (eval "$ac_try") 2>&5
24322
 
  ac_status=$?
24323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324
 
  (exit $ac_status); }; } &&
24325
 
         { ac_try='test -s conftest.$ac_objext'
24326
 
  { (case "(($ac_try" in
24327
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328
 
  *) ac_try_echo=$ac_try;;
24329
 
esac
24330
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331
 
  (eval "$ac_try") 2>&5
24332
 
  ac_status=$?
24333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334
 
  (exit $ac_status); }; }; then
24335
 
  ac_cv_header_time=yes
24336
 
else
24337
 
  echo "$as_me: failed program was:" >&5
24338
 
sed 's/^/| /' conftest.$ac_ext >&5
24339
 
 
24340
 
        ac_cv_header_time=no
24341
 
fi
24342
 
 
24343
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24344
 
fi
24345
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24346
 
echo "${ECHO_T}$ac_cv_header_time" >&6; }
24347
 
if test $ac_cv_header_time = yes; then
24348
 
  
24349
 
cat >>confdefs.h <<\_ACEOF
24350
 
@%:@define TIME_WITH_SYS_TIME 1
24351
 
_ACEOF
24352
 
 
24353
 
fi
24354
 
 
24355
 
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24356
 
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24357
 
if test "${ac_cv_struct_tm+set}" = set; then
24358
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24359
 
else
24360
 
  cat >conftest.$ac_ext <<_ACEOF
24361
 
/* confdefs.h.  */
24362
 
_ACEOF
24363
 
cat confdefs.h >>conftest.$ac_ext
24364
 
cat >>conftest.$ac_ext <<_ACEOF
24365
 
/* end confdefs.h.  */
24366
 
#include <sys/types.h>
24367
 
#include <time.h>
24368
 
 
24369
 
int
24370
 
main ()
24371
 
{
24372
 
struct tm *tp; tp->tm_sec;
24373
 
  ;
24374
 
  return 0;
24375
 
}
24376
 
_ACEOF
24377
 
rm -f conftest.$ac_objext
24378
 
if { (ac_try="$ac_compile"
24379
 
case "(($ac_try" in
24380
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381
 
  *) ac_try_echo=$ac_try;;
24382
 
esac
24383
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384
 
  (eval "$ac_compile") 2>conftest.er1
24385
 
  ac_status=$?
24386
 
  grep -v '^ *+' conftest.er1 >conftest.err
24387
 
  rm -f conftest.er1
24388
 
  cat conftest.err >&5
24389
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390
 
  (exit $ac_status); } &&
24391
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24392
 
  { (case "(($ac_try" in
24393
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394
 
  *) ac_try_echo=$ac_try;;
24395
 
esac
24396
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397
 
  (eval "$ac_try") 2>&5
24398
 
  ac_status=$?
24399
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400
 
  (exit $ac_status); }; } &&
24401
 
         { ac_try='test -s conftest.$ac_objext'
24402
 
  { (case "(($ac_try" in
24403
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404
 
  *) ac_try_echo=$ac_try;;
24405
 
esac
24406
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407
 
  (eval "$ac_try") 2>&5
24408
 
  ac_status=$?
24409
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410
 
  (exit $ac_status); }; }; then
24411
 
  ac_cv_struct_tm=time.h
24412
 
else
24413
 
  echo "$as_me: failed program was:" >&5
24414
 
sed 's/^/| /' conftest.$ac_ext >&5
24415
 
 
24416
 
        ac_cv_struct_tm=sys/time.h
24417
 
fi
24418
 
 
24419
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24420
 
fi
24421
 
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24422
 
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24423
 
if test $ac_cv_struct_tm = sys/time.h; then
24424
 
  
24425
 
cat >>confdefs.h <<\_ACEOF
24426
 
@%:@define TM_IN_SYS_TIME 1
24427
 
_ACEOF
24428
 
 
24429
 
fi
24430
 
 
24431
 
 
24432
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24433
 
# for constant arguments.  Useless!
24434
 
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
24435
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24436
 
if test "${ac_cv_working_alloca_h+set}" = set; then
24437
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24438
 
else
24439
 
  cat >conftest.$ac_ext <<_ACEOF
24440
 
/* confdefs.h.  */
24441
 
_ACEOF
24442
 
cat confdefs.h >>conftest.$ac_ext
24443
 
cat >>conftest.$ac_ext <<_ACEOF
24444
 
/* end confdefs.h.  */
24445
 
@%:@include <alloca.h>
24446
 
int
24447
 
main ()
24448
 
{
24449
 
char *p = (char *) alloca (2 * sizeof (int));
24450
 
  ;
24451
 
  return 0;
24452
 
}
24453
 
_ACEOF
24454
 
rm -f conftest.$ac_objext conftest$ac_exeext
24455
 
if { (ac_try="$ac_link"
24456
 
case "(($ac_try" in
24457
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458
 
  *) ac_try_echo=$ac_try;;
24459
 
esac
24460
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461
 
  (eval "$ac_link") 2>conftest.er1
24462
 
  ac_status=$?
24463
 
  grep -v '^ *+' conftest.er1 >conftest.err
24464
 
  rm -f conftest.er1
24465
 
  cat conftest.err >&5
24466
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467
 
  (exit $ac_status); } &&
24468
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24469
 
  { (case "(($ac_try" in
24470
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471
 
  *) ac_try_echo=$ac_try;;
24472
 
esac
24473
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474
 
  (eval "$ac_try") 2>&5
24475
 
  ac_status=$?
24476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477
 
  (exit $ac_status); }; } &&
24478
 
         { ac_try='test -s conftest$ac_exeext'
24479
 
  { (case "(($ac_try" in
24480
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481
 
  *) ac_try_echo=$ac_try;;
24482
 
esac
24483
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24484
 
  (eval "$ac_try") 2>&5
24485
 
  ac_status=$?
24486
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487
 
  (exit $ac_status); }; }; then
24488
 
  ac_cv_working_alloca_h=yes
24489
 
else
24490
 
  echo "$as_me: failed program was:" >&5
24491
 
sed 's/^/| /' conftest.$ac_ext >&5
24492
 
 
24493
 
        ac_cv_working_alloca_h=no
24494
 
fi
24495
 
 
24496
 
rm -f conftest.err conftest.$ac_objext \
24497
 
      conftest$ac_exeext conftest.$ac_ext
24498
 
fi
24499
 
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24500
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24501
 
if test $ac_cv_working_alloca_h = yes; then
24502
 
  
24503
 
cat >>confdefs.h <<\_ACEOF
24504
 
@%:@define HAVE_ALLOCA_H 1
24505
 
_ACEOF
24506
 
 
24507
 
fi
24508
 
 
24509
 
{ echo "$as_me:$LINENO: checking for alloca" >&5
24510
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24511
 
if test "${ac_cv_func_alloca_works+set}" = set; then
24512
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24513
 
else
24514
 
  cat >conftest.$ac_ext <<_ACEOF
24515
 
/* confdefs.h.  */
24516
 
_ACEOF
24517
 
cat confdefs.h >>conftest.$ac_ext
24518
 
cat >>conftest.$ac_ext <<_ACEOF
24519
 
/* end confdefs.h.  */
24520
 
#ifdef __GNUC__
24521
 
# define alloca __builtin_alloca
24522
 
#else
24523
 
# ifdef _MSC_VER
24524
 
#  include <malloc.h>
24525
 
#  define alloca _alloca
24526
 
# else
24527
 
#  if HAVE_ALLOCA_H
24528
 
#   include <alloca.h>
24529
 
#  else
24530
 
#   ifdef _AIX
24531
 
 #pragma alloca
24532
 
#   else
24533
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
24534
 
char *alloca ();
24535
 
#    endif
24536
 
#   endif
24537
 
#  endif
24538
 
# endif
24539
 
#endif
24540
 
 
24541
 
int
24542
 
main ()
24543
 
{
24544
 
char *p = (char *) alloca (1);
24545
 
  ;
24546
 
  return 0;
24547
 
}
24548
 
_ACEOF
24549
 
rm -f conftest.$ac_objext conftest$ac_exeext
24550
 
if { (ac_try="$ac_link"
24551
 
case "(($ac_try" in
24552
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553
 
  *) ac_try_echo=$ac_try;;
24554
 
esac
24555
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556
 
  (eval "$ac_link") 2>conftest.er1
24557
 
  ac_status=$?
24558
 
  grep -v '^ *+' conftest.er1 >conftest.err
24559
 
  rm -f conftest.er1
24560
 
  cat conftest.err >&5
24561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562
 
  (exit $ac_status); } &&
24563
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24564
 
  { (case "(($ac_try" in
24565
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566
 
  *) ac_try_echo=$ac_try;;
24567
 
esac
24568
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569
 
  (eval "$ac_try") 2>&5
24570
 
  ac_status=$?
24571
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572
 
  (exit $ac_status); }; } &&
24573
 
         { ac_try='test -s conftest$ac_exeext'
24574
 
  { (case "(($ac_try" in
24575
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576
 
  *) ac_try_echo=$ac_try;;
24577
 
esac
24578
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24579
 
  (eval "$ac_try") 2>&5
24580
 
  ac_status=$?
24581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582
 
  (exit $ac_status); }; }; then
24583
 
  ac_cv_func_alloca_works=yes
24584
 
else
24585
 
  echo "$as_me: failed program was:" >&5
24586
 
sed 's/^/| /' conftest.$ac_ext >&5
24587
 
 
24588
 
        ac_cv_func_alloca_works=no
24589
 
fi
24590
 
 
24591
 
rm -f conftest.err conftest.$ac_objext \
24592
 
      conftest$ac_exeext conftest.$ac_ext
24593
 
fi
24594
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24595
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24596
 
 
24597
 
if test $ac_cv_func_alloca_works = yes; then
24598
 
  
24599
 
cat >>confdefs.h <<\_ACEOF
24600
 
@%:@define HAVE_ALLOCA 1
24601
 
_ACEOF
24602
 
 
24603
 
else
24604
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24605
 
# that cause trouble.  Some versions do not even contain alloca or
24606
 
# contain a buggy version.  If you still want to use their alloca,
24607
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
24608
 
 
24609
 
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24610
 
 
24611
 
cat >>confdefs.h <<\_ACEOF
24612
 
@%:@define C_ALLOCA 1
24613
 
_ACEOF
24614
 
 
24615
 
 
24616
 
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24617
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24618
 
if test "${ac_cv_os_cray+set}" = set; then
24619
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24620
 
else
24621
 
  cat >conftest.$ac_ext <<_ACEOF
24622
 
/* confdefs.h.  */
24623
 
_ACEOF
24624
 
cat confdefs.h >>conftest.$ac_ext
24625
 
cat >>conftest.$ac_ext <<_ACEOF
24626
 
/* end confdefs.h.  */
24627
 
#if defined CRAY && ! defined CRAY2
24628
 
webecray
24629
 
#else
24630
 
wenotbecray
24631
 
#endif
24632
 
 
24633
 
_ACEOF
24634
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24635
 
  $EGREP "webecray" >/dev/null 2>&1; then
24636
 
  ac_cv_os_cray=yes
24637
 
else
24638
 
  ac_cv_os_cray=no
24639
 
fi
24640
 
rm -f conftest*
24641
 
 
24642
 
fi
24643
 
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24644
 
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24645
 
if test $ac_cv_os_cray = yes; then
24646
 
  for ac_func in _getb67 GETB67 getb67; do
24647
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24648
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24649
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24650
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24651
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24652
 
else
24653
 
  cat >conftest.$ac_ext <<_ACEOF
24654
 
/* confdefs.h.  */
24655
 
_ACEOF
24656
 
cat confdefs.h >>conftest.$ac_ext
24657
 
cat >>conftest.$ac_ext <<_ACEOF
24658
 
/* end confdefs.h.  */
24659
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24660
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24661
 
#define $ac_func innocuous_$ac_func
24662
 
 
24663
 
/* System header to define __stub macros and hopefully few prototypes,
24664
 
    which can conflict with char $ac_func (); below.
24665
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24666
 
    <limits.h> exists even on freestanding compilers.  */
24667
 
 
24668
 
#ifdef __STDC__
24669
 
# include <limits.h>
24670
 
#else
24671
 
# include <assert.h>
24672
 
#endif
24673
 
 
24674
 
#undef $ac_func
24675
 
 
24676
 
/* Override any GCC internal prototype to avoid an error.
24677
 
   Use char because int might match the return type of a GCC
24678
 
   builtin and then its argument prototype would still apply.  */
24679
 
#ifdef __cplusplus
24680
 
extern "C"
24681
 
#endif
24682
 
char $ac_func ();
24683
 
/* The GNU C library defines this for functions which it implements
24684
 
    to always fail with ENOSYS.  Some functions are actually named
24685
 
    something starting with __ and the normal name is an alias.  */
24686
 
#if defined __stub_$ac_func || defined __stub___$ac_func
24687
 
choke me
24688
 
#endif
24689
 
 
24690
 
int
24691
 
main ()
24692
 
{
24693
 
return $ac_func ();
24694
 
  ;
24695
 
  return 0;
24696
 
}
24697
 
_ACEOF
24698
 
rm -f conftest.$ac_objext conftest$ac_exeext
24699
 
if { (ac_try="$ac_link"
24700
 
case "(($ac_try" in
24701
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702
 
  *) ac_try_echo=$ac_try;;
24703
 
esac
24704
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705
 
  (eval "$ac_link") 2>conftest.er1
24706
 
  ac_status=$?
24707
 
  grep -v '^ *+' conftest.er1 >conftest.err
24708
 
  rm -f conftest.er1
24709
 
  cat conftest.err >&5
24710
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711
 
  (exit $ac_status); } &&
24712
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24713
 
  { (case "(($ac_try" in
24714
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715
 
  *) ac_try_echo=$ac_try;;
24716
 
esac
24717
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718
 
  (eval "$ac_try") 2>&5
24719
 
  ac_status=$?
24720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721
 
  (exit $ac_status); }; } &&
24722
 
         { ac_try='test -s conftest$ac_exeext'
24723
 
  { (case "(($ac_try" in
24724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24725
 
  *) ac_try_echo=$ac_try;;
24726
 
esac
24727
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24728
 
  (eval "$ac_try") 2>&5
24729
 
  ac_status=$?
24730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731
 
  (exit $ac_status); }; }; then
24732
 
  eval "$as_ac_var=yes"
24733
 
else
24734
 
  echo "$as_me: failed program was:" >&5
24735
 
sed 's/^/| /' conftest.$ac_ext >&5
24736
 
 
24737
 
        eval "$as_ac_var=no"
24738
 
fi
24739
 
 
24740
 
rm -f conftest.err conftest.$ac_objext \
24741
 
      conftest$ac_exeext conftest.$ac_ext
24742
 
fi
24743
 
ac_res=`eval echo '${'$as_ac_var'}'`
24744
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
24745
 
echo "${ECHO_T}$ac_res" >&6; }
24746
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
24747
 
  
24748
 
cat >>confdefs.h <<_ACEOF
24749
 
@%:@define CRAY_STACKSEG_END $ac_func
24750
 
_ACEOF
24751
 
 
24752
 
    break
24753
 
fi
24754
 
 
24755
 
  done
24756
 
fi
24757
 
 
24758
 
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24759
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24760
 
if test "${ac_cv_c_stack_direction+set}" = set; then
24761
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24762
 
else
24763
 
  if test "$cross_compiling" = yes; then
24764
 
  ac_cv_c_stack_direction=0
24765
 
else
24766
 
  cat >conftest.$ac_ext <<_ACEOF
24767
 
/* confdefs.h.  */
24768
 
_ACEOF
24769
 
cat confdefs.h >>conftest.$ac_ext
24770
 
cat >>conftest.$ac_ext <<_ACEOF
24771
 
/* end confdefs.h.  */
24772
 
$ac_includes_default
24773
 
int
24774
 
find_stack_direction ()
24775
 
{
24776
 
  static char *addr = 0;
24777
 
  auto char dummy;
24778
 
  if (addr == 0)
24779
 
    {
24780
 
      addr = &dummy;
24781
 
      return find_stack_direction ();
24782
 
    }
24783
 
  else
24784
 
    return (&dummy > addr) ? 1 : -1;
24785
 
}
24786
 
 
24787
 
int
24788
 
main ()
24789
 
{
24790
 
  return find_stack_direction () < 0;
24791
 
}
24792
 
_ACEOF
24793
 
rm -f conftest$ac_exeext
24794
 
if { (ac_try="$ac_link"
24795
 
case "(($ac_try" in
24796
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797
 
  *) ac_try_echo=$ac_try;;
24798
 
esac
24799
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800
 
  (eval "$ac_link") 2>&5
24801
 
  ac_status=$?
24802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24804
 
  { (case "(($ac_try" in
24805
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806
 
  *) ac_try_echo=$ac_try;;
24807
 
esac
24808
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809
 
  (eval "$ac_try") 2>&5
24810
 
  ac_status=$?
24811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812
 
  (exit $ac_status); }; }; then
24813
 
  ac_cv_c_stack_direction=1
24814
 
else
24815
 
  echo "$as_me: program exited with status $ac_status" >&5
24816
 
echo "$as_me: failed program was:" >&5
24817
 
sed 's/^/| /' conftest.$ac_ext >&5
24818
 
 
24819
 
( exit $ac_status )
24820
 
ac_cv_c_stack_direction=-1
24821
 
fi
24822
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24823
 
fi
24824
 
 
24825
 
 
24826
 
fi
24827
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24828
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24829
 
 
24830
 
cat >>confdefs.h <<_ACEOF
24831
 
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
24832
 
_ACEOF
24833
 
 
24834
 
 
24835
 
fi
24836
 
 
24837
 
 
24838
 
 
24839
 
 
24840
 
 
24841
 
 
24842
 
ac_header_dirent=no
24843
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24844
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24845
 
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24846
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24847
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24848
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24849
 
else
24850
 
  cat >conftest.$ac_ext <<_ACEOF
24851
 
/* confdefs.h.  */
24852
 
_ACEOF
24853
 
cat confdefs.h >>conftest.$ac_ext
24854
 
cat >>conftest.$ac_ext <<_ACEOF
24855
 
/* end confdefs.h.  */
24856
 
#include <sys/types.h>
24857
 
#include <$ac_hdr>
24858
 
 
24859
 
int
24860
 
main ()
24861
 
{
24862
 
if ((DIR *) 0)
24863
 
return 0;
24864
 
  ;
24865
 
  return 0;
24866
 
}
24867
 
_ACEOF
24868
 
rm -f conftest.$ac_objext
24869
 
if { (ac_try="$ac_compile"
24870
 
case "(($ac_try" in
24871
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872
 
  *) ac_try_echo=$ac_try;;
24873
 
esac
24874
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875
 
  (eval "$ac_compile") 2>conftest.er1
24876
 
  ac_status=$?
24877
 
  grep -v '^ *+' conftest.er1 >conftest.err
24878
 
  rm -f conftest.er1
24879
 
  cat conftest.err >&5
24880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881
 
  (exit $ac_status); } &&
24882
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24883
 
  { (case "(($ac_try" in
24884
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885
 
  *) ac_try_echo=$ac_try;;
24886
 
esac
24887
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888
 
  (eval "$ac_try") 2>&5
24889
 
  ac_status=$?
24890
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891
 
  (exit $ac_status); }; } &&
24892
 
         { ac_try='test -s conftest.$ac_objext'
24893
 
  { (case "(($ac_try" in
24894
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895
 
  *) ac_try_echo=$ac_try;;
24896
 
esac
24897
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898
 
  (eval "$ac_try") 2>&5
24899
 
  ac_status=$?
24900
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901
 
  (exit $ac_status); }; }; then
24902
 
  eval "$as_ac_Header=yes"
24903
 
else
24904
 
  echo "$as_me: failed program was:" >&5
24905
 
sed 's/^/| /' conftest.$ac_ext >&5
24906
 
 
24907
 
        eval "$as_ac_Header=no"
24908
 
fi
24909
 
 
24910
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24911
 
fi
24912
 
ac_res=`eval echo '${'$as_ac_Header'}'`
24913
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
24914
 
echo "${ECHO_T}$ac_res" >&6; }
24915
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24916
 
  cat >>confdefs.h <<_ACEOF
24917
 
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24918
 
_ACEOF
24919
 
 
24920
 
ac_header_dirent=$ac_hdr; break
24921
 
fi
24922
 
 
24923
 
done
24924
 
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24925
 
if test $ac_header_dirent = dirent.h; then
24926
 
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24927
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24928
 
if test "${ac_cv_search_opendir+set}" = set; then
24929
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24930
 
else
24931
 
  ac_func_search_save_LIBS=$LIBS
24932
 
cat >conftest.$ac_ext <<_ACEOF
24933
 
/* confdefs.h.  */
24934
 
_ACEOF
24935
 
cat confdefs.h >>conftest.$ac_ext
24936
 
cat >>conftest.$ac_ext <<_ACEOF
24937
 
/* end confdefs.h.  */
24938
 
 
24939
 
/* Override any GCC internal prototype to avoid an error.
24940
 
   Use char because int might match the return type of a GCC
24941
 
   builtin and then its argument prototype would still apply.  */
24942
 
#ifdef __cplusplus
24943
 
extern "C"
24944
 
#endif
24945
 
char opendir ();
24946
 
int
24947
 
main ()
24948
 
{
24949
 
return opendir ();
24950
 
  ;
24951
 
  return 0;
24952
 
}
24953
 
_ACEOF
24954
 
for ac_lib in '' dir; do
24955
 
  if test -z "$ac_lib"; then
24956
 
    ac_res="none required"
24957
 
  else
24958
 
    ac_res=-l$ac_lib
24959
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24960
 
  fi
24961
 
  rm -f conftest.$ac_objext conftest$ac_exeext
24962
 
if { (ac_try="$ac_link"
24963
 
case "(($ac_try" in
24964
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965
 
  *) ac_try_echo=$ac_try;;
24966
 
esac
24967
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968
 
  (eval "$ac_link") 2>conftest.er1
24969
 
  ac_status=$?
24970
 
  grep -v '^ *+' conftest.er1 >conftest.err
24971
 
  rm -f conftest.er1
24972
 
  cat conftest.err >&5
24973
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974
 
  (exit $ac_status); } &&
24975
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24976
 
  { (case "(($ac_try" in
24977
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24978
 
  *) ac_try_echo=$ac_try;;
24979
 
esac
24980
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24981
 
  (eval "$ac_try") 2>&5
24982
 
  ac_status=$?
24983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984
 
  (exit $ac_status); }; } &&
24985
 
         { ac_try='test -s conftest$ac_exeext'
24986
 
  { (case "(($ac_try" in
24987
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988
 
  *) ac_try_echo=$ac_try;;
24989
 
esac
24990
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991
 
  (eval "$ac_try") 2>&5
24992
 
  ac_status=$?
24993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994
 
  (exit $ac_status); }; }; then
24995
 
  ac_cv_search_opendir=$ac_res
24996
 
else
24997
 
  echo "$as_me: failed program was:" >&5
24998
 
sed 's/^/| /' conftest.$ac_ext >&5
24999
 
 
25000
 
        
25001
 
fi
25002
 
 
25003
 
rm -f conftest.err conftest.$ac_objext \
25004
 
      conftest$ac_exeext 
25005
 
  if test "${ac_cv_search_opendir+set}" = set; then
25006
 
  break
25007
 
fi
25008
 
done
25009
 
if test "${ac_cv_search_opendir+set}" = set; then
25010
 
  :
25011
 
else
25012
 
  ac_cv_search_opendir=no
25013
 
fi
25014
 
rm conftest.$ac_ext
25015
 
LIBS=$ac_func_search_save_LIBS
25016
 
fi
25017
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25018
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25019
 
ac_res=$ac_cv_search_opendir
25020
 
if test "$ac_res" != no; then
25021
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25022
 
  
25023
 
fi
25024
 
 
25025
 
else
25026
 
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25027
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25028
 
if test "${ac_cv_search_opendir+set}" = set; then
25029
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25030
 
else
25031
 
  ac_func_search_save_LIBS=$LIBS
25032
 
cat >conftest.$ac_ext <<_ACEOF
25033
 
/* confdefs.h.  */
25034
 
_ACEOF
25035
 
cat confdefs.h >>conftest.$ac_ext
25036
 
cat >>conftest.$ac_ext <<_ACEOF
25037
 
/* end confdefs.h.  */
25038
 
 
25039
 
/* Override any GCC internal prototype to avoid an error.
25040
 
   Use char because int might match the return type of a GCC
25041
 
   builtin and then its argument prototype would still apply.  */
25042
 
#ifdef __cplusplus
25043
 
extern "C"
25044
 
#endif
25045
 
char opendir ();
25046
 
int
25047
 
main ()
25048
 
{
25049
 
return opendir ();
25050
 
  ;
25051
 
  return 0;
25052
 
}
25053
 
_ACEOF
25054
 
for ac_lib in '' x; do
25055
 
  if test -z "$ac_lib"; then
25056
 
    ac_res="none required"
25057
 
  else
25058
 
    ac_res=-l$ac_lib
25059
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25060
 
  fi
25061
 
  rm -f conftest.$ac_objext conftest$ac_exeext
25062
 
if { (ac_try="$ac_link"
25063
 
case "(($ac_try" in
25064
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065
 
  *) ac_try_echo=$ac_try;;
25066
 
esac
25067
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068
 
  (eval "$ac_link") 2>conftest.er1
25069
 
  ac_status=$?
25070
 
  grep -v '^ *+' conftest.er1 >conftest.err
25071
 
  rm -f conftest.er1
25072
 
  cat conftest.err >&5
25073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074
 
  (exit $ac_status); } &&
25075
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25076
 
  { (case "(($ac_try" in
25077
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078
 
  *) ac_try_echo=$ac_try;;
25079
 
esac
25080
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081
 
  (eval "$ac_try") 2>&5
25082
 
  ac_status=$?
25083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084
 
  (exit $ac_status); }; } &&
25085
 
         { ac_try='test -s conftest$ac_exeext'
25086
 
  { (case "(($ac_try" in
25087
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088
 
  *) ac_try_echo=$ac_try;;
25089
 
esac
25090
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091
 
  (eval "$ac_try") 2>&5
25092
 
  ac_status=$?
25093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094
 
  (exit $ac_status); }; }; then
25095
 
  ac_cv_search_opendir=$ac_res
25096
 
else
25097
 
  echo "$as_me: failed program was:" >&5
25098
 
sed 's/^/| /' conftest.$ac_ext >&5
25099
 
 
25100
 
        
25101
 
fi
25102
 
 
25103
 
rm -f conftest.err conftest.$ac_objext \
25104
 
      conftest$ac_exeext 
25105
 
  if test "${ac_cv_search_opendir+set}" = set; then
25106
 
  break
25107
 
fi
25108
 
done
25109
 
if test "${ac_cv_search_opendir+set}" = set; then
25110
 
  :
25111
 
else
25112
 
  ac_cv_search_opendir=no
25113
 
fi
25114
 
rm conftest.$ac_ext
25115
 
LIBS=$ac_func_search_save_LIBS
25116
 
fi
25117
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25118
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25119
 
ac_res=$ac_cv_search_opendir
25120
 
if test "$ac_res" != no; then
25121
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25122
 
  
25123
 
fi
25124
 
 
25125
 
fi
25126
 
 
25127
 
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25128
 
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25129
 
if test "${ac_cv_func_closedir_void+set}" = set; then
25130
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25131
 
else
25132
 
  if test "$cross_compiling" = yes; then
25133
 
  ac_cv_func_closedir_void=yes
25134
 
else
25135
 
  cat >conftest.$ac_ext <<_ACEOF
25136
 
/* confdefs.h.  */
25137
 
_ACEOF
25138
 
cat confdefs.h >>conftest.$ac_ext
25139
 
cat >>conftest.$ac_ext <<_ACEOF
25140
 
/* end confdefs.h.  */
25141
 
$ac_includes_default
25142
 
#include <$ac_header_dirent>
25143
 
#ifndef __cplusplus
25144
 
int closedir ();
25145
 
#endif
25146
 
 
25147
 
int
25148
 
main ()
25149
 
{
25150
 
return closedir (opendir (".")) != 0;
25151
 
  ;
25152
 
  return 0;
25153
 
}
25154
 
_ACEOF
25155
 
rm -f conftest$ac_exeext
25156
 
if { (ac_try="$ac_link"
25157
 
case "(($ac_try" in
25158
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159
 
  *) ac_try_echo=$ac_try;;
25160
 
esac
25161
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162
 
  (eval "$ac_link") 2>&5
25163
 
  ac_status=$?
25164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25166
 
  { (case "(($ac_try" in
25167
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168
 
  *) ac_try_echo=$ac_try;;
25169
 
esac
25170
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25171
 
  (eval "$ac_try") 2>&5
25172
 
  ac_status=$?
25173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174
 
  (exit $ac_status); }; }; then
25175
 
  ac_cv_func_closedir_void=no
25176
 
else
25177
 
  echo "$as_me: program exited with status $ac_status" >&5
25178
 
echo "$as_me: failed program was:" >&5
25179
 
sed 's/^/| /' conftest.$ac_ext >&5
25180
 
 
25181
 
( exit $ac_status )
25182
 
ac_cv_func_closedir_void=yes
25183
 
fi
25184
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25185
 
fi
25186
 
 
25187
 
 
25188
 
fi
25189
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25190
 
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25191
 
if test $ac_cv_func_closedir_void = yes; then
25192
 
  
25193
 
cat >>confdefs.h <<\_ACEOF
25194
 
@%:@define CLOSEDIR_VOID 1
25195
 
_ACEOF
25196
 
 
25197
 
fi
25198
 
 
25199
 
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
25200
 
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25201
 
if test "${ac_cv_lib_error_at_line+set}" = set; then
25202
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25203
 
else
25204
 
  cat >conftest.$ac_ext <<_ACEOF
25205
 
/* confdefs.h.  */
25206
 
_ACEOF
25207
 
cat confdefs.h >>conftest.$ac_ext
25208
 
cat >>conftest.$ac_ext <<_ACEOF
25209
 
/* end confdefs.h.  */
25210
 
$ac_includes_default
25211
 
int
25212
 
main ()
25213
 
{
25214
 
error_at_line (0, 0, "", 0, "");
25215
 
  ;
25216
 
  return 0;
25217
 
}
25218
 
_ACEOF
25219
 
rm -f conftest.$ac_objext conftest$ac_exeext
25220
 
if { (ac_try="$ac_link"
25221
 
case "(($ac_try" in
25222
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223
 
  *) ac_try_echo=$ac_try;;
25224
 
esac
25225
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25226
 
  (eval "$ac_link") 2>conftest.er1
25227
 
  ac_status=$?
25228
 
  grep -v '^ *+' conftest.er1 >conftest.err
25229
 
  rm -f conftest.er1
25230
 
  cat conftest.err >&5
25231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232
 
  (exit $ac_status); } &&
25233
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25234
 
  { (case "(($ac_try" in
25235
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236
 
  *) ac_try_echo=$ac_try;;
25237
 
esac
25238
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239
 
  (eval "$ac_try") 2>&5
25240
 
  ac_status=$?
25241
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242
 
  (exit $ac_status); }; } &&
25243
 
         { ac_try='test -s conftest$ac_exeext'
25244
 
  { (case "(($ac_try" in
25245
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246
 
  *) ac_try_echo=$ac_try;;
25247
 
esac
25248
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249
 
  (eval "$ac_try") 2>&5
25250
 
  ac_status=$?
25251
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252
 
  (exit $ac_status); }; }; then
25253
 
  ac_cv_lib_error_at_line=yes
25254
 
else
25255
 
  echo "$as_me: failed program was:" >&5
25256
 
sed 's/^/| /' conftest.$ac_ext >&5
25257
 
 
25258
 
        ac_cv_lib_error_at_line=no
25259
 
fi
25260
 
 
25261
 
rm -f conftest.err conftest.$ac_objext \
25262
 
      conftest$ac_exeext conftest.$ac_ext
25263
 
fi
25264
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25265
 
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25266
 
if test $ac_cv_lib_error_at_line = no; then
25267
 
  case " $LIB@&t@OBJS " in
25268
 
  *" error.$ac_objext "* ) ;;
25269
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25270
 
 ;;
25271
 
esac
25272
 
 
25273
 
fi
25274
 
 
25275
 
 
25276
 
for ac_header in vfork.h
25277
 
do
25278
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25279
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25280
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25281
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25282
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25283
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25284
 
fi
25285
 
ac_res=`eval echo '${'$as_ac_Header'}'`
25286
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
25287
 
echo "${ECHO_T}$ac_res" >&6; }
25288
 
else
25289
 
  # Is the header compilable?
25290
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25291
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25292
 
cat >conftest.$ac_ext <<_ACEOF
25293
 
/* confdefs.h.  */
25294
 
_ACEOF
25295
 
cat confdefs.h >>conftest.$ac_ext
25296
 
cat >>conftest.$ac_ext <<_ACEOF
25297
 
/* end confdefs.h.  */
25298
 
$ac_includes_default
25299
 
@%:@include <$ac_header>
25300
 
_ACEOF
25301
 
rm -f conftest.$ac_objext
25302
 
if { (ac_try="$ac_compile"
25303
 
case "(($ac_try" in
25304
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305
 
  *) ac_try_echo=$ac_try;;
25306
 
esac
25307
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308
 
  (eval "$ac_compile") 2>conftest.er1
25309
 
  ac_status=$?
25310
 
  grep -v '^ *+' conftest.er1 >conftest.err
25311
 
  rm -f conftest.er1
25312
 
  cat conftest.err >&5
25313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314
 
  (exit $ac_status); } &&
25315
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25316
 
  { (case "(($ac_try" in
25317
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318
 
  *) ac_try_echo=$ac_try;;
25319
 
esac
25320
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321
 
  (eval "$ac_try") 2>&5
25322
 
  ac_status=$?
25323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324
 
  (exit $ac_status); }; } &&
25325
 
         { ac_try='test -s conftest.$ac_objext'
25326
 
  { (case "(($ac_try" in
25327
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328
 
  *) ac_try_echo=$ac_try;;
25329
 
esac
25330
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25331
 
  (eval "$ac_try") 2>&5
25332
 
  ac_status=$?
25333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334
 
  (exit $ac_status); }; }; then
25335
 
  ac_header_compiler=yes
25336
 
else
25337
 
  echo "$as_me: failed program was:" >&5
25338
 
sed 's/^/| /' conftest.$ac_ext >&5
25339
 
 
25340
 
        ac_header_compiler=no
25341
 
fi
25342
 
 
25343
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25344
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25345
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
25346
 
 
25347
 
# Is the header present?
25348
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25349
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25350
 
cat >conftest.$ac_ext <<_ACEOF
25351
 
/* confdefs.h.  */
25352
 
_ACEOF
25353
 
cat confdefs.h >>conftest.$ac_ext
25354
 
cat >>conftest.$ac_ext <<_ACEOF
25355
 
/* end confdefs.h.  */
25356
 
@%:@include <$ac_header>
25357
 
_ACEOF
25358
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
25359
 
case "(($ac_try" in
25360
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361
 
  *) ac_try_echo=$ac_try;;
25362
 
esac
25363
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25364
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25365
 
  ac_status=$?
25366
 
  grep -v '^ *+' conftest.er1 >conftest.err
25367
 
  rm -f conftest.er1
25368
 
  cat conftest.err >&5
25369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370
 
  (exit $ac_status); } >/dev/null; then
25371
 
  if test -s conftest.err; then
25372
 
    ac_cpp_err=$ac_c_preproc_warn_flag
25373
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25374
 
  else
25375
 
    ac_cpp_err=
25376
 
  fi
25377
 
else
25378
 
  ac_cpp_err=yes
25379
 
fi
25380
 
if test -z "$ac_cpp_err"; then
25381
 
  ac_header_preproc=yes
25382
 
else
25383
 
  echo "$as_me: failed program was:" >&5
25384
 
sed 's/^/| /' conftest.$ac_ext >&5
25385
 
 
25386
 
  ac_header_preproc=no
25387
 
fi
25388
 
 
25389
 
rm -f conftest.err conftest.$ac_ext
25390
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25391
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
25392
 
 
25393
 
# So?  What about this header?
25394
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25395
 
  yes:no: )
25396
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25397
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25398
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25399
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25400
 
    ac_header_preproc=yes
25401
 
    ;;
25402
 
  no:yes:* )
25403
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25404
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25405
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25406
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25407
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25408
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25409
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25410
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25411
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25412
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25413
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25414
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25415
 
    ( cat <<\_ASBOX
25416
 
@%:@@%:@ ------------------------------- @%:@@%:@
25417
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25418
 
@%:@@%:@ ------------------------------- @%:@@%:@
25419
 
_ASBOX
25420
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
25421
 
    ;;
25422
 
esac
25423
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25424
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25425
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25427
 
else
25428
 
  eval "$as_ac_Header=\$ac_header_preproc"
25429
 
fi
25430
 
ac_res=`eval echo '${'$as_ac_Header'}'`
25431
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
25432
 
echo "${ECHO_T}$ac_res" >&6; }
25433
 
 
25434
 
fi
25435
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25436
 
  cat >>confdefs.h <<_ACEOF
25437
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25438
 
_ACEOF
25439
 
 
25440
 
fi
25441
 
 
25442
 
done
25443
 
 
25444
 
 
25445
 
 
25446
 
for ac_func in fork vfork
25447
 
do
25448
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25449
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25450
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25451
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25453
 
else
25454
 
  cat >conftest.$ac_ext <<_ACEOF
25455
 
/* confdefs.h.  */
25456
 
_ACEOF
25457
 
cat confdefs.h >>conftest.$ac_ext
25458
 
cat >>conftest.$ac_ext <<_ACEOF
25459
 
/* end confdefs.h.  */
25460
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25461
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25462
 
#define $ac_func innocuous_$ac_func
25463
 
 
25464
 
/* System header to define __stub macros and hopefully few prototypes,
25465
 
    which can conflict with char $ac_func (); below.
25466
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25467
 
    <limits.h> exists even on freestanding compilers.  */
25468
 
 
25469
 
#ifdef __STDC__
25470
 
# include <limits.h>
25471
 
#else
25472
 
# include <assert.h>
25473
 
#endif
25474
 
 
25475
 
#undef $ac_func
25476
 
 
25477
 
/* Override any GCC internal prototype to avoid an error.
25478
 
   Use char because int might match the return type of a GCC
25479
 
   builtin and then its argument prototype would still apply.  */
25480
 
#ifdef __cplusplus
25481
 
extern "C"
25482
 
#endif
25483
 
char $ac_func ();
25484
 
/* The GNU C library defines this for functions which it implements
25485
 
    to always fail with ENOSYS.  Some functions are actually named
25486
 
    something starting with __ and the normal name is an alias.  */
25487
 
#if defined __stub_$ac_func || defined __stub___$ac_func
25488
 
choke me
25489
 
#endif
25490
 
 
25491
 
int
25492
 
main ()
25493
 
{
25494
 
return $ac_func ();
25495
 
  ;
25496
 
  return 0;
25497
 
}
25498
 
_ACEOF
25499
 
rm -f conftest.$ac_objext conftest$ac_exeext
25500
 
if { (ac_try="$ac_link"
25501
 
case "(($ac_try" in
25502
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25503
 
  *) ac_try_echo=$ac_try;;
25504
 
esac
25505
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25506
 
  (eval "$ac_link") 2>conftest.er1
25507
 
  ac_status=$?
25508
 
  grep -v '^ *+' conftest.er1 >conftest.err
25509
 
  rm -f conftest.er1
25510
 
  cat conftest.err >&5
25511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512
 
  (exit $ac_status); } &&
25513
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25514
 
  { (case "(($ac_try" in
25515
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516
 
  *) ac_try_echo=$ac_try;;
25517
 
esac
25518
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519
 
  (eval "$ac_try") 2>&5
25520
 
  ac_status=$?
25521
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522
 
  (exit $ac_status); }; } &&
25523
 
         { ac_try='test -s conftest$ac_exeext'
25524
 
  { (case "(($ac_try" in
25525
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526
 
  *) ac_try_echo=$ac_try;;
25527
 
esac
25528
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529
 
  (eval "$ac_try") 2>&5
25530
 
  ac_status=$?
25531
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532
 
  (exit $ac_status); }; }; then
25533
 
  eval "$as_ac_var=yes"
25534
 
else
25535
 
  echo "$as_me: failed program was:" >&5
25536
 
sed 's/^/| /' conftest.$ac_ext >&5
25537
 
 
25538
 
        eval "$as_ac_var=no"
25539
 
fi
25540
 
 
25541
 
rm -f conftest.err conftest.$ac_objext \
25542
 
      conftest$ac_exeext conftest.$ac_ext
25543
 
fi
25544
 
ac_res=`eval echo '${'$as_ac_var'}'`
25545
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
25546
 
echo "${ECHO_T}$ac_res" >&6; }
25547
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
25548
 
  cat >>confdefs.h <<_ACEOF
25549
 
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25550
 
_ACEOF
25551
 
 
25552
 
fi
25553
 
done
25554
 
 
25555
 
if test "x$ac_cv_func_fork" = xyes; then
25556
 
  { echo "$as_me:$LINENO: checking for working fork" >&5
25557
 
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25558
 
if test "${ac_cv_func_fork_works+set}" = set; then
25559
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25560
 
else
25561
 
  if test "$cross_compiling" = yes; then
25562
 
  ac_cv_func_fork_works=cross
25563
 
else
25564
 
  cat >conftest.$ac_ext <<_ACEOF
25565
 
/* confdefs.h.  */
25566
 
_ACEOF
25567
 
cat confdefs.h >>conftest.$ac_ext
25568
 
cat >>conftest.$ac_ext <<_ACEOF
25569
 
/* end confdefs.h.  */
25570
 
$ac_includes_default
25571
 
int
25572
 
main ()
25573
 
{
25574
 
 
25575
 
          /* By Ruediger Kuhlmann. */
25576
 
          return fork () < 0;
25577
 
        
25578
 
  ;
25579
 
  return 0;
25580
 
}
25581
 
_ACEOF
25582
 
rm -f conftest$ac_exeext
25583
 
if { (ac_try="$ac_link"
25584
 
case "(($ac_try" in
25585
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586
 
  *) ac_try_echo=$ac_try;;
25587
 
esac
25588
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589
 
  (eval "$ac_link") 2>&5
25590
 
  ac_status=$?
25591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25593
 
  { (case "(($ac_try" in
25594
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595
 
  *) ac_try_echo=$ac_try;;
25596
 
esac
25597
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598
 
  (eval "$ac_try") 2>&5
25599
 
  ac_status=$?
25600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601
 
  (exit $ac_status); }; }; then
25602
 
  ac_cv_func_fork_works=yes
25603
 
else
25604
 
  echo "$as_me: program exited with status $ac_status" >&5
25605
 
echo "$as_me: failed program was:" >&5
25606
 
sed 's/^/| /' conftest.$ac_ext >&5
25607
 
 
25608
 
( exit $ac_status )
25609
 
ac_cv_func_fork_works=no
25610
 
fi
25611
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25612
 
fi
25613
 
 
25614
 
 
25615
 
fi
25616
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25617
 
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25618
 
 
25619
 
else
25620
 
  ac_cv_func_fork_works=$ac_cv_func_fork
25621
 
fi
25622
 
if test "x$ac_cv_func_fork_works" = xcross; then
25623
 
  case $host in
25624
 
    *-*-amigaos* | *-*-msdosdjgpp*)
25625
 
      # Override, as these systems have only a dummy fork() stub
25626
 
      ac_cv_func_fork_works=no
25627
 
      ;;
25628
 
    *)
25629
 
      ac_cv_func_fork_works=yes
25630
 
      ;;
25631
 
  esac
25632
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25633
 
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25634
 
fi
25635
 
ac_cv_func_vfork_works=$ac_cv_func_vfork
25636
 
if test "x$ac_cv_func_vfork" = xyes; then
25637
 
  { echo "$as_me:$LINENO: checking for working vfork" >&5
25638
 
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25639
 
if test "${ac_cv_func_vfork_works+set}" = set; then
25640
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25641
 
else
25642
 
  if test "$cross_compiling" = yes; then
25643
 
  ac_cv_func_vfork_works=cross
25644
 
else
25645
 
  cat >conftest.$ac_ext <<_ACEOF
25646
 
/* confdefs.h.  */
25647
 
_ACEOF
25648
 
cat confdefs.h >>conftest.$ac_ext
25649
 
cat >>conftest.$ac_ext <<_ACEOF
25650
 
/* end confdefs.h.  */
25651
 
/* Thanks to Paul Eggert for this test.  */
25652
 
$ac_includes_default
25653
 
#include <sys/wait.h>
25654
 
#if HAVE_VFORK_H
25655
 
# include <vfork.h>
25656
 
#endif
25657
 
/* On some sparc systems, changes by the child to local and incoming
25658
 
   argument registers are propagated back to the parent.  The compiler
25659
 
   is told about this with #include <vfork.h>, but some compilers
25660
 
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25661
 
   static variable whose address is put into a register that is
25662
 
   clobbered by the vfork.  */
25663
 
static void
25664
 
#ifdef __cplusplus
25665
 
sparc_address_test (int arg)
25666
 
# else
25667
 
sparc_address_test (arg) int arg;
25668
 
#endif
25669
 
{
25670
 
  static pid_t child;
25671
 
  if (!child) {
25672
 
    child = vfork ();
25673
 
    if (child < 0) {
25674
 
      perror ("vfork");
25675
 
      _exit(2);
25676
 
    }
25677
 
    if (!child) {
25678
 
      arg = getpid();
25679
 
      write(-1, "", 0);
25680
 
      _exit (arg);
25681
 
    }
25682
 
  }
25683
 
}
25684
 
 
25685
 
int
25686
 
main ()
25687
 
{
25688
 
  pid_t parent = getpid ();
25689
 
  pid_t child;
25690
 
 
25691
 
  sparc_address_test (0);
25692
 
 
25693
 
  child = vfork ();
25694
 
 
25695
 
  if (child == 0) {
25696
 
    /* Here is another test for sparc vfork register problems.  This
25697
 
       test uses lots of local variables, at least as many local
25698
 
       variables as main has allocated so far including compiler
25699
 
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25700
 
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25701
 
       reuse the register of parent for one of the local variables,
25702
 
       since it will think that parent can't possibly be used any more
25703
 
       in this routine.  Assigning to the local variable will thus
25704
 
       munge parent in the parent process.  */
25705
 
    pid_t
25706
 
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25707
 
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25708
 
    /* Convince the compiler that p..p7 are live; otherwise, it might
25709
 
       use the same hardware register for all 8 local variables.  */
25710
 
    if (p != p1 || p != p2 || p != p3 || p != p4
25711
 
        || p != p5 || p != p6 || p != p7)
25712
 
      _exit(1);
25713
 
 
25714
 
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25715
 
       from child file descriptors.  If the child closes a descriptor
25716
 
       before it execs or exits, this munges the parent's descriptor
25717
 
       as well.  Test for this by closing stdout in the child.  */
25718
 
    _exit(close(fileno(stdout)) != 0);
25719
 
  } else {
25720
 
    int status;
25721
 
    struct stat st;
25722
 
 
25723
 
    while (wait(&status) != child)
25724
 
      ;
25725
 
    return (
25726
 
         /* Was there some problem with vforking?  */
25727
 
         child < 0
25728
 
 
25729
 
         /* Did the child fail?  (This shouldn't happen.)  */
25730
 
         || status
25731
 
 
25732
 
         /* Did the vfork/compiler bug occur?  */
25733
 
         || parent != getpid()
25734
 
 
25735
 
         /* Did the file descriptor bug occur?  */
25736
 
         || fstat(fileno(stdout), &st) != 0
25737
 
         );
25738
 
  }
25739
 
}
25740
 
_ACEOF
25741
 
rm -f conftest$ac_exeext
25742
 
if { (ac_try="$ac_link"
25743
 
case "(($ac_try" in
25744
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745
 
  *) ac_try_echo=$ac_try;;
25746
 
esac
25747
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748
 
  (eval "$ac_link") 2>&5
25749
 
  ac_status=$?
25750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25752
 
  { (case "(($ac_try" in
25753
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754
 
  *) ac_try_echo=$ac_try;;
25755
 
esac
25756
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757
 
  (eval "$ac_try") 2>&5
25758
 
  ac_status=$?
25759
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760
 
  (exit $ac_status); }; }; then
25761
 
  ac_cv_func_vfork_works=yes
25762
 
else
25763
 
  echo "$as_me: program exited with status $ac_status" >&5
25764
 
echo "$as_me: failed program was:" >&5
25765
 
sed 's/^/| /' conftest.$ac_ext >&5
25766
 
 
25767
 
( exit $ac_status )
25768
 
ac_cv_func_vfork_works=no
25769
 
fi
25770
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25771
 
fi
25772
 
 
25773
 
 
25774
 
fi
25775
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25776
 
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25777
 
 
25778
 
fi;
25779
 
if test "x$ac_cv_func_fork_works" = xcross; then
25780
 
  ac_cv_func_vfork_works=$ac_cv_func_vfork
25781
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25782
 
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25783
 
fi
25784
 
 
25785
 
if test "x$ac_cv_func_vfork_works" = xyes; then
25786
 
  
25787
 
cat >>confdefs.h <<\_ACEOF
25788
 
@%:@define HAVE_WORKING_VFORK 1
25789
 
_ACEOF
25790
 
 
25791
 
else
25792
 
  
25793
 
cat >>confdefs.h <<\_ACEOF
25794
 
@%:@define vfork fork
25795
 
_ACEOF
25796
 
 
25797
 
fi
25798
 
if test "x$ac_cv_func_fork_works" = xyes; then
25799
 
  
25800
 
cat >>confdefs.h <<\_ACEOF
25801
 
@%:@define HAVE_WORKING_FORK 1
25802
 
_ACEOF
25803
 
 
25804
 
fi
25805
 
 
25806
 
{ echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25807
 
echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25808
 
if test "${ac_cv_type_getgroups+set}" = set; then
25809
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25810
 
else
25811
 
  if test "$cross_compiling" = yes; then
25812
 
  ac_cv_type_getgroups=cross
25813
 
else
25814
 
  cat >conftest.$ac_ext <<_ACEOF
25815
 
/* confdefs.h.  */
25816
 
_ACEOF
25817
 
cat confdefs.h >>conftest.$ac_ext
25818
 
cat >>conftest.$ac_ext <<_ACEOF
25819
 
/* end confdefs.h.  */
25820
 
/* Thanks to Mike Rendell for this test.  */
25821
 
$ac_includes_default
25822
 
#define NGID 256
25823
 
#undef MAX
25824
 
#define MAX(x, y) ((x) > (y) ? (x) : (y))
25825
 
 
25826
 
int
25827
 
main ()
25828
 
{
25829
 
  gid_t gidset[NGID];
25830
 
  int i, n;
25831
 
  union { gid_t gval; long int lval; }  val;
25832
 
 
25833
 
  val.lval = -1;
25834
 
  for (i = 0; i < NGID; i++)
25835
 
    gidset[i] = val.gval;
25836
 
  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25837
 
                 gidset);
25838
 
  /* Exit non-zero if getgroups seems to require an array of ints.  This
25839
 
     happens when gid_t is short int but getgroups modifies an array
25840
 
     of ints.  */
25841
 
  return n > 0 && gidset[n] != val.gval;
25842
 
}
25843
 
_ACEOF
25844
 
rm -f conftest$ac_exeext
25845
 
if { (ac_try="$ac_link"
25846
 
case "(($ac_try" in
25847
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848
 
  *) ac_try_echo=$ac_try;;
25849
 
esac
25850
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25851
 
  (eval "$ac_link") 2>&5
25852
 
  ac_status=$?
25853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25855
 
  { (case "(($ac_try" in
25856
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857
 
  *) ac_try_echo=$ac_try;;
25858
 
esac
25859
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860
 
  (eval "$ac_try") 2>&5
25861
 
  ac_status=$?
25862
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863
 
  (exit $ac_status); }; }; then
25864
 
  ac_cv_type_getgroups=gid_t
25865
 
else
25866
 
  echo "$as_me: program exited with status $ac_status" >&5
25867
 
echo "$as_me: failed program was:" >&5
25868
 
sed 's/^/| /' conftest.$ac_ext >&5
25869
 
 
25870
 
( exit $ac_status )
25871
 
ac_cv_type_getgroups=int
25872
 
fi
25873
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25874
 
fi
25875
 
 
25876
 
 
25877
 
if test $ac_cv_type_getgroups = cross; then
25878
 
        cat >conftest.$ac_ext <<_ACEOF
25879
 
/* confdefs.h.  */
25880
 
_ACEOF
25881
 
cat confdefs.h >>conftest.$ac_ext
25882
 
cat >>conftest.$ac_ext <<_ACEOF
25883
 
/* end confdefs.h.  */
25884
 
#include <unistd.h>
25885
 
 
25886
 
_ACEOF
25887
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25888
 
  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25889
 
  ac_cv_type_getgroups=gid_t
25890
 
else
25891
 
  ac_cv_type_getgroups=int
25892
 
fi
25893
 
rm -f conftest*
25894
 
 
25895
 
fi
25896
 
fi
25897
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25898
 
echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25899
 
 
25900
 
cat >>confdefs.h <<_ACEOF
25901
 
@%:@define GETGROUPS_T $ac_cv_type_getgroups
25902
 
_ACEOF
25903
 
 
25904
 
 
25905
 
{ echo "$as_me:$LINENO: checking for getgroups" >&5
25906
 
echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25907
 
if test "${ac_cv_func_getgroups+set}" = set; then
25908
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25909
 
else
25910
 
  cat >conftest.$ac_ext <<_ACEOF
25911
 
/* confdefs.h.  */
25912
 
_ACEOF
25913
 
cat confdefs.h >>conftest.$ac_ext
25914
 
cat >>conftest.$ac_ext <<_ACEOF
25915
 
/* end confdefs.h.  */
25916
 
/* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25917
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25918
 
#define getgroups innocuous_getgroups
25919
 
 
25920
 
/* System header to define __stub macros and hopefully few prototypes,
25921
 
    which can conflict with char getgroups (); below.
25922
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25923
 
    <limits.h> exists even on freestanding compilers.  */
25924
 
 
25925
 
#ifdef __STDC__
25926
 
# include <limits.h>
25927
 
#else
25928
 
# include <assert.h>
25929
 
#endif
25930
 
 
25931
 
#undef getgroups
25932
 
 
25933
 
/* Override any GCC internal prototype to avoid an error.
25934
 
   Use char because int might match the return type of a GCC
25935
 
   builtin and then its argument prototype would still apply.  */
25936
 
#ifdef __cplusplus
25937
 
extern "C"
25938
 
#endif
25939
 
char getgroups ();
25940
 
/* The GNU C library defines this for functions which it implements
25941
 
    to always fail with ENOSYS.  Some functions are actually named
25942
 
    something starting with __ and the normal name is an alias.  */
25943
 
#if defined __stub_getgroups || defined __stub___getgroups
25944
 
choke me
25945
 
#endif
25946
 
 
25947
 
int
25948
 
main ()
25949
 
{
25950
 
return getgroups ();
25951
 
  ;
25952
 
  return 0;
25953
 
}
25954
 
_ACEOF
25955
 
rm -f conftest.$ac_objext conftest$ac_exeext
25956
 
if { (ac_try="$ac_link"
25957
 
case "(($ac_try" in
25958
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959
 
  *) ac_try_echo=$ac_try;;
25960
 
esac
25961
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25962
 
  (eval "$ac_link") 2>conftest.er1
25963
 
  ac_status=$?
25964
 
  grep -v '^ *+' conftest.er1 >conftest.err
25965
 
  rm -f conftest.er1
25966
 
  cat conftest.err >&5
25967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968
 
  (exit $ac_status); } &&
25969
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25970
 
  { (case "(($ac_try" in
25971
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972
 
  *) ac_try_echo=$ac_try;;
25973
 
esac
25974
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975
 
  (eval "$ac_try") 2>&5
25976
 
  ac_status=$?
25977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978
 
  (exit $ac_status); }; } &&
25979
 
         { ac_try='test -s conftest$ac_exeext'
25980
 
  { (case "(($ac_try" in
25981
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982
 
  *) ac_try_echo=$ac_try;;
25983
 
esac
25984
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25985
 
  (eval "$ac_try") 2>&5
25986
 
  ac_status=$?
25987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988
 
  (exit $ac_status); }; }; then
25989
 
  ac_cv_func_getgroups=yes
25990
 
else
25991
 
  echo "$as_me: failed program was:" >&5
25992
 
sed 's/^/| /' conftest.$ac_ext >&5
25993
 
 
25994
 
        ac_cv_func_getgroups=no
25995
 
fi
25996
 
 
25997
 
rm -f conftest.err conftest.$ac_objext \
25998
 
      conftest$ac_exeext conftest.$ac_ext
25999
 
fi
26000
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26001
 
echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26002
 
 
26003
 
 
26004
 
# If we don't yet have getgroups, see if it's in -lbsd.
26005
 
# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26006
 
ac_save_LIBS=$LIBS
26007
 
if test $ac_cv_func_getgroups = no; then
26008
 
  { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26009
 
echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26010
 
if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26011
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26012
 
else
26013
 
  ac_check_lib_save_LIBS=$LIBS
26014
 
LIBS="-lbsd  $LIBS"
26015
 
cat >conftest.$ac_ext <<_ACEOF
26016
 
/* confdefs.h.  */
26017
 
_ACEOF
26018
 
cat confdefs.h >>conftest.$ac_ext
26019
 
cat >>conftest.$ac_ext <<_ACEOF
26020
 
/* end confdefs.h.  */
26021
 
 
26022
 
/* Override any GCC internal prototype to avoid an error.
26023
 
   Use char because int might match the return type of a GCC
26024
 
   builtin and then its argument prototype would still apply.  */
26025
 
#ifdef __cplusplus
26026
 
extern "C"
26027
 
#endif
26028
 
char getgroups ();
26029
 
int
26030
 
main ()
26031
 
{
26032
 
return getgroups ();
26033
 
  ;
26034
 
  return 0;
26035
 
}
26036
 
_ACEOF
26037
 
rm -f conftest.$ac_objext conftest$ac_exeext
26038
 
if { (ac_try="$ac_link"
26039
 
case "(($ac_try" in
26040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26041
 
  *) ac_try_echo=$ac_try;;
26042
 
esac
26043
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26044
 
  (eval "$ac_link") 2>conftest.er1
26045
 
  ac_status=$?
26046
 
  grep -v '^ *+' conftest.er1 >conftest.err
26047
 
  rm -f conftest.er1
26048
 
  cat conftest.err >&5
26049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050
 
  (exit $ac_status); } &&
26051
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26052
 
  { (case "(($ac_try" in
26053
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054
 
  *) ac_try_echo=$ac_try;;
26055
 
esac
26056
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057
 
  (eval "$ac_try") 2>&5
26058
 
  ac_status=$?
26059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060
 
  (exit $ac_status); }; } &&
26061
 
         { ac_try='test -s conftest$ac_exeext'
26062
 
  { (case "(($ac_try" in
26063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064
 
  *) ac_try_echo=$ac_try;;
26065
 
esac
26066
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067
 
  (eval "$ac_try") 2>&5
26068
 
  ac_status=$?
26069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070
 
  (exit $ac_status); }; }; then
26071
 
  ac_cv_lib_bsd_getgroups=yes
26072
 
else
26073
 
  echo "$as_me: failed program was:" >&5
26074
 
sed 's/^/| /' conftest.$ac_ext >&5
26075
 
 
26076
 
        ac_cv_lib_bsd_getgroups=no
26077
 
fi
26078
 
 
26079
 
rm -f conftest.err conftest.$ac_objext \
26080
 
      conftest$ac_exeext conftest.$ac_ext
26081
 
LIBS=$ac_check_lib_save_LIBS
26082
 
fi
26083
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26084
 
echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26085
 
if test $ac_cv_lib_bsd_getgroups = yes; then
26086
 
  GETGROUPS_LIB=-lbsd
26087
 
fi
26088
 
 
26089
 
fi
26090
 
 
26091
 
# Run the program to test the functionality of the system-supplied
26092
 
# getgroups function only if there is such a function.
26093
 
if test $ac_cv_func_getgroups = yes; then
26094
 
  { echo "$as_me:$LINENO: checking for working getgroups" >&5
26095
 
echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26096
 
if test "${ac_cv_func_getgroups_works+set}" = set; then
26097
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26098
 
else
26099
 
  if test "$cross_compiling" = yes; then
26100
 
  ac_cv_func_getgroups_works=no
26101
 
else
26102
 
  cat >conftest.$ac_ext <<_ACEOF
26103
 
/* confdefs.h.  */
26104
 
_ACEOF
26105
 
cat confdefs.h >>conftest.$ac_ext
26106
 
cat >>conftest.$ac_ext <<_ACEOF
26107
 
/* end confdefs.h.  */
26108
 
$ac_includes_default
26109
 
int
26110
 
main ()
26111
 
{
26112
 
/* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26113
 
       return getgroups (0, 0) == -1;
26114
 
  ;
26115
 
  return 0;
26116
 
}
26117
 
_ACEOF
26118
 
rm -f conftest$ac_exeext
26119
 
if { (ac_try="$ac_link"
26120
 
case "(($ac_try" in
26121
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122
 
  *) ac_try_echo=$ac_try;;
26123
 
esac
26124
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125
 
  (eval "$ac_link") 2>&5
26126
 
  ac_status=$?
26127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26129
 
  { (case "(($ac_try" in
26130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131
 
  *) ac_try_echo=$ac_try;;
26132
 
esac
26133
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134
 
  (eval "$ac_try") 2>&5
26135
 
  ac_status=$?
26136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137
 
  (exit $ac_status); }; }; then
26138
 
  ac_cv_func_getgroups_works=yes
26139
 
else
26140
 
  echo "$as_me: program exited with status $ac_status" >&5
26141
 
echo "$as_me: failed program was:" >&5
26142
 
sed 's/^/| /' conftest.$ac_ext >&5
26143
 
 
26144
 
( exit $ac_status )
26145
 
ac_cv_func_getgroups_works=no
26146
 
fi
26147
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26148
 
fi
26149
 
 
26150
 
 
26151
 
   
26152
 
fi
26153
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26154
 
echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26155
 
  if test $ac_cv_func_getgroups_works = yes; then
26156
 
    
26157
 
cat >>confdefs.h <<\_ACEOF
26158
 
@%:@define HAVE_GETGROUPS 1
26159
 
_ACEOF
26160
 
 
26161
 
  fi
26162
 
fi
26163
 
LIBS=$ac_save_LIBS
26164
 
 
26165
 
# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26166
 
# -lseq on Dynix/PTX, -lgen on Unixware.
26167
 
{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26168
 
echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26169
 
if test "${ac_cv_search_getmntent+set}" = set; then
26170
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26171
 
else
26172
 
  ac_func_search_save_LIBS=$LIBS
26173
 
cat >conftest.$ac_ext <<_ACEOF
26174
 
/* confdefs.h.  */
26175
 
_ACEOF
26176
 
cat confdefs.h >>conftest.$ac_ext
26177
 
cat >>conftest.$ac_ext <<_ACEOF
26178
 
/* end confdefs.h.  */
26179
 
 
26180
 
/* Override any GCC internal prototype to avoid an error.
26181
 
   Use char because int might match the return type of a GCC
26182
 
   builtin and then its argument prototype would still apply.  */
26183
 
#ifdef __cplusplus
26184
 
extern "C"
26185
 
#endif
26186
 
char getmntent ();
26187
 
int
26188
 
main ()
26189
 
{
26190
 
return getmntent ();
26191
 
  ;
26192
 
  return 0;
26193
 
}
26194
 
_ACEOF
26195
 
for ac_lib in '' sun seq gen; do
26196
 
  if test -z "$ac_lib"; then
26197
 
    ac_res="none required"
26198
 
  else
26199
 
    ac_res=-l$ac_lib
26200
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26201
 
  fi
26202
 
  rm -f conftest.$ac_objext conftest$ac_exeext
26203
 
if { (ac_try="$ac_link"
26204
 
case "(($ac_try" in
26205
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206
 
  *) ac_try_echo=$ac_try;;
26207
 
esac
26208
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209
 
  (eval "$ac_link") 2>conftest.er1
26210
 
  ac_status=$?
26211
 
  grep -v '^ *+' conftest.er1 >conftest.err
26212
 
  rm -f conftest.er1
26213
 
  cat conftest.err >&5
26214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215
 
  (exit $ac_status); } &&
26216
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26217
 
  { (case "(($ac_try" in
26218
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219
 
  *) ac_try_echo=$ac_try;;
26220
 
esac
26221
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222
 
  (eval "$ac_try") 2>&5
26223
 
  ac_status=$?
26224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225
 
  (exit $ac_status); }; } &&
26226
 
         { ac_try='test -s conftest$ac_exeext'
26227
 
  { (case "(($ac_try" in
26228
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229
 
  *) ac_try_echo=$ac_try;;
26230
 
esac
26231
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26232
 
  (eval "$ac_try") 2>&5
26233
 
  ac_status=$?
26234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235
 
  (exit $ac_status); }; }; then
26236
 
  ac_cv_search_getmntent=$ac_res
26237
 
else
26238
 
  echo "$as_me: failed program was:" >&5
26239
 
sed 's/^/| /' conftest.$ac_ext >&5
26240
 
 
26241
 
        
26242
 
fi
26243
 
 
26244
 
rm -f conftest.err conftest.$ac_objext \
26245
 
      conftest$ac_exeext 
26246
 
  if test "${ac_cv_search_getmntent+set}" = set; then
26247
 
  break
26248
 
fi
26249
 
done
26250
 
if test "${ac_cv_search_getmntent+set}" = set; then
26251
 
  :
26252
 
else
26253
 
  ac_cv_search_getmntent=no
26254
 
fi
26255
 
rm conftest.$ac_ext
26256
 
LIBS=$ac_func_search_save_LIBS
26257
 
fi
26258
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26259
 
echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26260
 
ac_res=$ac_cv_search_getmntent
26261
 
if test "$ac_res" != no; then
26262
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26263
 
  
26264
 
fi
26265
 
 
26266
 
 
26267
 
for ac_func in getmntent
26268
 
do
26269
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26270
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26271
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26272
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26274
 
else
26275
 
  cat >conftest.$ac_ext <<_ACEOF
26276
 
/* confdefs.h.  */
26277
 
_ACEOF
26278
 
cat confdefs.h >>conftest.$ac_ext
26279
 
cat >>conftest.$ac_ext <<_ACEOF
26280
 
/* end confdefs.h.  */
26281
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26282
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26283
 
#define $ac_func innocuous_$ac_func
26284
 
 
26285
 
/* System header to define __stub macros and hopefully few prototypes,
26286
 
    which can conflict with char $ac_func (); below.
26287
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26288
 
    <limits.h> exists even on freestanding compilers.  */
26289
 
 
26290
 
#ifdef __STDC__
26291
 
# include <limits.h>
26292
 
#else
26293
 
# include <assert.h>
26294
 
#endif
26295
 
 
26296
 
#undef $ac_func
26297
 
 
26298
 
/* Override any GCC internal prototype to avoid an error.
26299
 
   Use char because int might match the return type of a GCC
26300
 
   builtin and then its argument prototype would still apply.  */
26301
 
#ifdef __cplusplus
26302
 
extern "C"
26303
 
#endif
26304
 
char $ac_func ();
26305
 
/* The GNU C library defines this for functions which it implements
26306
 
    to always fail with ENOSYS.  Some functions are actually named
26307
 
    something starting with __ and the normal name is an alias.  */
26308
 
#if defined __stub_$ac_func || defined __stub___$ac_func
26309
 
choke me
26310
 
#endif
26311
 
 
26312
 
int
26313
 
main ()
26314
 
{
26315
 
return $ac_func ();
26316
 
  ;
26317
 
  return 0;
26318
 
}
26319
 
_ACEOF
26320
 
rm -f conftest.$ac_objext conftest$ac_exeext
26321
 
if { (ac_try="$ac_link"
26322
 
case "(($ac_try" in
26323
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324
 
  *) ac_try_echo=$ac_try;;
26325
 
esac
26326
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26327
 
  (eval "$ac_link") 2>conftest.er1
26328
 
  ac_status=$?
26329
 
  grep -v '^ *+' conftest.er1 >conftest.err
26330
 
  rm -f conftest.er1
26331
 
  cat conftest.err >&5
26332
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333
 
  (exit $ac_status); } &&
26334
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26335
 
  { (case "(($ac_try" in
26336
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337
 
  *) ac_try_echo=$ac_try;;
26338
 
esac
26339
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340
 
  (eval "$ac_try") 2>&5
26341
 
  ac_status=$?
26342
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343
 
  (exit $ac_status); }; } &&
26344
 
         { ac_try='test -s conftest$ac_exeext'
26345
 
  { (case "(($ac_try" in
26346
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347
 
  *) ac_try_echo=$ac_try;;
26348
 
esac
26349
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350
 
  (eval "$ac_try") 2>&5
26351
 
  ac_status=$?
26352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353
 
  (exit $ac_status); }; }; then
26354
 
  eval "$as_ac_var=yes"
26355
 
else
26356
 
  echo "$as_me: failed program was:" >&5
26357
 
sed 's/^/| /' conftest.$ac_ext >&5
26358
 
 
26359
 
        eval "$as_ac_var=no"
26360
 
fi
26361
 
 
26362
 
rm -f conftest.err conftest.$ac_objext \
26363
 
      conftest$ac_exeext conftest.$ac_ext
26364
 
fi
26365
 
ac_res=`eval echo '${'$as_ac_var'}'`
26366
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
26367
 
echo "${ECHO_T}$ac_res" >&6; }
26368
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
26369
 
  cat >>confdefs.h <<_ACEOF
26370
 
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26371
 
_ACEOF
26372
 
 
26373
 
fi
26374
 
done
26375
 
 
26376
 
 
26377
 
if test $ac_cv_c_compiler_gnu = yes; then
26378
 
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26379
 
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26380
 
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26381
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26382
 
else
26383
 
    ac_pattern="Autoconf.*'x'"
26384
 
  cat >conftest.$ac_ext <<_ACEOF
26385
 
/* confdefs.h.  */
26386
 
_ACEOF
26387
 
cat confdefs.h >>conftest.$ac_ext
26388
 
cat >>conftest.$ac_ext <<_ACEOF
26389
 
/* end confdefs.h.  */
26390
 
#include <sgtty.h>
26391
 
Autoconf TIOCGETP
26392
 
_ACEOF
26393
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26394
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
26395
 
  ac_cv_prog_gcc_traditional=yes
26396
 
else
26397
 
  ac_cv_prog_gcc_traditional=no
26398
 
fi
26399
 
rm -f conftest*
26400
 
 
26401
 
 
26402
 
  if test $ac_cv_prog_gcc_traditional = no; then
26403
 
    cat >conftest.$ac_ext <<_ACEOF
26404
 
/* confdefs.h.  */
26405
 
_ACEOF
26406
 
cat confdefs.h >>conftest.$ac_ext
26407
 
cat >>conftest.$ac_ext <<_ACEOF
26408
 
/* end confdefs.h.  */
26409
 
#include <termio.h>
26410
 
Autoconf TCGETA
26411
 
_ACEOF
26412
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26413
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
26414
 
  ac_cv_prog_gcc_traditional=yes
26415
 
fi
26416
 
rm -f conftest*
26417
 
 
26418
 
  fi
26419
 
fi
26420
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26421
 
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26422
 
  if test $ac_cv_prog_gcc_traditional = yes; then
26423
 
    CC="$CC -traditional"
26424
 
  fi
26425
 
fi
26426
 
 
26427
 
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26428
 
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26429
 
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26430
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26431
 
else
26432
 
  rm -f conftest.sym conftest.file
26433
 
echo >conftest.file
26434
 
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26435
 
  if test "$cross_compiling" = yes; then
26436
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
26437
 
else
26438
 
  cat >conftest.$ac_ext <<_ACEOF
26439
 
/* confdefs.h.  */
26440
 
_ACEOF
26441
 
cat confdefs.h >>conftest.$ac_ext
26442
 
cat >>conftest.$ac_ext <<_ACEOF
26443
 
/* end confdefs.h.  */
26444
 
$ac_includes_default
26445
 
int
26446
 
main ()
26447
 
{
26448
 
struct stat sbuf;
26449
 
     /* Linux will dereference the symlink and fail.
26450
 
        That is better in the sense that it means we will not
26451
 
        have to compile and use the lstat wrapper.  */
26452
 
     return lstat ("conftest.sym/", &sbuf) == 0;
26453
 
  ;
26454
 
  return 0;
26455
 
}
26456
 
_ACEOF
26457
 
rm -f conftest$ac_exeext
26458
 
if { (ac_try="$ac_link"
26459
 
case "(($ac_try" in
26460
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461
 
  *) ac_try_echo=$ac_try;;
26462
 
esac
26463
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26464
 
  (eval "$ac_link") 2>&5
26465
 
  ac_status=$?
26466
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26468
 
  { (case "(($ac_try" in
26469
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470
 
  *) ac_try_echo=$ac_try;;
26471
 
esac
26472
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26473
 
  (eval "$ac_try") 2>&5
26474
 
  ac_status=$?
26475
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476
 
  (exit $ac_status); }; }; then
26477
 
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
26478
 
else
26479
 
  echo "$as_me: program exited with status $ac_status" >&5
26480
 
echo "$as_me: failed program was:" >&5
26481
 
sed 's/^/| /' conftest.$ac_ext >&5
26482
 
 
26483
 
( exit $ac_status )
26484
 
ac_cv_func_lstat_dereferences_slashed_symlink=no
26485
 
fi
26486
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26487
 
fi
26488
 
 
26489
 
 
26490
 
else
26491
 
  # If the `ln -s' command failed, then we probably don't even
26492
 
  # have an lstat function.
26493
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
26494
 
fi
26495
 
rm -f conftest.sym conftest.file
26496
 
 
26497
 
fi
26498
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26499
 
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26500
 
 
26501
 
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26502
 
  
26503
 
cat >>confdefs.h <<_ACEOF
26504
 
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26505
 
_ACEOF
26506
 
 
26507
 
 
26508
 
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26509
 
  case " $LIB@&t@OBJS " in
26510
 
  *" lstat.$ac_objext "* ) ;;
26511
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26512
 
 ;;
26513
 
esac
26514
 
 
26515
 
fi
26516
 
 
26517
 
{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26518
 
echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26519
 
if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26520
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26521
 
else
26522
 
  if test "$cross_compiling" = yes; then
26523
 
  ac_cv_func_lstat_empty_string_bug=yes
26524
 
else
26525
 
  cat >conftest.$ac_ext <<_ACEOF
26526
 
/* confdefs.h.  */
26527
 
_ACEOF
26528
 
cat confdefs.h >>conftest.$ac_ext
26529
 
cat >>conftest.$ac_ext <<_ACEOF
26530
 
/* end confdefs.h.  */
26531
 
$ac_includes_default
26532
 
int
26533
 
main ()
26534
 
{
26535
 
struct stat sbuf;
26536
 
  return lstat ("", &sbuf) == 0;
26537
 
  ;
26538
 
  return 0;
26539
 
}
26540
 
_ACEOF
26541
 
rm -f conftest$ac_exeext
26542
 
if { (ac_try="$ac_link"
26543
 
case "(($ac_try" in
26544
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545
 
  *) ac_try_echo=$ac_try;;
26546
 
esac
26547
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548
 
  (eval "$ac_link") 2>&5
26549
 
  ac_status=$?
26550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26552
 
  { (case "(($ac_try" in
26553
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554
 
  *) ac_try_echo=$ac_try;;
26555
 
esac
26556
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557
 
  (eval "$ac_try") 2>&5
26558
 
  ac_status=$?
26559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560
 
  (exit $ac_status); }; }; then
26561
 
  ac_cv_func_lstat_empty_string_bug=no
26562
 
else
26563
 
  echo "$as_me: program exited with status $ac_status" >&5
26564
 
echo "$as_me: failed program was:" >&5
26565
 
sed 's/^/| /' conftest.$ac_ext >&5
26566
 
 
26567
 
( exit $ac_status )
26568
 
ac_cv_func_lstat_empty_string_bug=yes
26569
 
fi
26570
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26571
 
fi
26572
 
 
26573
 
 
26574
 
fi
26575
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26576
 
echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26577
 
if test $ac_cv_func_lstat_empty_string_bug = yes; then
26578
 
  case " $LIB@&t@OBJS " in
26579
 
  *" lstat.$ac_objext "* ) ;;
26580
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26581
 
 ;;
26582
 
esac
26583
 
 
26584
 
  
26585
 
cat >>confdefs.h <<_ACEOF
26586
 
@%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26587
 
_ACEOF
26588
 
 
26589
 
fi
26590
 
 
26591
 
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26592
 
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26593
 
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26594
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26595
 
else
26596
 
  rm -f conftest.sym conftest.file
26597
 
echo >conftest.file
26598
 
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26599
 
  if test "$cross_compiling" = yes; then
26600
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
26601
 
else
26602
 
  cat >conftest.$ac_ext <<_ACEOF
26603
 
/* confdefs.h.  */
26604
 
_ACEOF
26605
 
cat confdefs.h >>conftest.$ac_ext
26606
 
cat >>conftest.$ac_ext <<_ACEOF
26607
 
/* end confdefs.h.  */
26608
 
$ac_includes_default
26609
 
int
26610
 
main ()
26611
 
{
26612
 
struct stat sbuf;
26613
 
     /* Linux will dereference the symlink and fail.
26614
 
        That is better in the sense that it means we will not
26615
 
        have to compile and use the lstat wrapper.  */
26616
 
     return lstat ("conftest.sym/", &sbuf) == 0;
26617
 
  ;
26618
 
  return 0;
26619
 
}
26620
 
_ACEOF
26621
 
rm -f conftest$ac_exeext
26622
 
if { (ac_try="$ac_link"
26623
 
case "(($ac_try" in
26624
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26625
 
  *) ac_try_echo=$ac_try;;
26626
 
esac
26627
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26628
 
  (eval "$ac_link") 2>&5
26629
 
  ac_status=$?
26630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26632
 
  { (case "(($ac_try" in
26633
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634
 
  *) ac_try_echo=$ac_try;;
26635
 
esac
26636
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637
 
  (eval "$ac_try") 2>&5
26638
 
  ac_status=$?
26639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640
 
  (exit $ac_status); }; }; then
26641
 
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
26642
 
else
26643
 
  echo "$as_me: program exited with status $ac_status" >&5
26644
 
echo "$as_me: failed program was:" >&5
26645
 
sed 's/^/| /' conftest.$ac_ext >&5
26646
 
 
26647
 
( exit $ac_status )
26648
 
ac_cv_func_lstat_dereferences_slashed_symlink=no
26649
 
fi
26650
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26651
 
fi
26652
 
 
26653
 
 
26654
 
else
26655
 
  # If the `ln -s' command failed, then we probably don't even
26656
 
  # have an lstat function.
26657
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
26658
 
fi
26659
 
rm -f conftest.sym conftest.file
26660
 
 
26661
 
fi
26662
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26663
 
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26664
 
 
26665
 
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26666
 
  
26667
 
cat >>confdefs.h <<_ACEOF
26668
 
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26669
 
_ACEOF
26670
 
 
26671
 
 
26672
 
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26673
 
  case " $LIB@&t@OBJS " in
26674
 
  *" lstat.$ac_objext "* ) ;;
26675
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26676
 
 ;;
26677
 
esac
26678
 
 
26679
 
fi
26680
 
 
26681
 
{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26682
 
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26683
 
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26685
 
else
26686
 
  cat >conftest.$ac_ext <<_ACEOF
26687
 
/* confdefs.h.  */
26688
 
_ACEOF
26689
 
cat confdefs.h >>conftest.$ac_ext
26690
 
cat >>conftest.$ac_ext <<_ACEOF
26691
 
/* end confdefs.h.  */
26692
 
@%:@include <sys/types.h>
26693
 
int
26694
 
main ()
26695
 
{
26696
 
return makedev(0, 0);
26697
 
  ;
26698
 
  return 0;
26699
 
}
26700
 
_ACEOF
26701
 
rm -f conftest.$ac_objext conftest$ac_exeext
26702
 
if { (ac_try="$ac_link"
26703
 
case "(($ac_try" in
26704
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705
 
  *) ac_try_echo=$ac_try;;
26706
 
esac
26707
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708
 
  (eval "$ac_link") 2>conftest.er1
26709
 
  ac_status=$?
26710
 
  grep -v '^ *+' conftest.er1 >conftest.err
26711
 
  rm -f conftest.er1
26712
 
  cat conftest.err >&5
26713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714
 
  (exit $ac_status); } &&
26715
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26716
 
  { (case "(($ac_try" in
26717
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718
 
  *) ac_try_echo=$ac_try;;
26719
 
esac
26720
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721
 
  (eval "$ac_try") 2>&5
26722
 
  ac_status=$?
26723
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724
 
  (exit $ac_status); }; } &&
26725
 
         { ac_try='test -s conftest$ac_exeext'
26726
 
  { (case "(($ac_try" in
26727
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728
 
  *) ac_try_echo=$ac_try;;
26729
 
esac
26730
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731
 
  (eval "$ac_try") 2>&5
26732
 
  ac_status=$?
26733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734
 
  (exit $ac_status); }; }; then
26735
 
  ac_cv_header_sys_types_h_makedev=yes
26736
 
else
26737
 
  echo "$as_me: failed program was:" >&5
26738
 
sed 's/^/| /' conftest.$ac_ext >&5
26739
 
 
26740
 
        ac_cv_header_sys_types_h_makedev=no
26741
 
fi
26742
 
 
26743
 
rm -f conftest.err conftest.$ac_objext \
26744
 
      conftest$ac_exeext conftest.$ac_ext
26745
 
 
26746
 
fi
26747
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26748
 
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26749
 
 
26750
 
if test $ac_cv_header_sys_types_h_makedev = no; then
26751
 
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26752
 
  { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26753
 
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26754
 
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26755
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26756
 
fi
26757
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26758
 
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26759
 
else
26760
 
  # Is the header compilable?
26761
 
{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26762
 
echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26763
 
cat >conftest.$ac_ext <<_ACEOF
26764
 
/* confdefs.h.  */
26765
 
_ACEOF
26766
 
cat confdefs.h >>conftest.$ac_ext
26767
 
cat >>conftest.$ac_ext <<_ACEOF
26768
 
/* end confdefs.h.  */
26769
 
$ac_includes_default
26770
 
@%:@include <sys/mkdev.h>
26771
 
_ACEOF
26772
 
rm -f conftest.$ac_objext
26773
 
if { (ac_try="$ac_compile"
26774
 
case "(($ac_try" in
26775
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26776
 
  *) ac_try_echo=$ac_try;;
26777
 
esac
26778
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779
 
  (eval "$ac_compile") 2>conftest.er1
26780
 
  ac_status=$?
26781
 
  grep -v '^ *+' conftest.er1 >conftest.err
26782
 
  rm -f conftest.er1
26783
 
  cat conftest.err >&5
26784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785
 
  (exit $ac_status); } &&
26786
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26787
 
  { (case "(($ac_try" in
26788
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789
 
  *) ac_try_echo=$ac_try;;
26790
 
esac
26791
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792
 
  (eval "$ac_try") 2>&5
26793
 
  ac_status=$?
26794
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795
 
  (exit $ac_status); }; } &&
26796
 
         { ac_try='test -s conftest.$ac_objext'
26797
 
  { (case "(($ac_try" in
26798
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26799
 
  *) ac_try_echo=$ac_try;;
26800
 
esac
26801
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26802
 
  (eval "$ac_try") 2>&5
26803
 
  ac_status=$?
26804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805
 
  (exit $ac_status); }; }; then
26806
 
  ac_header_compiler=yes
26807
 
else
26808
 
  echo "$as_me: failed program was:" >&5
26809
 
sed 's/^/| /' conftest.$ac_ext >&5
26810
 
 
26811
 
        ac_header_compiler=no
26812
 
fi
26813
 
 
26814
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26815
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26816
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
26817
 
 
26818
 
# Is the header present?
26819
 
{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26820
 
echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26821
 
cat >conftest.$ac_ext <<_ACEOF
26822
 
/* confdefs.h.  */
26823
 
_ACEOF
26824
 
cat confdefs.h >>conftest.$ac_ext
26825
 
cat >>conftest.$ac_ext <<_ACEOF
26826
 
/* end confdefs.h.  */
26827
 
@%:@include <sys/mkdev.h>
26828
 
_ACEOF
26829
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
26830
 
case "(($ac_try" in
26831
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832
 
  *) ac_try_echo=$ac_try;;
26833
 
esac
26834
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26835
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26836
 
  ac_status=$?
26837
 
  grep -v '^ *+' conftest.er1 >conftest.err
26838
 
  rm -f conftest.er1
26839
 
  cat conftest.err >&5
26840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841
 
  (exit $ac_status); } >/dev/null; then
26842
 
  if test -s conftest.err; then
26843
 
    ac_cpp_err=$ac_c_preproc_warn_flag
26844
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26845
 
  else
26846
 
    ac_cpp_err=
26847
 
  fi
26848
 
else
26849
 
  ac_cpp_err=yes
26850
 
fi
26851
 
if test -z "$ac_cpp_err"; then
26852
 
  ac_header_preproc=yes
26853
 
else
26854
 
  echo "$as_me: failed program was:" >&5
26855
 
sed 's/^/| /' conftest.$ac_ext >&5
26856
 
 
26857
 
  ac_header_preproc=no
26858
 
fi
26859
 
 
26860
 
rm -f conftest.err conftest.$ac_ext
26861
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26862
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
26863
 
 
26864
 
# So?  What about this header?
26865
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26866
 
  yes:no: )
26867
 
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26868
 
echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26869
 
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26870
 
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26871
 
    ac_header_preproc=yes
26872
 
    ;;
26873
 
  no:yes:* )
26874
 
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26875
 
echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26876
 
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26877
 
echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26878
 
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26879
 
echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26880
 
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26881
 
echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26882
 
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26883
 
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26884
 
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26885
 
echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26886
 
    ( cat <<\_ASBOX
26887
 
@%:@@%:@ ------------------------------- @%:@@%:@
26888
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26889
 
@%:@@%:@ ------------------------------- @%:@@%:@
26890
 
_ASBOX
26891
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
26892
 
    ;;
26893
 
esac
26894
 
{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26895
 
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26896
 
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26898
 
else
26899
 
  ac_cv_header_sys_mkdev_h=$ac_header_preproc
26900
 
fi
26901
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26902
 
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26903
 
 
26904
 
fi
26905
 
if test $ac_cv_header_sys_mkdev_h = yes; then
26906
 
  
26907
 
cat >>confdefs.h <<\_ACEOF
26908
 
@%:@define MAJOR_IN_MKDEV 1
26909
 
_ACEOF
26910
 
 
26911
 
fi
26912
 
 
26913
 
 
26914
 
 
26915
 
  if test $ac_cv_header_sys_mkdev_h = no; then
26916
 
    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26917
 
  { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26918
 
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26919
 
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26920
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26921
 
fi
26922
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26923
 
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26924
 
else
26925
 
  # Is the header compilable?
26926
 
{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26927
 
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26928
 
cat >conftest.$ac_ext <<_ACEOF
26929
 
/* confdefs.h.  */
26930
 
_ACEOF
26931
 
cat confdefs.h >>conftest.$ac_ext
26932
 
cat >>conftest.$ac_ext <<_ACEOF
26933
 
/* end confdefs.h.  */
26934
 
$ac_includes_default
26935
 
@%:@include <sys/sysmacros.h>
26936
 
_ACEOF
26937
 
rm -f conftest.$ac_objext
26938
 
if { (ac_try="$ac_compile"
26939
 
case "(($ac_try" in
26940
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941
 
  *) ac_try_echo=$ac_try;;
26942
 
esac
26943
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26944
 
  (eval "$ac_compile") 2>conftest.er1
26945
 
  ac_status=$?
26946
 
  grep -v '^ *+' conftest.er1 >conftest.err
26947
 
  rm -f conftest.er1
26948
 
  cat conftest.err >&5
26949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950
 
  (exit $ac_status); } &&
26951
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26952
 
  { (case "(($ac_try" in
26953
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954
 
  *) ac_try_echo=$ac_try;;
26955
 
esac
26956
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957
 
  (eval "$ac_try") 2>&5
26958
 
  ac_status=$?
26959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960
 
  (exit $ac_status); }; } &&
26961
 
         { ac_try='test -s conftest.$ac_objext'
26962
 
  { (case "(($ac_try" in
26963
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26964
 
  *) ac_try_echo=$ac_try;;
26965
 
esac
26966
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26967
 
  (eval "$ac_try") 2>&5
26968
 
  ac_status=$?
26969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970
 
  (exit $ac_status); }; }; then
26971
 
  ac_header_compiler=yes
26972
 
else
26973
 
  echo "$as_me: failed program was:" >&5
26974
 
sed 's/^/| /' conftest.$ac_ext >&5
26975
 
 
26976
 
        ac_header_compiler=no
26977
 
fi
26978
 
 
26979
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26980
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26981
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
26982
 
 
26983
 
# Is the header present?
26984
 
{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26985
 
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26986
 
cat >conftest.$ac_ext <<_ACEOF
26987
 
/* confdefs.h.  */
26988
 
_ACEOF
26989
 
cat confdefs.h >>conftest.$ac_ext
26990
 
cat >>conftest.$ac_ext <<_ACEOF
26991
 
/* end confdefs.h.  */
26992
 
@%:@include <sys/sysmacros.h>
26993
 
_ACEOF
26994
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
26995
 
case "(($ac_try" in
26996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997
 
  *) ac_try_echo=$ac_try;;
26998
 
esac
26999
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27001
 
  ac_status=$?
27002
 
  grep -v '^ *+' conftest.er1 >conftest.err
27003
 
  rm -f conftest.er1
27004
 
  cat conftest.err >&5
27005
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006
 
  (exit $ac_status); } >/dev/null; then
27007
 
  if test -s conftest.err; then
27008
 
    ac_cpp_err=$ac_c_preproc_warn_flag
27009
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27010
 
  else
27011
 
    ac_cpp_err=
27012
 
  fi
27013
 
else
27014
 
  ac_cpp_err=yes
27015
 
fi
27016
 
if test -z "$ac_cpp_err"; then
27017
 
  ac_header_preproc=yes
27018
 
else
27019
 
  echo "$as_me: failed program was:" >&5
27020
 
sed 's/^/| /' conftest.$ac_ext >&5
27021
 
 
27022
 
  ac_header_preproc=no
27023
 
fi
27024
 
 
27025
 
rm -f conftest.err conftest.$ac_ext
27026
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27027
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
27028
 
 
27029
 
# So?  What about this header?
27030
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27031
 
  yes:no: )
27032
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27033
 
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27034
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27035
 
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27036
 
    ac_header_preproc=yes
27037
 
    ;;
27038
 
  no:yes:* )
27039
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27040
 
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27041
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27042
 
echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27043
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27044
 
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27045
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27046
 
echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27047
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27048
 
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27049
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27050
 
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27051
 
    ( cat <<\_ASBOX
27052
 
@%:@@%:@ ------------------------------- @%:@@%:@
27053
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27054
 
@%:@@%:@ ------------------------------- @%:@@%:@
27055
 
_ASBOX
27056
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
27057
 
    ;;
27058
 
esac
27059
 
{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27060
 
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27061
 
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27063
 
else
27064
 
  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27065
 
fi
27066
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27067
 
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27068
 
 
27069
 
fi
27070
 
if test $ac_cv_header_sys_sysmacros_h = yes; then
27071
 
  
27072
 
cat >>confdefs.h <<\_ACEOF
27073
 
@%:@define MAJOR_IN_SYSMACROS 1
27074
 
_ACEOF
27075
 
 
27076
 
fi
27077
 
 
27078
 
 
27079
 
  fi
27080
 
fi
27081
 
 
27082
 
#AC_FUNC_MALLOC
27083
 
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
27084
 
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27085
 
if test "${ac_cv_func_memcmp_working+set}" = set; then
27086
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27087
 
else
27088
 
  if test "$cross_compiling" = yes; then
27089
 
  ac_cv_func_memcmp_working=no
27090
 
else
27091
 
  cat >conftest.$ac_ext <<_ACEOF
27092
 
/* confdefs.h.  */
27093
 
_ACEOF
27094
 
cat confdefs.h >>conftest.$ac_ext
27095
 
cat >>conftest.$ac_ext <<_ACEOF
27096
 
/* end confdefs.h.  */
27097
 
$ac_includes_default
27098
 
int
27099
 
main ()
27100
 
{
27101
 
 
27102
 
  /* Some versions of memcmp are not 8-bit clean.  */
27103
 
  char c0 = '\100', c1 = '\200', c2 = '\201';
27104
 
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27105
 
    return 1;
27106
 
 
27107
 
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27108
 
     or more and with at least one buffer not starting on a 4-byte boundary.
27109
 
     William Lewis provided this test program.   */
27110
 
  {
27111
 
    char foo[21];
27112
 
    char bar[21];
27113
 
    int i;
27114
 
    for (i = 0; i < 4; i++)
27115
 
      {
27116
 
        char *a = foo + i;
27117
 
        char *b = bar + i;
27118
 
        strcpy (a, "--------01111111");
27119
 
        strcpy (b, "--------10000000");
27120
 
        if (memcmp (a, b, 16) >= 0)
27121
 
          return 1;
27122
 
      }
27123
 
    return 0;
27124
 
  }
27125
 
 
27126
 
  ;
27127
 
  return 0;
27128
 
}
27129
 
_ACEOF
27130
 
rm -f conftest$ac_exeext
27131
 
if { (ac_try="$ac_link"
27132
 
case "(($ac_try" in
27133
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134
 
  *) ac_try_echo=$ac_try;;
27135
 
esac
27136
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137
 
  (eval "$ac_link") 2>&5
27138
 
  ac_status=$?
27139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27141
 
  { (case "(($ac_try" in
27142
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143
 
  *) ac_try_echo=$ac_try;;
27144
 
esac
27145
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146
 
  (eval "$ac_try") 2>&5
27147
 
  ac_status=$?
27148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149
 
  (exit $ac_status); }; }; then
27150
 
  ac_cv_func_memcmp_working=yes
27151
 
else
27152
 
  echo "$as_me: program exited with status $ac_status" >&5
27153
 
echo "$as_me: failed program was:" >&5
27154
 
sed 's/^/| /' conftest.$ac_ext >&5
27155
 
 
27156
 
( exit $ac_status )
27157
 
ac_cv_func_memcmp_working=no
27158
 
fi
27159
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27160
 
fi
27161
 
 
27162
 
 
27163
 
fi
27164
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27165
 
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27166
 
test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27167
 
  *" memcmp.$ac_objext "* ) ;;
27168
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27169
 
 ;;
27170
 
esac
27171
 
 
27172
 
 
27173
 
#AC_FUNC_REALLOC
27174
 
 
27175
 
 
27176
 
for ac_header in sys/select.h sys/socket.h
27177
 
do
27178
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27179
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27180
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27181
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27182
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27183
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27184
 
fi
27185
 
ac_res=`eval echo '${'$as_ac_Header'}'`
27186
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
27187
 
echo "${ECHO_T}$ac_res" >&6; }
27188
 
else
27189
 
  # Is the header compilable?
27190
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27191
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27192
 
cat >conftest.$ac_ext <<_ACEOF
27193
 
/* confdefs.h.  */
27194
 
_ACEOF
27195
 
cat confdefs.h >>conftest.$ac_ext
27196
 
cat >>conftest.$ac_ext <<_ACEOF
27197
 
/* end confdefs.h.  */
27198
 
$ac_includes_default
27199
 
@%:@include <$ac_header>
27200
 
_ACEOF
27201
 
rm -f conftest.$ac_objext
27202
 
if { (ac_try="$ac_compile"
27203
 
case "(($ac_try" in
27204
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205
 
  *) ac_try_echo=$ac_try;;
27206
 
esac
27207
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208
 
  (eval "$ac_compile") 2>conftest.er1
27209
 
  ac_status=$?
27210
 
  grep -v '^ *+' conftest.er1 >conftest.err
27211
 
  rm -f conftest.er1
27212
 
  cat conftest.err >&5
27213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214
 
  (exit $ac_status); } &&
27215
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27216
 
  { (case "(($ac_try" in
27217
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218
 
  *) ac_try_echo=$ac_try;;
27219
 
esac
27220
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221
 
  (eval "$ac_try") 2>&5
27222
 
  ac_status=$?
27223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224
 
  (exit $ac_status); }; } &&
27225
 
         { ac_try='test -s conftest.$ac_objext'
27226
 
  { (case "(($ac_try" in
27227
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228
 
  *) ac_try_echo=$ac_try;;
27229
 
esac
27230
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231
 
  (eval "$ac_try") 2>&5
27232
 
  ac_status=$?
27233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234
 
  (exit $ac_status); }; }; then
27235
 
  ac_header_compiler=yes
27236
 
else
27237
 
  echo "$as_me: failed program was:" >&5
27238
 
sed 's/^/| /' conftest.$ac_ext >&5
27239
 
 
27240
 
        ac_header_compiler=no
27241
 
fi
27242
 
 
27243
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27244
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27245
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
27246
 
 
27247
 
# Is the header present?
27248
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27249
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27250
 
cat >conftest.$ac_ext <<_ACEOF
27251
 
/* confdefs.h.  */
27252
 
_ACEOF
27253
 
cat confdefs.h >>conftest.$ac_ext
27254
 
cat >>conftest.$ac_ext <<_ACEOF
27255
 
/* end confdefs.h.  */
27256
 
@%:@include <$ac_header>
27257
 
_ACEOF
27258
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
27259
 
case "(($ac_try" in
27260
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261
 
  *) ac_try_echo=$ac_try;;
27262
 
esac
27263
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27265
 
  ac_status=$?
27266
 
  grep -v '^ *+' conftest.er1 >conftest.err
27267
 
  rm -f conftest.er1
27268
 
  cat conftest.err >&5
27269
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270
 
  (exit $ac_status); } >/dev/null; then
27271
 
  if test -s conftest.err; then
27272
 
    ac_cpp_err=$ac_c_preproc_warn_flag
27273
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27274
 
  else
27275
 
    ac_cpp_err=
27276
 
  fi
27277
 
else
27278
 
  ac_cpp_err=yes
27279
 
fi
27280
 
if test -z "$ac_cpp_err"; then
27281
 
  ac_header_preproc=yes
27282
 
else
27283
 
  echo "$as_me: failed program was:" >&5
27284
 
sed 's/^/| /' conftest.$ac_ext >&5
27285
 
 
27286
 
  ac_header_preproc=no
27287
 
fi
27288
 
 
27289
 
rm -f conftest.err conftest.$ac_ext
27290
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27291
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
27292
 
 
27293
 
# So?  What about this header?
27294
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27295
 
  yes:no: )
27296
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27297
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27298
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27299
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27300
 
    ac_header_preproc=yes
27301
 
    ;;
27302
 
  no:yes:* )
27303
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27304
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27305
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27306
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27307
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27308
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27309
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27310
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27311
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27312
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27313
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27314
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27315
 
    ( cat <<\_ASBOX
27316
 
@%:@@%:@ ------------------------------- @%:@@%:@
27317
 
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27318
 
@%:@@%:@ ------------------------------- @%:@@%:@
27319
 
_ASBOX
27320
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
27321
 
    ;;
27322
 
esac
27323
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27324
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27325
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27326
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27327
 
else
27328
 
  eval "$as_ac_Header=\$ac_header_preproc"
27329
 
fi
27330
 
ac_res=`eval echo '${'$as_ac_Header'}'`
27331
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
27332
 
echo "${ECHO_T}$ac_res" >&6; }
27333
 
 
27334
 
fi
27335
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
27336
 
  cat >>confdefs.h <<_ACEOF
27337
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27338
 
_ACEOF
27339
 
 
27340
 
fi
27341
 
 
27342
 
done
27343
 
 
27344
 
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
27345
 
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27346
 
if test "${ac_cv_func_select_args+set}" = set; then
27347
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27348
 
else
27349
 
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27350
 
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27351
 
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27352
 
   cat >conftest.$ac_ext <<_ACEOF
27353
 
/* confdefs.h.  */
27354
 
_ACEOF
27355
 
cat confdefs.h >>conftest.$ac_ext
27356
 
cat >>conftest.$ac_ext <<_ACEOF
27357
 
/* end confdefs.h.  */
27358
 
$ac_includes_default
27359
 
#if HAVE_SYS_SELECT_H
27360
 
# include <sys/select.h>
27361
 
#endif
27362
 
#if HAVE_SYS_SOCKET_H
27363
 
# include <sys/socket.h>
27364
 
#endif
27365
 
 
27366
 
int
27367
 
main ()
27368
 
{
27369
 
extern int select ($ac_arg1,
27370
 
                                            $ac_arg234, $ac_arg234, $ac_arg234,
27371
 
                                            $ac_arg5);
27372
 
  ;
27373
 
  return 0;
27374
 
}
27375
 
_ACEOF
27376
 
rm -f conftest.$ac_objext
27377
 
if { (ac_try="$ac_compile"
27378
 
case "(($ac_try" in
27379
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380
 
  *) ac_try_echo=$ac_try;;
27381
 
esac
27382
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383
 
  (eval "$ac_compile") 2>conftest.er1
27384
 
  ac_status=$?
27385
 
  grep -v '^ *+' conftest.er1 >conftest.err
27386
 
  rm -f conftest.er1
27387
 
  cat conftest.err >&5
27388
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389
 
  (exit $ac_status); } &&
27390
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27391
 
  { (case "(($ac_try" in
27392
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393
 
  *) ac_try_echo=$ac_try;;
27394
 
esac
27395
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396
 
  (eval "$ac_try") 2>&5
27397
 
  ac_status=$?
27398
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399
 
  (exit $ac_status); }; } &&
27400
 
         { ac_try='test -s conftest.$ac_objext'
27401
 
  { (case "(($ac_try" in
27402
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403
 
  *) ac_try_echo=$ac_try;;
27404
 
esac
27405
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406
 
  (eval "$ac_try") 2>&5
27407
 
  ac_status=$?
27408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409
 
  (exit $ac_status); }; }; then
27410
 
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27411
 
else
27412
 
  echo "$as_me: failed program was:" >&5
27413
 
sed 's/^/| /' conftest.$ac_ext >&5
27414
 
 
27415
 
        
27416
 
fi
27417
 
 
27418
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27419
 
  done
27420
 
 done
27421
 
done
27422
 
# Provide a safe default value.
27423
 
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
27424
 
 
27425
 
fi
27426
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27427
 
echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27428
 
ac_save_IFS=$IFS; IFS=','
27429
 
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27430
 
IFS=$ac_save_IFS
27431
 
shift
27432
 
 
27433
 
cat >>confdefs.h <<_ACEOF
27434
 
@%:@define SELECT_TYPE_ARG1 $1
27435
 
_ACEOF
27436
 
 
27437
 
 
27438
 
cat >>confdefs.h <<_ACEOF
27439
 
@%:@define SELECT_TYPE_ARG234 ($2)
27440
 
_ACEOF
27441
 
 
27442
 
 
27443
 
cat >>confdefs.h <<_ACEOF
27444
 
@%:@define SELECT_TYPE_ARG5 ($3)
27445
 
_ACEOF
27446
 
 
27447
 
rm -f conftest*
27448
 
 
27449
 
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27450
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27451
 
if test "${ac_cv_type_signal+set}" = set; then
27452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27453
 
else
27454
 
  cat >conftest.$ac_ext <<_ACEOF
27455
 
/* confdefs.h.  */
27456
 
_ACEOF
27457
 
cat confdefs.h >>conftest.$ac_ext
27458
 
cat >>conftest.$ac_ext <<_ACEOF
27459
 
/* end confdefs.h.  */
27460
 
#include <sys/types.h>
27461
 
#include <signal.h>
27462
 
 
27463
 
int
27464
 
main ()
27465
 
{
27466
 
return *(signal (0, 0)) (0) == 1;
27467
 
  ;
27468
 
  return 0;
27469
 
}
27470
 
_ACEOF
27471
 
rm -f conftest.$ac_objext
27472
 
if { (ac_try="$ac_compile"
27473
 
case "(($ac_try" in
27474
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475
 
  *) ac_try_echo=$ac_try;;
27476
 
esac
27477
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478
 
  (eval "$ac_compile") 2>conftest.er1
27479
 
  ac_status=$?
27480
 
  grep -v '^ *+' conftest.er1 >conftest.err
27481
 
  rm -f conftest.er1
27482
 
  cat conftest.err >&5
27483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484
 
  (exit $ac_status); } &&
27485
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486
 
  { (case "(($ac_try" in
27487
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488
 
  *) ac_try_echo=$ac_try;;
27489
 
esac
27490
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491
 
  (eval "$ac_try") 2>&5
27492
 
  ac_status=$?
27493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494
 
  (exit $ac_status); }; } &&
27495
 
         { ac_try='test -s conftest.$ac_objext'
27496
 
  { (case "(($ac_try" in
27497
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498
 
  *) ac_try_echo=$ac_try;;
27499
 
esac
27500
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501
 
  (eval "$ac_try") 2>&5
27502
 
  ac_status=$?
27503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504
 
  (exit $ac_status); }; }; then
27505
 
  ac_cv_type_signal=int
27506
 
else
27507
 
  echo "$as_me: failed program was:" >&5
27508
 
sed 's/^/| /' conftest.$ac_ext >&5
27509
 
 
27510
 
        ac_cv_type_signal=void
27511
 
fi
27512
 
 
27513
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27514
 
fi
27515
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27516
 
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27517
 
 
27518
 
cat >>confdefs.h <<_ACEOF
27519
 
@%:@define RETSIGTYPE $ac_cv_type_signal
27520
 
_ACEOF
27521
 
 
27522
 
 
27523
 
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27524
 
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27525
 
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27527
 
else
27528
 
  if test "$cross_compiling" = yes; then
27529
 
  ac_cv_func_stat_empty_string_bug=yes
27530
 
else
27531
 
  cat >conftest.$ac_ext <<_ACEOF
27532
 
/* confdefs.h.  */
27533
 
_ACEOF
27534
 
cat confdefs.h >>conftest.$ac_ext
27535
 
cat >>conftest.$ac_ext <<_ACEOF
27536
 
/* end confdefs.h.  */
27537
 
$ac_includes_default
27538
 
int
27539
 
main ()
27540
 
{
27541
 
struct stat sbuf;
27542
 
  return stat ("", &sbuf) == 0;
27543
 
  ;
27544
 
  return 0;
27545
 
}
27546
 
_ACEOF
27547
 
rm -f conftest$ac_exeext
27548
 
if { (ac_try="$ac_link"
27549
 
case "(($ac_try" in
27550
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551
 
  *) ac_try_echo=$ac_try;;
27552
 
esac
27553
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554
 
  (eval "$ac_link") 2>&5
27555
 
  ac_status=$?
27556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27558
 
  { (case "(($ac_try" in
27559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560
 
  *) ac_try_echo=$ac_try;;
27561
 
esac
27562
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563
 
  (eval "$ac_try") 2>&5
27564
 
  ac_status=$?
27565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566
 
  (exit $ac_status); }; }; then
27567
 
  ac_cv_func_stat_empty_string_bug=no
27568
 
else
27569
 
  echo "$as_me: program exited with status $ac_status" >&5
27570
 
echo "$as_me: failed program was:" >&5
27571
 
sed 's/^/| /' conftest.$ac_ext >&5
27572
 
 
27573
 
( exit $ac_status )
27574
 
ac_cv_func_stat_empty_string_bug=yes
27575
 
fi
27576
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27577
 
fi
27578
 
 
27579
 
 
27580
 
fi
27581
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27582
 
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27583
 
if test $ac_cv_func_stat_empty_string_bug = yes; then
27584
 
  case " $LIB@&t@OBJS " in
27585
 
  *" stat.$ac_objext "* ) ;;
27586
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27587
 
 ;;
27588
 
esac
27589
 
 
27590
 
  
27591
 
cat >>confdefs.h <<_ACEOF
27592
 
@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27593
 
_ACEOF
27594
 
 
27595
 
fi
27596
 
 
27597
 
 
27598
 
for ac_func in vprintf
27599
 
do
27600
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27601
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27602
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27603
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27604
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27605
 
else
27606
 
  cat >conftest.$ac_ext <<_ACEOF
27607
 
/* confdefs.h.  */
27608
 
_ACEOF
27609
 
cat confdefs.h >>conftest.$ac_ext
27610
 
cat >>conftest.$ac_ext <<_ACEOF
27611
 
/* end confdefs.h.  */
27612
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27613
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27614
 
#define $ac_func innocuous_$ac_func
27615
 
 
27616
 
/* System header to define __stub macros and hopefully few prototypes,
27617
 
    which can conflict with char $ac_func (); below.
27618
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619
 
    <limits.h> exists even on freestanding compilers.  */
27620
 
 
27621
 
#ifdef __STDC__
27622
 
# include <limits.h>
27623
 
#else
27624
 
# include <assert.h>
27625
 
#endif
27626
 
 
27627
 
#undef $ac_func
27628
 
 
27629
 
/* Override any GCC internal prototype to avoid an error.
27630
 
   Use char because int might match the return type of a GCC
27631
 
   builtin and then its argument prototype would still apply.  */
27632
 
#ifdef __cplusplus
27633
 
extern "C"
27634
 
#endif
27635
 
char $ac_func ();
27636
 
/* The GNU C library defines this for functions which it implements
27637
 
    to always fail with ENOSYS.  Some functions are actually named
27638
 
    something starting with __ and the normal name is an alias.  */
27639
 
#if defined __stub_$ac_func || defined __stub___$ac_func
27640
 
choke me
27641
 
#endif
27642
 
 
27643
 
int
27644
 
main ()
27645
 
{
27646
 
return $ac_func ();
27647
 
  ;
27648
 
  return 0;
27649
 
}
27650
 
_ACEOF
27651
 
rm -f conftest.$ac_objext conftest$ac_exeext
27652
 
if { (ac_try="$ac_link"
27653
 
case "(($ac_try" in
27654
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655
 
  *) ac_try_echo=$ac_try;;
27656
 
esac
27657
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658
 
  (eval "$ac_link") 2>conftest.er1
27659
 
  ac_status=$?
27660
 
  grep -v '^ *+' conftest.er1 >conftest.err
27661
 
  rm -f conftest.er1
27662
 
  cat conftest.err >&5
27663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664
 
  (exit $ac_status); } &&
27665
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27666
 
  { (case "(($ac_try" in
27667
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668
 
  *) ac_try_echo=$ac_try;;
27669
 
esac
27670
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671
 
  (eval "$ac_try") 2>&5
27672
 
  ac_status=$?
27673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674
 
  (exit $ac_status); }; } &&
27675
 
         { ac_try='test -s conftest$ac_exeext'
27676
 
  { (case "(($ac_try" in
27677
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678
 
  *) ac_try_echo=$ac_try;;
27679
 
esac
27680
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681
 
  (eval "$ac_try") 2>&5
27682
 
  ac_status=$?
27683
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684
 
  (exit $ac_status); }; }; then
27685
 
  eval "$as_ac_var=yes"
27686
 
else
27687
 
  echo "$as_me: failed program was:" >&5
27688
 
sed 's/^/| /' conftest.$ac_ext >&5
27689
 
 
27690
 
        eval "$as_ac_var=no"
27691
 
fi
27692
 
 
27693
 
rm -f conftest.err conftest.$ac_objext \
27694
 
      conftest$ac_exeext conftest.$ac_ext
27695
 
fi
27696
 
ac_res=`eval echo '${'$as_ac_var'}'`
27697
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
27698
 
echo "${ECHO_T}$ac_res" >&6; }
27699
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
27700
 
  cat >>confdefs.h <<_ACEOF
27701
 
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27702
 
_ACEOF
27703
 
 
27704
 
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
27705
 
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27706
 
if test "${ac_cv_func__doprnt+set}" = set; then
27707
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27708
 
else
27709
 
  cat >conftest.$ac_ext <<_ACEOF
27710
 
/* confdefs.h.  */
27711
 
_ACEOF
27712
 
cat confdefs.h >>conftest.$ac_ext
27713
 
cat >>conftest.$ac_ext <<_ACEOF
27714
 
/* end confdefs.h.  */
27715
 
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27716
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27717
 
#define _doprnt innocuous__doprnt
27718
 
 
27719
 
/* System header to define __stub macros and hopefully few prototypes,
27720
 
    which can conflict with char _doprnt (); below.
27721
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27722
 
    <limits.h> exists even on freestanding compilers.  */
27723
 
 
27724
 
#ifdef __STDC__
27725
 
# include <limits.h>
27726
 
#else
27727
 
# include <assert.h>
27728
 
#endif
27729
 
 
27730
 
#undef _doprnt
27731
 
 
27732
 
/* Override any GCC internal prototype to avoid an error.
27733
 
   Use char because int might match the return type of a GCC
27734
 
   builtin and then its argument prototype would still apply.  */
27735
 
#ifdef __cplusplus
27736
 
extern "C"
27737
 
#endif
27738
 
char _doprnt ();
27739
 
/* The GNU C library defines this for functions which it implements
27740
 
    to always fail with ENOSYS.  Some functions are actually named
27741
 
    something starting with __ and the normal name is an alias.  */
27742
 
#if defined __stub__doprnt || defined __stub____doprnt
27743
 
choke me
27744
 
#endif
27745
 
 
27746
 
int
27747
 
main ()
27748
 
{
27749
 
return _doprnt ();
27750
 
  ;
27751
 
  return 0;
27752
 
}
27753
 
_ACEOF
27754
 
rm -f conftest.$ac_objext conftest$ac_exeext
27755
 
if { (ac_try="$ac_link"
27756
 
case "(($ac_try" in
27757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758
 
  *) ac_try_echo=$ac_try;;
27759
 
esac
27760
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761
 
  (eval "$ac_link") 2>conftest.er1
27762
 
  ac_status=$?
27763
 
  grep -v '^ *+' conftest.er1 >conftest.err
27764
 
  rm -f conftest.er1
27765
 
  cat conftest.err >&5
27766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767
 
  (exit $ac_status); } &&
27768
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769
 
  { (case "(($ac_try" in
27770
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771
 
  *) ac_try_echo=$ac_try;;
27772
 
esac
27773
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774
 
  (eval "$ac_try") 2>&5
27775
 
  ac_status=$?
27776
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777
 
  (exit $ac_status); }; } &&
27778
 
         { ac_try='test -s conftest$ac_exeext'
27779
 
  { (case "(($ac_try" in
27780
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781
 
  *) ac_try_echo=$ac_try;;
27782
 
esac
27783
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784
 
  (eval "$ac_try") 2>&5
27785
 
  ac_status=$?
27786
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787
 
  (exit $ac_status); }; }; then
27788
 
  ac_cv_func__doprnt=yes
27789
 
else
27790
 
  echo "$as_me: failed program was:" >&5
27791
 
sed 's/^/| /' conftest.$ac_ext >&5
27792
 
 
27793
 
        ac_cv_func__doprnt=no
27794
 
fi
27795
 
 
27796
 
rm -f conftest.err conftest.$ac_objext \
27797
 
      conftest$ac_exeext conftest.$ac_ext
27798
 
fi
27799
 
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27800
 
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27801
 
if test $ac_cv_func__doprnt = yes; then
27802
 
  
27803
 
cat >>confdefs.h <<\_ACEOF
27804
 
@%:@define HAVE_DOPRNT 1
27805
 
_ACEOF
27806
 
 
27807
 
fi
27808
 
 
27809
 
fi
27810
 
done
27811
 
 
27812
 
 
27813
 
 
27814
 
 
27815
 
 
27816
 
 
27817
 
 
27818
 
 
27819
 
 
27820
 
 
27821
 
 
27822
 
 
27823
 
 
27824
 
 
27825
 
 
27826
 
 
27827
 
 
27828
 
 
27829
 
 
27830
 
 
27831
 
 
27832
 
 
27833
 
 
27834
 
 
27835
 
 
27836
 
 
27837
 
 
27838
 
 
27839
 
 
27840
 
 
27841
 
for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27842
 
               gethostbyaddr gethostbyname gethostname getmntent \
27843
 
               gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27844
 
               realpath rmdir select socket strcasecmp strchr strdup \
27845
 
               strerror strrchr strtol strtoul
27846
 
do
27847
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27848
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27849
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27850
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27851
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27852
 
else
27853
 
  cat >conftest.$ac_ext <<_ACEOF
27854
 
/* confdefs.h.  */
27855
 
_ACEOF
27856
 
cat confdefs.h >>conftest.$ac_ext
27857
 
cat >>conftest.$ac_ext <<_ACEOF
27858
 
/* end confdefs.h.  */
27859
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27860
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27861
 
#define $ac_func innocuous_$ac_func
27862
 
 
27863
 
/* System header to define __stub macros and hopefully few prototypes,
27864
 
    which can conflict with char $ac_func (); below.
27865
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27866
 
    <limits.h> exists even on freestanding compilers.  */
27867
 
 
27868
 
#ifdef __STDC__
27869
 
# include <limits.h>
27870
 
#else
27871
 
# include <assert.h>
27872
 
#endif
27873
 
 
27874
 
#undef $ac_func
27875
 
 
27876
 
/* Override any GCC internal prototype to avoid an error.
27877
 
   Use char because int might match the return type of a GCC
27878
 
   builtin and then its argument prototype would still apply.  */
27879
 
#ifdef __cplusplus
27880
 
extern "C"
27881
 
#endif
27882
 
char $ac_func ();
27883
 
/* The GNU C library defines this for functions which it implements
27884
 
    to always fail with ENOSYS.  Some functions are actually named
27885
 
    something starting with __ and the normal name is an alias.  */
27886
 
#if defined __stub_$ac_func || defined __stub___$ac_func
27887
 
choke me
27888
 
#endif
27889
 
 
27890
 
int
27891
 
main ()
27892
 
{
27893
 
return $ac_func ();
27894
 
  ;
27895
 
  return 0;
27896
 
}
27897
 
_ACEOF
27898
 
rm -f conftest.$ac_objext conftest$ac_exeext
27899
 
if { (ac_try="$ac_link"
27900
 
case "(($ac_try" in
27901
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902
 
  *) ac_try_echo=$ac_try;;
27903
 
esac
27904
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905
 
  (eval "$ac_link") 2>conftest.er1
27906
 
  ac_status=$?
27907
 
  grep -v '^ *+' conftest.er1 >conftest.err
27908
 
  rm -f conftest.er1
27909
 
  cat conftest.err >&5
27910
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911
 
  (exit $ac_status); } &&
27912
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27913
 
  { (case "(($ac_try" in
27914
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915
 
  *) ac_try_echo=$ac_try;;
27916
 
esac
27917
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918
 
  (eval "$ac_try") 2>&5
27919
 
  ac_status=$?
27920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921
 
  (exit $ac_status); }; } &&
27922
 
         { ac_try='test -s conftest$ac_exeext'
27923
 
  { (case "(($ac_try" in
27924
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925
 
  *) ac_try_echo=$ac_try;;
27926
 
esac
27927
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928
 
  (eval "$ac_try") 2>&5
27929
 
  ac_status=$?
27930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931
 
  (exit $ac_status); }; }; then
27932
 
  eval "$as_ac_var=yes"
27933
 
else
27934
 
  echo "$as_me: failed program was:" >&5
27935
 
sed 's/^/| /' conftest.$ac_ext >&5
27936
 
 
27937
 
        eval "$as_ac_var=no"
27938
 
fi
27939
 
 
27940
 
rm -f conftest.err conftest.$ac_objext \
27941
 
      conftest$ac_exeext conftest.$ac_ext
27942
 
fi
27943
 
ac_res=`eval echo '${'$as_ac_var'}'`
27944
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
27945
 
echo "${ECHO_T}$ac_res" >&6; }
27946
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
27947
 
  cat >>confdefs.h <<_ACEOF
27948
 
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27949
 
_ACEOF
27950
 
 
27951
 
fi
27952
 
done
27953
 
 
27954
 
 
27955
 
 
27956
 
{ echo "$as_me:$LINENO: checking for short" >&5
27957
 
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27958
 
if test "${ac_cv_type_short+set}" = set; then
27959
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27960
 
else
27961
 
  cat >conftest.$ac_ext <<_ACEOF
27962
 
/* confdefs.h.  */
27963
 
_ACEOF
27964
 
cat confdefs.h >>conftest.$ac_ext
27965
 
cat >>conftest.$ac_ext <<_ACEOF
27966
 
/* end confdefs.h.  */
27967
 
$ac_includes_default
27968
 
typedef short ac__type_new_;
27969
 
int
27970
 
main ()
27971
 
{
27972
 
if ((ac__type_new_ *) 0)
27973
 
  return 0;
27974
 
if (sizeof (ac__type_new_))
27975
 
  return 0;
27976
 
  ;
27977
 
  return 0;
27978
 
}
27979
 
_ACEOF
27980
 
rm -f conftest.$ac_objext
27981
 
if { (ac_try="$ac_compile"
27982
 
case "(($ac_try" in
27983
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984
 
  *) ac_try_echo=$ac_try;;
27985
 
esac
27986
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987
 
  (eval "$ac_compile") 2>conftest.er1
27988
 
  ac_status=$?
27989
 
  grep -v '^ *+' conftest.er1 >conftest.err
27990
 
  rm -f conftest.er1
27991
 
  cat conftest.err >&5
27992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993
 
  (exit $ac_status); } &&
27994
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27995
 
  { (case "(($ac_try" in
27996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997
 
  *) ac_try_echo=$ac_try;;
27998
 
esac
27999
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000
 
  (eval "$ac_try") 2>&5
28001
 
  ac_status=$?
28002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003
 
  (exit $ac_status); }; } &&
28004
 
         { ac_try='test -s conftest.$ac_objext'
28005
 
  { (case "(($ac_try" in
28006
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28007
 
  *) ac_try_echo=$ac_try;;
28008
 
esac
28009
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010
 
  (eval "$ac_try") 2>&5
28011
 
  ac_status=$?
28012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013
 
  (exit $ac_status); }; }; then
28014
 
  ac_cv_type_short=yes
28015
 
else
28016
 
  echo "$as_me: failed program was:" >&5
28017
 
sed 's/^/| /' conftest.$ac_ext >&5
28018
 
 
28019
 
        ac_cv_type_short=no
28020
 
fi
28021
 
 
28022
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28023
 
fi
28024
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28025
 
echo "${ECHO_T}$ac_cv_type_short" >&6; }
28026
 
 
28027
 
{ echo "$as_me:$LINENO: checking size of short" >&5
28028
 
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28029
 
if test "${ac_cv_sizeof_short+set}" = set; then
28030
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28031
 
else
28032
 
  if test "$ac_cv_type_short" = yes; then
28033
 
  # The cast to long int works around a bug in the HP C Compiler
28034
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28035
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28036
 
  # This bug is HP SR number 8606223364.
28037
 
  if test "$cross_compiling" = yes; then
28038
 
  # Depending upon the size, compute the lo and hi bounds.
28039
 
cat >conftest.$ac_ext <<_ACEOF
28040
 
/* confdefs.h.  */
28041
 
_ACEOF
28042
 
cat confdefs.h >>conftest.$ac_ext
28043
 
cat >>conftest.$ac_ext <<_ACEOF
28044
 
/* end confdefs.h.  */
28045
 
$ac_includes_default
28046
 
                   typedef short ac__type_sizeof_;
28047
 
int
28048
 
main ()
28049
 
{
28050
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28051
 
test_array @<:@0@:>@ = 0
28052
 
 
28053
 
  ;
28054
 
  return 0;
28055
 
}
28056
 
_ACEOF
28057
 
rm -f conftest.$ac_objext
28058
 
if { (ac_try="$ac_compile"
28059
 
case "(($ac_try" in
28060
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061
 
  *) ac_try_echo=$ac_try;;
28062
 
esac
28063
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064
 
  (eval "$ac_compile") 2>conftest.er1
28065
 
  ac_status=$?
28066
 
  grep -v '^ *+' conftest.er1 >conftest.err
28067
 
  rm -f conftest.er1
28068
 
  cat conftest.err >&5
28069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070
 
  (exit $ac_status); } &&
28071
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28072
 
  { (case "(($ac_try" in
28073
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074
 
  *) ac_try_echo=$ac_try;;
28075
 
esac
28076
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077
 
  (eval "$ac_try") 2>&5
28078
 
  ac_status=$?
28079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080
 
  (exit $ac_status); }; } &&
28081
 
         { ac_try='test -s conftest.$ac_objext'
28082
 
  { (case "(($ac_try" in
28083
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28084
 
  *) ac_try_echo=$ac_try;;
28085
 
esac
28086
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28087
 
  (eval "$ac_try") 2>&5
28088
 
  ac_status=$?
28089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090
 
  (exit $ac_status); }; }; then
28091
 
  ac_lo=0 ac_mid=0
28092
 
  while :; do
28093
 
    cat >conftest.$ac_ext <<_ACEOF
28094
 
/* confdefs.h.  */
28095
 
_ACEOF
28096
 
cat confdefs.h >>conftest.$ac_ext
28097
 
cat >>conftest.$ac_ext <<_ACEOF
28098
 
/* end confdefs.h.  */
28099
 
$ac_includes_default
28100
 
                   typedef short ac__type_sizeof_;
28101
 
int
28102
 
main ()
28103
 
{
28104
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28105
 
test_array @<:@0@:>@ = 0
28106
 
 
28107
 
  ;
28108
 
  return 0;
28109
 
}
28110
 
_ACEOF
28111
 
rm -f conftest.$ac_objext
28112
 
if { (ac_try="$ac_compile"
28113
 
case "(($ac_try" in
28114
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28115
 
  *) ac_try_echo=$ac_try;;
28116
 
esac
28117
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28118
 
  (eval "$ac_compile") 2>conftest.er1
28119
 
  ac_status=$?
28120
 
  grep -v '^ *+' conftest.er1 >conftest.err
28121
 
  rm -f conftest.er1
28122
 
  cat conftest.err >&5
28123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124
 
  (exit $ac_status); } &&
28125
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28126
 
  { (case "(($ac_try" in
28127
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128
 
  *) ac_try_echo=$ac_try;;
28129
 
esac
28130
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131
 
  (eval "$ac_try") 2>&5
28132
 
  ac_status=$?
28133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134
 
  (exit $ac_status); }; } &&
28135
 
         { ac_try='test -s conftest.$ac_objext'
28136
 
  { (case "(($ac_try" in
28137
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28138
 
  *) ac_try_echo=$ac_try;;
28139
 
esac
28140
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28141
 
  (eval "$ac_try") 2>&5
28142
 
  ac_status=$?
28143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144
 
  (exit $ac_status); }; }; then
28145
 
  ac_hi=$ac_mid; break
28146
 
else
28147
 
  echo "$as_me: failed program was:" >&5
28148
 
sed 's/^/| /' conftest.$ac_ext >&5
28149
 
 
28150
 
        ac_lo=`expr $ac_mid + 1`
28151
 
                        if test $ac_lo -le $ac_mid; then
28152
 
                          ac_lo= ac_hi=
28153
 
                          break
28154
 
                        fi
28155
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
28156
 
fi
28157
 
 
28158
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28159
 
  done
28160
 
else
28161
 
  echo "$as_me: failed program was:" >&5
28162
 
sed 's/^/| /' conftest.$ac_ext >&5
28163
 
 
28164
 
        cat >conftest.$ac_ext <<_ACEOF
28165
 
/* confdefs.h.  */
28166
 
_ACEOF
28167
 
cat confdefs.h >>conftest.$ac_ext
28168
 
cat >>conftest.$ac_ext <<_ACEOF
28169
 
/* end confdefs.h.  */
28170
 
$ac_includes_default
28171
 
                   typedef short ac__type_sizeof_;
28172
 
int
28173
 
main ()
28174
 
{
28175
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28176
 
test_array @<:@0@:>@ = 0
28177
 
 
28178
 
  ;
28179
 
  return 0;
28180
 
}
28181
 
_ACEOF
28182
 
rm -f conftest.$ac_objext
28183
 
if { (ac_try="$ac_compile"
28184
 
case "(($ac_try" in
28185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186
 
  *) ac_try_echo=$ac_try;;
28187
 
esac
28188
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189
 
  (eval "$ac_compile") 2>conftest.er1
28190
 
  ac_status=$?
28191
 
  grep -v '^ *+' conftest.er1 >conftest.err
28192
 
  rm -f conftest.er1
28193
 
  cat conftest.err >&5
28194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195
 
  (exit $ac_status); } &&
28196
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28197
 
  { (case "(($ac_try" in
28198
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199
 
  *) ac_try_echo=$ac_try;;
28200
 
esac
28201
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202
 
  (eval "$ac_try") 2>&5
28203
 
  ac_status=$?
28204
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205
 
  (exit $ac_status); }; } &&
28206
 
         { ac_try='test -s conftest.$ac_objext'
28207
 
  { (case "(($ac_try" in
28208
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209
 
  *) ac_try_echo=$ac_try;;
28210
 
esac
28211
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212
 
  (eval "$ac_try") 2>&5
28213
 
  ac_status=$?
28214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215
 
  (exit $ac_status); }; }; then
28216
 
  ac_hi=-1 ac_mid=-1
28217
 
  while :; do
28218
 
    cat >conftest.$ac_ext <<_ACEOF
28219
 
/* confdefs.h.  */
28220
 
_ACEOF
28221
 
cat confdefs.h >>conftest.$ac_ext
28222
 
cat >>conftest.$ac_ext <<_ACEOF
28223
 
/* end confdefs.h.  */
28224
 
$ac_includes_default
28225
 
                   typedef short ac__type_sizeof_;
28226
 
int
28227
 
main ()
28228
 
{
28229
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28230
 
test_array @<:@0@:>@ = 0
28231
 
 
28232
 
  ;
28233
 
  return 0;
28234
 
}
28235
 
_ACEOF
28236
 
rm -f conftest.$ac_objext
28237
 
if { (ac_try="$ac_compile"
28238
 
case "(($ac_try" in
28239
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240
 
  *) ac_try_echo=$ac_try;;
28241
 
esac
28242
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28243
 
  (eval "$ac_compile") 2>conftest.er1
28244
 
  ac_status=$?
28245
 
  grep -v '^ *+' conftest.er1 >conftest.err
28246
 
  rm -f conftest.er1
28247
 
  cat conftest.err >&5
28248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249
 
  (exit $ac_status); } &&
28250
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28251
 
  { (case "(($ac_try" in
28252
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253
 
  *) ac_try_echo=$ac_try;;
28254
 
esac
28255
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256
 
  (eval "$ac_try") 2>&5
28257
 
  ac_status=$?
28258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259
 
  (exit $ac_status); }; } &&
28260
 
         { ac_try='test -s conftest.$ac_objext'
28261
 
  { (case "(($ac_try" in
28262
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263
 
  *) ac_try_echo=$ac_try;;
28264
 
esac
28265
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266
 
  (eval "$ac_try") 2>&5
28267
 
  ac_status=$?
28268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269
 
  (exit $ac_status); }; }; then
28270
 
  ac_lo=$ac_mid; break
28271
 
else
28272
 
  echo "$as_me: failed program was:" >&5
28273
 
sed 's/^/| /' conftest.$ac_ext >&5
28274
 
 
28275
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
28276
 
                        if test $ac_mid -le $ac_hi; then
28277
 
                          ac_lo= ac_hi=
28278
 
                          break
28279
 
                        fi
28280
 
                        ac_mid=`expr 2 '*' $ac_mid`
28281
 
fi
28282
 
 
28283
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28284
 
  done
28285
 
else
28286
 
  echo "$as_me: failed program was:" >&5
28287
 
sed 's/^/| /' conftest.$ac_ext >&5
28288
 
 
28289
 
        ac_lo= ac_hi=
28290
 
fi
28291
 
 
28292
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28293
 
fi
28294
 
 
28295
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28296
 
# Binary search between lo and hi bounds.
28297
 
while test "x$ac_lo" != "x$ac_hi"; do
28298
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28299
 
  cat >conftest.$ac_ext <<_ACEOF
28300
 
/* confdefs.h.  */
28301
 
_ACEOF
28302
 
cat confdefs.h >>conftest.$ac_ext
28303
 
cat >>conftest.$ac_ext <<_ACEOF
28304
 
/* end confdefs.h.  */
28305
 
$ac_includes_default
28306
 
                   typedef short ac__type_sizeof_;
28307
 
int
28308
 
main ()
28309
 
{
28310
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28311
 
test_array @<:@0@:>@ = 0
28312
 
 
28313
 
  ;
28314
 
  return 0;
28315
 
}
28316
 
_ACEOF
28317
 
rm -f conftest.$ac_objext
28318
 
if { (ac_try="$ac_compile"
28319
 
case "(($ac_try" in
28320
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321
 
  *) ac_try_echo=$ac_try;;
28322
 
esac
28323
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324
 
  (eval "$ac_compile") 2>conftest.er1
28325
 
  ac_status=$?
28326
 
  grep -v '^ *+' conftest.er1 >conftest.err
28327
 
  rm -f conftest.er1
28328
 
  cat conftest.err >&5
28329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330
 
  (exit $ac_status); } &&
28331
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28332
 
  { (case "(($ac_try" in
28333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334
 
  *) ac_try_echo=$ac_try;;
28335
 
esac
28336
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337
 
  (eval "$ac_try") 2>&5
28338
 
  ac_status=$?
28339
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340
 
  (exit $ac_status); }; } &&
28341
 
         { ac_try='test -s conftest.$ac_objext'
28342
 
  { (case "(($ac_try" in
28343
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344
 
  *) ac_try_echo=$ac_try;;
28345
 
esac
28346
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347
 
  (eval "$ac_try") 2>&5
28348
 
  ac_status=$?
28349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350
 
  (exit $ac_status); }; }; then
28351
 
  ac_hi=$ac_mid
28352
 
else
28353
 
  echo "$as_me: failed program was:" >&5
28354
 
sed 's/^/| /' conftest.$ac_ext >&5
28355
 
 
28356
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
28357
 
fi
28358
 
 
28359
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28360
 
done
28361
 
case $ac_lo in
28362
 
?*) ac_cv_sizeof_short=$ac_lo;;
28363
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28364
 
See \`config.log' for more details." >&5
28365
 
echo "$as_me: error: cannot compute sizeof (short)
28366
 
See \`config.log' for more details." >&2;}
28367
 
   { (exit 77); exit 77; }; } ;;
28368
 
esac
28369
 
else
28370
 
  cat >conftest.$ac_ext <<_ACEOF
28371
 
/* confdefs.h.  */
28372
 
_ACEOF
28373
 
cat confdefs.h >>conftest.$ac_ext
28374
 
cat >>conftest.$ac_ext <<_ACEOF
28375
 
/* end confdefs.h.  */
28376
 
$ac_includes_default
28377
 
                   typedef short ac__type_sizeof_;
28378
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28379
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28380
 
@%:@include <stdio.h>
28381
 
@%:@include <stdlib.h>
28382
 
int
28383
 
main ()
28384
 
{
28385
 
 
28386
 
  FILE *f = fopen ("conftest.val", "w");
28387
 
  if (! f)
28388
 
    return 1;
28389
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28390
 
    {
28391
 
      long int i = longval ();
28392
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
28393
 
        return 1;
28394
 
      fprintf (f, "%ld\n", i);
28395
 
    }
28396
 
  else
28397
 
    {
28398
 
      unsigned long int i = ulongval ();
28399
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
28400
 
        return 1;
28401
 
      fprintf (f, "%lu\n", i);
28402
 
    }
28403
 
  return ferror (f) || fclose (f) != 0;
28404
 
 
28405
 
  ;
28406
 
  return 0;
28407
 
}
28408
 
_ACEOF
28409
 
rm -f conftest$ac_exeext
28410
 
if { (ac_try="$ac_link"
28411
 
case "(($ac_try" in
28412
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413
 
  *) ac_try_echo=$ac_try;;
28414
 
esac
28415
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416
 
  (eval "$ac_link") 2>&5
28417
 
  ac_status=$?
28418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28420
 
  { (case "(($ac_try" in
28421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422
 
  *) ac_try_echo=$ac_try;;
28423
 
esac
28424
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425
 
  (eval "$ac_try") 2>&5
28426
 
  ac_status=$?
28427
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428
 
  (exit $ac_status); }; }; then
28429
 
  ac_cv_sizeof_short=`cat conftest.val`
28430
 
else
28431
 
  echo "$as_me: program exited with status $ac_status" >&5
28432
 
echo "$as_me: failed program was:" >&5
28433
 
sed 's/^/| /' conftest.$ac_ext >&5
28434
 
 
28435
 
( exit $ac_status )
28436
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28437
 
See \`config.log' for more details." >&5
28438
 
echo "$as_me: error: cannot compute sizeof (short)
28439
 
See \`config.log' for more details." >&2;}
28440
 
   { (exit 77); exit 77; }; }
28441
 
fi
28442
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28443
 
fi
28444
 
rm -f conftest.val
28445
 
else
28446
 
  ac_cv_sizeof_short=0
28447
 
fi
28448
 
fi
28449
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28450
 
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28451
 
cat >>confdefs.h <<_ACEOF
28452
 
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28453
 
_ACEOF
28454
 
 
28455
 
 
28456
 
{ echo "$as_me:$LINENO: checking for int" >&5
28457
 
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28458
 
if test "${ac_cv_type_int+set}" = set; then
28459
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28460
 
else
28461
 
  cat >conftest.$ac_ext <<_ACEOF
28462
 
/* confdefs.h.  */
28463
 
_ACEOF
28464
 
cat confdefs.h >>conftest.$ac_ext
28465
 
cat >>conftest.$ac_ext <<_ACEOF
28466
 
/* end confdefs.h.  */
28467
 
$ac_includes_default
28468
 
typedef int ac__type_new_;
28469
 
int
28470
 
main ()
28471
 
{
28472
 
if ((ac__type_new_ *) 0)
28473
 
  return 0;
28474
 
if (sizeof (ac__type_new_))
28475
 
  return 0;
28476
 
  ;
28477
 
  return 0;
28478
 
}
28479
 
_ACEOF
28480
 
rm -f conftest.$ac_objext
28481
 
if { (ac_try="$ac_compile"
28482
 
case "(($ac_try" in
28483
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28484
 
  *) ac_try_echo=$ac_try;;
28485
 
esac
28486
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28487
 
  (eval "$ac_compile") 2>conftest.er1
28488
 
  ac_status=$?
28489
 
  grep -v '^ *+' conftest.er1 >conftest.err
28490
 
  rm -f conftest.er1
28491
 
  cat conftest.err >&5
28492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493
 
  (exit $ac_status); } &&
28494
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28495
 
  { (case "(($ac_try" in
28496
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497
 
  *) ac_try_echo=$ac_try;;
28498
 
esac
28499
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500
 
  (eval "$ac_try") 2>&5
28501
 
  ac_status=$?
28502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503
 
  (exit $ac_status); }; } &&
28504
 
         { ac_try='test -s conftest.$ac_objext'
28505
 
  { (case "(($ac_try" in
28506
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28507
 
  *) ac_try_echo=$ac_try;;
28508
 
esac
28509
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28510
 
  (eval "$ac_try") 2>&5
28511
 
  ac_status=$?
28512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513
 
  (exit $ac_status); }; }; then
28514
 
  ac_cv_type_int=yes
28515
 
else
28516
 
  echo "$as_me: failed program was:" >&5
28517
 
sed 's/^/| /' conftest.$ac_ext >&5
28518
 
 
28519
 
        ac_cv_type_int=no
28520
 
fi
28521
 
 
28522
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28523
 
fi
28524
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28525
 
echo "${ECHO_T}$ac_cv_type_int" >&6; }
28526
 
 
28527
 
{ echo "$as_me:$LINENO: checking size of int" >&5
28528
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28529
 
if test "${ac_cv_sizeof_int+set}" = set; then
28530
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28531
 
else
28532
 
  if test "$ac_cv_type_int" = yes; then
28533
 
  # The cast to long int works around a bug in the HP C Compiler
28534
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28535
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28536
 
  # This bug is HP SR number 8606223364.
28537
 
  if test "$cross_compiling" = yes; then
28538
 
  # Depending upon the size, compute the lo and hi bounds.
28539
 
cat >conftest.$ac_ext <<_ACEOF
28540
 
/* confdefs.h.  */
28541
 
_ACEOF
28542
 
cat confdefs.h >>conftest.$ac_ext
28543
 
cat >>conftest.$ac_ext <<_ACEOF
28544
 
/* end confdefs.h.  */
28545
 
$ac_includes_default
28546
 
                   typedef int ac__type_sizeof_;
28547
 
int
28548
 
main ()
28549
 
{
28550
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28551
 
test_array @<:@0@:>@ = 0
28552
 
 
28553
 
  ;
28554
 
  return 0;
28555
 
}
28556
 
_ACEOF
28557
 
rm -f conftest.$ac_objext
28558
 
if { (ac_try="$ac_compile"
28559
 
case "(($ac_try" in
28560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561
 
  *) ac_try_echo=$ac_try;;
28562
 
esac
28563
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564
 
  (eval "$ac_compile") 2>conftest.er1
28565
 
  ac_status=$?
28566
 
  grep -v '^ *+' conftest.er1 >conftest.err
28567
 
  rm -f conftest.er1
28568
 
  cat conftest.err >&5
28569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570
 
  (exit $ac_status); } &&
28571
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28572
 
  { (case "(($ac_try" in
28573
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574
 
  *) ac_try_echo=$ac_try;;
28575
 
esac
28576
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577
 
  (eval "$ac_try") 2>&5
28578
 
  ac_status=$?
28579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580
 
  (exit $ac_status); }; } &&
28581
 
         { ac_try='test -s conftest.$ac_objext'
28582
 
  { (case "(($ac_try" in
28583
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28584
 
  *) ac_try_echo=$ac_try;;
28585
 
esac
28586
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28587
 
  (eval "$ac_try") 2>&5
28588
 
  ac_status=$?
28589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590
 
  (exit $ac_status); }; }; then
28591
 
  ac_lo=0 ac_mid=0
28592
 
  while :; do
28593
 
    cat >conftest.$ac_ext <<_ACEOF
28594
 
/* confdefs.h.  */
28595
 
_ACEOF
28596
 
cat confdefs.h >>conftest.$ac_ext
28597
 
cat >>conftest.$ac_ext <<_ACEOF
28598
 
/* end confdefs.h.  */
28599
 
$ac_includes_default
28600
 
                   typedef int ac__type_sizeof_;
28601
 
int
28602
 
main ()
28603
 
{
28604
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28605
 
test_array @<:@0@:>@ = 0
28606
 
 
28607
 
  ;
28608
 
  return 0;
28609
 
}
28610
 
_ACEOF
28611
 
rm -f conftest.$ac_objext
28612
 
if { (ac_try="$ac_compile"
28613
 
case "(($ac_try" in
28614
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28615
 
  *) ac_try_echo=$ac_try;;
28616
 
esac
28617
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618
 
  (eval "$ac_compile") 2>conftest.er1
28619
 
  ac_status=$?
28620
 
  grep -v '^ *+' conftest.er1 >conftest.err
28621
 
  rm -f conftest.er1
28622
 
  cat conftest.err >&5
28623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624
 
  (exit $ac_status); } &&
28625
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28626
 
  { (case "(($ac_try" in
28627
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28628
 
  *) ac_try_echo=$ac_try;;
28629
 
esac
28630
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28631
 
  (eval "$ac_try") 2>&5
28632
 
  ac_status=$?
28633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634
 
  (exit $ac_status); }; } &&
28635
 
         { ac_try='test -s conftest.$ac_objext'
28636
 
  { (case "(($ac_try" in
28637
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638
 
  *) ac_try_echo=$ac_try;;
28639
 
esac
28640
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641
 
  (eval "$ac_try") 2>&5
28642
 
  ac_status=$?
28643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644
 
  (exit $ac_status); }; }; then
28645
 
  ac_hi=$ac_mid; break
28646
 
else
28647
 
  echo "$as_me: failed program was:" >&5
28648
 
sed 's/^/| /' conftest.$ac_ext >&5
28649
 
 
28650
 
        ac_lo=`expr $ac_mid + 1`
28651
 
                        if test $ac_lo -le $ac_mid; then
28652
 
                          ac_lo= ac_hi=
28653
 
                          break
28654
 
                        fi
28655
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
28656
 
fi
28657
 
 
28658
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28659
 
  done
28660
 
else
28661
 
  echo "$as_me: failed program was:" >&5
28662
 
sed 's/^/| /' conftest.$ac_ext >&5
28663
 
 
28664
 
        cat >conftest.$ac_ext <<_ACEOF
28665
 
/* confdefs.h.  */
28666
 
_ACEOF
28667
 
cat confdefs.h >>conftest.$ac_ext
28668
 
cat >>conftest.$ac_ext <<_ACEOF
28669
 
/* end confdefs.h.  */
28670
 
$ac_includes_default
28671
 
                   typedef int ac__type_sizeof_;
28672
 
int
28673
 
main ()
28674
 
{
28675
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28676
 
test_array @<:@0@:>@ = 0
28677
 
 
28678
 
  ;
28679
 
  return 0;
28680
 
}
28681
 
_ACEOF
28682
 
rm -f conftest.$ac_objext
28683
 
if { (ac_try="$ac_compile"
28684
 
case "(($ac_try" in
28685
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28686
 
  *) ac_try_echo=$ac_try;;
28687
 
esac
28688
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28689
 
  (eval "$ac_compile") 2>conftest.er1
28690
 
  ac_status=$?
28691
 
  grep -v '^ *+' conftest.er1 >conftest.err
28692
 
  rm -f conftest.er1
28693
 
  cat conftest.err >&5
28694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695
 
  (exit $ac_status); } &&
28696
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28697
 
  { (case "(($ac_try" in
28698
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28699
 
  *) ac_try_echo=$ac_try;;
28700
 
esac
28701
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28702
 
  (eval "$ac_try") 2>&5
28703
 
  ac_status=$?
28704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705
 
  (exit $ac_status); }; } &&
28706
 
         { ac_try='test -s conftest.$ac_objext'
28707
 
  { (case "(($ac_try" in
28708
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709
 
  *) ac_try_echo=$ac_try;;
28710
 
esac
28711
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712
 
  (eval "$ac_try") 2>&5
28713
 
  ac_status=$?
28714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715
 
  (exit $ac_status); }; }; then
28716
 
  ac_hi=-1 ac_mid=-1
28717
 
  while :; do
28718
 
    cat >conftest.$ac_ext <<_ACEOF
28719
 
/* confdefs.h.  */
28720
 
_ACEOF
28721
 
cat confdefs.h >>conftest.$ac_ext
28722
 
cat >>conftest.$ac_ext <<_ACEOF
28723
 
/* end confdefs.h.  */
28724
 
$ac_includes_default
28725
 
                   typedef int ac__type_sizeof_;
28726
 
int
28727
 
main ()
28728
 
{
28729
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28730
 
test_array @<:@0@:>@ = 0
28731
 
 
28732
 
  ;
28733
 
  return 0;
28734
 
}
28735
 
_ACEOF
28736
 
rm -f conftest.$ac_objext
28737
 
if { (ac_try="$ac_compile"
28738
 
case "(($ac_try" in
28739
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740
 
  *) ac_try_echo=$ac_try;;
28741
 
esac
28742
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743
 
  (eval "$ac_compile") 2>conftest.er1
28744
 
  ac_status=$?
28745
 
  grep -v '^ *+' conftest.er1 >conftest.err
28746
 
  rm -f conftest.er1
28747
 
  cat conftest.err >&5
28748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749
 
  (exit $ac_status); } &&
28750
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28751
 
  { (case "(($ac_try" in
28752
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753
 
  *) ac_try_echo=$ac_try;;
28754
 
esac
28755
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756
 
  (eval "$ac_try") 2>&5
28757
 
  ac_status=$?
28758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759
 
  (exit $ac_status); }; } &&
28760
 
         { ac_try='test -s conftest.$ac_objext'
28761
 
  { (case "(($ac_try" in
28762
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763
 
  *) ac_try_echo=$ac_try;;
28764
 
esac
28765
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766
 
  (eval "$ac_try") 2>&5
28767
 
  ac_status=$?
28768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769
 
  (exit $ac_status); }; }; then
28770
 
  ac_lo=$ac_mid; break
28771
 
else
28772
 
  echo "$as_me: failed program was:" >&5
28773
 
sed 's/^/| /' conftest.$ac_ext >&5
28774
 
 
28775
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
28776
 
                        if test $ac_mid -le $ac_hi; then
28777
 
                          ac_lo= ac_hi=
28778
 
                          break
28779
 
                        fi
28780
 
                        ac_mid=`expr 2 '*' $ac_mid`
28781
 
fi
28782
 
 
28783
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28784
 
  done
28785
 
else
28786
 
  echo "$as_me: failed program was:" >&5
28787
 
sed 's/^/| /' conftest.$ac_ext >&5
28788
 
 
28789
 
        ac_lo= ac_hi=
28790
 
fi
28791
 
 
28792
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28793
 
fi
28794
 
 
28795
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28796
 
# Binary search between lo and hi bounds.
28797
 
while test "x$ac_lo" != "x$ac_hi"; do
28798
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28799
 
  cat >conftest.$ac_ext <<_ACEOF
28800
 
/* confdefs.h.  */
28801
 
_ACEOF
28802
 
cat confdefs.h >>conftest.$ac_ext
28803
 
cat >>conftest.$ac_ext <<_ACEOF
28804
 
/* end confdefs.h.  */
28805
 
$ac_includes_default
28806
 
                   typedef int ac__type_sizeof_;
28807
 
int
28808
 
main ()
28809
 
{
28810
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28811
 
test_array @<:@0@:>@ = 0
28812
 
 
28813
 
  ;
28814
 
  return 0;
28815
 
}
28816
 
_ACEOF
28817
 
rm -f conftest.$ac_objext
28818
 
if { (ac_try="$ac_compile"
28819
 
case "(($ac_try" in
28820
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821
 
  *) ac_try_echo=$ac_try;;
28822
 
esac
28823
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824
 
  (eval "$ac_compile") 2>conftest.er1
28825
 
  ac_status=$?
28826
 
  grep -v '^ *+' conftest.er1 >conftest.err
28827
 
  rm -f conftest.er1
28828
 
  cat conftest.err >&5
28829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830
 
  (exit $ac_status); } &&
28831
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28832
 
  { (case "(($ac_try" in
28833
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834
 
  *) ac_try_echo=$ac_try;;
28835
 
esac
28836
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837
 
  (eval "$ac_try") 2>&5
28838
 
  ac_status=$?
28839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840
 
  (exit $ac_status); }; } &&
28841
 
         { ac_try='test -s conftest.$ac_objext'
28842
 
  { (case "(($ac_try" in
28843
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844
 
  *) ac_try_echo=$ac_try;;
28845
 
esac
28846
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847
 
  (eval "$ac_try") 2>&5
28848
 
  ac_status=$?
28849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850
 
  (exit $ac_status); }; }; then
28851
 
  ac_hi=$ac_mid
28852
 
else
28853
 
  echo "$as_me: failed program was:" >&5
28854
 
sed 's/^/| /' conftest.$ac_ext >&5
28855
 
 
28856
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
28857
 
fi
28858
 
 
28859
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28860
 
done
28861
 
case $ac_lo in
28862
 
?*) ac_cv_sizeof_int=$ac_lo;;
28863
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28864
 
See \`config.log' for more details." >&5
28865
 
echo "$as_me: error: cannot compute sizeof (int)
28866
 
See \`config.log' for more details." >&2;}
28867
 
   { (exit 77); exit 77; }; } ;;
28868
 
esac
28869
 
else
28870
 
  cat >conftest.$ac_ext <<_ACEOF
28871
 
/* confdefs.h.  */
28872
 
_ACEOF
28873
 
cat confdefs.h >>conftest.$ac_ext
28874
 
cat >>conftest.$ac_ext <<_ACEOF
28875
 
/* end confdefs.h.  */
28876
 
$ac_includes_default
28877
 
                   typedef int ac__type_sizeof_;
28878
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28879
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28880
 
@%:@include <stdio.h>
28881
 
@%:@include <stdlib.h>
28882
 
int
28883
 
main ()
28884
 
{
28885
 
 
28886
 
  FILE *f = fopen ("conftest.val", "w");
28887
 
  if (! f)
28888
 
    return 1;
28889
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28890
 
    {
28891
 
      long int i = longval ();
28892
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
28893
 
        return 1;
28894
 
      fprintf (f, "%ld\n", i);
28895
 
    }
28896
 
  else
28897
 
    {
28898
 
      unsigned long int i = ulongval ();
28899
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
28900
 
        return 1;
28901
 
      fprintf (f, "%lu\n", i);
28902
 
    }
28903
 
  return ferror (f) || fclose (f) != 0;
28904
 
 
28905
 
  ;
28906
 
  return 0;
28907
 
}
28908
 
_ACEOF
28909
 
rm -f conftest$ac_exeext
28910
 
if { (ac_try="$ac_link"
28911
 
case "(($ac_try" in
28912
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913
 
  *) ac_try_echo=$ac_try;;
28914
 
esac
28915
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916
 
  (eval "$ac_link") 2>&5
28917
 
  ac_status=$?
28918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28920
 
  { (case "(($ac_try" in
28921
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922
 
  *) ac_try_echo=$ac_try;;
28923
 
esac
28924
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925
 
  (eval "$ac_try") 2>&5
28926
 
  ac_status=$?
28927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928
 
  (exit $ac_status); }; }; then
28929
 
  ac_cv_sizeof_int=`cat conftest.val`
28930
 
else
28931
 
  echo "$as_me: program exited with status $ac_status" >&5
28932
 
echo "$as_me: failed program was:" >&5
28933
 
sed 's/^/| /' conftest.$ac_ext >&5
28934
 
 
28935
 
( exit $ac_status )
28936
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28937
 
See \`config.log' for more details." >&5
28938
 
echo "$as_me: error: cannot compute sizeof (int)
28939
 
See \`config.log' for more details." >&2;}
28940
 
   { (exit 77); exit 77; }; }
28941
 
fi
28942
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28943
 
fi
28944
 
rm -f conftest.val
28945
 
else
28946
 
  ac_cv_sizeof_int=0
28947
 
fi
28948
 
fi
28949
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28950
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28951
 
cat >>confdefs.h <<_ACEOF
28952
 
@%:@define SIZEOF_INT $ac_cv_sizeof_int
28953
 
_ACEOF
28954
 
 
28955
 
 
28956
 
{ echo "$as_me:$LINENO: checking for long" >&5
28957
 
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28958
 
if test "${ac_cv_type_long+set}" = set; then
28959
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28960
 
else
28961
 
  cat >conftest.$ac_ext <<_ACEOF
28962
 
/* confdefs.h.  */
28963
 
_ACEOF
28964
 
cat confdefs.h >>conftest.$ac_ext
28965
 
cat >>conftest.$ac_ext <<_ACEOF
28966
 
/* end confdefs.h.  */
28967
 
$ac_includes_default
28968
 
typedef long ac__type_new_;
28969
 
int
28970
 
main ()
28971
 
{
28972
 
if ((ac__type_new_ *) 0)
28973
 
  return 0;
28974
 
if (sizeof (ac__type_new_))
28975
 
  return 0;
28976
 
  ;
28977
 
  return 0;
28978
 
}
28979
 
_ACEOF
28980
 
rm -f conftest.$ac_objext
28981
 
if { (ac_try="$ac_compile"
28982
 
case "(($ac_try" in
28983
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984
 
  *) ac_try_echo=$ac_try;;
28985
 
esac
28986
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987
 
  (eval "$ac_compile") 2>conftest.er1
28988
 
  ac_status=$?
28989
 
  grep -v '^ *+' conftest.er1 >conftest.err
28990
 
  rm -f conftest.er1
28991
 
  cat conftest.err >&5
28992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993
 
  (exit $ac_status); } &&
28994
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28995
 
  { (case "(($ac_try" in
28996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997
 
  *) ac_try_echo=$ac_try;;
28998
 
esac
28999
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000
 
  (eval "$ac_try") 2>&5
29001
 
  ac_status=$?
29002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003
 
  (exit $ac_status); }; } &&
29004
 
         { ac_try='test -s conftest.$ac_objext'
29005
 
  { (case "(($ac_try" in
29006
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007
 
  *) ac_try_echo=$ac_try;;
29008
 
esac
29009
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010
 
  (eval "$ac_try") 2>&5
29011
 
  ac_status=$?
29012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013
 
  (exit $ac_status); }; }; then
29014
 
  ac_cv_type_long=yes
29015
 
else
29016
 
  echo "$as_me: failed program was:" >&5
29017
 
sed 's/^/| /' conftest.$ac_ext >&5
29018
 
 
29019
 
        ac_cv_type_long=no
29020
 
fi
29021
 
 
29022
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29023
 
fi
29024
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29025
 
echo "${ECHO_T}$ac_cv_type_long" >&6; }
29026
 
 
29027
 
{ echo "$as_me:$LINENO: checking size of long" >&5
29028
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29029
 
if test "${ac_cv_sizeof_long+set}" = set; then
29030
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29031
 
else
29032
 
  if test "$ac_cv_type_long" = yes; then
29033
 
  # The cast to long int works around a bug in the HP C Compiler
29034
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29035
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29036
 
  # This bug is HP SR number 8606223364.
29037
 
  if test "$cross_compiling" = yes; then
29038
 
  # Depending upon the size, compute the lo and hi bounds.
29039
 
cat >conftest.$ac_ext <<_ACEOF
29040
 
/* confdefs.h.  */
29041
 
_ACEOF
29042
 
cat confdefs.h >>conftest.$ac_ext
29043
 
cat >>conftest.$ac_ext <<_ACEOF
29044
 
/* end confdefs.h.  */
29045
 
$ac_includes_default
29046
 
                   typedef long ac__type_sizeof_;
29047
 
int
29048
 
main ()
29049
 
{
29050
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29051
 
test_array @<:@0@:>@ = 0
29052
 
 
29053
 
  ;
29054
 
  return 0;
29055
 
}
29056
 
_ACEOF
29057
 
rm -f conftest.$ac_objext
29058
 
if { (ac_try="$ac_compile"
29059
 
case "(($ac_try" in
29060
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061
 
  *) ac_try_echo=$ac_try;;
29062
 
esac
29063
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064
 
  (eval "$ac_compile") 2>conftest.er1
29065
 
  ac_status=$?
29066
 
  grep -v '^ *+' conftest.er1 >conftest.err
29067
 
  rm -f conftest.er1
29068
 
  cat conftest.err >&5
29069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070
 
  (exit $ac_status); } &&
29071
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29072
 
  { (case "(($ac_try" in
29073
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074
 
  *) ac_try_echo=$ac_try;;
29075
 
esac
29076
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077
 
  (eval "$ac_try") 2>&5
29078
 
  ac_status=$?
29079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080
 
  (exit $ac_status); }; } &&
29081
 
         { ac_try='test -s conftest.$ac_objext'
29082
 
  { (case "(($ac_try" in
29083
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084
 
  *) ac_try_echo=$ac_try;;
29085
 
esac
29086
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087
 
  (eval "$ac_try") 2>&5
29088
 
  ac_status=$?
29089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090
 
  (exit $ac_status); }; }; then
29091
 
  ac_lo=0 ac_mid=0
29092
 
  while :; do
29093
 
    cat >conftest.$ac_ext <<_ACEOF
29094
 
/* confdefs.h.  */
29095
 
_ACEOF
29096
 
cat confdefs.h >>conftest.$ac_ext
29097
 
cat >>conftest.$ac_ext <<_ACEOF
29098
 
/* end confdefs.h.  */
29099
 
$ac_includes_default
29100
 
                   typedef long ac__type_sizeof_;
29101
 
int
29102
 
main ()
29103
 
{
29104
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29105
 
test_array @<:@0@:>@ = 0
29106
 
 
29107
 
  ;
29108
 
  return 0;
29109
 
}
29110
 
_ACEOF
29111
 
rm -f conftest.$ac_objext
29112
 
if { (ac_try="$ac_compile"
29113
 
case "(($ac_try" in
29114
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29115
 
  *) ac_try_echo=$ac_try;;
29116
 
esac
29117
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29118
 
  (eval "$ac_compile") 2>conftest.er1
29119
 
  ac_status=$?
29120
 
  grep -v '^ *+' conftest.er1 >conftest.err
29121
 
  rm -f conftest.er1
29122
 
  cat conftest.err >&5
29123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124
 
  (exit $ac_status); } &&
29125
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29126
 
  { (case "(($ac_try" in
29127
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128
 
  *) ac_try_echo=$ac_try;;
29129
 
esac
29130
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131
 
  (eval "$ac_try") 2>&5
29132
 
  ac_status=$?
29133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134
 
  (exit $ac_status); }; } &&
29135
 
         { ac_try='test -s conftest.$ac_objext'
29136
 
  { (case "(($ac_try" in
29137
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138
 
  *) ac_try_echo=$ac_try;;
29139
 
esac
29140
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141
 
  (eval "$ac_try") 2>&5
29142
 
  ac_status=$?
29143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144
 
  (exit $ac_status); }; }; then
29145
 
  ac_hi=$ac_mid; break
29146
 
else
29147
 
  echo "$as_me: failed program was:" >&5
29148
 
sed 's/^/| /' conftest.$ac_ext >&5
29149
 
 
29150
 
        ac_lo=`expr $ac_mid + 1`
29151
 
                        if test $ac_lo -le $ac_mid; then
29152
 
                          ac_lo= ac_hi=
29153
 
                          break
29154
 
                        fi
29155
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
29156
 
fi
29157
 
 
29158
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29159
 
  done
29160
 
else
29161
 
  echo "$as_me: failed program was:" >&5
29162
 
sed 's/^/| /' conftest.$ac_ext >&5
29163
 
 
29164
 
        cat >conftest.$ac_ext <<_ACEOF
29165
 
/* confdefs.h.  */
29166
 
_ACEOF
29167
 
cat confdefs.h >>conftest.$ac_ext
29168
 
cat >>conftest.$ac_ext <<_ACEOF
29169
 
/* end confdefs.h.  */
29170
 
$ac_includes_default
29171
 
                   typedef long ac__type_sizeof_;
29172
 
int
29173
 
main ()
29174
 
{
29175
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29176
 
test_array @<:@0@:>@ = 0
29177
 
 
29178
 
  ;
29179
 
  return 0;
29180
 
}
29181
 
_ACEOF
29182
 
rm -f conftest.$ac_objext
29183
 
if { (ac_try="$ac_compile"
29184
 
case "(($ac_try" in
29185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186
 
  *) ac_try_echo=$ac_try;;
29187
 
esac
29188
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189
 
  (eval "$ac_compile") 2>conftest.er1
29190
 
  ac_status=$?
29191
 
  grep -v '^ *+' conftest.er1 >conftest.err
29192
 
  rm -f conftest.er1
29193
 
  cat conftest.err >&5
29194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195
 
  (exit $ac_status); } &&
29196
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29197
 
  { (case "(($ac_try" in
29198
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199
 
  *) ac_try_echo=$ac_try;;
29200
 
esac
29201
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202
 
  (eval "$ac_try") 2>&5
29203
 
  ac_status=$?
29204
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205
 
  (exit $ac_status); }; } &&
29206
 
         { ac_try='test -s conftest.$ac_objext'
29207
 
  { (case "(($ac_try" in
29208
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209
 
  *) ac_try_echo=$ac_try;;
29210
 
esac
29211
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212
 
  (eval "$ac_try") 2>&5
29213
 
  ac_status=$?
29214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215
 
  (exit $ac_status); }; }; then
29216
 
  ac_hi=-1 ac_mid=-1
29217
 
  while :; do
29218
 
    cat >conftest.$ac_ext <<_ACEOF
29219
 
/* confdefs.h.  */
29220
 
_ACEOF
29221
 
cat confdefs.h >>conftest.$ac_ext
29222
 
cat >>conftest.$ac_ext <<_ACEOF
29223
 
/* end confdefs.h.  */
29224
 
$ac_includes_default
29225
 
                   typedef long ac__type_sizeof_;
29226
 
int
29227
 
main ()
29228
 
{
29229
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29230
 
test_array @<:@0@:>@ = 0
29231
 
 
29232
 
  ;
29233
 
  return 0;
29234
 
}
29235
 
_ACEOF
29236
 
rm -f conftest.$ac_objext
29237
 
if { (ac_try="$ac_compile"
29238
 
case "(($ac_try" in
29239
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240
 
  *) ac_try_echo=$ac_try;;
29241
 
esac
29242
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243
 
  (eval "$ac_compile") 2>conftest.er1
29244
 
  ac_status=$?
29245
 
  grep -v '^ *+' conftest.er1 >conftest.err
29246
 
  rm -f conftest.er1
29247
 
  cat conftest.err >&5
29248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249
 
  (exit $ac_status); } &&
29250
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29251
 
  { (case "(($ac_try" in
29252
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253
 
  *) ac_try_echo=$ac_try;;
29254
 
esac
29255
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256
 
  (eval "$ac_try") 2>&5
29257
 
  ac_status=$?
29258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259
 
  (exit $ac_status); }; } &&
29260
 
         { ac_try='test -s conftest.$ac_objext'
29261
 
  { (case "(($ac_try" in
29262
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263
 
  *) ac_try_echo=$ac_try;;
29264
 
esac
29265
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266
 
  (eval "$ac_try") 2>&5
29267
 
  ac_status=$?
29268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269
 
  (exit $ac_status); }; }; then
29270
 
  ac_lo=$ac_mid; break
29271
 
else
29272
 
  echo "$as_me: failed program was:" >&5
29273
 
sed 's/^/| /' conftest.$ac_ext >&5
29274
 
 
29275
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
29276
 
                        if test $ac_mid -le $ac_hi; then
29277
 
                          ac_lo= ac_hi=
29278
 
                          break
29279
 
                        fi
29280
 
                        ac_mid=`expr 2 '*' $ac_mid`
29281
 
fi
29282
 
 
29283
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29284
 
  done
29285
 
else
29286
 
  echo "$as_me: failed program was:" >&5
29287
 
sed 's/^/| /' conftest.$ac_ext >&5
29288
 
 
29289
 
        ac_lo= ac_hi=
29290
 
fi
29291
 
 
29292
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29293
 
fi
29294
 
 
29295
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29296
 
# Binary search between lo and hi bounds.
29297
 
while test "x$ac_lo" != "x$ac_hi"; do
29298
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29299
 
  cat >conftest.$ac_ext <<_ACEOF
29300
 
/* confdefs.h.  */
29301
 
_ACEOF
29302
 
cat confdefs.h >>conftest.$ac_ext
29303
 
cat >>conftest.$ac_ext <<_ACEOF
29304
 
/* end confdefs.h.  */
29305
 
$ac_includes_default
29306
 
                   typedef long ac__type_sizeof_;
29307
 
int
29308
 
main ()
29309
 
{
29310
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29311
 
test_array @<:@0@:>@ = 0
29312
 
 
29313
 
  ;
29314
 
  return 0;
29315
 
}
29316
 
_ACEOF
29317
 
rm -f conftest.$ac_objext
29318
 
if { (ac_try="$ac_compile"
29319
 
case "(($ac_try" in
29320
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321
 
  *) ac_try_echo=$ac_try;;
29322
 
esac
29323
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29324
 
  (eval "$ac_compile") 2>conftest.er1
29325
 
  ac_status=$?
29326
 
  grep -v '^ *+' conftest.er1 >conftest.err
29327
 
  rm -f conftest.er1
29328
 
  cat conftest.err >&5
29329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330
 
  (exit $ac_status); } &&
29331
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29332
 
  { (case "(($ac_try" in
29333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334
 
  *) ac_try_echo=$ac_try;;
29335
 
esac
29336
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337
 
  (eval "$ac_try") 2>&5
29338
 
  ac_status=$?
29339
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340
 
  (exit $ac_status); }; } &&
29341
 
         { ac_try='test -s conftest.$ac_objext'
29342
 
  { (case "(($ac_try" in
29343
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344
 
  *) ac_try_echo=$ac_try;;
29345
 
esac
29346
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347
 
  (eval "$ac_try") 2>&5
29348
 
  ac_status=$?
29349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350
 
  (exit $ac_status); }; }; then
29351
 
  ac_hi=$ac_mid
29352
 
else
29353
 
  echo "$as_me: failed program was:" >&5
29354
 
sed 's/^/| /' conftest.$ac_ext >&5
29355
 
 
29356
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
29357
 
fi
29358
 
 
29359
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29360
 
done
29361
 
case $ac_lo in
29362
 
?*) ac_cv_sizeof_long=$ac_lo;;
29363
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29364
 
See \`config.log' for more details." >&5
29365
 
echo "$as_me: error: cannot compute sizeof (long)
29366
 
See \`config.log' for more details." >&2;}
29367
 
   { (exit 77); exit 77; }; } ;;
29368
 
esac
29369
 
else
29370
 
  cat >conftest.$ac_ext <<_ACEOF
29371
 
/* confdefs.h.  */
29372
 
_ACEOF
29373
 
cat confdefs.h >>conftest.$ac_ext
29374
 
cat >>conftest.$ac_ext <<_ACEOF
29375
 
/* end confdefs.h.  */
29376
 
$ac_includes_default
29377
 
                   typedef long ac__type_sizeof_;
29378
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29379
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29380
 
@%:@include <stdio.h>
29381
 
@%:@include <stdlib.h>
29382
 
int
29383
 
main ()
29384
 
{
29385
 
 
29386
 
  FILE *f = fopen ("conftest.val", "w");
29387
 
  if (! f)
29388
 
    return 1;
29389
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29390
 
    {
29391
 
      long int i = longval ();
29392
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
29393
 
        return 1;
29394
 
      fprintf (f, "%ld\n", i);
29395
 
    }
29396
 
  else
29397
 
    {
29398
 
      unsigned long int i = ulongval ();
29399
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
29400
 
        return 1;
29401
 
      fprintf (f, "%lu\n", i);
29402
 
    }
29403
 
  return ferror (f) || fclose (f) != 0;
29404
 
 
29405
 
  ;
29406
 
  return 0;
29407
 
}
29408
 
_ACEOF
29409
 
rm -f conftest$ac_exeext
29410
 
if { (ac_try="$ac_link"
29411
 
case "(($ac_try" in
29412
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413
 
  *) ac_try_echo=$ac_try;;
29414
 
esac
29415
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416
 
  (eval "$ac_link") 2>&5
29417
 
  ac_status=$?
29418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29420
 
  { (case "(($ac_try" in
29421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29422
 
  *) ac_try_echo=$ac_try;;
29423
 
esac
29424
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29425
 
  (eval "$ac_try") 2>&5
29426
 
  ac_status=$?
29427
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428
 
  (exit $ac_status); }; }; then
29429
 
  ac_cv_sizeof_long=`cat conftest.val`
29430
 
else
29431
 
  echo "$as_me: program exited with status $ac_status" >&5
29432
 
echo "$as_me: failed program was:" >&5
29433
 
sed 's/^/| /' conftest.$ac_ext >&5
29434
 
 
29435
 
( exit $ac_status )
29436
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29437
 
See \`config.log' for more details." >&5
29438
 
echo "$as_me: error: cannot compute sizeof (long)
29439
 
See \`config.log' for more details." >&2;}
29440
 
   { (exit 77); exit 77; }; }
29441
 
fi
29442
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29443
 
fi
29444
 
rm -f conftest.val
29445
 
else
29446
 
  ac_cv_sizeof_long=0
29447
 
fi
29448
 
fi
29449
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29450
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29451
 
cat >>confdefs.h <<_ACEOF
29452
 
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
29453
 
_ACEOF
29454
 
 
29455
 
 
29456
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
29457
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29458
 
if test "${ac_cv_type_size_t+set}" = set; then
29459
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29460
 
else
29461
 
  cat >conftest.$ac_ext <<_ACEOF
29462
 
/* confdefs.h.  */
29463
 
_ACEOF
29464
 
cat confdefs.h >>conftest.$ac_ext
29465
 
cat >>conftest.$ac_ext <<_ACEOF
29466
 
/* end confdefs.h.  */
29467
 
$ac_includes_default
29468
 
typedef size_t ac__type_new_;
29469
 
int
29470
 
main ()
29471
 
{
29472
 
if ((ac__type_new_ *) 0)
29473
 
  return 0;
29474
 
if (sizeof (ac__type_new_))
29475
 
  return 0;
29476
 
  ;
29477
 
  return 0;
29478
 
}
29479
 
_ACEOF
29480
 
rm -f conftest.$ac_objext
29481
 
if { (ac_try="$ac_compile"
29482
 
case "(($ac_try" in
29483
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484
 
  *) ac_try_echo=$ac_try;;
29485
 
esac
29486
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487
 
  (eval "$ac_compile") 2>conftest.er1
29488
 
  ac_status=$?
29489
 
  grep -v '^ *+' conftest.er1 >conftest.err
29490
 
  rm -f conftest.er1
29491
 
  cat conftest.err >&5
29492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493
 
  (exit $ac_status); } &&
29494
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29495
 
  { (case "(($ac_try" in
29496
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497
 
  *) ac_try_echo=$ac_try;;
29498
 
esac
29499
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500
 
  (eval "$ac_try") 2>&5
29501
 
  ac_status=$?
29502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503
 
  (exit $ac_status); }; } &&
29504
 
         { ac_try='test -s conftest.$ac_objext'
29505
 
  { (case "(($ac_try" in
29506
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507
 
  *) ac_try_echo=$ac_try;;
29508
 
esac
29509
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510
 
  (eval "$ac_try") 2>&5
29511
 
  ac_status=$?
29512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513
 
  (exit $ac_status); }; }; then
29514
 
  ac_cv_type_size_t=yes
29515
 
else
29516
 
  echo "$as_me: failed program was:" >&5
29517
 
sed 's/^/| /' conftest.$ac_ext >&5
29518
 
 
29519
 
        ac_cv_type_size_t=no
29520
 
fi
29521
 
 
29522
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29523
 
fi
29524
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29525
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29526
 
 
29527
 
{ echo "$as_me:$LINENO: checking size of size_t" >&5
29528
 
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29529
 
if test "${ac_cv_sizeof_size_t+set}" = set; then
29530
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29531
 
else
29532
 
  if test "$ac_cv_type_size_t" = yes; then
29533
 
  # The cast to long int works around a bug in the HP C Compiler
29534
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29535
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29536
 
  # This bug is HP SR number 8606223364.
29537
 
  if test "$cross_compiling" = yes; then
29538
 
  # Depending upon the size, compute the lo and hi bounds.
29539
 
cat >conftest.$ac_ext <<_ACEOF
29540
 
/* confdefs.h.  */
29541
 
_ACEOF
29542
 
cat confdefs.h >>conftest.$ac_ext
29543
 
cat >>conftest.$ac_ext <<_ACEOF
29544
 
/* end confdefs.h.  */
29545
 
$ac_includes_default
29546
 
                   typedef size_t ac__type_sizeof_;
29547
 
int
29548
 
main ()
29549
 
{
29550
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29551
 
test_array @<:@0@:>@ = 0
29552
 
 
29553
 
  ;
29554
 
  return 0;
29555
 
}
29556
 
_ACEOF
29557
 
rm -f conftest.$ac_objext
29558
 
if { (ac_try="$ac_compile"
29559
 
case "(($ac_try" in
29560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29561
 
  *) ac_try_echo=$ac_try;;
29562
 
esac
29563
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29564
 
  (eval "$ac_compile") 2>conftest.er1
29565
 
  ac_status=$?
29566
 
  grep -v '^ *+' conftest.er1 >conftest.err
29567
 
  rm -f conftest.er1
29568
 
  cat conftest.err >&5
29569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570
 
  (exit $ac_status); } &&
29571
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29572
 
  { (case "(($ac_try" in
29573
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574
 
  *) ac_try_echo=$ac_try;;
29575
 
esac
29576
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577
 
  (eval "$ac_try") 2>&5
29578
 
  ac_status=$?
29579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580
 
  (exit $ac_status); }; } &&
29581
 
         { ac_try='test -s conftest.$ac_objext'
29582
 
  { (case "(($ac_try" in
29583
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584
 
  *) ac_try_echo=$ac_try;;
29585
 
esac
29586
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587
 
  (eval "$ac_try") 2>&5
29588
 
  ac_status=$?
29589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590
 
  (exit $ac_status); }; }; then
29591
 
  ac_lo=0 ac_mid=0
29592
 
  while :; do
29593
 
    cat >conftest.$ac_ext <<_ACEOF
29594
 
/* confdefs.h.  */
29595
 
_ACEOF
29596
 
cat confdefs.h >>conftest.$ac_ext
29597
 
cat >>conftest.$ac_ext <<_ACEOF
29598
 
/* end confdefs.h.  */
29599
 
$ac_includes_default
29600
 
                   typedef size_t ac__type_sizeof_;
29601
 
int
29602
 
main ()
29603
 
{
29604
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29605
 
test_array @<:@0@:>@ = 0
29606
 
 
29607
 
  ;
29608
 
  return 0;
29609
 
}
29610
 
_ACEOF
29611
 
rm -f conftest.$ac_objext
29612
 
if { (ac_try="$ac_compile"
29613
 
case "(($ac_try" in
29614
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29615
 
  *) ac_try_echo=$ac_try;;
29616
 
esac
29617
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29618
 
  (eval "$ac_compile") 2>conftest.er1
29619
 
  ac_status=$?
29620
 
  grep -v '^ *+' conftest.er1 >conftest.err
29621
 
  rm -f conftest.er1
29622
 
  cat conftest.err >&5
29623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624
 
  (exit $ac_status); } &&
29625
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29626
 
  { (case "(($ac_try" in
29627
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29628
 
  *) ac_try_echo=$ac_try;;
29629
 
esac
29630
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29631
 
  (eval "$ac_try") 2>&5
29632
 
  ac_status=$?
29633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634
 
  (exit $ac_status); }; } &&
29635
 
         { ac_try='test -s conftest.$ac_objext'
29636
 
  { (case "(($ac_try" in
29637
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638
 
  *) ac_try_echo=$ac_try;;
29639
 
esac
29640
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641
 
  (eval "$ac_try") 2>&5
29642
 
  ac_status=$?
29643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644
 
  (exit $ac_status); }; }; then
29645
 
  ac_hi=$ac_mid; break
29646
 
else
29647
 
  echo "$as_me: failed program was:" >&5
29648
 
sed 's/^/| /' conftest.$ac_ext >&5
29649
 
 
29650
 
        ac_lo=`expr $ac_mid + 1`
29651
 
                        if test $ac_lo -le $ac_mid; then
29652
 
                          ac_lo= ac_hi=
29653
 
                          break
29654
 
                        fi
29655
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
29656
 
fi
29657
 
 
29658
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29659
 
  done
29660
 
else
29661
 
  echo "$as_me: failed program was:" >&5
29662
 
sed 's/^/| /' conftest.$ac_ext >&5
29663
 
 
29664
 
        cat >conftest.$ac_ext <<_ACEOF
29665
 
/* confdefs.h.  */
29666
 
_ACEOF
29667
 
cat confdefs.h >>conftest.$ac_ext
29668
 
cat >>conftest.$ac_ext <<_ACEOF
29669
 
/* end confdefs.h.  */
29670
 
$ac_includes_default
29671
 
                   typedef size_t ac__type_sizeof_;
29672
 
int
29673
 
main ()
29674
 
{
29675
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29676
 
test_array @<:@0@:>@ = 0
29677
 
 
29678
 
  ;
29679
 
  return 0;
29680
 
}
29681
 
_ACEOF
29682
 
rm -f conftest.$ac_objext
29683
 
if { (ac_try="$ac_compile"
29684
 
case "(($ac_try" in
29685
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686
 
  *) ac_try_echo=$ac_try;;
29687
 
esac
29688
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689
 
  (eval "$ac_compile") 2>conftest.er1
29690
 
  ac_status=$?
29691
 
  grep -v '^ *+' conftest.er1 >conftest.err
29692
 
  rm -f conftest.er1
29693
 
  cat conftest.err >&5
29694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695
 
  (exit $ac_status); } &&
29696
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29697
 
  { (case "(($ac_try" in
29698
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699
 
  *) ac_try_echo=$ac_try;;
29700
 
esac
29701
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702
 
  (eval "$ac_try") 2>&5
29703
 
  ac_status=$?
29704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705
 
  (exit $ac_status); }; } &&
29706
 
         { ac_try='test -s conftest.$ac_objext'
29707
 
  { (case "(($ac_try" in
29708
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709
 
  *) ac_try_echo=$ac_try;;
29710
 
esac
29711
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712
 
  (eval "$ac_try") 2>&5
29713
 
  ac_status=$?
29714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715
 
  (exit $ac_status); }; }; then
29716
 
  ac_hi=-1 ac_mid=-1
29717
 
  while :; do
29718
 
    cat >conftest.$ac_ext <<_ACEOF
29719
 
/* confdefs.h.  */
29720
 
_ACEOF
29721
 
cat confdefs.h >>conftest.$ac_ext
29722
 
cat >>conftest.$ac_ext <<_ACEOF
29723
 
/* end confdefs.h.  */
29724
 
$ac_includes_default
29725
 
                   typedef size_t ac__type_sizeof_;
29726
 
int
29727
 
main ()
29728
 
{
29729
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29730
 
test_array @<:@0@:>@ = 0
29731
 
 
29732
 
  ;
29733
 
  return 0;
29734
 
}
29735
 
_ACEOF
29736
 
rm -f conftest.$ac_objext
29737
 
if { (ac_try="$ac_compile"
29738
 
case "(($ac_try" in
29739
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740
 
  *) ac_try_echo=$ac_try;;
29741
 
esac
29742
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743
 
  (eval "$ac_compile") 2>conftest.er1
29744
 
  ac_status=$?
29745
 
  grep -v '^ *+' conftest.er1 >conftest.err
29746
 
  rm -f conftest.er1
29747
 
  cat conftest.err >&5
29748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749
 
  (exit $ac_status); } &&
29750
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29751
 
  { (case "(($ac_try" in
29752
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753
 
  *) ac_try_echo=$ac_try;;
29754
 
esac
29755
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756
 
  (eval "$ac_try") 2>&5
29757
 
  ac_status=$?
29758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759
 
  (exit $ac_status); }; } &&
29760
 
         { ac_try='test -s conftest.$ac_objext'
29761
 
  { (case "(($ac_try" in
29762
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763
 
  *) ac_try_echo=$ac_try;;
29764
 
esac
29765
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766
 
  (eval "$ac_try") 2>&5
29767
 
  ac_status=$?
29768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769
 
  (exit $ac_status); }; }; then
29770
 
  ac_lo=$ac_mid; break
29771
 
else
29772
 
  echo "$as_me: failed program was:" >&5
29773
 
sed 's/^/| /' conftest.$ac_ext >&5
29774
 
 
29775
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
29776
 
                        if test $ac_mid -le $ac_hi; then
29777
 
                          ac_lo= ac_hi=
29778
 
                          break
29779
 
                        fi
29780
 
                        ac_mid=`expr 2 '*' $ac_mid`
29781
 
fi
29782
 
 
29783
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29784
 
  done
29785
 
else
29786
 
  echo "$as_me: failed program was:" >&5
29787
 
sed 's/^/| /' conftest.$ac_ext >&5
29788
 
 
29789
 
        ac_lo= ac_hi=
29790
 
fi
29791
 
 
29792
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29793
 
fi
29794
 
 
29795
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29796
 
# Binary search between lo and hi bounds.
29797
 
while test "x$ac_lo" != "x$ac_hi"; do
29798
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29799
 
  cat >conftest.$ac_ext <<_ACEOF
29800
 
/* confdefs.h.  */
29801
 
_ACEOF
29802
 
cat confdefs.h >>conftest.$ac_ext
29803
 
cat >>conftest.$ac_ext <<_ACEOF
29804
 
/* end confdefs.h.  */
29805
 
$ac_includes_default
29806
 
                   typedef size_t ac__type_sizeof_;
29807
 
int
29808
 
main ()
29809
 
{
29810
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29811
 
test_array @<:@0@:>@ = 0
29812
 
 
29813
 
  ;
29814
 
  return 0;
29815
 
}
29816
 
_ACEOF
29817
 
rm -f conftest.$ac_objext
29818
 
if { (ac_try="$ac_compile"
29819
 
case "(($ac_try" in
29820
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821
 
  *) ac_try_echo=$ac_try;;
29822
 
esac
29823
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824
 
  (eval "$ac_compile") 2>conftest.er1
29825
 
  ac_status=$?
29826
 
  grep -v '^ *+' conftest.er1 >conftest.err
29827
 
  rm -f conftest.er1
29828
 
  cat conftest.err >&5
29829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830
 
  (exit $ac_status); } &&
29831
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29832
 
  { (case "(($ac_try" in
29833
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29834
 
  *) ac_try_echo=$ac_try;;
29835
 
esac
29836
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29837
 
  (eval "$ac_try") 2>&5
29838
 
  ac_status=$?
29839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840
 
  (exit $ac_status); }; } &&
29841
 
         { ac_try='test -s conftest.$ac_objext'
29842
 
  { (case "(($ac_try" in
29843
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29844
 
  *) ac_try_echo=$ac_try;;
29845
 
esac
29846
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29847
 
  (eval "$ac_try") 2>&5
29848
 
  ac_status=$?
29849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850
 
  (exit $ac_status); }; }; then
29851
 
  ac_hi=$ac_mid
29852
 
else
29853
 
  echo "$as_me: failed program was:" >&5
29854
 
sed 's/^/| /' conftest.$ac_ext >&5
29855
 
 
29856
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
29857
 
fi
29858
 
 
29859
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29860
 
done
29861
 
case $ac_lo in
29862
 
?*) ac_cv_sizeof_size_t=$ac_lo;;
29863
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29864
 
See \`config.log' for more details." >&5
29865
 
echo "$as_me: error: cannot compute sizeof (size_t)
29866
 
See \`config.log' for more details." >&2;}
29867
 
   { (exit 77); exit 77; }; } ;;
29868
 
esac
29869
 
else
29870
 
  cat >conftest.$ac_ext <<_ACEOF
29871
 
/* confdefs.h.  */
29872
 
_ACEOF
29873
 
cat confdefs.h >>conftest.$ac_ext
29874
 
cat >>conftest.$ac_ext <<_ACEOF
29875
 
/* end confdefs.h.  */
29876
 
$ac_includes_default
29877
 
                   typedef size_t ac__type_sizeof_;
29878
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29879
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29880
 
@%:@include <stdio.h>
29881
 
@%:@include <stdlib.h>
29882
 
int
29883
 
main ()
29884
 
{
29885
 
 
29886
 
  FILE *f = fopen ("conftest.val", "w");
29887
 
  if (! f)
29888
 
    return 1;
29889
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29890
 
    {
29891
 
      long int i = longval ();
29892
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
29893
 
        return 1;
29894
 
      fprintf (f, "%ld\n", i);
29895
 
    }
29896
 
  else
29897
 
    {
29898
 
      unsigned long int i = ulongval ();
29899
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
29900
 
        return 1;
29901
 
      fprintf (f, "%lu\n", i);
29902
 
    }
29903
 
  return ferror (f) || fclose (f) != 0;
29904
 
 
29905
 
  ;
29906
 
  return 0;
29907
 
}
29908
 
_ACEOF
29909
 
rm -f conftest$ac_exeext
29910
 
if { (ac_try="$ac_link"
29911
 
case "(($ac_try" in
29912
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29913
 
  *) ac_try_echo=$ac_try;;
29914
 
esac
29915
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29916
 
  (eval "$ac_link") 2>&5
29917
 
  ac_status=$?
29918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29920
 
  { (case "(($ac_try" in
29921
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29922
 
  *) ac_try_echo=$ac_try;;
29923
 
esac
29924
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29925
 
  (eval "$ac_try") 2>&5
29926
 
  ac_status=$?
29927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928
 
  (exit $ac_status); }; }; then
29929
 
  ac_cv_sizeof_size_t=`cat conftest.val`
29930
 
else
29931
 
  echo "$as_me: program exited with status $ac_status" >&5
29932
 
echo "$as_me: failed program was:" >&5
29933
 
sed 's/^/| /' conftest.$ac_ext >&5
29934
 
 
29935
 
( exit $ac_status )
29936
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29937
 
See \`config.log' for more details." >&5
29938
 
echo "$as_me: error: cannot compute sizeof (size_t)
29939
 
See \`config.log' for more details." >&2;}
29940
 
   { (exit 77); exit 77; }; }
29941
 
fi
29942
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29943
 
fi
29944
 
rm -f conftest.val
29945
 
else
29946
 
  ac_cv_sizeof_size_t=0
29947
 
fi
29948
 
fi
29949
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29950
 
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29951
 
cat >>confdefs.h <<_ACEOF
29952
 
@%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29953
 
_ACEOF
29954
 
 
29955
 
 
29956
 
 
29957
 
 
29958
 
cat >>confdefs.h <<_ACEOF
29959
 
@%:@define NFS_STATEDIR "$statedir"
29960
 
_ACEOF
29961
 
 
29962
 
 
29963
 
if test "x$cross_compiling" = "xno"; then
29964
 
        CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29965
 
        CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29966
 
        CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29967
 
        LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29968
 
else
29969
 
        CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29970
 
        CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29971
 
        CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29972
 
        LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29973
 
fi
29974
 
 
29975
 
 
29976
 
 
29977
 
 
29978
 
 
29979
 
 
29980
 
 
29981
 
 
29982
 
 
29983
 
 
29984
 
 
29985
 
case $host in
29986
 
  alpha*)
29987
 
    ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29988
 
  *)
29989
 
    ARCHFLAGS="" ;;
29990
 
esac
29991
 
 
29992
 
my_am_cflags="-Wall $ARCHFLAGS -pipe"
29993
 
 
29994
 
AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
29995
 
 
29996
 
AM_CFLAGS="$my_am_cflags"
29997
 
 
29998
 
 
29999
 
# Make sure that $ACLOCAL_FLAGS are used during a rebuild
30000
 
ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30001
 
 
30002
 
 
30003
 
ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
30004
 
 
30005
 
cat >confcache <<\_ACEOF
30006
 
# This file is a shell script that caches the results of configure
30007
 
# tests run on this system so they can be shared between configure
30008
 
# scripts and configure runs, see configure's option --config-cache.
30009
 
# It is not useful on other systems.  If it contains results you don't
30010
 
# want to keep, you may remove or edit it.
30011
 
#
30012
 
# config.status only pays attention to the cache file if you give it
30013
 
# the --recheck option to rerun configure.
30014
 
#
30015
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
30016
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
30017
 
# following values.
30018
 
 
30019
 
_ACEOF
30020
 
 
30021
 
# The following way of writing the cache mishandles newlines in values,
30022
 
# but we know of no workaround that is simple, portable, and efficient.
30023
 
# So, we kill variables containing newlines.
30024
 
# Ultrix sh set writes to stderr and can't be redirected directly,
30025
 
# and sets the high bit in the cache file unless we assign to the vars.
30026
 
(
30027
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30028
 
    eval ac_val=\$$ac_var
30029
 
    case $ac_val in #(
30030
 
    *${as_nl}*)
30031
 
      case $ac_var in #(
30032
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30033
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30034
 
      esac
30035
 
      case $ac_var in #(
30036
 
      _ | IFS | as_nl) ;; #(
30037
 
      *) $as_unset $ac_var ;;
30038
 
      esac ;;
30039
 
    esac
30040
 
  done
30041
 
 
30042
 
  (set) 2>&1 |
30043
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30044
 
    *${as_nl}ac_space=\ *)
30045
 
      # `set' does not quote correctly, so add quotes (double-quote
30046
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
30047
 
      sed -n \
30048
 
        "s/'/'\\\\''/g;
30049
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30050
 
      ;; #(
30051
 
    *)
30052
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
30053
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30054
 
      ;;
30055
 
    esac |
30056
 
    sort
30057
 
) |
30058
 
  sed '
30059
 
     /^ac_cv_env_/b end
30060
 
     t clear
30061
 
     :clear
30062
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30063
 
     t end
30064
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30065
 
     :end' >>confcache
30066
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30067
 
  if test -w "$cache_file"; then
30068
 
    test "x$cache_file" != "x/dev/null" &&
30069
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30070
 
echo "$as_me: updating cache $cache_file" >&6;}
30071
 
    cat confcache >$cache_file
30072
 
  else
30073
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30074
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30075
 
  fi
30076
 
fi
30077
 
rm -f confcache
30078
 
 
30079
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
30080
 
# Let make expand exec_prefix.
30081
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30082
 
 
30083
 
DEFS=-DHAVE_CONFIG_H
30084
 
 
30085
 
ac_libobjs=
30086
 
ac_ltlibobjs=
30087
 
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30088
 
  # 1. Remove the extension, and $U if already installed.
30089
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30090
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
30091
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30092
 
  #    will be set to the directory where LIBOBJS objects are built.
30093
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30094
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30095
 
done
30096
 
LIB@&t@OBJS=$ac_libobjs
30097
 
 
30098
 
LTLIBOBJS=$ac_ltlibobjs
30099
 
 
30100
 
 
30101
 
if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30102
 
  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30103
 
Usually this means the macro was only invoked conditionally." >&5
30104
 
echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30105
 
Usually this means the macro was only invoked conditionally." >&2;}
30106
 
   { (exit 1); exit 1; }; }
30107
 
fi
30108
 
if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30109
 
  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30110
 
Usually this means the macro was only invoked conditionally." >&5
30111
 
echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30112
 
Usually this means the macro was only invoked conditionally." >&2;}
30113
 
   { (exit 1); exit 1; }; }
30114
 
fi
30115
 
if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
30116
 
  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30117
 
Usually this means the macro was only invoked conditionally." >&5
30118
 
echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30119
 
Usually this means the macro was only invoked conditionally." >&2;}
30120
 
   { (exit 1); exit 1; }; }
30121
 
fi
30122
 
if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30123
 
  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30124
 
Usually this means the macro was only invoked conditionally." >&5
30125
 
echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30126
 
Usually this means the macro was only invoked conditionally." >&2;}
30127
 
   { (exit 1); exit 1; }; }
30128
 
fi
30129
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30130
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30131
 
Usually this means the macro was only invoked conditionally." >&5
30132
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
30133
 
Usually this means the macro was only invoked conditionally." >&2;}
30134
 
   { (exit 1); exit 1; }; }
30135
 
fi
30136
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30137
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30138
 
Usually this means the macro was only invoked conditionally." >&5
30139
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30140
 
Usually this means the macro was only invoked conditionally." >&2;}
30141
 
   { (exit 1); exit 1; }; }
30142
 
fi
30143
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30144
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30145
 
Usually this means the macro was only invoked conditionally." >&5
30146
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30147
 
Usually this means the macro was only invoked conditionally." >&2;}
30148
 
   { (exit 1); exit 1; }; }
30149
 
fi
30150
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30151
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30152
 
Usually this means the macro was only invoked conditionally." >&5
30153
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30154
 
Usually this means the macro was only invoked conditionally." >&2;}
30155
 
   { (exit 1); exit 1; }; }
30156
 
fi
30157
 
 
30158
 
: ${CONFIG_STATUS=./config.status}
30159
 
ac_clean_files_save=$ac_clean_files
30160
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30161
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30162
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
30163
 
cat >$CONFIG_STATUS <<_ACEOF
30164
 
#! $SHELL
30165
 
# Generated by $as_me.
30166
 
# Run this file to recreate the current configuration.
30167
 
# Compiler output produced by configure, useful for debugging
30168
 
# configure, is in config.log if it exists.
30169
 
 
30170
 
debug=false
30171
 
ac_cs_recheck=false
30172
 
ac_cs_silent=false
30173
 
SHELL=\${CONFIG_SHELL-$SHELL}
30174
 
_ACEOF
30175
 
 
30176
 
cat >>$CONFIG_STATUS <<\_ACEOF
30177
 
## --------------------- ##
30178
 
## M4sh Initialization.  ##
30179
 
## --------------------- ##
30180
 
 
30181
 
# Be Bourne compatible
30182
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30183
 
  emulate sh
30184
 
  NULLCMD=:
30185
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30186
 
  # is contrary to our usage.  Disable this feature.
30187
 
  alias -g '${1+"$@"}'='"$@"'
30188
 
  setopt NO_GLOB_SUBST
30189
 
else
30190
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30191
 
fi
30192
 
BIN_SH=xpg4; export BIN_SH # for Tru64
30193
 
DUALCASE=1; export DUALCASE # for MKS sh
30194
 
 
30195
 
 
30196
 
# PATH needs CR
30197
 
# Avoid depending upon Character Ranges.
30198
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30199
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30200
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30201
 
as_cr_digits='0123456789'
30202
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
30203
 
 
30204
 
# The user is always right.
30205
 
if test "${PATH_SEPARATOR+set}" != set; then
30206
 
  echo "#! /bin/sh" >conf$$.sh
30207
 
  echo  "exit 0"   >>conf$$.sh
30208
 
  chmod +x conf$$.sh
30209
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30210
 
    PATH_SEPARATOR=';'
30211
 
  else
30212
 
    PATH_SEPARATOR=:
30213
 
  fi
30214
 
  rm -f conf$$.sh
30215
 
fi
30216
 
 
30217
 
# Support unset when possible.
30218
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30219
 
  as_unset=unset
30220
 
else
30221
 
  as_unset=false
30222
 
fi
30223
 
 
30224
 
 
30225
 
# IFS
30226
 
# We need space, tab and new line, in precisely that order.  Quoting is
30227
 
# there to prevent editors from complaining about space-tab.
30228
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30229
 
# splitting by setting IFS to empty value.)
30230
 
as_nl='
30231
 
'
30232
 
IFS=" ""        $as_nl"
30233
 
 
30234
 
# Find who we are.  Look in the path if we contain no directory separator.
30235
 
case $0 in
30236
 
  *[\\/]* ) as_myself=$0 ;;
30237
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30238
 
for as_dir in $PATH
30239
 
do
30240
 
  IFS=$as_save_IFS
30241
 
  test -z "$as_dir" && as_dir=.
30242
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30243
 
done
30244
 
IFS=$as_save_IFS
30245
 
 
30246
 
     ;;
30247
 
esac
30248
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
30249
 
# in which case we are not to be found in the path.
30250
 
if test "x$as_myself" = x; then
30251
 
  as_myself=$0
30252
 
fi
30253
 
if test ! -f "$as_myself"; then
30254
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30255
 
  { (exit 1); exit 1; }
30256
 
fi
30257
 
 
30258
 
# Work around bugs in pre-3.0 UWIN ksh.
30259
 
for as_var in ENV MAIL MAILPATH
30260
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30261
 
done
30262
 
PS1='$ '
30263
 
PS2='> '
30264
 
PS4='+ '
30265
 
 
30266
 
# NLS nuisances.
30267
 
for as_var in \
30268
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30269
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30270
 
  LC_TELEPHONE LC_TIME
30271
 
do
30272
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30273
 
    eval $as_var=C; export $as_var
30274
 
  else
30275
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30276
 
  fi
30277
 
done
30278
 
 
30279
 
# Required to use basename.
30280
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
30281
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30282
 
  as_expr=expr
30283
 
else
30284
 
  as_expr=false
30285
 
fi
30286
 
 
30287
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30288
 
  as_basename=basename
30289
 
else
30290
 
  as_basename=false
30291
 
fi
30292
 
 
30293
 
 
30294
 
# Name of the executable.
30295
 
as_me=`$as_basename -- "$0" ||
30296
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30297
 
         X"$0" : 'X\(//\)$' \| \
30298
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30299
 
echo X/"$0" |
30300
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
30301
 
            s//\1/
30302
 
            q
30303
 
          }
30304
 
          /^X\/\(\/\/\)$/{
30305
 
            s//\1/
30306
 
            q
30307
 
          }
30308
 
          /^X\/\(\/\).*/{
30309
 
            s//\1/
30310
 
            q
30311
 
          }
30312
 
          s/.*/./; q'`
30313
 
 
30314
 
# CDPATH.
30315
 
$as_unset CDPATH
30316
 
 
30317
 
 
30318
 
 
30319
 
  as_lineno_1=$LINENO
30320
 
  as_lineno_2=$LINENO
30321
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
30322
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30323
 
 
30324
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30325
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
30326
 
  # line-number line after each line using $LINENO; the second 'sed'
30327
 
  # does the real work.  The second script uses 'N' to pair each
30328
 
  # line-number line with the line containing $LINENO, and appends
30329
 
  # trailing '-' during substitution so that $LINENO is not a special
30330
 
  # case at line end.
30331
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30332
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
30333
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
30334
 
  sed -n '
30335
 
    p
30336
 
    /[$]LINENO/=
30337
 
  ' <$as_myself |
30338
 
    sed '
30339
 
      s/[$]LINENO.*/&-/
30340
 
      t lineno
30341
 
      b
30342
 
      :lineno
30343
 
      N
30344
 
      :loop
30345
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30346
 
      t loop
30347
 
      s/-\n.*//
30348
 
    ' >$as_me.lineno &&
30349
 
  chmod +x "$as_me.lineno" ||
30350
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30351
 
   { (exit 1); exit 1; }; }
30352
 
 
30353
 
  # Don't try to exec as it changes $[0], causing all sort of problems
30354
 
  # (the dirname of $[0] is not the place where we might find the
30355
 
  # original and so on.  Autoconf is especially sensitive to this).
30356
 
  . "./$as_me.lineno"
30357
 
  # Exit status is that of the last command.
30358
 
  exit
30359
 
}
30360
 
 
30361
 
 
30362
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30363
 
  as_dirname=dirname
30364
 
else
30365
 
  as_dirname=false
30366
 
fi
30367
 
 
30368
 
ECHO_C= ECHO_N= ECHO_T=
30369
 
case `echo -n x` in
30370
 
-n*)
30371
 
  case `echo 'x\c'` in
30372
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30373
 
  *)   ECHO_C='\c';;
30374
 
  esac;;
30375
 
*)
30376
 
  ECHO_N='-n';;
30377
 
esac
30378
 
 
30379
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
30380
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30381
 
  as_expr=expr
30382
 
else
30383
 
  as_expr=false
30384
 
fi
30385
 
 
30386
 
rm -f conf$$ conf$$.exe conf$$.file
30387
 
if test -d conf$$.dir; then
30388
 
  rm -f conf$$.dir/conf$$.file
30389
 
else
30390
 
  rm -f conf$$.dir
30391
 
  mkdir conf$$.dir
30392
 
fi
30393
 
echo >conf$$.file
30394
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
30395
 
  as_ln_s='ln -s'
30396
 
  # ... but there are two gotchas:
30397
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30398
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30399
 
  # In both cases, we have to default to `cp -p'.
30400
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30401
 
    as_ln_s='cp -p'
30402
 
elif ln conf$$.file conf$$ 2>/dev/null; then
30403
 
  as_ln_s=ln
30404
 
else
30405
 
  as_ln_s='cp -p'
30406
 
fi
30407
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30408
 
rmdir conf$$.dir 2>/dev/null
30409
 
 
30410
 
if mkdir -p . 2>/dev/null; then
30411
 
  as_mkdir_p=:
30412
 
else
30413
 
  test -d ./-p && rmdir ./-p
30414
 
  as_mkdir_p=false
30415
 
fi
30416
 
 
30417
 
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
30418
 
# systems may use methods other than mode bits to determine executability.
30419
 
cat >conf$$.file <<_ASEOF
30420
 
#! /bin/sh
30421
 
exit 0
30422
 
_ASEOF
30423
 
chmod +x conf$$.file
30424
 
if test -x conf$$.file >/dev/null 2>&1; then
30425
 
  as_executable_p="test -x"
30426
 
else
30427
 
  as_executable_p=:
30428
 
fi
30429
 
rm -f conf$$.file
30430
 
 
30431
 
# Sed expression to map a string onto a valid CPP name.
30432
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30433
 
 
30434
 
# Sed expression to map a string onto a valid variable name.
30435
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30436
 
 
30437
 
 
30438
 
exec 6>&1
30439
 
 
30440
 
# Save the log message, to keep $[0] and so on meaningful, and to
30441
 
# report actual input values of CONFIG_FILES etc. instead of their
30442
 
# values after options handling.
30443
 
ac_log="
30444
 
This file was extended by linux nfs-utils $as_me 1.0.9-pre1, which was
30445
 
generated by GNU Autoconf 2.59e.  Invocation command line was
30446
 
 
30447
 
  CONFIG_FILES    = $CONFIG_FILES
30448
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
30449
 
  CONFIG_LINKS    = $CONFIG_LINKS
30450
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
30451
 
  $ $0 $@
30452
 
 
30453
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
30454
 
"
30455
 
 
30456
 
_ACEOF
30457
 
 
30458
 
cat >>$CONFIG_STATUS <<_ACEOF
30459
 
# Files that config.status was made for.
30460
 
config_files="$ac_config_files"
30461
 
config_headers="$ac_config_headers"
30462
 
config_commands="$ac_config_commands"
30463
 
 
30464
 
_ACEOF
30465
 
 
30466
 
cat >>$CONFIG_STATUS <<\_ACEOF
30467
 
ac_cs_usage="\
30468
 
\`$as_me' instantiates files from templates according to the
30469
 
current configuration.
30470
 
 
30471
 
Usage: $0 [OPTIONS] [FILE]...
30472
 
 
30473
 
  -h, --help       print this help, then exit
30474
 
  -V, --version    print version number, then exit
30475
 
  -q, --quiet      do not print progress messages
30476
 
  -d, --debug      don't remove temporary files
30477
 
      --recheck    update $as_me by reconfiguring in the same conditions
30478
 
  --file=FILE[:TEMPLATE]
30479
 
                   instantiate the configuration file FILE
30480
 
  --header=FILE[:TEMPLATE]
30481
 
                   instantiate the configuration header FILE
30482
 
 
30483
 
Configuration files:
30484
 
$config_files
30485
 
 
30486
 
Configuration headers:
30487
 
$config_headers
30488
 
 
30489
 
Configuration commands:
30490
 
$config_commands
30491
 
 
30492
 
Report bugs to <bug-autoconf@gnu.org>."
30493
 
 
30494
 
_ACEOF
30495
 
cat >>$CONFIG_STATUS <<_ACEOF
30496
 
ac_cs_version="\\
30497
 
linux nfs-utils config.status 1.0.9-pre1
30498
 
configured by $0, generated by GNU Autoconf 2.59e,
30499
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30500
 
 
30501
 
Copyright (C) 2006 Free Software Foundation, Inc.
30502
 
This config.status script is free software; the Free Software Foundation
30503
 
gives unlimited permission to copy, distribute and modify it."
30504
 
 
30505
 
ac_pwd='$ac_pwd'
30506
 
srcdir='$srcdir'
30507
 
INSTALL='$INSTALL'
30508
 
_ACEOF
30509
 
 
30510
 
cat >>$CONFIG_STATUS <<\_ACEOF
30511
 
# If no file are specified by the user, then we need to provide default
30512
 
# value.  By we need to know if files were specified by the user.
30513
 
ac_need_defaults=:
30514
 
while test $# != 0
30515
 
do
30516
 
  case $1 in
30517
 
  --*=*)
30518
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30519
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30520
 
    ac_shift=:
30521
 
    ;;
30522
 
  *)
30523
 
    ac_option=$1
30524
 
    ac_optarg=$2
30525
 
    ac_shift=shift
30526
 
    ;;
30527
 
  esac
30528
 
 
30529
 
  case $ac_option in
30530
 
  # Handling of the options.
30531
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30532
 
    ac_cs_recheck=: ;;
30533
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30534
 
    echo "$ac_cs_version"; exit ;;
30535
 
  --debug | --debu | --deb | --de | --d | -d )
30536
 
    debug=: ;;
30537
 
  --file | --fil | --fi | --f )
30538
 
    $ac_shift
30539
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30540
 
    ac_need_defaults=false;;
30541
 
  --header | --heade | --head | --hea )
30542
 
    $ac_shift
30543
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30544
 
    ac_need_defaults=false;;
30545
 
  --he | --h)
30546
 
    # Conflict between --help and --header
30547
 
    { echo "$as_me: error: ambiguous option: $1
30548
 
Try \`$0 --help' for more information." >&2
30549
 
   { (exit 1); exit 1; }; };;
30550
 
  --help | --hel | -h )
30551
 
    echo "$ac_cs_usage"; exit ;;
30552
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30553
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30554
 
    ac_cs_silent=: ;;
30555
 
 
30556
 
  # This is an error.
30557
 
  -*) { echo "$as_me: error: unrecognized option: $1
30558
 
Try \`$0 --help' for more information." >&2
30559
 
   { (exit 1); exit 1; }; } ;;
30560
 
 
30561
 
  *) ac_config_targets="$ac_config_targets $1"
30562
 
     ac_need_defaults=false ;;
30563
 
 
30564
 
  esac
30565
 
  shift
30566
 
done
30567
 
 
30568
 
ac_configure_extra_args=
30569
 
 
30570
 
if $ac_cs_silent; then
30571
 
  exec 6>/dev/null
30572
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
30573
 
fi
30574
 
 
30575
 
_ACEOF
30576
 
cat >>$CONFIG_STATUS <<_ACEOF
30577
 
if \$ac_cs_recheck; then
30578
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30579
 
  CONFIG_SHELL=$SHELL
30580
 
  export CONFIG_SHELL
30581
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30582
 
fi
30583
 
 
30584
 
_ACEOF
30585
 
cat >>$CONFIG_STATUS <<\_ACEOF
30586
 
exec 5>>config.log
30587
 
{
30588
 
  echo
30589
 
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30590
 
@%:@@%:@ Running $as_me. @%:@@%:@
30591
 
_ASBOX
30592
 
  echo "$ac_log"
30593
 
} >&5
30594
 
 
30595
 
_ACEOF
30596
 
cat >>$CONFIG_STATUS <<_ACEOF
30597
 
#
30598
 
# INIT-COMMANDS
30599
 
#
30600
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30601
 
 
30602
 
_ACEOF
30603
 
 
30604
 
cat >>$CONFIG_STATUS <<\_ACEOF
30605
 
 
30606
 
# Handling of arguments.
30607
 
for ac_config_target in $ac_config_targets
30608
 
do
30609
 
  case $ac_config_target in
30610
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30611
 
    "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30612
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30613
 
    "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30614
 
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30615
 
    "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30616
 
    "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30617
 
    "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30618
 
    "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30619
 
    "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30620
 
    "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30621
 
    "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30622
 
    "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30623
 
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30624
 
    "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
30625
 
    "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
30626
 
    "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30627
 
    "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30628
 
    "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30629
 
    "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30630
 
    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30631
 
    "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30632
 
    "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30633
 
    "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30634
 
    "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
30635
 
    "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30636
 
    "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30637
 
    "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30638
 
    "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30639
 
    "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
30640
 
    "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
30641
 
    "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30642
 
    "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30643
 
 
30644
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30645
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30646
 
   { (exit 1); exit 1; }; };;
30647
 
  esac
30648
 
done
30649
 
 
30650
 
 
30651
 
# If the user did not use the arguments to specify the items to instantiate,
30652
 
# then the envvar interface is used.  Set only those that are not.
30653
 
# We use the long form for the default assignment because of an extremely
30654
 
# bizarre bug on SunOS 4.1.3.
30655
 
if $ac_need_defaults; then
30656
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30657
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30658
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30659
 
fi
30660
 
 
30661
 
# Have a temporary directory for convenience.  Make it in the build tree
30662
 
# simply because there is no reason against having it here, and in addition,
30663
 
# creating and moving files from /tmp can sometimes cause problems.
30664
 
# Hook for its removal unless debugging.
30665
 
# Note that there is a small window in which the directory will not be cleaned:
30666
 
# after its creation but before its name has been assigned to `$tmp'.
30667
 
$debug ||
30668
 
{
30669
 
  tmp=
30670
 
  trap 'exit_status=$?
30671
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30672
 
' 0
30673
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
30674
 
}
30675
 
# Create a (secure) tmp directory for tmp files.
30676
 
 
30677
 
{
30678
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30679
 
  test -n "$tmp" && test -d "$tmp"
30680
 
}  ||
30681
 
{
30682
 
  tmp=./conf$$-$RANDOM
30683
 
  (umask 077 && mkdir "$tmp")
30684
 
} ||
30685
 
{
30686
 
   echo "$me: cannot create a temporary directory in ." >&2
30687
 
   { (exit 1); exit 1; }
30688
 
}
30689
 
 
30690
 
#
30691
 
# Set up the sed scripts for CONFIG_FILES section.
30692
 
#
30693
 
 
30694
 
# No need to generate the scripts if there are no CONFIG_FILES.
30695
 
# This happens for instance when ./config.status config.h
30696
 
if test -n "$CONFIG_FILES"; then
30697
 
 
30698
 
_ACEOF
30699
 
 
30700
 
 
30701
 
 
30702
 
ac_delim='%!_!# '
30703
 
for ac_last_try in false false false false false :; do
30704
 
  cat >conf$$subs.sed <<_ACEOF
30705
 
SHELL!$SHELL$ac_delim
30706
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30707
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30708
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30709
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30710
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30711
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30712
 
exec_prefix!$exec_prefix$ac_delim
30713
 
prefix!$prefix$ac_delim
30714
 
program_transform_name!$program_transform_name$ac_delim
30715
 
bindir!$bindir$ac_delim
30716
 
sbindir!$sbindir$ac_delim
30717
 
libexecdir!$libexecdir$ac_delim
30718
 
datarootdir!$datarootdir$ac_delim
30719
 
datadir!$datadir$ac_delim
30720
 
sysconfdir!$sysconfdir$ac_delim
30721
 
sharedstatedir!$sharedstatedir$ac_delim
30722
 
localstatedir!$localstatedir$ac_delim
30723
 
includedir!$includedir$ac_delim
30724
 
oldincludedir!$oldincludedir$ac_delim
30725
 
docdir!$docdir$ac_delim
30726
 
infodir!$infodir$ac_delim
30727
 
htmldir!$htmldir$ac_delim
30728
 
dvidir!$dvidir$ac_delim
30729
 
pdfdir!$pdfdir$ac_delim
30730
 
psdir!$psdir$ac_delim
30731
 
libdir!$libdir$ac_delim
30732
 
localedir!$localedir$ac_delim
30733
 
mandir!$mandir$ac_delim
30734
 
DEFS!$DEFS$ac_delim
30735
 
ECHO_C!$ECHO_C$ac_delim
30736
 
ECHO_N!$ECHO_N$ac_delim
30737
 
ECHO_T!$ECHO_T$ac_delim
30738
 
LIBS!$LIBS$ac_delim
30739
 
build_alias!$build_alias$ac_delim
30740
 
host_alias!$host_alias$ac_delim
30741
 
target_alias!$target_alias$ac_delim
30742
 
build!$build$ac_delim
30743
 
build_cpu!$build_cpu$ac_delim
30744
 
build_vendor!$build_vendor$ac_delim
30745
 
build_os!$build_os$ac_delim
30746
 
host!$host$ac_delim
30747
 
host_cpu!$host_cpu$ac_delim
30748
 
host_vendor!$host_vendor$ac_delim
30749
 
host_os!$host_os$ac_delim
30750
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30751
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30752
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
30753
 
CYGPATH_W!$CYGPATH_W$ac_delim
30754
 
PACKAGE!$PACKAGE$ac_delim
30755
 
VERSION!$VERSION$ac_delim
30756
 
ACLOCAL!$ACLOCAL$ac_delim
30757
 
AUTOCONF!$AUTOCONF$ac_delim
30758
 
AUTOMAKE!$AUTOMAKE$ac_delim
30759
 
AUTOHEADER!$AUTOHEADER$ac_delim
30760
 
MAKEINFO!$MAKEINFO$ac_delim
30761
 
install_sh!$install_sh$ac_delim
30762
 
STRIP!$STRIP$ac_delim
30763
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30764
 
mkdir_p!$mkdir_p$ac_delim
30765
 
AWK!$AWK$ac_delim
30766
 
SET_MAKE!$SET_MAKE$ac_delim
30767
 
am__leading_dot!$am__leading_dot$ac_delim
30768
 
AMTAR!$AMTAR$ac_delim
30769
 
am__tar!$am__tar$ac_delim
30770
 
am__untar!$am__untar$ac_delim
30771
 
RELEASE!$RELEASE$ac_delim
30772
 
statedir!$statedir$ac_delim
30773
 
statduser!$statduser$ac_delim
30774
 
enable_nfsv3!$enable_nfsv3$ac_delim
30775
 
IDMAPD!$IDMAPD$ac_delim
30776
 
enable_nfsv4!$enable_nfsv4$ac_delim
30777
 
CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30778
 
CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30779
 
GSSD!$GSSD$ac_delim
30780
 
SVCGSSD!$SVCGSSD$ac_delim
30781
 
enable_gss!$enable_gss$ac_delim
30782
 
CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30783
 
CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30784
 
kprefix!$kprefix$ac_delim
30785
 
secure_statd!$secure_statd$ac_delim
30786
 
CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
30787
 
CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
30788
 
CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30789
 
CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30790
 
CC!$CC$ac_delim
30791
 
CFLAGS!$CFLAGS$ac_delim
30792
 
LDFLAGS!$LDFLAGS$ac_delim
30793
 
CPPFLAGS!$CPPFLAGS$ac_delim
30794
 
ac_ct_CC!$ac_ct_CC$ac_delim
30795
 
EXEEXT!$EXEEXT$ac_delim
30796
 
OBJEXT!$OBJEXT$ac_delim
30797
 
DEPDIR!$DEPDIR$ac_delim
30798
 
am__include!$am__include$ac_delim
30799
 
am__quote!$am__quote$ac_delim
30800
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30801
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30802
 
_ACEOF
30803
 
 
30804
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30805
 
    break
30806
 
  elif $ac_last_try; then
30807
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30808
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30809
 
   { (exit 1); exit 1; }; }
30810
 
  else
30811
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30812
 
  fi
30813
 
done
30814
 
 
30815
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30816
 
if test -n "$ac_eof"; then
30817
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30818
 
  ac_eof=`expr $ac_eof + 1`
30819
 
fi
30820
 
 
30821
 
cat >>$CONFIG_STATUS <<_ACEOF
30822
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30823
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30824
 
_ACEOF
30825
 
sed '
30826
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30827
 
s/^/s,@/; s/!/@,|#_!!_#|/
30828
 
:n
30829
 
t n
30830
 
s/'"$ac_delim"'$/,g/; t
30831
 
s/$/\\/; p
30832
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30833
 
' >>$CONFIG_STATUS <conf$$subs.sed
30834
 
rm -f conf$$subs.sed
30835
 
cat >>$CONFIG_STATUS <<_ACEOF
30836
 
CEOF$ac_eof
30837
 
_ACEOF
30838
 
 
30839
 
 
30840
 
ac_delim='%!_!# '
30841
 
for ac_last_try in false false false false false :; do
30842
 
  cat >conf$$subs.sed <<_ACEOF
30843
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30844
 
CCDEPMODE!$CCDEPMODE$ac_delim
30845
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30846
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30847
 
LIBWRAP!$LIBWRAP$ac_delim
30848
 
HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30849
 
HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30850
 
CXX!$CXX$ac_delim
30851
 
CXXFLAGS!$CXXFLAGS$ac_delim
30852
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
30853
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
30854
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30855
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30856
 
CPP!$CPP$ac_delim
30857
 
LN_S!$LN_S$ac_delim
30858
 
GREP!$GREP$ac_delim
30859
 
EGREP!$EGREP$ac_delim
30860
 
ECHO!$ECHO$ac_delim
30861
 
AR!$AR$ac_delim
30862
 
RANLIB!$RANLIB$ac_delim
30863
 
CXXCPP!$CXXCPP$ac_delim
30864
 
F77!$F77$ac_delim
30865
 
FFLAGS!$FFLAGS$ac_delim
30866
 
ac_ct_F77!$ac_ct_F77$ac_delim
30867
 
LIBTOOL!$LIBTOOL$ac_delim
30868
 
CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30869
 
LD!$LD$ac_delim
30870
 
PKG_CONFIG!$PKG_CONFIG$ac_delim
30871
 
RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30872
 
RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30873
 
GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30874
 
GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30875
 
LIBSOCKET!$LIBSOCKET$ac_delim
30876
 
LIBNSL!$LIBNSL$ac_delim
30877
 
LIBCRYPT!$LIBCRYPT$ac_delim
30878
 
LIBBSD!$LIBBSD$ac_delim
30879
 
KRBDIR!$KRBDIR$ac_delim
30880
 
KRBLIBS!$KRBLIBS$ac_delim
30881
 
KRBCFLAGS!$KRBCFLAGS$ac_delim
30882
 
K5VERS!$K5VERS$ac_delim
30883
 
ALLOCA!$ALLOCA$ac_delim
30884
 
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30885
 
CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30886
 
CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30887
 
CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30888
 
LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30889
 
AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30890
 
AM_CFLAGS!$AM_CFLAGS$ac_delim
30891
 
ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30892
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
30893
 
_ACEOF
30894
 
 
30895
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
30896
 
    break
30897
 
  elif $ac_last_try; then
30898
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30899
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30900
 
   { (exit 1); exit 1; }; }
30901
 
  else
30902
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30903
 
  fi
30904
 
done
30905
 
 
30906
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30907
 
if test -n "$ac_eof"; then
30908
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30909
 
  ac_eof=`expr $ac_eof + 1`
30910
 
fi
30911
 
 
30912
 
cat >>$CONFIG_STATUS <<_ACEOF
30913
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30914
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30915
 
_ACEOF
30916
 
sed '
30917
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30918
 
s/^/s,@/; s/!/@,|#_!!_#|/
30919
 
:n
30920
 
t n
30921
 
s/'"$ac_delim"'$/,g/; t
30922
 
s/$/\\/; p
30923
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30924
 
' >>$CONFIG_STATUS <conf$$subs.sed
30925
 
rm -f conf$$subs.sed
30926
 
cat >>$CONFIG_STATUS <<_ACEOF
30927
 
:end
30928
 
s/|#_!!_#|//g
30929
 
CEOF$ac_eof
30930
 
_ACEOF
30931
 
 
30932
 
 
30933
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
30934
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30935
 
# trailing colons and then remove the whole line if VPATH becomes empty
30936
 
# (actually we leave an empty line to preserve line numbers).
30937
 
if test "x$srcdir" = x.; then
30938
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
30939
 
s/:*\$(srcdir):*/:/
30940
 
s/:*\${srcdir}:*/:/
30941
 
s/:*@srcdir@:*/:/
30942
 
s/^\([^=]*=[     ]*\):*/\1/
30943
 
s/:*$//
30944
 
s/^[^=]*=[       ]*$//
30945
 
}'
30946
 
fi
30947
 
 
30948
 
cat >>$CONFIG_STATUS <<\_ACEOF
30949
 
fi # test -n "$CONFIG_FILES"
30950
 
 
30951
 
 
30952
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30953
 
do
30954
 
  case $ac_tag in
30955
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
30956
 
  esac
30957
 
  case $ac_mode$ac_tag in
30958
 
  :[FHL]*:*);;
30959
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30960
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30961
 
   { (exit 1); exit 1; }; };;
30962
 
  :[FH]-) ac_tag=-:-;;
30963
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30964
 
  esac
30965
 
  ac_save_IFS=$IFS
30966
 
  IFS=:
30967
 
  set x $ac_tag
30968
 
  IFS=$ac_save_IFS
30969
 
  shift
30970
 
  ac_file=$1
30971
 
  shift
30972
 
 
30973
 
  case $ac_mode in
30974
 
  :L) ac_source=$1;;
30975
 
  :[FH])
30976
 
    ac_file_inputs=
30977
 
    for ac_f
30978
 
    do
30979
 
      case $ac_f in
30980
 
      -) ac_f="$tmp/stdin";;
30981
 
      *) # Look for the file first in the build tree, then in the source tree
30982
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
30983
 
         # because $ac_f cannot contain `:'.
30984
 
         test -f "$ac_f" ||
30985
 
           case $ac_f in
30986
 
           [\\/$]*) false;;
30987
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30988
 
           esac ||
30989
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30990
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30991
 
   { (exit 1); exit 1; }; };;
30992
 
      esac
30993
 
      ac_file_inputs="$ac_file_inputs $ac_f"
30994
 
    done
30995
 
 
30996
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
30997
 
    # use $as_me), people would be surprised to read:
30998
 
    #    /* config.h.  Generated by config.status.  */
30999
 
    configure_input="Generated from "`IFS=:
31000
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31001
 
    if test x"$ac_file" != x-; then
31002
 
      configure_input="$ac_file.  $configure_input"
31003
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
31004
 
echo "$as_me: creating $ac_file" >&6;}
31005
 
    fi
31006
 
 
31007
 
    case $ac_tag in
31008
 
    *:-:* | *:-) cat >"$tmp/stdin";;
31009
 
    esac
31010
 
    ;;
31011
 
  esac
31012
 
 
31013
 
  ac_dir=`$as_dirname -- "$ac_file" ||
31014
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31015
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
31016
 
         X"$ac_file" : 'X\(//\)$' \| \
31017
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31018
 
echo X"$ac_file" |
31019
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31020
 
            s//\1/
31021
 
            q
31022
 
          }
31023
 
          /^X\(\/\/\)[^/].*/{
31024
 
            s//\1/
31025
 
            q
31026
 
          }
31027
 
          /^X\(\/\/\)$/{
31028
 
            s//\1/
31029
 
            q
31030
 
          }
31031
 
          /^X\(\/\).*/{
31032
 
            s//\1/
31033
 
            q
31034
 
          }
31035
 
          s/.*/./; q'`
31036
 
  { as_dir="$ac_dir"
31037
 
  case $as_dir in #(
31038
 
  -*) as_dir=./$as_dir;;
31039
 
  esac
31040
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31041
 
    as_dirs=
31042
 
    while :; do
31043
 
      case $as_dir in #(
31044
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31045
 
      *) as_qdir=$as_dir;;
31046
 
      esac
31047
 
      as_dirs="'$as_qdir' $as_dirs"
31048
 
      as_dir=`$as_dirname -- "$as_dir" ||
31049
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31050
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
31051
 
         X"$as_dir" : 'X\(//\)$' \| \
31052
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31053
 
echo X"$as_dir" |
31054
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31055
 
            s//\1/
31056
 
            q
31057
 
          }
31058
 
          /^X\(\/\/\)[^/].*/{
31059
 
            s//\1/
31060
 
            q
31061
 
          }
31062
 
          /^X\(\/\/\)$/{
31063
 
            s//\1/
31064
 
            q
31065
 
          }
31066
 
          /^X\(\/\).*/{
31067
 
            s//\1/
31068
 
            q
31069
 
          }
31070
 
          s/.*/./; q'`
31071
 
      test -d "$as_dir" && break
31072
 
    done
31073
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
31074
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31075
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
31076
 
   { (exit 1); exit 1; }; }; }
31077
 
  ac_builddir=.
31078
 
 
31079
 
case "$ac_dir" in
31080
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31081
 
*)
31082
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31083
 
  # A ".." for each directory in $ac_dir_suffix.
31084
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31085
 
  case $ac_top_builddir_sub in
31086
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31087
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31088
 
  esac ;;
31089
 
esac
31090
 
ac_abs_top_builddir=$ac_pwd
31091
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
31092
 
# for backward compatibility:
31093
 
ac_top_builddir=$ac_top_build_prefix
31094
 
 
31095
 
case $srcdir in
31096
 
  .)  # We are building in place.
31097
 
    ac_srcdir=.
31098
 
    ac_top_srcdir=$ac_top_builddir_sub
31099
 
    ac_abs_top_srcdir=$ac_pwd ;;
31100
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
31101
 
    ac_srcdir=$srcdir$ac_dir_suffix;
31102
 
    ac_top_srcdir=$srcdir
31103
 
    ac_abs_top_srcdir=$srcdir ;;
31104
 
  *) # Relative name.
31105
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31106
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
31107
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31108
 
esac
31109
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31110
 
 
31111
 
 
31112
 
  case $ac_mode in
31113
 
  :F)
31114
 
  #
31115
 
  # CONFIG_FILE
31116
 
  #
31117
 
 
31118
 
  case $INSTALL in
31119
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31120
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31121
 
  esac
31122
 
_ACEOF
31123
 
 
31124
 
cat >>$CONFIG_STATUS <<\_ACEOF
31125
 
# If the template does not know about datarootdir, expand it.
31126
 
# FIXME: This hack should be removed a few years after 2.60.
31127
 
ac_datarootdir_hack=; ac_datarootdir_seen=
31128
 
 
31129
 
case `sed -n '/datarootdir/ {
31130
 
  p
31131
 
  q
31132
 
}
31133
 
/@datadir@/p
31134
 
/@docdir@/p
31135
 
/@infodir@/p
31136
 
/@localedir@/p
31137
 
/@mandir@/p
31138
 
' $ac_file_inputs` in
31139
 
*datarootdir*) ac_datarootdir_seen=yes;;
31140
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31141
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31142
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31143
 
_ACEOF
31144
 
cat >>$CONFIG_STATUS <<_ACEOF
31145
 
  ac_datarootdir_hack='
31146
 
  s&@datadir@&$datadir&g
31147
 
  s&@docdir@&$docdir&g
31148
 
  s&@infodir@&$infodir&g
31149
 
  s&@localedir@&$localedir&g
31150
 
  s&@mandir@&$mandir&g
31151
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
31152
 
esac
31153
 
_ACEOF
31154
 
 
31155
 
# Neutralize VPATH when `$srcdir' = `.'.
31156
 
# Shell code in configure.ac might set extrasub.
31157
 
# FIXME: do we really want to maintain this feature?
31158
 
cat >>$CONFIG_STATUS <<_ACEOF
31159
 
  sed "$ac_vpsub
31160
 
$extrasub
31161
 
_ACEOF
31162
 
cat >>$CONFIG_STATUS <<\_ACEOF
31163
 
:t
31164
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31165
 
s&@configure_input@&$configure_input&;t t
31166
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
31167
 
s&@srcdir@&$ac_srcdir&;t t
31168
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
31169
 
s&@top_srcdir@&$ac_top_srcdir&;t t
31170
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31171
 
s&@builddir@&$ac_builddir&;t t
31172
 
s&@abs_builddir@&$ac_abs_builddir&;t t
31173
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31174
 
s&@INSTALL@&$ac_INSTALL&;t t
31175
 
$ac_datarootdir_hack
31176
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31177
 
 
31178
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31179
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31180
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31181
 
which seems to be undefined.  Please make sure it is defined." >&5
31182
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31183
 
which seems to be undefined.  Please make sure it is defined." >&2;}
31184
 
 
31185
 
  rm -f "$tmp/stdin"
31186
 
  case $ac_file in
31187
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
31188
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31189
 
  esac
31190
 
 ;;
31191
 
  :H)
31192
 
  #
31193
 
  # CONFIG_HEADER
31194
 
  #
31195
 
_ACEOF
31196
 
 
31197
 
# Transform confdefs.h into a sed script `conftest.defines', that
31198
 
# substitutes the proper values into config.h.in to produce config.h.
31199
 
rm -f conftest.defines conftest.tail
31200
 
# First, append a space to every undef/define line, to ease matching.
31201
 
echo 's/$/ /' >conftest.defines
31202
 
# Then, protect against being on the right side of a sed subst, or in
31203
 
# an unquoted here document, in config.status.  If some macros were
31204
 
# called several times there might be several #defines for the same
31205
 
# symbol, which is useless.  But do not sort them, since the last
31206
 
# AC_DEFINE must be honored.
31207
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31208
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31209
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
31210
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
31211
 
# just an empty string.
31212
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31213
 
ac_dB='\\)[      (].*,\\1define\\2'
31214
 
ac_dC=' '
31215
 
ac_dD=' ,'
31216
 
 
31217
 
uniq confdefs.h |
31218
 
  sed -n '
31219
 
        t rset
31220
 
        :rset
31221
 
        s/^[     ]*#[    ]*define[       ][      ]*//
31222
 
        t ok
31223
 
        d
31224
 
        :ok
31225
 
        s/[\\&,]/\\&/g
31226
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31227
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31228
 
  ' >>conftest.defines
31229
 
 
31230
 
# Remove the space that was appended to ease matching.
31231
 
# Then replace #undef with comments.  This is necessary, for
31232
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
31233
 
# on some systems where configure will not decide to define it.
31234
 
# (The regexp can be short, since the line contains either #define or #undef.)
31235
 
echo 's/ $//
31236
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
31237
 
 
31238
 
# Break up conftest.defines:
31239
 
ac_max_sed_lines=50
31240
 
 
31241
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31242
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31243
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31244
 
# et cetera.
31245
 
ac_in='$ac_file_inputs'
31246
 
ac_out='"$tmp/out1"'
31247
 
ac_nxt='"$tmp/out2"'
31248
 
 
31249
 
while :
31250
 
do
31251
 
  # Write a here document:
31252
 
    cat >>$CONFIG_STATUS <<_ACEOF
31253
 
    # First, check the format of the line:
31254
 
    cat >"\$tmp/defines.sed" <<\\CEOF
31255
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31256
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31257
 
b
31258
 
:def
31259
 
_ACEOF
31260
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31261
 
  echo 'CEOF
31262
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31263
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31264
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31265
 
  grep . conftest.tail >/dev/null || break
31266
 
  rm -f conftest.defines
31267
 
  mv conftest.tail conftest.defines
31268
 
done
31269
 
rm -f conftest.defines conftest.tail
31270
 
 
31271
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
31272
 
cat >>$CONFIG_STATUS <<\_ACEOF
31273
 
  if test x"$ac_file" != x-; then
31274
 
    echo "/* $configure_input  */" >"$tmp/config.h"
31275
 
    cat "$ac_result" >>"$tmp/config.h"
31276
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31277
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31278
 
echo "$as_me: $ac_file is unchanged" >&6;}
31279
 
    else
31280
 
      rm -f $ac_file
31281
 
      mv "$tmp/config.h" $ac_file
31282
 
    fi
31283
 
  else
31284
 
    echo "/* $configure_input  */"
31285
 
    cat "$ac_result"
31286
 
  fi
31287
 
  rm -f "$tmp/out12"
31288
 
# Compute $ac_file's index in $config_headers.
31289
 
_am_stamp_count=1
31290
 
for _am_header in $config_headers :; do
31291
 
  case $_am_header in
31292
 
    $ac_file | $ac_file:* )
31293
 
      break ;;
31294
 
    * )
31295
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31296
 
  esac
31297
 
done
31298
 
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31299
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31300
 
         X$ac_file : 'X\(//\)[^/]' \| \
31301
 
         X$ac_file : 'X\(//\)$' \| \
31302
 
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31303
 
echo X$ac_file |
31304
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31305
 
            s//\1/
31306
 
            q
31307
 
          }
31308
 
          /^X\(\/\/\)[^/].*/{
31309
 
            s//\1/
31310
 
            q
31311
 
          }
31312
 
          /^X\(\/\/\)$/{
31313
 
            s//\1/
31314
 
            q
31315
 
          }
31316
 
          /^X\(\/\).*/{
31317
 
            s//\1/
31318
 
            q
31319
 
          }
31320
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
31321
 
 ;;
31322
 
  
31323
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31324
 
echo "$as_me: executing $ac_file commands" >&6;}
31325
 
 ;;
31326
 
  esac
31327
 
 
31328
 
 
31329
 
  case $ac_file$ac_mode in
31330
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31331
 
  # Strip MF so we end up with the name of the file.
31332
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
31333
 
  # Check whether this is an Automake generated Makefile or not.
31334
 
  # We used to match only the files named `Makefile.in', but
31335
 
  # some people rename them; so instead we look at the file content.
31336
 
  # Grep'ing the first line is not enough: some people post-process
31337
 
  # each Makefile.in and add a new line on top of each file to say so.
31338
 
  # So let's grep whole file.
31339
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31340
 
    dirpart=`$as_dirname -- "$mf" ||
31341
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31342
 
         X"$mf" : 'X\(//\)[^/]' \| \
31343
 
         X"$mf" : 'X\(//\)$' \| \
31344
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31345
 
echo X"$mf" |
31346
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31347
 
            s//\1/
31348
 
            q
31349
 
          }
31350
 
          /^X\(\/\/\)[^/].*/{
31351
 
            s//\1/
31352
 
            q
31353
 
          }
31354
 
          /^X\(\/\/\)$/{
31355
 
            s//\1/
31356
 
            q
31357
 
          }
31358
 
          /^X\(\/\).*/{
31359
 
            s//\1/
31360
 
            q
31361
 
          }
31362
 
          s/.*/./; q'`
31363
 
  else
31364
 
    continue
31365
 
  fi
31366
 
  # Extract the definition of DEPDIR, am__include, and am__quote
31367
 
  # from the Makefile without running `make'.
31368
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31369
 
  test -z "$DEPDIR" && continue
31370
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
31371
 
  test -z "am__include" && continue
31372
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31373
 
  # When using ansi2knr, U may be empty or an underscore; expand it
31374
 
  U=`sed -n 's/^U = //p' < "$mf"`
31375
 
  # Find all dependency output files, they are included files with
31376
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
31377
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
31378
 
  # expansion.
31379
 
  for file in `sed -n "
31380
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31381
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31382
 
    # Make sure the directory exists.
31383
 
    test -f "$dirpart/$file" && continue
31384
 
    fdir=`$as_dirname -- "$file" ||
31385
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31386
 
         X"$file" : 'X\(//\)[^/]' \| \
31387
 
         X"$file" : 'X\(//\)$' \| \
31388
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31389
 
echo X"$file" |
31390
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31391
 
            s//\1/
31392
 
            q
31393
 
          }
31394
 
          /^X\(\/\/\)[^/].*/{
31395
 
            s//\1/
31396
 
            q
31397
 
          }
31398
 
          /^X\(\/\/\)$/{
31399
 
            s//\1/
31400
 
            q
31401
 
          }
31402
 
          /^X\(\/\).*/{
31403
 
            s//\1/
31404
 
            q
31405
 
          }
31406
 
          s/.*/./; q'`
31407
 
    { as_dir=$dirpart/$fdir
31408
 
  case $as_dir in #(
31409
 
  -*) as_dir=./$as_dir;;
31410
 
  esac
31411
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31412
 
    as_dirs=
31413
 
    while :; do
31414
 
      case $as_dir in #(
31415
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31416
 
      *) as_qdir=$as_dir;;
31417
 
      esac
31418
 
      as_dirs="'$as_qdir' $as_dirs"
31419
 
      as_dir=`$as_dirname -- "$as_dir" ||
31420
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31421
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
31422
 
         X"$as_dir" : 'X\(//\)$' \| \
31423
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31424
 
echo X"$as_dir" |
31425
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31426
 
            s//\1/
31427
 
            q
31428
 
          }
31429
 
          /^X\(\/\/\)[^/].*/{
31430
 
            s//\1/
31431
 
            q
31432
 
          }
31433
 
          /^X\(\/\/\)$/{
31434
 
            s//\1/
31435
 
            q
31436
 
          }
31437
 
          /^X\(\/\).*/{
31438
 
            s//\1/
31439
 
            q
31440
 
          }
31441
 
          s/.*/./; q'`
31442
 
      test -d "$as_dir" && break
31443
 
    done
31444
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
31445
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31446
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
31447
 
   { (exit 1); exit 1; }; }; }
31448
 
    # echo "creating $dirpart/$file"
31449
 
    echo '# dummy' > "$dirpart/$file"
31450
 
  done
31451
 
done
31452
 
 ;;
31453
 
 
31454
 
  esac
31455
 
done # for ac_tag
31456
 
 
31457
 
 
31458
 
{ (exit 0); exit 0; }
31459
 
_ACEOF
31460
 
chmod +x $CONFIG_STATUS
31461
 
ac_clean_files=$ac_clean_files_save
31462
 
 
31463
 
 
31464
 
# configure is writing to config.log, and then calls config.status.
31465
 
# config.status does its own redirection, appending to config.log.
31466
 
# Unfortunately, on DOS this fails, as config.log is still kept open
31467
 
# by configure, so config.status won't be able to write to it; its
31468
 
# output is simply discarded.  So we exec the FD to /dev/null,
31469
 
# effectively closing config.log, so it can be properly (re)opened and
31470
 
# appended to by config.status.  When coming back to configure, we
31471
 
# need to make the FD available again.
31472
 
if test "$no_create" != yes; then
31473
 
  ac_cs_success=:
31474
 
  ac_config_status_args=
31475
 
  test "$silent" = yes &&
31476
 
    ac_config_status_args="$ac_config_status_args --quiet"
31477
 
  exec 5>/dev/null
31478
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31479
 
  exec 5>>config.log
31480
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31481
 
  # would make configure fail if this is the last instruction.
31482
 
  $ac_cs_success || { (exit 1); exit 1; }
31483
 
fi
31484
 
 
31485