~ubuntu-branches/ubuntu/oneiric/libdap/oneiric

« back to all changes in this revision

Viewing changes to .pc/debian-changes-3.9.3-6/configure

  • Committer: Bazaar Package Importer
  • Author(s): Alastair McKinstry
  • Date: 2010-04-07 20:44:03 UTC
  • Revision ID: james.westby@ubuntu.com-20100407204403-wqob3bsbhy13926u
Tags: 3.9.3-6
* Acknowledge NMU with Thanks. Closes: #575894.
* Supply dap-config in -dev package. Closes: #576809.
* Standards-Version now 3.8.4. No changes required. 
* Moved to source format 3.0, removed quilt dependency.

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.61 for libdap 3.9.3.
 
4
#
 
5
# Report bugs to <opendap-tech@opendap.org>.
 
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 more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
 
 
555
# Check that we are running under the correct shell.
 
556
SHELL=${CONFIG_SHELL-/bin/sh}
 
557
 
 
558
case X$ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
echo=${ECHO-echo}
 
566
if test "X$1" = X--no-reexec; then
 
567
  # Discard the --no-reexec flag, and continue.
 
568
  shift
 
569
elif test "X$1" = X--fallback-echo; then
 
570
  # Avoid inline document here, it may be left over
 
571
  :
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
 
574
  :
 
575
else
 
576
  # Restart under the correct shell.
 
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
578
fi
 
579
 
 
580
if test "X$1" = X--fallback-echo; then
 
581
  # used as fallback echo
 
582
  shift
 
583
  cat <<EOF
 
584
$*
 
585
EOF
 
586
  exit 0
 
587
fi
 
588
 
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
590
# if CDPATH is set.
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
592
 
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
 
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
 
630
 
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
668
      else
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
 
676
          fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
fi
 
693
 
 
694
# Copy echo and quote the copy suitably for passing to libtool from
 
695
# the Makefile, instead of quoting the original, which is used later.
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
699
fi
 
700
 
 
701
 
 
702
 
 
703
 
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
 
710
# Name of the host.
 
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
712
# so uname gets run too.
 
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
714
 
 
715
#
 
716
# Initializations.
 
717
#
 
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
 
720
ac_config_libobj_dir=.
 
721
LIBOBJS=
 
722
cross_compiling=no
 
723
subdirs=
 
724
MFLAGS=
 
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
 
727
 
 
728
# Identity of this package.
 
729
PACKAGE_NAME='libdap'
 
730
PACKAGE_TARNAME='libdap'
 
731
PACKAGE_VERSION='3.9.3'
 
732
PACKAGE_STRING='libdap 3.9.3'
 
733
PACKAGE_BUGREPORT='opendap-tech@opendap.org'
 
734
 
 
735
ac_unique_file="AISConnect.cc"
 
736
# Factoring default headers for most tests.
 
737
ac_includes_default="\
 
738
#include <stdio.h>
 
739
#ifdef HAVE_SYS_TYPES_H
 
740
# include <sys/types.h>
 
741
#endif
 
742
#ifdef HAVE_SYS_STAT_H
 
743
# include <sys/stat.h>
 
744
#endif
 
745
#ifdef STDC_HEADERS
 
746
# include <stdlib.h>
 
747
# include <stddef.h>
 
748
#else
 
749
# ifdef HAVE_STDLIB_H
 
750
#  include <stdlib.h>
 
751
# endif
 
752
#endif
 
753
#ifdef HAVE_STRING_H
 
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
755
#  include <memory.h>
 
756
# endif
 
757
# include <string.h>
 
758
#endif
 
759
#ifdef HAVE_STRINGS_H
 
760
# include <strings.h>
 
761
#endif
 
762
#ifdef HAVE_INTTYPES_H
 
763
# include <inttypes.h>
 
764
#endif
 
765
#ifdef HAVE_STDINT_H
 
766
# include <stdint.h>
 
767
#endif
 
768
#ifdef HAVE_UNISTD_H
 
769
# include <unistd.h>
 
770
#endif"
 
771
 
 
772
ac_header_list=
 
773
ac_func_list=
 
774
ac_subst_vars='SHELL
 
775
PATH_SEPARATOR
 
776
PACKAGE_NAME
 
777
PACKAGE_TARNAME
 
778
PACKAGE_VERSION
 
779
PACKAGE_STRING
 
780
PACKAGE_BUGREPORT
 
781
exec_prefix
 
782
prefix
 
783
program_transform_name
 
784
bindir
 
785
sbindir
 
786
libexecdir
 
787
datarootdir
 
788
datadir
 
789
sysconfdir
 
790
sharedstatedir
 
791
localstatedir
 
792
includedir
 
793
oldincludedir
 
794
docdir
 
795
infodir
 
796
htmldir
 
797
dvidir
 
798
pdfdir
 
799
psdir
 
800
libdir
 
801
localedir
 
802
mandir
 
803
DEFS
 
804
ECHO_C
 
805
ECHO_N
 
806
ECHO_T
 
807
LIBS
 
808
build_alias
 
809
host_alias
 
810
target_alias
 
811
DAP_PROTOCOL_VERSION
 
812
INSTALL_PROGRAM
 
813
INSTALL_SCRIPT
 
814
INSTALL_DATA
 
815
am__isrc
 
816
CYGPATH_W
 
817
PACKAGE
 
818
VERSION
 
819
ACLOCAL
 
820
AUTOCONF
 
821
AUTOMAKE
 
822
AUTOHEADER
 
823
MAKEINFO
 
824
install_sh
 
825
STRIP
 
826
INSTALL_STRIP_PROGRAM
 
827
mkdir_p
 
828
AWK
 
829
SET_MAKE
 
830
am__leading_dot
 
831
AMTAR
 
832
am__tar
 
833
am__untar
 
834
DVR
 
835
EVAL
 
836
COMPRESSION_FOR_SERVER3
 
837
build
 
838
build_cpu
 
839
build_vendor
 
840
build_os
 
841
host
 
842
host_cpu
 
843
host_vendor
 
844
host_os
 
845
DAPLIB_CURRENT
 
846
DAPLIB_AGE
 
847
DAPLIB_REVISION
 
848
LIBDAP_VERSION
 
849
CLIENTLIB_CURRENT
 
850
CLIENTLIB_AGE
 
851
CLIENTLIB_REVISION
 
852
CLIENTLIB_VERSION
 
853
SERVERLIB_CURRENT
 
854
SERVERLIB_AGE
 
855
SERVERLIB_REVISION
 
856
SERVERLIB_VERSION
 
857
CXX
 
858
CXXFLAGS
 
859
LDFLAGS
 
860
CPPFLAGS
 
861
ac_ct_CXX
 
862
EXEEXT
 
863
OBJEXT
 
864
DEPDIR
 
865
am__include
 
866
am__quote
 
867
AMDEP_TRUE
 
868
AMDEP_FALSE
 
869
AMDEPBACKSLASH
 
870
CXXDEPMODE
 
871
am__fastdepCXX_TRUE
 
872
am__fastdepCXX_FALSE
 
873
CC
 
874
CFLAGS
 
875
ac_ct_CC
 
876
CCDEPMODE
 
877
am__fastdepCC_TRUE
 
878
am__fastdepCC_FALSE
 
879
RANLIB
 
880
CPP
 
881
GREP
 
882
EGREP
 
883
LEX
 
884
LEX_OUTPUT_ROOT
 
885
LEXLIB
 
886
LN_S
 
887
SED
 
888
ECHO
 
889
AR
 
890
CXXCPP
 
891
F77
 
892
FFLAGS
 
893
ac_ct_F77
 
894
LIBTOOL
 
895
YACC
 
896
USE_C99_TYPES_TRUE
 
897
USE_C99_TYPES_FALSE
 
898
COMPILER_IS_GCC_TRUE
 
899
COMPILER_IS_GCC_FALSE
 
900
GL_COND_LIBTOOL_TRUE
 
901
GL_COND_LIBTOOL_FALSE
 
902
LTALLOCA
 
903
ALLOCA
 
904
ALLOCA_H
 
905
LIBINTL
 
906
LTLIBINTL
 
907
GLIBC21
 
908
HAVE_MALLOC_POSIX
 
909
GNULIB_MALLOC_POSIX
 
910
GNULIB_REALLOC_POSIX
 
911
GNULIB_CALLOC_POSIX
 
912
GNULIB_GETSUBOPT
 
913
GNULIB_MKDTEMP
 
914
GNULIB_MKSTEMP
 
915
HAVE_CALLOC_POSIX
 
916
HAVE_GETSUBOPT
 
917
HAVE_MKDTEMP
 
918
HAVE_REALLOC_POSIX
 
919
REPLACE_MKSTEMP
 
920
STDBOOL_H
 
921
HAVE__BOOL
 
922
HAVE_LONG_LONG_INT
 
923
HAVE_UNSIGNED_LONG_LONG_INT
 
924
HAVE_INTTYPES_H
 
925
HAVE_SYS_TYPES_H
 
926
INCLUDE_NEXT
 
927
NEXT_STDINT_H
 
928
HAVE_STDINT_H
 
929
HAVE_SYS_INTTYPES_H
 
930
HAVE_SYS_BITYPES_H
 
931
BITSIZEOF_PTRDIFF_T
 
932
BITSIZEOF_SIG_ATOMIC_T
 
933
BITSIZEOF_SIZE_T
 
934
BITSIZEOF_WCHAR_T
 
935
BITSIZEOF_WINT_T
 
936
HAVE_SIGNED_SIG_ATOMIC_T
 
937
HAVE_SIGNED_WCHAR_T
 
938
HAVE_SIGNED_WINT_T
 
939
PTRDIFF_T_SUFFIX
 
940
SIG_ATOMIC_T_SUFFIX
 
941
SIZE_T_SUFFIX
 
942
WCHAR_T_SUFFIX
 
943
WINT_T_SUFFIX
 
944
STDINT_H
 
945
NEXT_STDLIB_H
 
946
GNULIB_CHOWN
 
947
GNULIB_DUP2
 
948
GNULIB_FCHDIR
 
949
GNULIB_FTRUNCATE
 
950
GNULIB_GETCWD
 
951
GNULIB_GETLOGIN_R
 
952
GNULIB_LCHOWN
 
953
GNULIB_LSEEK
 
954
GNULIB_READLINK
 
955
GNULIB_SLEEP
 
956
HAVE_DUP2
 
957
HAVE_FTRUNCATE
 
958
HAVE_READLINK
 
959
HAVE_SLEEP
 
960
HAVE_DECL_GETLOGIN_R
 
961
REPLACE_CHOWN
 
962
REPLACE_FCHDIR
 
963
REPLACE_GETCWD
 
964
REPLACE_LCHOWN
 
965
REPLACE_LSEEK
 
966
NEXT_UNISTD_H
 
967
HAVE_UNISTD_H
 
968
GNULIB_WCWIDTH
 
969
HAVE_DECL_WCWIDTH
 
970
REPLACE_WCWIDTH
 
971
WCHAR_H
 
972
HAVE_WCHAR_H
 
973
NEXT_WCHAR_H
 
974
HAVE_ISWCNTRL
 
975
HAVE_WINT_T
 
976
NEXT_WCTYPE_H
 
977
HAVE_WCTYPE_H
 
978
WCTYPE_H
 
979
PKG_CONFIG
 
980
CURL_CFLAGS
 
981
CURL_LIBS
 
982
curlprivatereq
 
983
curlprivatelibs
 
984
CURL_STATIC_LIBS
 
985
XML2_CFLAGS
 
986
XML2_LIBS
 
987
xmlprivatereq
 
988
xmlprivatelibs
 
989
XML2_STATIC_LIBS
 
990
ZLIB_LIBS
 
991
ZLIB_LDFLAGS
 
992
ZLIB_CFLAGS
 
993
PTHREAD_LIBS
 
994
CPPUNIT_CONFIG
 
995
CPPUNIT_TRUE
 
996
CPPUNIT_FALSE
 
997
CPPUNIT_CFLAGS
 
998
CPPUNIT_LIBS
 
999
LIBOBJS
 
1000
LTLIBOBJS
 
1001
gl_LIBOBJS
 
1002
gl_LTLIBOBJS'
 
1003
ac_subst_files=''
 
1004
      ac_precious_vars='build_alias
 
1005
host_alias
 
1006
target_alias
 
1007
CXX
 
1008
CXXFLAGS
 
1009
LDFLAGS
 
1010
LIBS
 
1011
CPPFLAGS
 
1012
CCC
 
1013
CC
 
1014
CFLAGS
 
1015
CPP
 
1016
CXXCPP
 
1017
F77
 
1018
FFLAGS
 
1019
PKG_CONFIG
 
1020
CURL_CFLAGS
 
1021
CURL_LIBS
 
1022
XML2_CFLAGS
 
1023
XML2_LIBS'
 
1024
 
 
1025
 
 
1026
# Initialize some variables set by options.
 
1027
ac_init_help=
 
1028
ac_init_version=false
 
1029
# The variables have the same names as the options, with
 
1030
# dashes changed to underlines.
 
1031
cache_file=/dev/null
 
1032
exec_prefix=NONE
 
1033
no_create=
 
1034
no_recursion=
 
1035
prefix=NONE
 
1036
program_prefix=NONE
 
1037
program_suffix=NONE
 
1038
program_transform_name=s,x,x,
 
1039
silent=
 
1040
site=
 
1041
srcdir=
 
1042
verbose=
 
1043
x_includes=NONE
 
1044
x_libraries=NONE
 
1045
 
 
1046
# Installation directory options.
 
1047
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1048
# and all the variables that are supposed to be based on exec_prefix
 
1049
# by default will actually change.
 
1050
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1051
# (The list follows the same order as the GNU Coding Standards.)
 
1052
bindir='${exec_prefix}/bin'
 
1053
sbindir='${exec_prefix}/sbin'
 
1054
libexecdir='${exec_prefix}/libexec'
 
1055
datarootdir='${prefix}/share'
 
1056
datadir='${datarootdir}'
 
1057
sysconfdir='${prefix}/etc'
 
1058
sharedstatedir='${prefix}/com'
 
1059
localstatedir='${prefix}/var'
 
1060
includedir='${prefix}/include'
 
1061
oldincludedir='/usr/include'
 
1062
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1063
infodir='${datarootdir}/info'
 
1064
htmldir='${docdir}'
 
1065
dvidir='${docdir}'
 
1066
pdfdir='${docdir}'
 
1067
psdir='${docdir}'
 
1068
libdir='${exec_prefix}/lib'
 
1069
localedir='${datarootdir}/locale'
 
1070
mandir='${datarootdir}/man'
 
1071
 
 
1072
ac_prev=
 
1073
ac_dashdash=
 
1074
for ac_option
 
1075
do
 
1076
  # If the previous option needs an argument, assign it.
 
1077
  if test -n "$ac_prev"; then
 
1078
    eval $ac_prev=\$ac_option
 
1079
    ac_prev=
 
1080
    continue
 
1081
  fi
 
1082
 
 
1083
  case $ac_option in
 
1084
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1085
  *)    ac_optarg=yes ;;
 
1086
  esac
 
1087
 
 
1088
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1089
 
 
1090
  case $ac_dashdash$ac_option in
 
1091
  --)
 
1092
    ac_dashdash=yes ;;
 
1093
 
 
1094
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1095
    ac_prev=bindir ;;
 
1096
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1097
    bindir=$ac_optarg ;;
 
1098
 
 
1099
  -build | --build | --buil | --bui | --bu)
 
1100
    ac_prev=build_alias ;;
 
1101
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1102
    build_alias=$ac_optarg ;;
 
1103
 
 
1104
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1105
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1106
    ac_prev=cache_file ;;
 
1107
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1108
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1109
    cache_file=$ac_optarg ;;
 
1110
 
 
1111
  --config-cache | -C)
 
1112
    cache_file=config.cache ;;
 
1113
 
 
1114
  -datadir | --datadir | --datadi | --datad)
 
1115
    ac_prev=datadir ;;
 
1116
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1117
    datadir=$ac_optarg ;;
 
1118
 
 
1119
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1120
  | --dataroo | --dataro | --datar)
 
1121
    ac_prev=datarootdir ;;
 
1122
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1123
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1124
    datarootdir=$ac_optarg ;;
 
1125
 
 
1126
  -disable-* | --disable-*)
 
1127
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1128
    # Reject names that are not valid shell variable names.
 
1129
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1130
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1131
   { (exit 1); exit 1; }; }
 
1132
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1133
    eval enable_$ac_feature=no ;;
 
1134
 
 
1135
  -docdir | --docdir | --docdi | --doc | --do)
 
1136
    ac_prev=docdir ;;
 
1137
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1138
    docdir=$ac_optarg ;;
 
1139
 
 
1140
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1141
    ac_prev=dvidir ;;
 
1142
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1143
    dvidir=$ac_optarg ;;
 
1144
 
 
1145
  -enable-* | --enable-*)
 
1146
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1147
    # Reject names that are not valid shell variable names.
 
1148
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1149
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1150
   { (exit 1); exit 1; }; }
 
1151
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1152
    eval enable_$ac_feature=\$ac_optarg ;;
 
1153
 
 
1154
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1155
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1156
  | --exec | --exe | --ex)
 
1157
    ac_prev=exec_prefix ;;
 
1158
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1159
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1160
  | --exec=* | --exe=* | --ex=*)
 
1161
    exec_prefix=$ac_optarg ;;
 
1162
 
 
1163
  -gas | --gas | --ga | --g)
 
1164
    # Obsolete; use --with-gas.
 
1165
    with_gas=yes ;;
 
1166
 
 
1167
  -help | --help | --hel | --he | -h)
 
1168
    ac_init_help=long ;;
 
1169
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1170
    ac_init_help=recursive ;;
 
1171
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1172
    ac_init_help=short ;;
 
1173
 
 
1174
  -host | --host | --hos | --ho)
 
1175
    ac_prev=host_alias ;;
 
1176
  -host=* | --host=* | --hos=* | --ho=*)
 
1177
    host_alias=$ac_optarg ;;
 
1178
 
 
1179
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1180
    ac_prev=htmldir ;;
 
1181
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1182
  | --ht=*)
 
1183
    htmldir=$ac_optarg ;;
 
1184
 
 
1185
  -includedir | --includedir | --includedi | --included | --include \
 
1186
  | --includ | --inclu | --incl | --inc)
 
1187
    ac_prev=includedir ;;
 
1188
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1189
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1190
    includedir=$ac_optarg ;;
 
1191
 
 
1192
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1193
    ac_prev=infodir ;;
 
1194
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1195
    infodir=$ac_optarg ;;
 
1196
 
 
1197
  -libdir | --libdir | --libdi | --libd)
 
1198
    ac_prev=libdir ;;
 
1199
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1200
    libdir=$ac_optarg ;;
 
1201
 
 
1202
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1203
  | --libexe | --libex | --libe)
 
1204
    ac_prev=libexecdir ;;
 
1205
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1206
  | --libexe=* | --libex=* | --libe=*)
 
1207
    libexecdir=$ac_optarg ;;
 
1208
 
 
1209
  -localedir | --localedir | --localedi | --localed | --locale)
 
1210
    ac_prev=localedir ;;
 
1211
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1212
    localedir=$ac_optarg ;;
 
1213
 
 
1214
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1215
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1216
    ac_prev=localstatedir ;;
 
1217
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1218
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1219
    localstatedir=$ac_optarg ;;
 
1220
 
 
1221
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1222
    ac_prev=mandir ;;
 
1223
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1224
    mandir=$ac_optarg ;;
 
1225
 
 
1226
  -nfp | --nfp | --nf)
 
1227
    # Obsolete; use --without-fp.
 
1228
    with_fp=no ;;
 
1229
 
 
1230
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1231
  | --no-cr | --no-c | -n)
 
1232
    no_create=yes ;;
 
1233
 
 
1234
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1235
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1236
    no_recursion=yes ;;
 
1237
 
 
1238
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1239
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1240
  | --oldin | --oldi | --old | --ol | --o)
 
1241
    ac_prev=oldincludedir ;;
 
1242
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1243
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1244
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1245
    oldincludedir=$ac_optarg ;;
 
1246
 
 
1247
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1248
    ac_prev=prefix ;;
 
1249
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1250
    prefix=$ac_optarg ;;
 
1251
 
 
1252
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1253
  | --program-pre | --program-pr | --program-p)
 
1254
    ac_prev=program_prefix ;;
 
1255
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1256
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1257
    program_prefix=$ac_optarg ;;
 
1258
 
 
1259
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1260
  | --program-suf | --program-su | --program-s)
 
1261
    ac_prev=program_suffix ;;
 
1262
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1263
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1264
    program_suffix=$ac_optarg ;;
 
1265
 
 
1266
  -program-transform-name | --program-transform-name \
 
1267
  | --program-transform-nam | --program-transform-na \
 
1268
  | --program-transform-n | --program-transform- \
 
1269
  | --program-transform | --program-transfor \
 
1270
  | --program-transfo | --program-transf \
 
1271
  | --program-trans | --program-tran \
 
1272
  | --progr-tra | --program-tr | --program-t)
 
1273
    ac_prev=program_transform_name ;;
 
1274
  -program-transform-name=* | --program-transform-name=* \
 
1275
  | --program-transform-nam=* | --program-transform-na=* \
 
1276
  | --program-transform-n=* | --program-transform-=* \
 
1277
  | --program-transform=* | --program-transfor=* \
 
1278
  | --program-transfo=* | --program-transf=* \
 
1279
  | --program-trans=* | --program-tran=* \
 
1280
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1281
    program_transform_name=$ac_optarg ;;
 
1282
 
 
1283
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1284
    ac_prev=pdfdir ;;
 
1285
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1286
    pdfdir=$ac_optarg ;;
 
1287
 
 
1288
  -psdir | --psdir | --psdi | --psd | --ps)
 
1289
    ac_prev=psdir ;;
 
1290
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1291
    psdir=$ac_optarg ;;
 
1292
 
 
1293
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1294
  | -silent | --silent | --silen | --sile | --sil)
 
1295
    silent=yes ;;
 
1296
 
 
1297
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1298
    ac_prev=sbindir ;;
 
1299
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1300
  | --sbi=* | --sb=*)
 
1301
    sbindir=$ac_optarg ;;
 
1302
 
 
1303
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1304
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1305
  | --sharedst | --shareds | --shared | --share | --shar \
 
1306
  | --sha | --sh)
 
1307
    ac_prev=sharedstatedir ;;
 
1308
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1309
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1310
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1311
  | --sha=* | --sh=*)
 
1312
    sharedstatedir=$ac_optarg ;;
 
1313
 
 
1314
  -site | --site | --sit)
 
1315
    ac_prev=site ;;
 
1316
  -site=* | --site=* | --sit=*)
 
1317
    site=$ac_optarg ;;
 
1318
 
 
1319
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1320
    ac_prev=srcdir ;;
 
1321
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1322
    srcdir=$ac_optarg ;;
 
1323
 
 
1324
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1325
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1326
    ac_prev=sysconfdir ;;
 
1327
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1328
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1329
    sysconfdir=$ac_optarg ;;
 
1330
 
 
1331
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1332
    ac_prev=target_alias ;;
 
1333
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1334
    target_alias=$ac_optarg ;;
 
1335
 
 
1336
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1337
    verbose=yes ;;
 
1338
 
 
1339
  -version | --version | --versio | --versi | --vers | -V)
 
1340
    ac_init_version=: ;;
 
1341
 
 
1342
  -with-* | --with-*)
 
1343
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1344
    # Reject names that are not valid shell variable names.
 
1345
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1346
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1347
   { (exit 1); exit 1; }; }
 
1348
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1349
    eval with_$ac_package=\$ac_optarg ;;
 
1350
 
 
1351
  -without-* | --without-*)
 
1352
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1353
    # Reject names that are not valid shell variable names.
 
1354
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1355
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1356
   { (exit 1); exit 1; }; }
 
1357
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1358
    eval with_$ac_package=no ;;
 
1359
 
 
1360
  --x)
 
1361
    # Obsolete; use --with-x.
 
1362
    with_x=yes ;;
 
1363
 
 
1364
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1365
  | --x-incl | --x-inc | --x-in | --x-i)
 
1366
    ac_prev=x_includes ;;
 
1367
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1368
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1369
    x_includes=$ac_optarg ;;
 
1370
 
 
1371
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1372
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1373
    ac_prev=x_libraries ;;
 
1374
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1375
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1376
    x_libraries=$ac_optarg ;;
 
1377
 
 
1378
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1379
Try \`$0 --help' for more information." >&2
 
1380
   { (exit 1); exit 1; }; }
 
1381
    ;;
 
1382
 
 
1383
  *=*)
 
1384
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1385
    # Reject names that are not valid shell variable names.
 
1386
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1387
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1388
   { (exit 1); exit 1; }; }
 
1389
    eval $ac_envvar=\$ac_optarg
 
1390
    export $ac_envvar ;;
 
1391
 
 
1392
  *)
 
1393
    # FIXME: should be removed in autoconf 3.0.
 
1394
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1395
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1396
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1397
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1398
    ;;
 
1399
 
 
1400
  esac
 
1401
done
 
1402
 
 
1403
if test -n "$ac_prev"; then
 
1404
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1405
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1406
   { (exit 1); exit 1; }; }
 
1407
fi
 
1408
 
 
1409
# Be sure to have absolute directory names.
 
1410
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1411
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1412
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1413
                libdir localedir mandir
 
1414
do
 
1415
  eval ac_val=\$$ac_var
 
1416
  case $ac_val in
 
1417
    [\\/$]* | ?:[\\/]* )  continue;;
 
1418
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1419
  esac
 
1420
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1421
   { (exit 1); exit 1; }; }
 
1422
done
 
1423
 
 
1424
# There might be people who depend on the old broken behavior: `$host'
 
1425
# used to hold the argument of --host etc.
 
1426
# FIXME: To remove some day.
 
1427
build=$build_alias
 
1428
host=$host_alias
 
1429
target=$target_alias
 
1430
 
 
1431
# FIXME: To remove some day.
 
1432
if test "x$host_alias" != x; then
 
1433
  if test "x$build_alias" = x; then
 
1434
    cross_compiling=maybe
 
1435
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1436
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1437
  elif test "x$build_alias" != "x$host_alias"; then
 
1438
    cross_compiling=yes
 
1439
  fi
 
1440
fi
 
1441
 
 
1442
ac_tool_prefix=
 
1443
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1444
 
 
1445
test "$silent" = yes && exec 6>/dev/null
 
1446
 
 
1447
 
 
1448
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1449
ac_ls_di=`ls -di .` &&
 
1450
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1451
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1452
   { (exit 1); exit 1; }; }
 
1453
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1454
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1455
   { (exit 1); exit 1; }; }
 
1456
 
 
1457
 
 
1458
# Find the source files, if location was not specified.
 
1459
if test -z "$srcdir"; then
 
1460
  ac_srcdir_defaulted=yes
 
1461
  # Try the directory containing this script, then the parent directory.
 
1462
  ac_confdir=`$as_dirname -- "$0" ||
 
1463
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1464
         X"$0" : 'X\(//\)[^/]' \| \
 
1465
         X"$0" : 'X\(//\)$' \| \
 
1466
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1467
echo X"$0" |
 
1468
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1469
            s//\1/
 
1470
            q
 
1471
          }
 
1472
          /^X\(\/\/\)[^/].*/{
 
1473
            s//\1/
 
1474
            q
 
1475
          }
 
1476
          /^X\(\/\/\)$/{
 
1477
            s//\1/
 
1478
            q
 
1479
          }
 
1480
          /^X\(\/\).*/{
 
1481
            s//\1/
 
1482
            q
 
1483
          }
 
1484
          s/.*/./; q'`
 
1485
  srcdir=$ac_confdir
 
1486
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1487
    srcdir=..
 
1488
  fi
 
1489
else
 
1490
  ac_srcdir_defaulted=no
 
1491
fi
 
1492
if test ! -r "$srcdir/$ac_unique_file"; then
 
1493
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1494
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1495
   { (exit 1); exit 1; }; }
 
1496
fi
 
1497
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1498
ac_abs_confdir=`(
 
1499
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1500
   { (exit 1); exit 1; }; }
 
1501
        pwd)`
 
1502
# When building in place, set srcdir=.
 
1503
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1504
  srcdir=.
 
1505
fi
 
1506
# Remove unnecessary trailing slashes from srcdir.
 
1507
# Double slashes in file names in object file debugging info
 
1508
# mess up M-x gdb in Emacs.
 
1509
case $srcdir in
 
1510
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1511
esac
 
1512
for ac_var in $ac_precious_vars; do
 
1513
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1514
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1515
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1516
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1517
done
 
1518
 
 
1519
#
 
1520
# Report the --help message.
 
1521
#
 
1522
if test "$ac_init_help" = "long"; then
 
1523
  # Omit some internal or obsolete options to make the list less imposing.
 
1524
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1525
  cat <<_ACEOF
 
1526
\`configure' configures libdap 3.9.3 to adapt to many kinds of systems.
 
1527
 
 
1528
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1529
 
 
1530
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1531
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1532
 
 
1533
Defaults for the options are specified in brackets.
 
1534
 
 
1535
Configuration:
 
1536
  -h, --help              display this help and exit
 
1537
      --help=short        display options specific to this package
 
1538
      --help=recursive    display the short help of all the included packages
 
1539
  -V, --version           display version information and exit
 
1540
  -q, --quiet, --silent   do not print \`checking...' messages
 
1541
      --cache-file=FILE   cache test results in FILE [disabled]
 
1542
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1543
  -n, --no-create         do not create output files
 
1544
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1545
 
 
1546
Installation directories:
 
1547
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1548
                          [$ac_default_prefix]
 
1549
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1550
                          [PREFIX]
 
1551
 
 
1552
By default, \`make install' will install all the files in
 
1553
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1554
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1555
for instance \`--prefix=\$HOME'.
 
1556
 
 
1557
For better control, use the options below.
 
1558
 
 
1559
Fine tuning of the installation directories:
 
1560
  --bindir=DIR           user executables [EPREFIX/bin]
 
1561
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1562
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1563
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1564
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1565
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1566
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1567
  --includedir=DIR       C header files [PREFIX/include]
 
1568
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1569
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1570
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1571
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1572
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1573
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1574
  --docdir=DIR           documentation root [DATAROOTDIR/doc/libdap]
 
1575
  --htmldir=DIR          html documentation [DOCDIR]
 
1576
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1577
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1578
  --psdir=DIR            ps documentation [DOCDIR]
 
1579
_ACEOF
 
1580
 
 
1581
  cat <<\_ACEOF
 
1582
 
 
1583
Program names:
 
1584
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1585
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1586
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1587
 
 
1588
System types:
 
1589
  --build=BUILD     configure for building on BUILD [guessed]
 
1590
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1591
_ACEOF
 
1592
fi
 
1593
 
 
1594
if test -n "$ac_init_help"; then
 
1595
  case $ac_init_help in
 
1596
     short | recursive ) echo "Configuration of libdap 3.9.3:";;
 
1597
   esac
 
1598
  cat <<\_ACEOF
 
1599
 
 
1600
Optional Features:
 
1601
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1602
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1603
  --disable-dependency-tracking  speeds up one-time build
 
1604
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1605
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1606
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1607
  --enable-fast-install[=PKGS]
 
1608
                          optimize for fast installation [default=yes]
 
1609
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1610
  --enable-debug=ARG      Program instrumentation (1,2)
 
1611
 
 
1612
Optional Packages:
 
1613
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1614
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1615
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1616
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1617
                          both]
 
1618
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1619
  --without-included-regex
 
1620
                          don't compile regex; this is the default on 32-bit
 
1621
                          systems with recent-enough versions of the GNU C
 
1622
                          Library (use with caution on other systems). On
 
1623
                          systems with 64-bit ptrdiff_t and 32-bit int,
 
1624
                          --with-included-regex is the default, in case regex
 
1625
                          functions operate on very long strings (>2GB)
 
1626
  --with-zlib=DIR root directory path of zlib installation defaults to
 
1627
                    /usr/local or /usr if not found in /usr/local
 
1628
  --without-zlib to disable zlib usage completely
 
1629
  --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
 
1630
  --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
 
1631
 
 
1632
Some influential environment variables:
 
1633
  CXX         C++ compiler command
 
1634
  CXXFLAGS    C++ compiler flags
 
1635
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1636
              nonstandard directory <lib dir>
 
1637
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1638
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1639
              you have headers in a nonstandard directory <include dir>
 
1640
  CC          C compiler command
 
1641
  CFLAGS      C compiler flags
 
1642
  CPP         C preprocessor
 
1643
  CXXCPP      C++ preprocessor
 
1644
  F77         Fortran 77 compiler command
 
1645
  FFLAGS      Fortran 77 compiler flags
 
1646
  PKG_CONFIG  path to pkg-config utility
 
1647
  CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
 
1648
  CURL_LIBS   linker flags for CURL, overriding pkg-config
 
1649
  XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
 
1650
  XML2_LIBS   linker flags for XML2, overriding pkg-config
 
1651
 
 
1652
Use these variables to override the choices made by `configure' or to help
 
1653
it to find libraries and programs with nonstandard names/locations.
 
1654
 
 
1655
Report bugs to <opendap-tech@opendap.org>.
 
1656
_ACEOF
 
1657
ac_status=$?
 
1658
fi
 
1659
 
 
1660
if test "$ac_init_help" = "recursive"; then
 
1661
  # If there are subdirs, report their specific --help.
 
1662
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1663
    test -d "$ac_dir" || continue
 
1664
    ac_builddir=.
 
1665
 
 
1666
case "$ac_dir" in
 
1667
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1668
*)
 
1669
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1670
  # A ".." for each directory in $ac_dir_suffix.
 
1671
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1672
  case $ac_top_builddir_sub in
 
1673
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1674
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1675
  esac ;;
 
1676
esac
 
1677
ac_abs_top_builddir=$ac_pwd
 
1678
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1679
# for backward compatibility:
 
1680
ac_top_builddir=$ac_top_build_prefix
 
1681
 
 
1682
case $srcdir in
 
1683
  .)  # We are building in place.
 
1684
    ac_srcdir=.
 
1685
    ac_top_srcdir=$ac_top_builddir_sub
 
1686
    ac_abs_top_srcdir=$ac_pwd ;;
 
1687
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1688
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1689
    ac_top_srcdir=$srcdir
 
1690
    ac_abs_top_srcdir=$srcdir ;;
 
1691
  *) # Relative name.
 
1692
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1693
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1694
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1695
esac
 
1696
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1697
 
 
1698
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1699
    # Check for guested configure.
 
1700
    if test -f "$ac_srcdir/configure.gnu"; then
 
1701
      echo &&
 
1702
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1703
    elif test -f "$ac_srcdir/configure"; then
 
1704
      echo &&
 
1705
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1706
    else
 
1707
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1708
    fi || ac_status=$?
 
1709
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1710
  done
 
1711
fi
 
1712
 
 
1713
test -n "$ac_init_help" && exit $ac_status
 
1714
if $ac_init_version; then
 
1715
  cat <<\_ACEOF
 
1716
libdap configure 3.9.3
 
1717
generated by GNU Autoconf 2.61
 
1718
 
 
1719
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1720
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1721
This configure script is free software; the Free Software Foundation
 
1722
gives unlimited permission to copy, distribute and modify it.
 
1723
_ACEOF
 
1724
  exit
 
1725
fi
 
1726
cat >config.log <<_ACEOF
 
1727
This file contains any messages produced by compilers while
 
1728
running configure, to aid debugging if configure makes a mistake.
 
1729
 
 
1730
It was created by libdap $as_me 3.9.3, which was
 
1731
generated by GNU Autoconf 2.61.  Invocation command line was
 
1732
 
 
1733
  $ $0 $@
 
1734
 
 
1735
_ACEOF
 
1736
exec 5>>config.log
 
1737
{
 
1738
cat <<_ASUNAME
 
1739
## --------- ##
 
1740
## Platform. ##
 
1741
## --------- ##
 
1742
 
 
1743
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1744
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1745
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1746
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1747
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1748
 
 
1749
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1750
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1751
 
 
1752
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1753
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1754
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1755
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1756
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1757
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1758
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1759
 
 
1760
_ASUNAME
 
1761
 
 
1762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1763
for as_dir in $PATH
 
1764
do
 
1765
  IFS=$as_save_IFS
 
1766
  test -z "$as_dir" && as_dir=.
 
1767
  echo "PATH: $as_dir"
 
1768
done
 
1769
IFS=$as_save_IFS
 
1770
 
 
1771
} >&5
 
1772
 
 
1773
cat >&5 <<_ACEOF
 
1774
 
 
1775
 
 
1776
## ----------- ##
 
1777
## Core tests. ##
 
1778
## ----------- ##
 
1779
 
 
1780
_ACEOF
 
1781
 
 
1782
 
 
1783
# Keep a trace of the command line.
 
1784
# Strip out --no-create and --no-recursion so they do not pile up.
 
1785
# Strip out --silent because we don't want to record it for future runs.
 
1786
# Also quote any args containing shell meta-characters.
 
1787
# Make two passes to allow for proper duplicate-argument suppression.
 
1788
ac_configure_args=
 
1789
ac_configure_args0=
 
1790
ac_configure_args1=
 
1791
ac_must_keep_next=false
 
1792
for ac_pass in 1 2
 
1793
do
 
1794
  for ac_arg
 
1795
  do
 
1796
    case $ac_arg in
 
1797
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1798
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1799
    | -silent | --silent | --silen | --sile | --sil)
 
1800
      continue ;;
 
1801
    *\'*)
 
1802
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1803
    esac
 
1804
    case $ac_pass in
 
1805
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1806
    2)
 
1807
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1808
      if test $ac_must_keep_next = true; then
 
1809
        ac_must_keep_next=false # Got value, back to normal.
 
1810
      else
 
1811
        case $ac_arg in
 
1812
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1813
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1814
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1815
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1816
            case "$ac_configure_args0 " in
 
1817
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1818
            esac
 
1819
            ;;
 
1820
          -* ) ac_must_keep_next=true ;;
 
1821
        esac
 
1822
      fi
 
1823
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1824
      ;;
 
1825
    esac
 
1826
  done
 
1827
done
 
1828
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1829
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1830
 
 
1831
# When interrupted or exit'd, cleanup temporary files, and complete
 
1832
# config.log.  We remove comments because anyway the quotes in there
 
1833
# would cause problems or look ugly.
 
1834
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1835
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1836
trap 'exit_status=$?
 
1837
  # Save into config.log some information that might help in debugging.
 
1838
  {
 
1839
    echo
 
1840
 
 
1841
    cat <<\_ASBOX
 
1842
## ---------------- ##
 
1843
## Cache variables. ##
 
1844
## ---------------- ##
 
1845
_ASBOX
 
1846
    echo
 
1847
    # The following way of writing the cache mishandles newlines in values,
 
1848
(
 
1849
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1850
    eval ac_val=\$$ac_var
 
1851
    case $ac_val in #(
 
1852
    *${as_nl}*)
 
1853
      case $ac_var in #(
 
1854
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1855
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1856
      esac
 
1857
      case $ac_var in #(
 
1858
      _ | IFS | as_nl) ;; #(
 
1859
      *) $as_unset $ac_var ;;
 
1860
      esac ;;
 
1861
    esac
 
1862
  done
 
1863
  (set) 2>&1 |
 
1864
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1865
    *${as_nl}ac_space=\ *)
 
1866
      sed -n \
 
1867
        "s/'\''/'\''\\\\'\'''\''/g;
 
1868
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1869
      ;; #(
 
1870
    *)
 
1871
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1872
      ;;
 
1873
    esac |
 
1874
    sort
 
1875
)
 
1876
    echo
 
1877
 
 
1878
    cat <<\_ASBOX
 
1879
## ----------------- ##
 
1880
## Output variables. ##
 
1881
## ----------------- ##
 
1882
_ASBOX
 
1883
    echo
 
1884
    for ac_var in $ac_subst_vars
 
1885
    do
 
1886
      eval ac_val=\$$ac_var
 
1887
      case $ac_val in
 
1888
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1889
      esac
 
1890
      echo "$ac_var='\''$ac_val'\''"
 
1891
    done | sort
 
1892
    echo
 
1893
 
 
1894
    if test -n "$ac_subst_files"; then
 
1895
      cat <<\_ASBOX
 
1896
## ------------------- ##
 
1897
## File substitutions. ##
 
1898
## ------------------- ##
 
1899
_ASBOX
 
1900
      echo
 
1901
      for ac_var in $ac_subst_files
 
1902
      do
 
1903
        eval ac_val=\$$ac_var
 
1904
        case $ac_val in
 
1905
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1906
        esac
 
1907
        echo "$ac_var='\''$ac_val'\''"
 
1908
      done | sort
 
1909
      echo
 
1910
    fi
 
1911
 
 
1912
    if test -s confdefs.h; then
 
1913
      cat <<\_ASBOX
 
1914
## ----------- ##
 
1915
## confdefs.h. ##
 
1916
## ----------- ##
 
1917
_ASBOX
 
1918
      echo
 
1919
      cat confdefs.h
 
1920
      echo
 
1921
    fi
 
1922
    test "$ac_signal" != 0 &&
 
1923
      echo "$as_me: caught signal $ac_signal"
 
1924
    echo "$as_me: exit $exit_status"
 
1925
  } >&5
 
1926
  rm -f core *.core core.conftest.* &&
 
1927
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1928
    exit $exit_status
 
1929
' 0
 
1930
for ac_signal in 1 2 13 15; do
 
1931
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1932
done
 
1933
ac_signal=0
 
1934
 
 
1935
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1936
rm -f -r conftest* confdefs.h
 
1937
 
 
1938
# Predefined preprocessor variables.
 
1939
 
 
1940
cat >>confdefs.h <<_ACEOF
 
1941
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1942
_ACEOF
 
1943
 
 
1944
 
 
1945
cat >>confdefs.h <<_ACEOF
 
1946
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1947
_ACEOF
 
1948
 
 
1949
 
 
1950
cat >>confdefs.h <<_ACEOF
 
1951
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1952
_ACEOF
 
1953
 
 
1954
 
 
1955
cat >>confdefs.h <<_ACEOF
 
1956
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1957
_ACEOF
 
1958
 
 
1959
 
 
1960
cat >>confdefs.h <<_ACEOF
 
1961
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1962
_ACEOF
 
1963
 
 
1964
 
 
1965
# Let the site file select an alternate cache file if it wants to.
 
1966
# Prefer explicitly selected file to automatically selected ones.
 
1967
if test -n "$CONFIG_SITE"; then
 
1968
  set x "$CONFIG_SITE"
 
1969
elif test "x$prefix" != xNONE; then
 
1970
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1971
else
 
1972
  set x "$ac_default_prefix/share/config.site" \
 
1973
        "$ac_default_prefix/etc/config.site"
 
1974
fi
 
1975
shift
 
1976
for ac_site_file
 
1977
do
 
1978
  if test -r "$ac_site_file"; then
 
1979
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1980
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1981
    sed 's/^/| /' "$ac_site_file" >&5
 
1982
    . "$ac_site_file"
 
1983
  fi
 
1984
done
 
1985
 
 
1986
if test -r "$cache_file"; then
 
1987
  # Some versions of bash will fail to source /dev/null (special
 
1988
  # files actually), so we avoid doing that.
 
1989
  if test -f "$cache_file"; then
 
1990
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1991
echo "$as_me: loading cache $cache_file" >&6;}
 
1992
    case $cache_file in
 
1993
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1994
      *)                      . "./$cache_file";;
 
1995
    esac
 
1996
  fi
 
1997
else
 
1998
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1999
echo "$as_me: creating cache $cache_file" >&6;}
 
2000
  >$cache_file
 
2001
fi
 
2002
 
 
2003
ac_header_list="$ac_header_list locale.h"
 
2004
ac_func_list="$ac_func_list isblank"
 
2005
ac_func_list="$ac_func_list iswctype"
 
2006
ac_func_list="$ac_func_list mbrtowc"
 
2007
ac_func_list="$ac_func_list wcrtomb"
 
2008
ac_func_list="$ac_func_list wcscoll"
 
2009
ac_header_list="$ac_header_list stdint.h"
 
2010
ac_header_list="$ac_header_list wchar.h"
 
2011
ac_header_list="$ac_header_list stdlib.h"
 
2012
ac_header_list="$ac_header_list unistd.h"
 
2013
ac_func_list="$ac_func_list iswcntrl"
 
2014
ac_header_list="$ac_header_list wctype.h"
 
2015
# Check that the precious variables saved in the cache have kept the same
 
2016
# value.
 
2017
ac_cache_corrupted=false
 
2018
for ac_var in $ac_precious_vars; do
 
2019
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2020
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2021
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2022
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2023
  case $ac_old_set,$ac_new_set in
 
2024
    set,)
 
2025
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2026
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2027
      ac_cache_corrupted=: ;;
 
2028
    ,set)
 
2029
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2030
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2031
      ac_cache_corrupted=: ;;
 
2032
    ,);;
 
2033
    *)
 
2034
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2035
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2036
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2037
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
2038
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
2039
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
2040
echo "$as_me:   current value: $ac_new_val" >&2;}
 
2041
        ac_cache_corrupted=:
 
2042
      fi;;
 
2043
  esac
 
2044
  # Pass precious variables to config.status.
 
2045
  if test "$ac_new_set" = set; then
 
2046
    case $ac_new_val in
 
2047
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2048
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2049
    esac
 
2050
    case " $ac_configure_args " in
 
2051
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2052
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2053
    esac
 
2054
  fi
 
2055
done
 
2056
if $ac_cache_corrupted; then
 
2057
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2058
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2059
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2060
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2061
   { (exit 1); exit 1; }; }
 
2062
fi
 
2063
 
 
2064
 
 
2065
 
 
2066
 
 
2067
 
 
2068
 
 
2069
 
 
2070
 
 
2071
 
 
2072
 
 
2073
 
 
2074
 
 
2075
 
 
2076
 
 
2077
 
 
2078
 
 
2079
 
 
2080
 
 
2081
 
 
2082
 
 
2083
 
 
2084
 
 
2085
 
 
2086
 
 
2087
 
 
2088
ac_ext=c
 
2089
ac_cpp='$CPP $CPPFLAGS'
 
2090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2093
 
 
2094
 
 
2095
 
 
2096
cat >>confdefs.h <<\_ACEOF
 
2097
#define DAP_PROTOCOL_VERSION "3.2"
 
2098
_ACEOF
 
2099
 
 
2100
 
 
2101
 
 
2102
 
 
2103
ac_aux_dir=
 
2104
for ac_dir in conf "$srcdir"/conf; do
 
2105
  if test -f "$ac_dir/install-sh"; then
 
2106
    ac_aux_dir=$ac_dir
 
2107
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2108
    break
 
2109
  elif test -f "$ac_dir/install.sh"; then
 
2110
    ac_aux_dir=$ac_dir
 
2111
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2112
    break
 
2113
  elif test -f "$ac_dir/shtool"; then
 
2114
    ac_aux_dir=$ac_dir
 
2115
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2116
    break
 
2117
  fi
 
2118
done
 
2119
if test -z "$ac_aux_dir"; then
 
2120
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conf \"$srcdir\"/conf" >&5
 
2121
echo "$as_me: error: cannot find install-sh or install.sh in conf \"$srcdir\"/conf" >&2;}
 
2122
   { (exit 1); exit 1; }; }
 
2123
fi
 
2124
 
 
2125
# These three variables are undocumented and unsupported,
 
2126
# and are intended to be withdrawn in a future Autoconf release.
 
2127
# They can cause serious problems if a builder's source tree is in a directory
 
2128
# whose full name contains unusual characters.
 
2129
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2130
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2131
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2132
 
 
2133
 
 
2134
ac_config_headers="$ac_config_headers config.h dods-datatypes-config.h xdr-datatypes-config.h"
 
2135
 
 
2136
 
 
2137
am__api_version='1.10'
 
2138
 
 
2139
# Find a good install program.  We prefer a C program (faster),
 
2140
# so one script is as good as another.  But avoid the broken or
 
2141
# incompatible versions:
 
2142
# SysV /etc/install, /usr/sbin/install
 
2143
# SunOS /usr/etc/install
 
2144
# IRIX /sbin/install
 
2145
# AIX /bin/install
 
2146
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2147
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2148
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2149
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2150
# OS/2's system install, which has a completely different semantic
 
2151
# ./install, which can be erroneously created by make from ./install.sh.
 
2152
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2153
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2154
if test -z "$INSTALL"; then
 
2155
if test "${ac_cv_path_install+set}" = set; then
 
2156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2157
else
 
2158
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2159
for as_dir in $PATH
 
2160
do
 
2161
  IFS=$as_save_IFS
 
2162
  test -z "$as_dir" && as_dir=.
 
2163
  # Account for people who put trailing slashes in PATH elements.
 
2164
case $as_dir/ in
 
2165
  ./ | .// | /cC/* | \
 
2166
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2167
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2168
  /usr/ucb/* ) ;;
 
2169
  *)
 
2170
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2171
    # Don't use installbsd from OSF since it installs stuff as root
 
2172
    # by default.
 
2173
    for ac_prog in ginstall scoinst install; do
 
2174
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2175
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2176
          if test $ac_prog = install &&
 
2177
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2178
            # AIX install.  It has an incompatible calling convention.
 
2179
            :
 
2180
          elif test $ac_prog = install &&
 
2181
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2182
            # program-specific install script used by HP pwplus--don't use.
 
2183
            :
 
2184
          else
 
2185
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2186
            break 3
 
2187
          fi
 
2188
        fi
 
2189
      done
 
2190
    done
 
2191
    ;;
 
2192
esac
 
2193
done
 
2194
IFS=$as_save_IFS
 
2195
 
 
2196
 
 
2197
fi
 
2198
  if test "${ac_cv_path_install+set}" = set; then
 
2199
    INSTALL=$ac_cv_path_install
 
2200
  else
 
2201
    # As a last resort, use the slow shell script.  Don't cache a
 
2202
    # value for INSTALL within a source directory, because that will
 
2203
    # break other packages using the cache if that directory is
 
2204
    # removed, or if the value is a relative name.
 
2205
    INSTALL=$ac_install_sh
 
2206
  fi
 
2207
fi
 
2208
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2209
echo "${ECHO_T}$INSTALL" >&6; }
 
2210
 
 
2211
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2212
# It thinks the first close brace ends the variable substitution.
 
2213
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2214
 
 
2215
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2216
 
 
2217
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2218
 
 
2219
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2220
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2221
# Just in case
 
2222
sleep 1
 
2223
echo timestamp > conftest.file
 
2224
# Do `set' in a subshell so we don't clobber the current shell's
 
2225
# arguments.  Must try -L first in case configure is actually a
 
2226
# symlink; some systems play weird games with the mod time of symlinks
 
2227
# (eg FreeBSD returns the mod time of the symlink's containing
 
2228
# directory).
 
2229
if (
 
2230
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2231
   if test "$*" = "X"; then
 
2232
      # -L didn't work.
 
2233
      set X `ls -t $srcdir/configure conftest.file`
 
2234
   fi
 
2235
   rm -f conftest.file
 
2236
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2237
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2238
 
 
2239
      # If neither matched, then we have a broken ls.  This can happen
 
2240
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2241
      # broken ls alias from the environment.  This has actually
 
2242
      # happened.  Such a system could not be considered "sane".
 
2243
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2244
alias in your environment" >&5
 
2245
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2246
alias in your environment" >&2;}
 
2247
   { (exit 1); exit 1; }; }
 
2248
   fi
 
2249
 
 
2250
   test "$2" = conftest.file
 
2251
   )
 
2252
then
 
2253
   # Ok.
 
2254
   :
 
2255
else
 
2256
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2257
Check your system clock" >&5
 
2258
echo "$as_me: error: newly created file is older than distributed files!
 
2259
Check your system clock" >&2;}
 
2260
   { (exit 1); exit 1; }; }
 
2261
fi
 
2262
{ echo "$as_me:$LINENO: result: yes" >&5
 
2263
echo "${ECHO_T}yes" >&6; }
 
2264
test "$program_prefix" != NONE &&
 
2265
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2266
# Use a double $ so make ignores it.
 
2267
test "$program_suffix" != NONE &&
 
2268
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2269
# Double any \ or $.  echo might interpret backslashes.
 
2270
# By default was `s,x,x', remove it if useless.
 
2271
cat <<\_ACEOF >conftest.sed
 
2272
s/[\\$]/&&/g;s/;s,x,x,$//
 
2273
_ACEOF
 
2274
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2275
rm -f conftest.sed
 
2276
 
 
2277
# expand $ac_aux_dir to an absolute path
 
2278
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2279
 
 
2280
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2281
# Use eval to expand $SHELL
 
2282
if eval "$MISSING --run true"; then
 
2283
  am_missing_run="$MISSING --run "
 
2284
else
 
2285
  am_missing_run=
 
2286
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2287
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2288
fi
 
2289
 
 
2290
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2291
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2292
if test -z "$MKDIR_P"; then
 
2293
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2295
else
 
2296
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2297
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2298
do
 
2299
  IFS=$as_save_IFS
 
2300
  test -z "$as_dir" && as_dir=.
 
2301
  for ac_prog in mkdir gmkdir; do
 
2302
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2303
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2304
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2305
             'mkdir (GNU coreutils) '* | \
 
2306
             'mkdir (coreutils) '* | \
 
2307
             'mkdir (fileutils) '4.1*)
 
2308
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2309
               break 3;;
 
2310
           esac
 
2311
         done
 
2312
       done
 
2313
done
 
2314
IFS=$as_save_IFS
 
2315
 
 
2316
fi
 
2317
 
 
2318
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2319
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2320
  else
 
2321
    # As a last resort, use the slow shell script.  Don't cache a
 
2322
    # value for MKDIR_P within a source directory, because that will
 
2323
    # break other packages using the cache if that directory is
 
2324
    # removed, or if the value is a relative name.
 
2325
    test -d ./--version && rmdir ./--version
 
2326
    MKDIR_P="$ac_install_sh -d"
 
2327
  fi
 
2328
fi
 
2329
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2330
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2331
 
 
2332
mkdir_p="$MKDIR_P"
 
2333
case $mkdir_p in
 
2334
  [\\/$]* | ?:[\\/]*) ;;
 
2335
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2336
esac
 
2337
 
 
2338
for ac_prog in gawk mawk nawk awk
 
2339
do
 
2340
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2341
set dummy $ac_prog; ac_word=$2
 
2342
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2344
if test "${ac_cv_prog_AWK+set}" = set; then
 
2345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2346
else
 
2347
  if test -n "$AWK"; then
 
2348
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2349
else
 
2350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2351
for as_dir in $PATH
 
2352
do
 
2353
  IFS=$as_save_IFS
 
2354
  test -z "$as_dir" && as_dir=.
 
2355
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2357
    ac_cv_prog_AWK="$ac_prog"
 
2358
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2359
    break 2
 
2360
  fi
 
2361
done
 
2362
done
 
2363
IFS=$as_save_IFS
 
2364
 
 
2365
fi
 
2366
fi
 
2367
AWK=$ac_cv_prog_AWK
 
2368
if test -n "$AWK"; then
 
2369
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2370
echo "${ECHO_T}$AWK" >&6; }
 
2371
else
 
2372
  { echo "$as_me:$LINENO: result: no" >&5
 
2373
echo "${ECHO_T}no" >&6; }
 
2374
fi
 
2375
 
 
2376
 
 
2377
  test -n "$AWK" && break
 
2378
done
 
2379
 
 
2380
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2381
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2382
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2383
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2385
else
 
2386
  cat >conftest.make <<\_ACEOF
 
2387
SHELL = /bin/sh
 
2388
all:
 
2389
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2390
_ACEOF
 
2391
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2392
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2393
  *@@@%%%=?*=@@@%%%*)
 
2394
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2395
  *)
 
2396
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2397
esac
 
2398
rm -f conftest.make
 
2399
fi
 
2400
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2401
  { echo "$as_me:$LINENO: result: yes" >&5
 
2402
echo "${ECHO_T}yes" >&6; }
 
2403
  SET_MAKE=
 
2404
else
 
2405
  { echo "$as_me:$LINENO: result: no" >&5
 
2406
echo "${ECHO_T}no" >&6; }
 
2407
  SET_MAKE="MAKE=${MAKE-make}"
 
2408
fi
 
2409
 
 
2410
rm -rf .tst 2>/dev/null
 
2411
mkdir .tst 2>/dev/null
 
2412
if test -d .tst; then
 
2413
  am__leading_dot=.
 
2414
else
 
2415
  am__leading_dot=_
 
2416
fi
 
2417
rmdir .tst 2>/dev/null
 
2418
 
 
2419
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2420
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2421
  # is not polluted with repeated "-I."
 
2422
  am__isrc=' -I$(srcdir)'
 
2423
  # test to see if srcdir already configured
 
2424
  if test -f $srcdir/config.status; then
 
2425
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2426
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2427
   { (exit 1); exit 1; }; }
 
2428
  fi
 
2429
fi
 
2430
 
 
2431
# test whether we have cygpath
 
2432
if test -z "$CYGPATH_W"; then
 
2433
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2434
    CYGPATH_W='cygpath -w'
 
2435
  else
 
2436
    CYGPATH_W=echo
 
2437
  fi
 
2438
fi
 
2439
 
 
2440
 
 
2441
# Define the identity of the package.
 
2442
 PACKAGE='libdap'
 
2443
 VERSION='3.9.3'
 
2444
 
 
2445
 
 
2446
cat >>confdefs.h <<_ACEOF
 
2447
#define PACKAGE "$PACKAGE"
 
2448
_ACEOF
 
2449
 
 
2450
 
 
2451
cat >>confdefs.h <<_ACEOF
 
2452
#define VERSION "$VERSION"
 
2453
_ACEOF
 
2454
 
 
2455
# Some tools Automake needs.
 
2456
 
 
2457
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2458
 
 
2459
 
 
2460
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2461
 
 
2462
 
 
2463
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2464
 
 
2465
 
 
2466
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2467
 
 
2468
 
 
2469
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2470
 
 
2471
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2472
 
 
2473
# Installed binaries are usually stripped using `strip' when the user
 
2474
# run `make install-strip'.  However `strip' might not be the right
 
2475
# tool to use in cross-compilation environments, therefore Automake
 
2476
# will honor the `STRIP' environment variable to overrule this program.
 
2477
if test "$cross_compiling" != no; then
 
2478
  if test -n "$ac_tool_prefix"; then
 
2479
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2480
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2481
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2482
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2483
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2485
else
 
2486
  if test -n "$STRIP"; then
 
2487
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2488
else
 
2489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2490
for as_dir in $PATH
 
2491
do
 
2492
  IFS=$as_save_IFS
 
2493
  test -z "$as_dir" && as_dir=.
 
2494
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2495
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2496
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2497
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2498
    break 2
 
2499
  fi
 
2500
done
 
2501
done
 
2502
IFS=$as_save_IFS
 
2503
 
 
2504
fi
 
2505
fi
 
2506
STRIP=$ac_cv_prog_STRIP
 
2507
if test -n "$STRIP"; then
 
2508
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2509
echo "${ECHO_T}$STRIP" >&6; }
 
2510
else
 
2511
  { echo "$as_me:$LINENO: result: no" >&5
 
2512
echo "${ECHO_T}no" >&6; }
 
2513
fi
 
2514
 
 
2515
 
 
2516
fi
 
2517
if test -z "$ac_cv_prog_STRIP"; then
 
2518
  ac_ct_STRIP=$STRIP
 
2519
  # Extract the first word of "strip", so it can be a program name with args.
 
2520
set dummy strip; ac_word=$2
 
2521
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2523
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2525
else
 
2526
  if test -n "$ac_ct_STRIP"; then
 
2527
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2528
else
 
2529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2530
for as_dir in $PATH
 
2531
do
 
2532
  IFS=$as_save_IFS
 
2533
  test -z "$as_dir" && as_dir=.
 
2534
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2535
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2536
    ac_cv_prog_ac_ct_STRIP="strip"
 
2537
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2538
    break 2
 
2539
  fi
 
2540
done
 
2541
done
 
2542
IFS=$as_save_IFS
 
2543
 
 
2544
fi
 
2545
fi
 
2546
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2547
if test -n "$ac_ct_STRIP"; then
 
2548
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2549
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2550
else
 
2551
  { echo "$as_me:$LINENO: result: no" >&5
 
2552
echo "${ECHO_T}no" >&6; }
 
2553
fi
 
2554
 
 
2555
  if test "x$ac_ct_STRIP" = x; then
 
2556
    STRIP=":"
 
2557
  else
 
2558
    case $cross_compiling:$ac_tool_warned in
 
2559
yes:)
 
2560
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2561
whose name does not start with the host triplet.  If you think this
 
2562
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2563
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2564
whose name does not start with the host triplet.  If you think this
 
2565
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2566
ac_tool_warned=yes ;;
 
2567
esac
 
2568
    STRIP=$ac_ct_STRIP
 
2569
  fi
 
2570
else
 
2571
  STRIP="$ac_cv_prog_STRIP"
 
2572
fi
 
2573
 
 
2574
fi
 
2575
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2576
 
 
2577
# We need awk for the "check" target.  The system "awk" is bad on
 
2578
# some platforms.
 
2579
# Always define AMTAR for backward compatibility.
 
2580
 
 
2581
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2582
 
 
2583
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2584
 
 
2585
 
 
2586
 
 
2587
 
 
2588
 
 
2589
 
 
2590
 
 
2591
cat >>confdefs.h <<\_ACEOF
 
2592
#define FILE_METHODS 1
 
2593
_ACEOF
 
2594
 
 
2595
 
 
2596
 
 
2597
cat >>confdefs.h <<\_ACEOF
 
2598
#define CNAME "libdap"
 
2599
_ACEOF
 
2600
 
 
2601
 
 
2602
cat >>confdefs.h <<_ACEOF
 
2603
#define CVER "$PACKAGE_VERSION"
 
2604
_ACEOF
 
2605
 
 
2606
 
 
2607
cat >>confdefs.h <<_ACEOF
 
2608
#define DVR "libdap/$PACKAGE_VERSION"
 
2609
_ACEOF
 
2610
 
 
2611
 
 
2612
 
 
2613
 
 
2614
cat >>confdefs.h <<\_ACEOF
 
2615
#define EVAL 1
 
2616
_ACEOF
 
2617
 
 
2618
 
 
2619
 
 
2620
 
 
2621
cat >>confdefs.h <<\_ACEOF
 
2622
#define COMPRESSION_FOR_SERVER3 0
 
2623
_ACEOF
 
2624
 
 
2625
 
 
2626
 
 
2627
 
 
2628
# Make sure we can run config.sub.
 
2629
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2630
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2631
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2632
   { (exit 1); exit 1; }; }
 
2633
 
 
2634
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2635
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2636
if test "${ac_cv_build+set}" = set; then
 
2637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2638
else
 
2639
  ac_build_alias=$build_alias
 
2640
test "x$ac_build_alias" = x &&
 
2641
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2642
test "x$ac_build_alias" = x &&
 
2643
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2644
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2645
   { (exit 1); exit 1; }; }
 
2646
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2647
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2648
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2649
   { (exit 1); exit 1; }; }
 
2650
 
 
2651
fi
 
2652
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2653
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2654
case $ac_cv_build in
 
2655
*-*-*) ;;
 
2656
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2657
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2658
   { (exit 1); exit 1; }; };;
 
2659
esac
 
2660
build=$ac_cv_build
 
2661
ac_save_IFS=$IFS; IFS='-'
 
2662
set x $ac_cv_build
 
2663
shift
 
2664
build_cpu=$1
 
2665
build_vendor=$2
 
2666
shift; shift
 
2667
# Remember, the first character of IFS is used to create $*,
 
2668
# except with old shells:
 
2669
build_os=$*
 
2670
IFS=$ac_save_IFS
 
2671
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2672
 
 
2673
 
 
2674
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2675
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2676
if test "${ac_cv_host+set}" = set; then
 
2677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2678
else
 
2679
  if test "x$host_alias" = x; then
 
2680
  ac_cv_host=$ac_cv_build
 
2681
else
 
2682
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2683
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2684
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2685
   { (exit 1); exit 1; }; }
 
2686
fi
 
2687
 
 
2688
fi
 
2689
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2690
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2691
case $ac_cv_host in
 
2692
*-*-*) ;;
 
2693
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2694
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2695
   { (exit 1); exit 1; }; };;
 
2696
esac
 
2697
host=$ac_cv_host
 
2698
ac_save_IFS=$IFS; IFS='-'
 
2699
set x $ac_cv_host
 
2700
shift
 
2701
host_cpu=$1
 
2702
host_vendor=$2
 
2703
shift; shift
 
2704
# Remember, the first character of IFS is used to create $*,
 
2705
# except with old shells:
 
2706
host_os=$*
 
2707
IFS=$ac_save_IFS
 
2708
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2709
 
 
2710
 
 
2711
 
 
2712
 
 
2713
DAPLIB_CURRENT=10
 
2714
DAPLIB_AGE=0
 
2715
DAPLIB_REVISION=1
 
2716
 
 
2717
 
 
2718
 
 
2719
 
 
2720
LIBDAP_VERSION="$DAPLIB_CURRENT:$DAPLIB_REVISION:$DAPLIB_AGE"
 
2721
 
 
2722
 
 
2723
CLIENTLIB_CURRENT=3
 
2724
CLIENTLIB_AGE=0
 
2725
CLIENTLIB_REVISION=1
 
2726
 
 
2727
 
 
2728
 
 
2729
 
 
2730
CLIENTLIB_VERSION="$CLIENTLIB_CURRENT:$CLIENTLIB_REVISION:$CLIENTLIB_AGE"
 
2731
 
 
2732
 
 
2733
SERVERLIB_CURRENT=7
 
2734
SERVERLIB_AGE=0
 
2735
SERVERLIB_REVISION=1
 
2736
 
 
2737
 
 
2738
 
 
2739
 
 
2740
SERVERLIB_VERSION="$SERVERLIB_CURRENT:$SERVERLIB_REVISION:$SERVERLIB_AGE"
 
2741
 
 
2742
 
 
2743
for ac_prog in gawk mawk nawk awk
 
2744
do
 
2745
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2746
set dummy $ac_prog; ac_word=$2
 
2747
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2748
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2749
if test "${ac_cv_prog_AWK+set}" = set; then
 
2750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2751
else
 
2752
  if test -n "$AWK"; then
 
2753
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2754
else
 
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2756
for as_dir in $PATH
 
2757
do
 
2758
  IFS=$as_save_IFS
 
2759
  test -z "$as_dir" && as_dir=.
 
2760
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2762
    ac_cv_prog_AWK="$ac_prog"
 
2763
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2764
    break 2
 
2765
  fi
 
2766
done
 
2767
done
 
2768
IFS=$as_save_IFS
 
2769
 
 
2770
fi
 
2771
fi
 
2772
AWK=$ac_cv_prog_AWK
 
2773
if test -n "$AWK"; then
 
2774
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2775
echo "${ECHO_T}$AWK" >&6; }
 
2776
else
 
2777
  { echo "$as_me:$LINENO: result: no" >&5
 
2778
echo "${ECHO_T}no" >&6; }
 
2779
fi
 
2780
 
 
2781
 
 
2782
  test -n "$AWK" && break
 
2783
done
 
2784
 
 
2785
ac_ext=cpp
 
2786
ac_cpp='$CXXCPP $CPPFLAGS'
 
2787
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2788
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2789
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2790
if test -z "$CXX"; then
 
2791
  if test -n "$CCC"; then
 
2792
    CXX=$CCC
 
2793
  else
 
2794
    if test -n "$ac_tool_prefix"; then
 
2795
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2796
  do
 
2797
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2798
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2799
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2801
if test "${ac_cv_prog_CXX+set}" = set; then
 
2802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2803
else
 
2804
  if test -n "$CXX"; then
 
2805
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2806
else
 
2807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2808
for as_dir in $PATH
 
2809
do
 
2810
  IFS=$as_save_IFS
 
2811
  test -z "$as_dir" && as_dir=.
 
2812
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2813
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2814
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2815
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2816
    break 2
 
2817
  fi
 
2818
done
 
2819
done
 
2820
IFS=$as_save_IFS
 
2821
 
 
2822
fi
 
2823
fi
 
2824
CXX=$ac_cv_prog_CXX
 
2825
if test -n "$CXX"; then
 
2826
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
2827
echo "${ECHO_T}$CXX" >&6; }
 
2828
else
 
2829
  { echo "$as_me:$LINENO: result: no" >&5
 
2830
echo "${ECHO_T}no" >&6; }
 
2831
fi
 
2832
 
 
2833
 
 
2834
    test -n "$CXX" && break
 
2835
  done
 
2836
fi
 
2837
if test -z "$CXX"; then
 
2838
  ac_ct_CXX=$CXX
 
2839
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2840
do
 
2841
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2842
set dummy $ac_prog; ac_word=$2
 
2843
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2844
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2845
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2847
else
 
2848
  if test -n "$ac_ct_CXX"; then
 
2849
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2850
else
 
2851
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2852
for as_dir in $PATH
 
2853
do
 
2854
  IFS=$as_save_IFS
 
2855
  test -z "$as_dir" && as_dir=.
 
2856
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2857
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2858
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2859
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2860
    break 2
 
2861
  fi
 
2862
done
 
2863
done
 
2864
IFS=$as_save_IFS
 
2865
 
 
2866
fi
 
2867
fi
 
2868
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2869
if test -n "$ac_ct_CXX"; then
 
2870
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2871
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
2872
else
 
2873
  { echo "$as_me:$LINENO: result: no" >&5
 
2874
echo "${ECHO_T}no" >&6; }
 
2875
fi
 
2876
 
 
2877
 
 
2878
  test -n "$ac_ct_CXX" && break
 
2879
done
 
2880
 
 
2881
  if test "x$ac_ct_CXX" = x; then
 
2882
    CXX="g++"
 
2883
  else
 
2884
    case $cross_compiling:$ac_tool_warned in
 
2885
yes:)
 
2886
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2887
whose name does not start with the host triplet.  If you think this
 
2888
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2889
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2890
whose name does not start with the host triplet.  If you think this
 
2891
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2892
ac_tool_warned=yes ;;
 
2893
esac
 
2894
    CXX=$ac_ct_CXX
 
2895
  fi
 
2896
fi
 
2897
 
 
2898
  fi
 
2899
fi
 
2900
# Provide some information about the compiler.
 
2901
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
2902
ac_compiler=`set X $ac_compile; echo $2`
 
2903
{ (ac_try="$ac_compiler --version >&5"
 
2904
case "(($ac_try" in
 
2905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2906
  *) ac_try_echo=$ac_try;;
 
2907
esac
 
2908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2909
  (eval "$ac_compiler --version >&5") 2>&5
 
2910
  ac_status=$?
 
2911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2912
  (exit $ac_status); }
 
2913
{ (ac_try="$ac_compiler -v >&5"
 
2914
case "(($ac_try" in
 
2915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2916
  *) ac_try_echo=$ac_try;;
 
2917
esac
 
2918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2919
  (eval "$ac_compiler -v >&5") 2>&5
 
2920
  ac_status=$?
 
2921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2922
  (exit $ac_status); }
 
2923
{ (ac_try="$ac_compiler -V >&5"
 
2924
case "(($ac_try" in
 
2925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2926
  *) ac_try_echo=$ac_try;;
 
2927
esac
 
2928
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2929
  (eval "$ac_compiler -V >&5") 2>&5
 
2930
  ac_status=$?
 
2931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2932
  (exit $ac_status); }
 
2933
 
 
2934
cat >conftest.$ac_ext <<_ACEOF
 
2935
/* confdefs.h.  */
 
2936
_ACEOF
 
2937
cat confdefs.h >>conftest.$ac_ext
 
2938
cat >>conftest.$ac_ext <<_ACEOF
 
2939
/* end confdefs.h.  */
 
2940
 
 
2941
int
 
2942
main ()
 
2943
{
 
2944
 
 
2945
  ;
 
2946
  return 0;
 
2947
}
 
2948
_ACEOF
 
2949
ac_clean_files_save=$ac_clean_files
 
2950
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2951
# Try to create an executable without -o first, disregard a.out.
 
2952
# It will help us diagnose broken compilers, and finding out an intuition
 
2953
# of exeext.
 
2954
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
2955
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
 
2956
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2957
#
 
2958
# List of possible output files, starting from the most likely.
 
2959
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2960
# only as a last resort.  b.out is created by i960 compilers.
 
2961
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2962
#
 
2963
# The IRIX 6 linker writes into existing files which may not be
 
2964
# executable, retaining their permissions.  Remove them first so a
 
2965
# subsequent execution test works.
 
2966
ac_rmfiles=
 
2967
for ac_file in $ac_files
 
2968
do
 
2969
  case $ac_file in
 
2970
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2971
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2972
  esac
 
2973
done
 
2974
rm -f $ac_rmfiles
 
2975
 
 
2976
if { (ac_try="$ac_link_default"
 
2977
case "(($ac_try" in
 
2978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2979
  *) ac_try_echo=$ac_try;;
 
2980
esac
 
2981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2982
  (eval "$ac_link_default") 2>&5
 
2983
  ac_status=$?
 
2984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2985
  (exit $ac_status); }; then
 
2986
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2987
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2988
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2989
# so that the user can short-circuit this test for compilers unknown to
 
2990
# Autoconf.
 
2991
for ac_file in $ac_files ''
 
2992
do
 
2993
  test -f "$ac_file" || continue
 
2994
  case $ac_file in
 
2995
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2996
        ;;
 
2997
    [ab].out )
 
2998
        # We found the default executable, but exeext='' is most
 
2999
        # certainly right.
 
3000
        break;;
 
3001
    *.* )
 
3002
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3003
        then :; else
 
3004
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3005
        fi
 
3006
        # We set ac_cv_exeext here because the later test for it is not
 
3007
        # safe: cross compilers may not add the suffix if given an `-o'
 
3008
        # argument, so we may need to know it at that point already.
 
3009
        # Even if this section looks crufty: it has the advantage of
 
3010
        # actually working.
 
3011
        break;;
 
3012
    * )
 
3013
        break;;
 
3014
  esac
 
3015
done
 
3016
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3017
 
 
3018
else
 
3019
  ac_file=''
 
3020
fi
 
3021
 
 
3022
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3023
echo "${ECHO_T}$ac_file" >&6; }
 
3024
if test -z "$ac_file"; then
 
3025
  echo "$as_me: failed program was:" >&5
 
3026
sed 's/^/| /' conftest.$ac_ext >&5
 
3027
 
 
3028
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
3029
See \`config.log' for more details." >&5
 
3030
echo "$as_me: error: C++ compiler cannot create executables
 
3031
See \`config.log' for more details." >&2;}
 
3032
   { (exit 77); exit 77; }; }
 
3033
fi
 
3034
 
 
3035
ac_exeext=$ac_cv_exeext
 
3036
 
 
3037
# Check that the compiler produces executables we can run.  If not, either
 
3038
# the compiler is broken, or we cross compile.
 
3039
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
3040
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
 
3041
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3042
# If not cross compiling, check that we can run a simple program.
 
3043
if test "$cross_compiling" != yes; then
 
3044
  if { ac_try='./$ac_file'
 
3045
  { (case "(($ac_try" in
 
3046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3047
  *) ac_try_echo=$ac_try;;
 
3048
esac
 
3049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3050
  (eval "$ac_try") 2>&5
 
3051
  ac_status=$?
 
3052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3053
  (exit $ac_status); }; }; then
 
3054
    cross_compiling=no
 
3055
  else
 
3056
    if test "$cross_compiling" = maybe; then
 
3057
        cross_compiling=yes
 
3058
    else
 
3059
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
3060
If you meant to cross compile, use \`--host'.
 
3061
See \`config.log' for more details." >&5
 
3062
echo "$as_me: error: cannot run C++ compiled programs.
 
3063
If you meant to cross compile, use \`--host'.
 
3064
See \`config.log' for more details." >&2;}
 
3065
   { (exit 1); exit 1; }; }
 
3066
    fi
 
3067
  fi
 
3068
fi
 
3069
{ echo "$as_me:$LINENO: result: yes" >&5
 
3070
echo "${ECHO_T}yes" >&6; }
 
3071
 
 
3072
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3073
ac_clean_files=$ac_clean_files_save
 
3074
# Check that the compiler produces executables we can run.  If not, either
 
3075
# the compiler is broken, or we cross compile.
 
3076
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3077
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3078
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3079
echo "${ECHO_T}$cross_compiling" >&6; }
 
3080
 
 
3081
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3082
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3083
if { (ac_try="$ac_link"
 
3084
case "(($ac_try" in
 
3085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3086
  *) ac_try_echo=$ac_try;;
 
3087
esac
 
3088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3089
  (eval "$ac_link") 2>&5
 
3090
  ac_status=$?
 
3091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3092
  (exit $ac_status); }; then
 
3093
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3094
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3095
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3096
# `rm'.
 
3097
for ac_file in conftest.exe conftest conftest.*; do
 
3098
  test -f "$ac_file" || continue
 
3099
  case $ac_file in
 
3100
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3101
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3102
          break;;
 
3103
    * ) break;;
 
3104
  esac
 
3105
done
 
3106
else
 
3107
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3108
See \`config.log' for more details." >&5
 
3109
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3110
See \`config.log' for more details." >&2;}
 
3111
   { (exit 1); exit 1; }; }
 
3112
fi
 
3113
 
 
3114
rm -f conftest$ac_cv_exeext
 
3115
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3116
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3117
 
 
3118
rm -f conftest.$ac_ext
 
3119
EXEEXT=$ac_cv_exeext
 
3120
ac_exeext=$EXEEXT
 
3121
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3122
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3123
if test "${ac_cv_objext+set}" = set; then
 
3124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3125
else
 
3126
  cat >conftest.$ac_ext <<_ACEOF
 
3127
/* confdefs.h.  */
 
3128
_ACEOF
 
3129
cat confdefs.h >>conftest.$ac_ext
 
3130
cat >>conftest.$ac_ext <<_ACEOF
 
3131
/* end confdefs.h.  */
 
3132
 
 
3133
int
 
3134
main ()
 
3135
{
 
3136
 
 
3137
  ;
 
3138
  return 0;
 
3139
}
 
3140
_ACEOF
 
3141
rm -f conftest.o conftest.obj
 
3142
if { (ac_try="$ac_compile"
 
3143
case "(($ac_try" in
 
3144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3145
  *) ac_try_echo=$ac_try;;
 
3146
esac
 
3147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3148
  (eval "$ac_compile") 2>&5
 
3149
  ac_status=$?
 
3150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3151
  (exit $ac_status); }; then
 
3152
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3153
  test -f "$ac_file" || continue;
 
3154
  case $ac_file in
 
3155
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3156
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3157
       break;;
 
3158
  esac
 
3159
done
 
3160
else
 
3161
  echo "$as_me: failed program was:" >&5
 
3162
sed 's/^/| /' conftest.$ac_ext >&5
 
3163
 
 
3164
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3165
See \`config.log' for more details." >&5
 
3166
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3167
See \`config.log' for more details." >&2;}
 
3168
   { (exit 1); exit 1; }; }
 
3169
fi
 
3170
 
 
3171
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3172
fi
 
3173
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3174
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3175
OBJEXT=$ac_cv_objext
 
3176
ac_objext=$OBJEXT
 
3177
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3178
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
3179
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3181
else
 
3182
  cat >conftest.$ac_ext <<_ACEOF
 
3183
/* confdefs.h.  */
 
3184
_ACEOF
 
3185
cat confdefs.h >>conftest.$ac_ext
 
3186
cat >>conftest.$ac_ext <<_ACEOF
 
3187
/* end confdefs.h.  */
 
3188
 
 
3189
int
 
3190
main ()
 
3191
{
 
3192
#ifndef __GNUC__
 
3193
       choke me
 
3194
#endif
 
3195
 
 
3196
  ;
 
3197
  return 0;
 
3198
}
 
3199
_ACEOF
 
3200
rm -f conftest.$ac_objext
 
3201
if { (ac_try="$ac_compile"
 
3202
case "(($ac_try" in
 
3203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3204
  *) ac_try_echo=$ac_try;;
 
3205
esac
 
3206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3207
  (eval "$ac_compile") 2>conftest.er1
 
3208
  ac_status=$?
 
3209
  grep -v '^ *+' conftest.er1 >conftest.err
 
3210
  rm -f conftest.er1
 
3211
  cat conftest.err >&5
 
3212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3213
  (exit $ac_status); } && {
 
3214
         test -z "$ac_cxx_werror_flag" ||
 
3215
         test ! -s conftest.err
 
3216
       } && test -s conftest.$ac_objext; then
 
3217
  ac_compiler_gnu=yes
 
3218
else
 
3219
  echo "$as_me: failed program was:" >&5
 
3220
sed 's/^/| /' conftest.$ac_ext >&5
 
3221
 
 
3222
        ac_compiler_gnu=no
 
3223
fi
 
3224
 
 
3225
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3226
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3227
 
 
3228
fi
 
3229
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3230
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
3231
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3232
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3233
ac_save_CXXFLAGS=$CXXFLAGS
 
3234
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3235
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
3236
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3238
else
 
3239
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3240
   ac_cxx_werror_flag=yes
 
3241
   ac_cv_prog_cxx_g=no
 
3242
   CXXFLAGS="-g"
 
3243
   cat >conftest.$ac_ext <<_ACEOF
 
3244
/* confdefs.h.  */
 
3245
_ACEOF
 
3246
cat confdefs.h >>conftest.$ac_ext
 
3247
cat >>conftest.$ac_ext <<_ACEOF
 
3248
/* end confdefs.h.  */
 
3249
 
 
3250
int
 
3251
main ()
 
3252
{
 
3253
 
 
3254
  ;
 
3255
  return 0;
 
3256
}
 
3257
_ACEOF
 
3258
rm -f conftest.$ac_objext
 
3259
if { (ac_try="$ac_compile"
 
3260
case "(($ac_try" in
 
3261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3262
  *) ac_try_echo=$ac_try;;
 
3263
esac
 
3264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3265
  (eval "$ac_compile") 2>conftest.er1
 
3266
  ac_status=$?
 
3267
  grep -v '^ *+' conftest.er1 >conftest.err
 
3268
  rm -f conftest.er1
 
3269
  cat conftest.err >&5
 
3270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3271
  (exit $ac_status); } && {
 
3272
         test -z "$ac_cxx_werror_flag" ||
 
3273
         test ! -s conftest.err
 
3274
       } && test -s conftest.$ac_objext; then
 
3275
  ac_cv_prog_cxx_g=yes
 
3276
else
 
3277
  echo "$as_me: failed program was:" >&5
 
3278
sed 's/^/| /' conftest.$ac_ext >&5
 
3279
 
 
3280
        CXXFLAGS=""
 
3281
      cat >conftest.$ac_ext <<_ACEOF
 
3282
/* confdefs.h.  */
 
3283
_ACEOF
 
3284
cat confdefs.h >>conftest.$ac_ext
 
3285
cat >>conftest.$ac_ext <<_ACEOF
 
3286
/* end confdefs.h.  */
 
3287
 
 
3288
int
 
3289
main ()
 
3290
{
 
3291
 
 
3292
  ;
 
3293
  return 0;
 
3294
}
 
3295
_ACEOF
 
3296
rm -f conftest.$ac_objext
 
3297
if { (ac_try="$ac_compile"
 
3298
case "(($ac_try" in
 
3299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3300
  *) ac_try_echo=$ac_try;;
 
3301
esac
 
3302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3303
  (eval "$ac_compile") 2>conftest.er1
 
3304
  ac_status=$?
 
3305
  grep -v '^ *+' conftest.er1 >conftest.err
 
3306
  rm -f conftest.er1
 
3307
  cat conftest.err >&5
 
3308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3309
  (exit $ac_status); } && {
 
3310
         test -z "$ac_cxx_werror_flag" ||
 
3311
         test ! -s conftest.err
 
3312
       } && test -s conftest.$ac_objext; then
 
3313
  :
 
3314
else
 
3315
  echo "$as_me: failed program was:" >&5
 
3316
sed 's/^/| /' conftest.$ac_ext >&5
 
3317
 
 
3318
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3319
         CXXFLAGS="-g"
 
3320
         cat >conftest.$ac_ext <<_ACEOF
 
3321
/* confdefs.h.  */
 
3322
_ACEOF
 
3323
cat confdefs.h >>conftest.$ac_ext
 
3324
cat >>conftest.$ac_ext <<_ACEOF
 
3325
/* end confdefs.h.  */
 
3326
 
 
3327
int
 
3328
main ()
 
3329
{
 
3330
 
 
3331
  ;
 
3332
  return 0;
 
3333
}
 
3334
_ACEOF
 
3335
rm -f conftest.$ac_objext
 
3336
if { (ac_try="$ac_compile"
 
3337
case "(($ac_try" in
 
3338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3339
  *) ac_try_echo=$ac_try;;
 
3340
esac
 
3341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3342
  (eval "$ac_compile") 2>conftest.er1
 
3343
  ac_status=$?
 
3344
  grep -v '^ *+' conftest.er1 >conftest.err
 
3345
  rm -f conftest.er1
 
3346
  cat conftest.err >&5
 
3347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3348
  (exit $ac_status); } && {
 
3349
         test -z "$ac_cxx_werror_flag" ||
 
3350
         test ! -s conftest.err
 
3351
       } && test -s conftest.$ac_objext; then
 
3352
  ac_cv_prog_cxx_g=yes
 
3353
else
 
3354
  echo "$as_me: failed program was:" >&5
 
3355
sed 's/^/| /' conftest.$ac_ext >&5
 
3356
 
 
3357
 
 
3358
fi
 
3359
 
 
3360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3361
fi
 
3362
 
 
3363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3364
fi
 
3365
 
 
3366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3367
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3368
fi
 
3369
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3370
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
3371
if test "$ac_test_CXXFLAGS" = set; then
 
3372
  CXXFLAGS=$ac_save_CXXFLAGS
 
3373
elif test $ac_cv_prog_cxx_g = yes; then
 
3374
  if test "$GXX" = yes; then
 
3375
    CXXFLAGS="-g -O2"
 
3376
  else
 
3377
    CXXFLAGS="-g"
 
3378
  fi
 
3379
else
 
3380
  if test "$GXX" = yes; then
 
3381
    CXXFLAGS="-O2"
 
3382
  else
 
3383
    CXXFLAGS=
 
3384
  fi
 
3385
fi
 
3386
ac_ext=c
 
3387
ac_cpp='$CPP $CPPFLAGS'
 
3388
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3389
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3390
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3391
DEPDIR="${am__leading_dot}deps"
 
3392
 
 
3393
ac_config_commands="$ac_config_commands depfiles"
 
3394
 
 
3395
 
 
3396
am_make=${MAKE-make}
 
3397
cat > confinc << 'END'
 
3398
am__doit:
 
3399
        @echo done
 
3400
.PHONY: am__doit
 
3401
END
 
3402
# If we don't find an include directive, just comment out the code.
 
3403
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3404
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3405
am__include="#"
 
3406
am__quote=
 
3407
_am_result=none
 
3408
# First try GNU make style include.
 
3409
echo "include confinc" > confmf
 
3410
# We grep out `Entering directory' and `Leaving directory'
 
3411
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3412
# In particular we don't look at `^make:' because GNU make might
 
3413
# be invoked under some other name (usually "gmake"), in which
 
3414
# case it prints its new name instead of `make'.
 
3415
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3416
   am__include=include
 
3417
   am__quote=
 
3418
   _am_result=GNU
 
3419
fi
 
3420
# Now try BSD make style include.
 
3421
if test "$am__include" = "#"; then
 
3422
   echo '.include "confinc"' > confmf
 
3423
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3424
      am__include=.include
 
3425
      am__quote="\""
 
3426
      _am_result=BSD
 
3427
   fi
 
3428
fi
 
3429
 
 
3430
 
 
3431
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3432
echo "${ECHO_T}$_am_result" >&6; }
 
3433
rm -f confinc confmf
 
3434
 
 
3435
# Check whether --enable-dependency-tracking was given.
 
3436
if test "${enable_dependency_tracking+set}" = set; then
 
3437
  enableval=$enable_dependency_tracking;
 
3438
fi
 
3439
 
 
3440
if test "x$enable_dependency_tracking" != xno; then
 
3441
  am_depcomp="$ac_aux_dir/depcomp"
 
3442
  AMDEPBACKSLASH='\'
 
3443
fi
 
3444
 if test "x$enable_dependency_tracking" != xno; then
 
3445
  AMDEP_TRUE=
 
3446
  AMDEP_FALSE='#'
 
3447
else
 
3448
  AMDEP_TRUE='#'
 
3449
  AMDEP_FALSE=
 
3450
fi
 
3451
 
 
3452
 
 
3453
 
 
3454
depcc="$CXX"  am_compiler_list=
 
3455
 
 
3456
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3457
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3458
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3460
else
 
3461
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3462
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3463
  # making bogus files that we don't know about and never remove.  For
 
3464
  # instance it was reported that on HP-UX the gcc test will end up
 
3465
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3466
  # in D'.
 
3467
  mkdir conftest.dir
 
3468
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3469
  # using a relative directory.
 
3470
  cp "$am_depcomp" conftest.dir
 
3471
  cd conftest.dir
 
3472
  # We will build objects and dependencies in a subdirectory because
 
3473
  # it helps to detect inapplicable dependency modes.  For instance
 
3474
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3475
  # side effect of compilation, but ICC will put the dependencies in
 
3476
  # the current directory while Tru64 will put them in the object
 
3477
  # directory.
 
3478
  mkdir sub
 
3479
 
 
3480
  am_cv_CXX_dependencies_compiler_type=none
 
3481
  if test "$am_compiler_list" = ""; then
 
3482
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3483
  fi
 
3484
  for depmode in $am_compiler_list; do
 
3485
    # Setup a source with many dependencies, because some compilers
 
3486
    # like to wrap large dependency lists on column 80 (with \), and
 
3487
    # we should not choose a depcomp mode which is confused by this.
 
3488
    #
 
3489
    # We need to recreate these files for each test, as the compiler may
 
3490
    # overwrite some of them when testing with obscure command lines.
 
3491
    # This happens at least with the AIX C compiler.
 
3492
    : > sub/conftest.c
 
3493
    for i in 1 2 3 4 5 6; do
 
3494
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3495
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3496
      # Solaris 8's {/usr,}/bin/sh.
 
3497
      touch sub/conftst$i.h
 
3498
    done
 
3499
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3500
 
 
3501
    case $depmode in
 
3502
    nosideeffect)
 
3503
      # after this tag, mechanisms are not by side-effect, so they'll
 
3504
      # only be used when explicitly requested
 
3505
      if test "x$enable_dependency_tracking" = xyes; then
 
3506
        continue
 
3507
      else
 
3508
        break
 
3509
      fi
 
3510
      ;;
 
3511
    none) break ;;
 
3512
    esac
 
3513
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3514
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3515
    # handle `-M -o', and we need to detect this.
 
3516
    if depmode=$depmode \
 
3517
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3518
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3519
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3520
         >/dev/null 2>conftest.err &&
 
3521
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3522
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3523
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3524
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3525
      # icc doesn't choke on unknown options, it will just issue warnings
 
3526
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3527
      # that says an option was ignored or not supported.
 
3528
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3529
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3530
      # The diagnosis changed in icc 8.0:
 
3531
      #   icc: Command line remark: option '-MP' not supported
 
3532
      if (grep 'ignoring option' conftest.err ||
 
3533
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3534
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3535
        break
 
3536
      fi
 
3537
    fi
 
3538
  done
 
3539
 
 
3540
  cd ..
 
3541
  rm -rf conftest.dir
 
3542
else
 
3543
  am_cv_CXX_dependencies_compiler_type=none
 
3544
fi
 
3545
 
 
3546
fi
 
3547
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3548
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3549
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3550
 
 
3551
 if
 
3552
  test "x$enable_dependency_tracking" != xno \
 
3553
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3554
  am__fastdepCXX_TRUE=
 
3555
  am__fastdepCXX_FALSE='#'
 
3556
else
 
3557
  am__fastdepCXX_TRUE='#'
 
3558
  am__fastdepCXX_FALSE=
 
3559
fi
 
3560
 
 
3561
 
 
3562
ac_ext=c
 
3563
ac_cpp='$CPP $CPPFLAGS'
 
3564
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3565
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3566
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3567
if test -n "$ac_tool_prefix"; then
 
3568
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3569
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3570
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3571
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3572
if test "${ac_cv_prog_CC+set}" = set; then
 
3573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3574
else
 
3575
  if test -n "$CC"; then
 
3576
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3577
else
 
3578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3579
for as_dir in $PATH
 
3580
do
 
3581
  IFS=$as_save_IFS
 
3582
  test -z "$as_dir" && as_dir=.
 
3583
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3584
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3585
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3586
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3587
    break 2
 
3588
  fi
 
3589
done
 
3590
done
 
3591
IFS=$as_save_IFS
 
3592
 
 
3593
fi
 
3594
fi
 
3595
CC=$ac_cv_prog_CC
 
3596
if test -n "$CC"; then
 
3597
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3598
echo "${ECHO_T}$CC" >&6; }
 
3599
else
 
3600
  { echo "$as_me:$LINENO: result: no" >&5
 
3601
echo "${ECHO_T}no" >&6; }
 
3602
fi
 
3603
 
 
3604
 
 
3605
fi
 
3606
if test -z "$ac_cv_prog_CC"; then
 
3607
  ac_ct_CC=$CC
 
3608
  # Extract the first word of "gcc", so it can be a program name with args.
 
3609
set dummy gcc; ac_word=$2
 
3610
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3611
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3612
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3613
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3614
else
 
3615
  if test -n "$ac_ct_CC"; then
 
3616
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3617
else
 
3618
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3619
for as_dir in $PATH
 
3620
do
 
3621
  IFS=$as_save_IFS
 
3622
  test -z "$as_dir" && as_dir=.
 
3623
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3624
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3625
    ac_cv_prog_ac_ct_CC="gcc"
 
3626
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3627
    break 2
 
3628
  fi
 
3629
done
 
3630
done
 
3631
IFS=$as_save_IFS
 
3632
 
 
3633
fi
 
3634
fi
 
3635
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3636
if test -n "$ac_ct_CC"; then
 
3637
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3638
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3639
else
 
3640
  { echo "$as_me:$LINENO: result: no" >&5
 
3641
echo "${ECHO_T}no" >&6; }
 
3642
fi
 
3643
 
 
3644
  if test "x$ac_ct_CC" = x; then
 
3645
    CC=""
 
3646
  else
 
3647
    case $cross_compiling:$ac_tool_warned in
 
3648
yes:)
 
3649
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3650
whose name does not start with the host triplet.  If you think this
 
3651
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3652
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3653
whose name does not start with the host triplet.  If you think this
 
3654
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3655
ac_tool_warned=yes ;;
 
3656
esac
 
3657
    CC=$ac_ct_CC
 
3658
  fi
 
3659
else
 
3660
  CC="$ac_cv_prog_CC"
 
3661
fi
 
3662
 
 
3663
if test -z "$CC"; then
 
3664
          if test -n "$ac_tool_prefix"; then
 
3665
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3666
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3667
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3668
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3669
if test "${ac_cv_prog_CC+set}" = set; then
 
3670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3671
else
 
3672
  if test -n "$CC"; then
 
3673
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3674
else
 
3675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3676
for as_dir in $PATH
 
3677
do
 
3678
  IFS=$as_save_IFS
 
3679
  test -z "$as_dir" && as_dir=.
 
3680
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3682
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3683
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3684
    break 2
 
3685
  fi
 
3686
done
 
3687
done
 
3688
IFS=$as_save_IFS
 
3689
 
 
3690
fi
 
3691
fi
 
3692
CC=$ac_cv_prog_CC
 
3693
if test -n "$CC"; then
 
3694
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3695
echo "${ECHO_T}$CC" >&6; }
 
3696
else
 
3697
  { echo "$as_me:$LINENO: result: no" >&5
 
3698
echo "${ECHO_T}no" >&6; }
 
3699
fi
 
3700
 
 
3701
 
 
3702
  fi
 
3703
fi
 
3704
if test -z "$CC"; then
 
3705
  # Extract the first word of "cc", so it can be a program name with args.
 
3706
set dummy cc; ac_word=$2
 
3707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3709
if test "${ac_cv_prog_CC+set}" = set; then
 
3710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3711
else
 
3712
  if test -n "$CC"; then
 
3713
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3714
else
 
3715
  ac_prog_rejected=no
 
3716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3717
for as_dir in $PATH
 
3718
do
 
3719
  IFS=$as_save_IFS
 
3720
  test -z "$as_dir" && as_dir=.
 
3721
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3722
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3723
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3724
       ac_prog_rejected=yes
 
3725
       continue
 
3726
     fi
 
3727
    ac_cv_prog_CC="cc"
 
3728
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3729
    break 2
 
3730
  fi
 
3731
done
 
3732
done
 
3733
IFS=$as_save_IFS
 
3734
 
 
3735
if test $ac_prog_rejected = yes; then
 
3736
  # We found a bogon in the path, so make sure we never use it.
 
3737
  set dummy $ac_cv_prog_CC
 
3738
  shift
 
3739
  if test $# != 0; then
 
3740
    # We chose a different compiler from the bogus one.
 
3741
    # However, it has the same basename, so the bogon will be chosen
 
3742
    # first if we set CC to just the basename; use the full file name.
 
3743
    shift
 
3744
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3745
  fi
 
3746
fi
 
3747
fi
 
3748
fi
 
3749
CC=$ac_cv_prog_CC
 
3750
if test -n "$CC"; then
 
3751
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3752
echo "${ECHO_T}$CC" >&6; }
 
3753
else
 
3754
  { echo "$as_me:$LINENO: result: no" >&5
 
3755
echo "${ECHO_T}no" >&6; }
 
3756
fi
 
3757
 
 
3758
 
 
3759
fi
 
3760
if test -z "$CC"; then
 
3761
  if test -n "$ac_tool_prefix"; then
 
3762
  for ac_prog in cl.exe
 
3763
  do
 
3764
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3765
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3766
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3768
if test "${ac_cv_prog_CC+set}" = set; then
 
3769
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3770
else
 
3771
  if test -n "$CC"; then
 
3772
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3773
else
 
3774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3775
for as_dir in $PATH
 
3776
do
 
3777
  IFS=$as_save_IFS
 
3778
  test -z "$as_dir" && as_dir=.
 
3779
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3780
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3781
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3782
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3783
    break 2
 
3784
  fi
 
3785
done
 
3786
done
 
3787
IFS=$as_save_IFS
 
3788
 
 
3789
fi
 
3790
fi
 
3791
CC=$ac_cv_prog_CC
 
3792
if test -n "$CC"; then
 
3793
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3794
echo "${ECHO_T}$CC" >&6; }
 
3795
else
 
3796
  { echo "$as_me:$LINENO: result: no" >&5
 
3797
echo "${ECHO_T}no" >&6; }
 
3798
fi
 
3799
 
 
3800
 
 
3801
    test -n "$CC" && break
 
3802
  done
 
3803
fi
 
3804
if test -z "$CC"; then
 
3805
  ac_ct_CC=$CC
 
3806
  for ac_prog in cl.exe
 
3807
do
 
3808
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3809
set dummy $ac_prog; ac_word=$2
 
3810
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3811
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3812
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3814
else
 
3815
  if test -n "$ac_ct_CC"; then
 
3816
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3817
else
 
3818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3819
for as_dir in $PATH
 
3820
do
 
3821
  IFS=$as_save_IFS
 
3822
  test -z "$as_dir" && as_dir=.
 
3823
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3824
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3825
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3826
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3827
    break 2
 
3828
  fi
 
3829
done
 
3830
done
 
3831
IFS=$as_save_IFS
 
3832
 
 
3833
fi
 
3834
fi
 
3835
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3836
if test -n "$ac_ct_CC"; then
 
3837
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3838
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3839
else
 
3840
  { echo "$as_me:$LINENO: result: no" >&5
 
3841
echo "${ECHO_T}no" >&6; }
 
3842
fi
 
3843
 
 
3844
 
 
3845
  test -n "$ac_ct_CC" && break
 
3846
done
 
3847
 
 
3848
  if test "x$ac_ct_CC" = x; then
 
3849
    CC=""
 
3850
  else
 
3851
    case $cross_compiling:$ac_tool_warned in
 
3852
yes:)
 
3853
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3854
whose name does not start with the host triplet.  If you think this
 
3855
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3856
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3857
whose name does not start with the host triplet.  If you think this
 
3858
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3859
ac_tool_warned=yes ;;
 
3860
esac
 
3861
    CC=$ac_ct_CC
 
3862
  fi
 
3863
fi
 
3864
 
 
3865
fi
 
3866
 
 
3867
 
 
3868
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3869
See \`config.log' for more details." >&5
 
3870
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3871
See \`config.log' for more details." >&2;}
 
3872
   { (exit 1); exit 1; }; }
 
3873
 
 
3874
# Provide some information about the compiler.
 
3875
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3876
ac_compiler=`set X $ac_compile; echo $2`
 
3877
{ (ac_try="$ac_compiler --version >&5"
 
3878
case "(($ac_try" in
 
3879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3880
  *) ac_try_echo=$ac_try;;
 
3881
esac
 
3882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3883
  (eval "$ac_compiler --version >&5") 2>&5
 
3884
  ac_status=$?
 
3885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3886
  (exit $ac_status); }
 
3887
{ (ac_try="$ac_compiler -v >&5"
 
3888
case "(($ac_try" in
 
3889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3890
  *) ac_try_echo=$ac_try;;
 
3891
esac
 
3892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3893
  (eval "$ac_compiler -v >&5") 2>&5
 
3894
  ac_status=$?
 
3895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3896
  (exit $ac_status); }
 
3897
{ (ac_try="$ac_compiler -V >&5"
 
3898
case "(($ac_try" in
 
3899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3900
  *) ac_try_echo=$ac_try;;
 
3901
esac
 
3902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3903
  (eval "$ac_compiler -V >&5") 2>&5
 
3904
  ac_status=$?
 
3905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3906
  (exit $ac_status); }
 
3907
 
 
3908
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3909
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3910
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3912
else
 
3913
  cat >conftest.$ac_ext <<_ACEOF
 
3914
/* confdefs.h.  */
 
3915
_ACEOF
 
3916
cat confdefs.h >>conftest.$ac_ext
 
3917
cat >>conftest.$ac_ext <<_ACEOF
 
3918
/* end confdefs.h.  */
 
3919
 
 
3920
int
 
3921
main ()
 
3922
{
 
3923
#ifndef __GNUC__
 
3924
       choke me
 
3925
#endif
 
3926
 
 
3927
  ;
 
3928
  return 0;
 
3929
}
 
3930
_ACEOF
 
3931
rm -f conftest.$ac_objext
 
3932
if { (ac_try="$ac_compile"
 
3933
case "(($ac_try" in
 
3934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3935
  *) ac_try_echo=$ac_try;;
 
3936
esac
 
3937
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3938
  (eval "$ac_compile") 2>conftest.er1
 
3939
  ac_status=$?
 
3940
  grep -v '^ *+' conftest.er1 >conftest.err
 
3941
  rm -f conftest.er1
 
3942
  cat conftest.err >&5
 
3943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3944
  (exit $ac_status); } && {
 
3945
         test -z "$ac_c_werror_flag" ||
 
3946
         test ! -s conftest.err
 
3947
       } && test -s conftest.$ac_objext; then
 
3948
  ac_compiler_gnu=yes
 
3949
else
 
3950
  echo "$as_me: failed program was:" >&5
 
3951
sed 's/^/| /' conftest.$ac_ext >&5
 
3952
 
 
3953
        ac_compiler_gnu=no
 
3954
fi
 
3955
 
 
3956
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3957
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3958
 
 
3959
fi
 
3960
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3961
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3962
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3963
ac_test_CFLAGS=${CFLAGS+set}
 
3964
ac_save_CFLAGS=$CFLAGS
 
3965
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3966
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3967
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3969
else
 
3970
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3971
   ac_c_werror_flag=yes
 
3972
   ac_cv_prog_cc_g=no
 
3973
   CFLAGS="-g"
 
3974
   cat >conftest.$ac_ext <<_ACEOF
 
3975
/* confdefs.h.  */
 
3976
_ACEOF
 
3977
cat confdefs.h >>conftest.$ac_ext
 
3978
cat >>conftest.$ac_ext <<_ACEOF
 
3979
/* end confdefs.h.  */
 
3980
 
 
3981
int
 
3982
main ()
 
3983
{
 
3984
 
 
3985
  ;
 
3986
  return 0;
 
3987
}
 
3988
_ACEOF
 
3989
rm -f conftest.$ac_objext
 
3990
if { (ac_try="$ac_compile"
 
3991
case "(($ac_try" in
 
3992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3993
  *) ac_try_echo=$ac_try;;
 
3994
esac
 
3995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3996
  (eval "$ac_compile") 2>conftest.er1
 
3997
  ac_status=$?
 
3998
  grep -v '^ *+' conftest.er1 >conftest.err
 
3999
  rm -f conftest.er1
 
4000
  cat conftest.err >&5
 
4001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4002
  (exit $ac_status); } && {
 
4003
         test -z "$ac_c_werror_flag" ||
 
4004
         test ! -s conftest.err
 
4005
       } && test -s conftest.$ac_objext; then
 
4006
  ac_cv_prog_cc_g=yes
 
4007
else
 
4008
  echo "$as_me: failed program was:" >&5
 
4009
sed 's/^/| /' conftest.$ac_ext >&5
 
4010
 
 
4011
        CFLAGS=""
 
4012
      cat >conftest.$ac_ext <<_ACEOF
 
4013
/* confdefs.h.  */
 
4014
_ACEOF
 
4015
cat confdefs.h >>conftest.$ac_ext
 
4016
cat >>conftest.$ac_ext <<_ACEOF
 
4017
/* end confdefs.h.  */
 
4018
 
 
4019
int
 
4020
main ()
 
4021
{
 
4022
 
 
4023
  ;
 
4024
  return 0;
 
4025
}
 
4026
_ACEOF
 
4027
rm -f conftest.$ac_objext
 
4028
if { (ac_try="$ac_compile"
 
4029
case "(($ac_try" in
 
4030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4031
  *) ac_try_echo=$ac_try;;
 
4032
esac
 
4033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4034
  (eval "$ac_compile") 2>conftest.er1
 
4035
  ac_status=$?
 
4036
  grep -v '^ *+' conftest.er1 >conftest.err
 
4037
  rm -f conftest.er1
 
4038
  cat conftest.err >&5
 
4039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4040
  (exit $ac_status); } && {
 
4041
         test -z "$ac_c_werror_flag" ||
 
4042
         test ! -s conftest.err
 
4043
       } && test -s conftest.$ac_objext; then
 
4044
  :
 
4045
else
 
4046
  echo "$as_me: failed program was:" >&5
 
4047
sed 's/^/| /' conftest.$ac_ext >&5
 
4048
 
 
4049
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4050
         CFLAGS="-g"
 
4051
         cat >conftest.$ac_ext <<_ACEOF
 
4052
/* confdefs.h.  */
 
4053
_ACEOF
 
4054
cat confdefs.h >>conftest.$ac_ext
 
4055
cat >>conftest.$ac_ext <<_ACEOF
 
4056
/* end confdefs.h.  */
 
4057
 
 
4058
int
 
4059
main ()
 
4060
{
 
4061
 
 
4062
  ;
 
4063
  return 0;
 
4064
}
 
4065
_ACEOF
 
4066
rm -f conftest.$ac_objext
 
4067
if { (ac_try="$ac_compile"
 
4068
case "(($ac_try" in
 
4069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4070
  *) ac_try_echo=$ac_try;;
 
4071
esac
 
4072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4073
  (eval "$ac_compile") 2>conftest.er1
 
4074
  ac_status=$?
 
4075
  grep -v '^ *+' conftest.er1 >conftest.err
 
4076
  rm -f conftest.er1
 
4077
  cat conftest.err >&5
 
4078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4079
  (exit $ac_status); } && {
 
4080
         test -z "$ac_c_werror_flag" ||
 
4081
         test ! -s conftest.err
 
4082
       } && test -s conftest.$ac_objext; then
 
4083
  ac_cv_prog_cc_g=yes
 
4084
else
 
4085
  echo "$as_me: failed program was:" >&5
 
4086
sed 's/^/| /' conftest.$ac_ext >&5
 
4087
 
 
4088
 
 
4089
fi
 
4090
 
 
4091
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4092
fi
 
4093
 
 
4094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4095
fi
 
4096
 
 
4097
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4098
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4099
fi
 
4100
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4101
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
4102
if test "$ac_test_CFLAGS" = set; then
 
4103
  CFLAGS=$ac_save_CFLAGS
 
4104
elif test $ac_cv_prog_cc_g = yes; then
 
4105
  if test "$GCC" = yes; then
 
4106
    CFLAGS="-g -O2"
 
4107
  else
 
4108
    CFLAGS="-g"
 
4109
  fi
 
4110
else
 
4111
  if test "$GCC" = yes; then
 
4112
    CFLAGS="-O2"
 
4113
  else
 
4114
    CFLAGS=
 
4115
  fi
 
4116
fi
 
4117
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
4118
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
4119
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
4120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4121
else
 
4122
  ac_cv_prog_cc_c89=no
 
4123
ac_save_CC=$CC
 
4124
cat >conftest.$ac_ext <<_ACEOF
 
4125
/* confdefs.h.  */
 
4126
_ACEOF
 
4127
cat confdefs.h >>conftest.$ac_ext
 
4128
cat >>conftest.$ac_ext <<_ACEOF
 
4129
/* end confdefs.h.  */
 
4130
#include <stdarg.h>
 
4131
#include <stdio.h>
 
4132
#include <sys/types.h>
 
4133
#include <sys/stat.h>
 
4134
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4135
struct buf { int x; };
 
4136
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4137
static char *e (p, i)
 
4138
     char **p;
 
4139
     int i;
 
4140
{
 
4141
  return p[i];
 
4142
}
 
4143
static char *f (char * (*g) (char **, int), char **p, ...)
 
4144
{
 
4145
  char *s;
 
4146
  va_list v;
 
4147
  va_start (v,p);
 
4148
  s = g (p, va_arg (v,int));
 
4149
  va_end (v);
 
4150
  return s;
 
4151
}
 
4152
 
 
4153
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4154
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4155
   These don't provoke an error unfortunately, instead are silently treated
 
4156
   as 'x'.  The following induces an error, until -std is added to get
 
4157
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4158
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4159
   that's true only with -std.  */
 
4160
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4161
 
 
4162
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4163
   inside strings and character constants.  */
 
4164
#define FOO(x) 'x'
 
4165
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4166
 
 
4167
int test (int i, double x);
 
4168
struct s1 {int (*f) (int a);};
 
4169
struct s2 {int (*f) (double a);};
 
4170
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4171
int argc;
 
4172
char **argv;
 
4173
int
 
4174
main ()
 
4175
{
 
4176
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4177
  ;
 
4178
  return 0;
 
4179
}
 
4180
_ACEOF
 
4181
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4182
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4183
do
 
4184
  CC="$ac_save_CC $ac_arg"
 
4185
  rm -f conftest.$ac_objext
 
4186
if { (ac_try="$ac_compile"
 
4187
case "(($ac_try" in
 
4188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4189
  *) ac_try_echo=$ac_try;;
 
4190
esac
 
4191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4192
  (eval "$ac_compile") 2>conftest.er1
 
4193
  ac_status=$?
 
4194
  grep -v '^ *+' conftest.er1 >conftest.err
 
4195
  rm -f conftest.er1
 
4196
  cat conftest.err >&5
 
4197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4198
  (exit $ac_status); } && {
 
4199
         test -z "$ac_c_werror_flag" ||
 
4200
         test ! -s conftest.err
 
4201
       } && test -s conftest.$ac_objext; then
 
4202
  ac_cv_prog_cc_c89=$ac_arg
 
4203
else
 
4204
  echo "$as_me: failed program was:" >&5
 
4205
sed 's/^/| /' conftest.$ac_ext >&5
 
4206
 
 
4207
 
 
4208
fi
 
4209
 
 
4210
rm -f core conftest.err conftest.$ac_objext
 
4211
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4212
done
 
4213
rm -f conftest.$ac_ext
 
4214
CC=$ac_save_CC
 
4215
 
 
4216
fi
 
4217
# AC_CACHE_VAL
 
4218
case "x$ac_cv_prog_cc_c89" in
 
4219
  x)
 
4220
    { echo "$as_me:$LINENO: result: none needed" >&5
 
4221
echo "${ECHO_T}none needed" >&6; } ;;
 
4222
  xno)
 
4223
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
4224
echo "${ECHO_T}unsupported" >&6; } ;;
 
4225
  *)
 
4226
    CC="$CC $ac_cv_prog_cc_c89"
 
4227
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4228
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
4229
esac
 
4230
 
 
4231
 
 
4232
ac_ext=c
 
4233
ac_cpp='$CPP $CPPFLAGS'
 
4234
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4235
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4236
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4237
 
 
4238
depcc="$CC"   am_compiler_list=
 
4239
 
 
4240
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4241
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
4242
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4244
else
 
4245
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4246
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4247
  # making bogus files that we don't know about and never remove.  For
 
4248
  # instance it was reported that on HP-UX the gcc test will end up
 
4249
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4250
  # in D'.
 
4251
  mkdir conftest.dir
 
4252
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4253
  # using a relative directory.
 
4254
  cp "$am_depcomp" conftest.dir
 
4255
  cd conftest.dir
 
4256
  # We will build objects and dependencies in a subdirectory because
 
4257
  # it helps to detect inapplicable dependency modes.  For instance
 
4258
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4259
  # side effect of compilation, but ICC will put the dependencies in
 
4260
  # the current directory while Tru64 will put them in the object
 
4261
  # directory.
 
4262
  mkdir sub
 
4263
 
 
4264
  am_cv_CC_dependencies_compiler_type=none
 
4265
  if test "$am_compiler_list" = ""; then
 
4266
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4267
  fi
 
4268
  for depmode in $am_compiler_list; do
 
4269
    # Setup a source with many dependencies, because some compilers
 
4270
    # like to wrap large dependency lists on column 80 (with \), and
 
4271
    # we should not choose a depcomp mode which is confused by this.
 
4272
    #
 
4273
    # We need to recreate these files for each test, as the compiler may
 
4274
    # overwrite some of them when testing with obscure command lines.
 
4275
    # This happens at least with the AIX C compiler.
 
4276
    : > sub/conftest.c
 
4277
    for i in 1 2 3 4 5 6; do
 
4278
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4279
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4280
      # Solaris 8's {/usr,}/bin/sh.
 
4281
      touch sub/conftst$i.h
 
4282
    done
 
4283
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4284
 
 
4285
    case $depmode in
 
4286
    nosideeffect)
 
4287
      # after this tag, mechanisms are not by side-effect, so they'll
 
4288
      # only be used when explicitly requested
 
4289
      if test "x$enable_dependency_tracking" = xyes; then
 
4290
        continue
 
4291
      else
 
4292
        break
 
4293
      fi
 
4294
      ;;
 
4295
    none) break ;;
 
4296
    esac
 
4297
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4298
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4299
    # handle `-M -o', and we need to detect this.
 
4300
    if depmode=$depmode \
 
4301
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4302
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4303
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4304
         >/dev/null 2>conftest.err &&
 
4305
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4306
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4307
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4308
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4309
      # icc doesn't choke on unknown options, it will just issue warnings
 
4310
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4311
      # that says an option was ignored or not supported.
 
4312
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4313
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4314
      # The diagnosis changed in icc 8.0:
 
4315
      #   icc: Command line remark: option '-MP' not supported
 
4316
      if (grep 'ignoring option' conftest.err ||
 
4317
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4318
        am_cv_CC_dependencies_compiler_type=$depmode
 
4319
        break
 
4320
      fi
 
4321
    fi
 
4322
  done
 
4323
 
 
4324
  cd ..
 
4325
  rm -rf conftest.dir
 
4326
else
 
4327
  am_cv_CC_dependencies_compiler_type=none
 
4328
fi
 
4329
 
 
4330
fi
 
4331
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4332
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
4333
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4334
 
 
4335
 if
 
4336
  test "x$enable_dependency_tracking" != xno \
 
4337
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4338
  am__fastdepCC_TRUE=
 
4339
  am__fastdepCC_FALSE='#'
 
4340
else
 
4341
  am__fastdepCC_TRUE='#'
 
4342
  am__fastdepCC_FALSE=
 
4343
fi
 
4344
 
 
4345
 
 
4346
 
 
4347
if test -n "$ac_tool_prefix"; then
 
4348
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4349
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4350
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4351
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4352
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4354
else
 
4355
  if test -n "$RANLIB"; then
 
4356
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4357
else
 
4358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4359
for as_dir in $PATH
 
4360
do
 
4361
  IFS=$as_save_IFS
 
4362
  test -z "$as_dir" && as_dir=.
 
4363
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4364
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4365
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4366
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4367
    break 2
 
4368
  fi
 
4369
done
 
4370
done
 
4371
IFS=$as_save_IFS
 
4372
 
 
4373
fi
 
4374
fi
 
4375
RANLIB=$ac_cv_prog_RANLIB
 
4376
if test -n "$RANLIB"; then
 
4377
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4378
echo "${ECHO_T}$RANLIB" >&6; }
 
4379
else
 
4380
  { echo "$as_me:$LINENO: result: no" >&5
 
4381
echo "${ECHO_T}no" >&6; }
 
4382
fi
 
4383
 
 
4384
 
 
4385
fi
 
4386
if test -z "$ac_cv_prog_RANLIB"; then
 
4387
  ac_ct_RANLIB=$RANLIB
 
4388
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4389
set dummy ranlib; ac_word=$2
 
4390
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4391
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4392
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4394
else
 
4395
  if test -n "$ac_ct_RANLIB"; then
 
4396
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4397
else
 
4398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4399
for as_dir in $PATH
 
4400
do
 
4401
  IFS=$as_save_IFS
 
4402
  test -z "$as_dir" && as_dir=.
 
4403
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4404
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4405
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4406
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4407
    break 2
 
4408
  fi
 
4409
done
 
4410
done
 
4411
IFS=$as_save_IFS
 
4412
 
 
4413
fi
 
4414
fi
 
4415
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4416
if test -n "$ac_ct_RANLIB"; then
 
4417
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4418
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
4419
else
 
4420
  { echo "$as_me:$LINENO: result: no" >&5
 
4421
echo "${ECHO_T}no" >&6; }
 
4422
fi
 
4423
 
 
4424
  if test "x$ac_ct_RANLIB" = x; then
 
4425
    RANLIB=":"
 
4426
  else
 
4427
    case $cross_compiling:$ac_tool_warned in
 
4428
yes:)
 
4429
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4430
whose name does not start with the host triplet.  If you think this
 
4431
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4432
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4433
whose name does not start with the host triplet.  If you think this
 
4434
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4435
ac_tool_warned=yes ;;
 
4436
esac
 
4437
    RANLIB=$ac_ct_RANLIB
 
4438
  fi
 
4439
else
 
4440
  RANLIB="$ac_cv_prog_RANLIB"
 
4441
fi
 
4442
 
 
4443
 
 
4444
cat >>confdefs.h <<\_ACEOF
 
4445
#define _GNU_SOURCE 1
 
4446
_ACEOF
 
4447
 
 
4448
 
 
4449
 
 
4450
ac_ext=c
 
4451
ac_cpp='$CPP $CPPFLAGS'
 
4452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4455
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4456
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4457
# On Suns, sometimes $CPP names a directory.
 
4458
if test -n "$CPP" && test -d "$CPP"; then
 
4459
  CPP=
 
4460
fi
 
4461
if test -z "$CPP"; then
 
4462
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4464
else
 
4465
      # Double quotes because CPP needs to be expanded
 
4466
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4467
    do
 
4468
      ac_preproc_ok=false
 
4469
for ac_c_preproc_warn_flag in '' yes
 
4470
do
 
4471
  # Use a header file that comes with gcc, so configuring glibc
 
4472
  # with a fresh cross-compiler works.
 
4473
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4474
  # <limits.h> exists even on freestanding compilers.
 
4475
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4476
  # not just through cpp. "Syntax error" is here to catch this case.
 
4477
  cat >conftest.$ac_ext <<_ACEOF
 
4478
/* confdefs.h.  */
 
4479
_ACEOF
 
4480
cat confdefs.h >>conftest.$ac_ext
 
4481
cat >>conftest.$ac_ext <<_ACEOF
 
4482
/* end confdefs.h.  */
 
4483
#ifdef __STDC__
 
4484
# include <limits.h>
 
4485
#else
 
4486
# include <assert.h>
 
4487
#endif
 
4488
                     Syntax error
 
4489
_ACEOF
 
4490
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4491
case "(($ac_try" in
 
4492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4493
  *) ac_try_echo=$ac_try;;
 
4494
esac
 
4495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4496
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4497
  ac_status=$?
 
4498
  grep -v '^ *+' conftest.er1 >conftest.err
 
4499
  rm -f conftest.er1
 
4500
  cat conftest.err >&5
 
4501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4502
  (exit $ac_status); } >/dev/null && {
 
4503
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4504
         test ! -s conftest.err
 
4505
       }; then
 
4506
  :
 
4507
else
 
4508
  echo "$as_me: failed program was:" >&5
 
4509
sed 's/^/| /' conftest.$ac_ext >&5
 
4510
 
 
4511
  # Broken: fails on valid input.
 
4512
continue
 
4513
fi
 
4514
 
 
4515
rm -f conftest.err conftest.$ac_ext
 
4516
 
 
4517
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4518
  # can be detected and how.
 
4519
  cat >conftest.$ac_ext <<_ACEOF
 
4520
/* confdefs.h.  */
 
4521
_ACEOF
 
4522
cat confdefs.h >>conftest.$ac_ext
 
4523
cat >>conftest.$ac_ext <<_ACEOF
 
4524
/* end confdefs.h.  */
 
4525
#include <ac_nonexistent.h>
 
4526
_ACEOF
 
4527
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4528
case "(($ac_try" in
 
4529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4530
  *) ac_try_echo=$ac_try;;
 
4531
esac
 
4532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4533
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4534
  ac_status=$?
 
4535
  grep -v '^ *+' conftest.er1 >conftest.err
 
4536
  rm -f conftest.er1
 
4537
  cat conftest.err >&5
 
4538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4539
  (exit $ac_status); } >/dev/null && {
 
4540
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4541
         test ! -s conftest.err
 
4542
       }; then
 
4543
  # Broken: success on invalid input.
 
4544
continue
 
4545
else
 
4546
  echo "$as_me: failed program was:" >&5
 
4547
sed 's/^/| /' conftest.$ac_ext >&5
 
4548
 
 
4549
  # Passes both tests.
 
4550
ac_preproc_ok=:
 
4551
break
 
4552
fi
 
4553
 
 
4554
rm -f conftest.err conftest.$ac_ext
 
4555
 
 
4556
done
 
4557
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4558
rm -f conftest.err conftest.$ac_ext
 
4559
if $ac_preproc_ok; then
 
4560
  break
 
4561
fi
 
4562
 
 
4563
    done
 
4564
    ac_cv_prog_CPP=$CPP
 
4565
 
 
4566
fi
 
4567
  CPP=$ac_cv_prog_CPP
 
4568
else
 
4569
  ac_cv_prog_CPP=$CPP
 
4570
fi
 
4571
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4572
echo "${ECHO_T}$CPP" >&6; }
 
4573
ac_preproc_ok=false
 
4574
for ac_c_preproc_warn_flag in '' yes
 
4575
do
 
4576
  # Use a header file that comes with gcc, so configuring glibc
 
4577
  # with a fresh cross-compiler works.
 
4578
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4579
  # <limits.h> exists even on freestanding compilers.
 
4580
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4581
  # not just through cpp. "Syntax error" is here to catch this case.
 
4582
  cat >conftest.$ac_ext <<_ACEOF
 
4583
/* confdefs.h.  */
 
4584
_ACEOF
 
4585
cat confdefs.h >>conftest.$ac_ext
 
4586
cat >>conftest.$ac_ext <<_ACEOF
 
4587
/* end confdefs.h.  */
 
4588
#ifdef __STDC__
 
4589
# include <limits.h>
 
4590
#else
 
4591
# include <assert.h>
 
4592
#endif
 
4593
                     Syntax error
 
4594
_ACEOF
 
4595
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4596
case "(($ac_try" in
 
4597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4598
  *) ac_try_echo=$ac_try;;
 
4599
esac
 
4600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4601
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4602
  ac_status=$?
 
4603
  grep -v '^ *+' conftest.er1 >conftest.err
 
4604
  rm -f conftest.er1
 
4605
  cat conftest.err >&5
 
4606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4607
  (exit $ac_status); } >/dev/null && {
 
4608
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4609
         test ! -s conftest.err
 
4610
       }; then
 
4611
  :
 
4612
else
 
4613
  echo "$as_me: failed program was:" >&5
 
4614
sed 's/^/| /' conftest.$ac_ext >&5
 
4615
 
 
4616
  # Broken: fails on valid input.
 
4617
continue
 
4618
fi
 
4619
 
 
4620
rm -f conftest.err conftest.$ac_ext
 
4621
 
 
4622
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4623
  # can be detected and how.
 
4624
  cat >conftest.$ac_ext <<_ACEOF
 
4625
/* confdefs.h.  */
 
4626
_ACEOF
 
4627
cat confdefs.h >>conftest.$ac_ext
 
4628
cat >>conftest.$ac_ext <<_ACEOF
 
4629
/* end confdefs.h.  */
 
4630
#include <ac_nonexistent.h>
 
4631
_ACEOF
 
4632
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4633
case "(($ac_try" in
 
4634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4635
  *) ac_try_echo=$ac_try;;
 
4636
esac
 
4637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4638
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4639
  ac_status=$?
 
4640
  grep -v '^ *+' conftest.er1 >conftest.err
 
4641
  rm -f conftest.er1
 
4642
  cat conftest.err >&5
 
4643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4644
  (exit $ac_status); } >/dev/null && {
 
4645
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4646
         test ! -s conftest.err
 
4647
       }; then
 
4648
  # Broken: success on invalid input.
 
4649
continue
 
4650
else
 
4651
  echo "$as_me: failed program was:" >&5
 
4652
sed 's/^/| /' conftest.$ac_ext >&5
 
4653
 
 
4654
  # Passes both tests.
 
4655
ac_preproc_ok=:
 
4656
break
 
4657
fi
 
4658
 
 
4659
rm -f conftest.err conftest.$ac_ext
 
4660
 
 
4661
done
 
4662
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4663
rm -f conftest.err conftest.$ac_ext
 
4664
if $ac_preproc_ok; then
 
4665
  :
 
4666
else
 
4667
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4668
See \`config.log' for more details." >&5
 
4669
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4670
See \`config.log' for more details." >&2;}
 
4671
   { (exit 1); exit 1; }; }
 
4672
fi
 
4673
 
 
4674
ac_ext=c
 
4675
ac_cpp='$CPP $CPPFLAGS'
 
4676
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4677
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4678
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4679
 
 
4680
 
 
4681
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4682
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4683
if test "${ac_cv_path_GREP+set}" = set; then
 
4684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4685
else
 
4686
  # Extract the first word of "grep ggrep" to use in msg output
 
4687
if test -z "$GREP"; then
 
4688
set dummy grep ggrep; ac_prog_name=$2
 
4689
if test "${ac_cv_path_GREP+set}" = set; then
 
4690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4691
else
 
4692
  ac_path_GREP_found=false
 
4693
# Loop through the user's path and test for each of PROGNAME-LIST
 
4694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4695
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4696
do
 
4697
  IFS=$as_save_IFS
 
4698
  test -z "$as_dir" && as_dir=.
 
4699
  for ac_prog in grep ggrep; do
 
4700
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4701
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4702
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4703
    # Check for GNU ac_path_GREP and select it if it is found.
 
4704
  # Check for GNU $ac_path_GREP
 
4705
case `"$ac_path_GREP" --version 2>&1` in
 
4706
*GNU*)
 
4707
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4708
*)
 
4709
  ac_count=0
 
4710
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4711
  while :
 
4712
  do
 
4713
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4714
    mv "conftest.tmp" "conftest.in"
 
4715
    cp "conftest.in" "conftest.nl"
 
4716
    echo 'GREP' >> "conftest.nl"
 
4717
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4718
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4719
    ac_count=`expr $ac_count + 1`
 
4720
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4721
      # Best one so far, save it but keep looking for a better one
 
4722
      ac_cv_path_GREP="$ac_path_GREP"
 
4723
      ac_path_GREP_max=$ac_count
 
4724
    fi
 
4725
    # 10*(2^10) chars as input seems more than enough
 
4726
    test $ac_count -gt 10 && break
 
4727
  done
 
4728
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4729
esac
 
4730
 
 
4731
 
 
4732
    $ac_path_GREP_found && break 3
 
4733
  done
 
4734
done
 
4735
 
 
4736
done
 
4737
IFS=$as_save_IFS
 
4738
 
 
4739
 
 
4740
fi
 
4741
 
 
4742
GREP="$ac_cv_path_GREP"
 
4743
if test -z "$GREP"; then
 
4744
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4745
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4746
   { (exit 1); exit 1; }; }
 
4747
fi
 
4748
 
 
4749
else
 
4750
  ac_cv_path_GREP=$GREP
 
4751
fi
 
4752
 
 
4753
 
 
4754
fi
 
4755
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4756
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4757
 GREP="$ac_cv_path_GREP"
 
4758
 
 
4759
 
 
4760
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4761
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4762
if test "${ac_cv_path_EGREP+set}" = set; then
 
4763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4764
else
 
4765
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4766
   then ac_cv_path_EGREP="$GREP -E"
 
4767
   else
 
4768
     # Extract the first word of "egrep" to use in msg output
 
4769
if test -z "$EGREP"; then
 
4770
set dummy egrep; ac_prog_name=$2
 
4771
if test "${ac_cv_path_EGREP+set}" = set; then
 
4772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4773
else
 
4774
  ac_path_EGREP_found=false
 
4775
# Loop through the user's path and test for each of PROGNAME-LIST
 
4776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4777
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4778
do
 
4779
  IFS=$as_save_IFS
 
4780
  test -z "$as_dir" && as_dir=.
 
4781
  for ac_prog in egrep; do
 
4782
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4783
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4784
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4785
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4786
  # Check for GNU $ac_path_EGREP
 
4787
case `"$ac_path_EGREP" --version 2>&1` in
 
4788
*GNU*)
 
4789
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4790
*)
 
4791
  ac_count=0
 
4792
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4793
  while :
 
4794
  do
 
4795
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4796
    mv "conftest.tmp" "conftest.in"
 
4797
    cp "conftest.in" "conftest.nl"
 
4798
    echo 'EGREP' >> "conftest.nl"
 
4799
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4800
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4801
    ac_count=`expr $ac_count + 1`
 
4802
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4803
      # Best one so far, save it but keep looking for a better one
 
4804
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4805
      ac_path_EGREP_max=$ac_count
 
4806
    fi
 
4807
    # 10*(2^10) chars as input seems more than enough
 
4808
    test $ac_count -gt 10 && break
 
4809
  done
 
4810
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4811
esac
 
4812
 
 
4813
 
 
4814
    $ac_path_EGREP_found && break 3
 
4815
  done
 
4816
done
 
4817
 
 
4818
done
 
4819
IFS=$as_save_IFS
 
4820
 
 
4821
 
 
4822
fi
 
4823
 
 
4824
EGREP="$ac_cv_path_EGREP"
 
4825
if test -z "$EGREP"; then
 
4826
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4827
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4828
   { (exit 1); exit 1; }; }
 
4829
fi
 
4830
 
 
4831
else
 
4832
  ac_cv_path_EGREP=$EGREP
 
4833
fi
 
4834
 
 
4835
 
 
4836
   fi
 
4837
fi
 
4838
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4839
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4840
 EGREP="$ac_cv_path_EGREP"
 
4841
 
 
4842
 
 
4843
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4844
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4845
if test "${ac_cv_header_stdc+set}" = set; then
 
4846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4847
else
 
4848
  cat >conftest.$ac_ext <<_ACEOF
 
4849
/* confdefs.h.  */
 
4850
_ACEOF
 
4851
cat confdefs.h >>conftest.$ac_ext
 
4852
cat >>conftest.$ac_ext <<_ACEOF
 
4853
/* end confdefs.h.  */
 
4854
#include <stdlib.h>
 
4855
#include <stdarg.h>
 
4856
#include <string.h>
 
4857
#include <float.h>
 
4858
 
 
4859
int
 
4860
main ()
 
4861
{
 
4862
 
 
4863
  ;
 
4864
  return 0;
 
4865
}
 
4866
_ACEOF
 
4867
rm -f conftest.$ac_objext
 
4868
if { (ac_try="$ac_compile"
 
4869
case "(($ac_try" in
 
4870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4871
  *) ac_try_echo=$ac_try;;
 
4872
esac
 
4873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4874
  (eval "$ac_compile") 2>conftest.er1
 
4875
  ac_status=$?
 
4876
  grep -v '^ *+' conftest.er1 >conftest.err
 
4877
  rm -f conftest.er1
 
4878
  cat conftest.err >&5
 
4879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4880
  (exit $ac_status); } && {
 
4881
         test -z "$ac_c_werror_flag" ||
 
4882
         test ! -s conftest.err
 
4883
       } && test -s conftest.$ac_objext; then
 
4884
  ac_cv_header_stdc=yes
 
4885
else
 
4886
  echo "$as_me: failed program was:" >&5
 
4887
sed 's/^/| /' conftest.$ac_ext >&5
 
4888
 
 
4889
        ac_cv_header_stdc=no
 
4890
fi
 
4891
 
 
4892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4893
 
 
4894
if test $ac_cv_header_stdc = yes; then
 
4895
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4896
  cat >conftest.$ac_ext <<_ACEOF
 
4897
/* confdefs.h.  */
 
4898
_ACEOF
 
4899
cat confdefs.h >>conftest.$ac_ext
 
4900
cat >>conftest.$ac_ext <<_ACEOF
 
4901
/* end confdefs.h.  */
 
4902
#include <string.h>
 
4903
 
 
4904
_ACEOF
 
4905
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4906
  $EGREP "memchr" >/dev/null 2>&1; then
 
4907
  :
 
4908
else
 
4909
  ac_cv_header_stdc=no
 
4910
fi
 
4911
rm -f conftest*
 
4912
 
 
4913
fi
 
4914
 
 
4915
if test $ac_cv_header_stdc = yes; then
 
4916
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4917
  cat >conftest.$ac_ext <<_ACEOF
 
4918
/* confdefs.h.  */
 
4919
_ACEOF
 
4920
cat confdefs.h >>conftest.$ac_ext
 
4921
cat >>conftest.$ac_ext <<_ACEOF
 
4922
/* end confdefs.h.  */
 
4923
#include <stdlib.h>
 
4924
 
 
4925
_ACEOF
 
4926
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4927
  $EGREP "free" >/dev/null 2>&1; then
 
4928
  :
 
4929
else
 
4930
  ac_cv_header_stdc=no
 
4931
fi
 
4932
rm -f conftest*
 
4933
 
 
4934
fi
 
4935
 
 
4936
if test $ac_cv_header_stdc = yes; then
 
4937
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4938
  if test "$cross_compiling" = yes; then
 
4939
  :
 
4940
else
 
4941
  cat >conftest.$ac_ext <<_ACEOF
 
4942
/* confdefs.h.  */
 
4943
_ACEOF
 
4944
cat confdefs.h >>conftest.$ac_ext
 
4945
cat >>conftest.$ac_ext <<_ACEOF
 
4946
/* end confdefs.h.  */
 
4947
#include <ctype.h>
 
4948
#include <stdlib.h>
 
4949
#if ((' ' & 0x0FF) == 0x020)
 
4950
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4951
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4952
#else
 
4953
# define ISLOWER(c) \
 
4954
                   (('a' <= (c) && (c) <= 'i') \
 
4955
                     || ('j' <= (c) && (c) <= 'r') \
 
4956
                     || ('s' <= (c) && (c) <= 'z'))
 
4957
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4958
#endif
 
4959
 
 
4960
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4961
int
 
4962
main ()
 
4963
{
 
4964
  int i;
 
4965
  for (i = 0; i < 256; i++)
 
4966
    if (XOR (islower (i), ISLOWER (i))
 
4967
        || toupper (i) != TOUPPER (i))
 
4968
      return 2;
 
4969
  return 0;
 
4970
}
 
4971
_ACEOF
 
4972
rm -f conftest$ac_exeext
 
4973
if { (ac_try="$ac_link"
 
4974
case "(($ac_try" in
 
4975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4976
  *) ac_try_echo=$ac_try;;
 
4977
esac
 
4978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4979
  (eval "$ac_link") 2>&5
 
4980
  ac_status=$?
 
4981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4982
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4983
  { (case "(($ac_try" in
 
4984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4985
  *) ac_try_echo=$ac_try;;
 
4986
esac
 
4987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4988
  (eval "$ac_try") 2>&5
 
4989
  ac_status=$?
 
4990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4991
  (exit $ac_status); }; }; then
 
4992
  :
 
4993
else
 
4994
  echo "$as_me: program exited with status $ac_status" >&5
 
4995
echo "$as_me: failed program was:" >&5
 
4996
sed 's/^/| /' conftest.$ac_ext >&5
 
4997
 
 
4998
( exit $ac_status )
 
4999
ac_cv_header_stdc=no
 
5000
fi
 
5001
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5002
fi
 
5003
 
 
5004
 
 
5005
fi
 
5006
fi
 
5007
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5008
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5009
if test $ac_cv_header_stdc = yes; then
 
5010
 
 
5011
cat >>confdefs.h <<\_ACEOF
 
5012
#define STDC_HEADERS 1
 
5013
_ACEOF
 
5014
 
 
5015
fi
 
5016
 
 
5017
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5018
 
 
5019
 
 
5020
 
 
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
 
 
5027
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5028
                  inttypes.h stdint.h unistd.h
 
5029
do
 
5030
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5031
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5032
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5033
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5035
else
 
5036
  cat >conftest.$ac_ext <<_ACEOF
 
5037
/* confdefs.h.  */
 
5038
_ACEOF
 
5039
cat confdefs.h >>conftest.$ac_ext
 
5040
cat >>conftest.$ac_ext <<_ACEOF
 
5041
/* end confdefs.h.  */
 
5042
$ac_includes_default
 
5043
 
 
5044
#include <$ac_header>
 
5045
_ACEOF
 
5046
rm -f conftest.$ac_objext
 
5047
if { (ac_try="$ac_compile"
 
5048
case "(($ac_try" in
 
5049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5050
  *) ac_try_echo=$ac_try;;
 
5051
esac
 
5052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5053
  (eval "$ac_compile") 2>conftest.er1
 
5054
  ac_status=$?
 
5055
  grep -v '^ *+' conftest.er1 >conftest.err
 
5056
  rm -f conftest.er1
 
5057
  cat conftest.err >&5
 
5058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5059
  (exit $ac_status); } && {
 
5060
         test -z "$ac_c_werror_flag" ||
 
5061
         test ! -s conftest.err
 
5062
       } && test -s conftest.$ac_objext; then
 
5063
  eval "$as_ac_Header=yes"
 
5064
else
 
5065
  echo "$as_me: failed program was:" >&5
 
5066
sed 's/^/| /' conftest.$ac_ext >&5
 
5067
 
 
5068
        eval "$as_ac_Header=no"
 
5069
fi
 
5070
 
 
5071
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5072
fi
 
5073
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5074
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5075
echo "${ECHO_T}$ac_res" >&6; }
 
5076
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5077
  cat >>confdefs.h <<_ACEOF
 
5078
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5079
_ACEOF
 
5080
 
 
5081
fi
 
5082
 
 
5083
done
 
5084
 
 
5085
 
 
5086
 
 
5087
  if test "${ac_cv_header_minix_config_h+set}" = set; then
 
5088
  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
5089
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
5090
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
5091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5092
fi
 
5093
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
5094
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
5095
else
 
5096
  # Is the header compilable?
 
5097
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
5098
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
 
5099
cat >conftest.$ac_ext <<_ACEOF
 
5100
/* confdefs.h.  */
 
5101
_ACEOF
 
5102
cat confdefs.h >>conftest.$ac_ext
 
5103
cat >>conftest.$ac_ext <<_ACEOF
 
5104
/* end confdefs.h.  */
 
5105
$ac_includes_default
 
5106
#include <minix/config.h>
 
5107
_ACEOF
 
5108
rm -f conftest.$ac_objext
 
5109
if { (ac_try="$ac_compile"
 
5110
case "(($ac_try" in
 
5111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5112
  *) ac_try_echo=$ac_try;;
 
5113
esac
 
5114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5115
  (eval "$ac_compile") 2>conftest.er1
 
5116
  ac_status=$?
 
5117
  grep -v '^ *+' conftest.er1 >conftest.err
 
5118
  rm -f conftest.er1
 
5119
  cat conftest.err >&5
 
5120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5121
  (exit $ac_status); } && {
 
5122
         test -z "$ac_c_werror_flag" ||
 
5123
         test ! -s conftest.err
 
5124
       } && test -s conftest.$ac_objext; then
 
5125
  ac_header_compiler=yes
 
5126
else
 
5127
  echo "$as_me: failed program was:" >&5
 
5128
sed 's/^/| /' conftest.$ac_ext >&5
 
5129
 
 
5130
        ac_header_compiler=no
 
5131
fi
 
5132
 
 
5133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5134
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5135
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5136
 
 
5137
# Is the header present?
 
5138
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
5139
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
 
5140
cat >conftest.$ac_ext <<_ACEOF
 
5141
/* confdefs.h.  */
 
5142
_ACEOF
 
5143
cat confdefs.h >>conftest.$ac_ext
 
5144
cat >>conftest.$ac_ext <<_ACEOF
 
5145
/* end confdefs.h.  */
 
5146
#include <minix/config.h>
 
5147
_ACEOF
 
5148
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5149
case "(($ac_try" in
 
5150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5151
  *) ac_try_echo=$ac_try;;
 
5152
esac
 
5153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5154
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5155
  ac_status=$?
 
5156
  grep -v '^ *+' conftest.er1 >conftest.err
 
5157
  rm -f conftest.er1
 
5158
  cat conftest.err >&5
 
5159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5160
  (exit $ac_status); } >/dev/null && {
 
5161
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5162
         test ! -s conftest.err
 
5163
       }; then
 
5164
  ac_header_preproc=yes
 
5165
else
 
5166
  echo "$as_me: failed program was:" >&5
 
5167
sed 's/^/| /' conftest.$ac_ext >&5
 
5168
 
 
5169
  ac_header_preproc=no
 
5170
fi
 
5171
 
 
5172
rm -f conftest.err conftest.$ac_ext
 
5173
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5174
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5175
 
 
5176
# So?  What about this header?
 
5177
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5178
  yes:no: )
 
5179
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
5180
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5181
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
5182
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
5183
    ac_header_preproc=yes
 
5184
    ;;
 
5185
  no:yes:* )
 
5186
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
5187
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
5188
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
5189
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
5190
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
5191
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
5192
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
5193
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5194
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
5195
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
5196
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
5197
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
5198
    ( cat <<\_ASBOX
 
5199
## --------------------------------------- ##
 
5200
## Report this to opendap-tech@opendap.org ##
 
5201
## --------------------------------------- ##
 
5202
_ASBOX
 
5203
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5204
    ;;
 
5205
esac
 
5206
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
5207
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
5208
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
5209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5210
else
 
5211
  ac_cv_header_minix_config_h=$ac_header_preproc
 
5212
fi
 
5213
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
5214
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
5215
 
 
5216
fi
 
5217
if test $ac_cv_header_minix_config_h = yes; then
 
5218
  MINIX=yes
 
5219
else
 
5220
  MINIX=
 
5221
fi
 
5222
 
 
5223
 
 
5224
  if test "$MINIX" = yes; then
 
5225
 
 
5226
cat >>confdefs.h <<\_ACEOF
 
5227
#define _POSIX_SOURCE 1
 
5228
_ACEOF
 
5229
 
 
5230
 
 
5231
cat >>confdefs.h <<\_ACEOF
 
5232
#define _POSIX_1_SOURCE 2
 
5233
_ACEOF
 
5234
 
 
5235
 
 
5236
cat >>confdefs.h <<\_ACEOF
 
5237
#define _MINIX 1
 
5238
_ACEOF
 
5239
 
 
5240
  fi
 
5241
 
 
5242
 
 
5243
 
 
5244
  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
5245
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
 
5246
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
5247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5248
else
 
5249
  cat >conftest.$ac_ext <<_ACEOF
 
5250
/* confdefs.h.  */
 
5251
_ACEOF
 
5252
cat confdefs.h >>conftest.$ac_ext
 
5253
cat >>conftest.$ac_ext <<_ACEOF
 
5254
/* end confdefs.h.  */
 
5255
 
 
5256
#         define __EXTENSIONS__ 1
 
5257
          $ac_includes_default
 
5258
int
 
5259
main ()
 
5260
{
 
5261
 
 
5262
  ;
 
5263
  return 0;
 
5264
}
 
5265
_ACEOF
 
5266
rm -f conftest.$ac_objext
 
5267
if { (ac_try="$ac_compile"
 
5268
case "(($ac_try" in
 
5269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5270
  *) ac_try_echo=$ac_try;;
 
5271
esac
 
5272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5273
  (eval "$ac_compile") 2>conftest.er1
 
5274
  ac_status=$?
 
5275
  grep -v '^ *+' conftest.er1 >conftest.err
 
5276
  rm -f conftest.er1
 
5277
  cat conftest.err >&5
 
5278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5279
  (exit $ac_status); } && {
 
5280
         test -z "$ac_c_werror_flag" ||
 
5281
         test ! -s conftest.err
 
5282
       } && test -s conftest.$ac_objext; then
 
5283
  ac_cv_safe_to_define___extensions__=yes
 
5284
else
 
5285
  echo "$as_me: failed program was:" >&5
 
5286
sed 's/^/| /' conftest.$ac_ext >&5
 
5287
 
 
5288
        ac_cv_safe_to_define___extensions__=no
 
5289
fi
 
5290
 
 
5291
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5292
fi
 
5293
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
5294
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
 
5295
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
5296
    cat >>confdefs.h <<\_ACEOF
 
5297
#define __EXTENSIONS__ 1
 
5298
_ACEOF
 
5299
 
 
5300
  cat >>confdefs.h <<\_ACEOF
 
5301
#define _ALL_SOURCE 1
 
5302
_ACEOF
 
5303
 
 
5304
  cat >>confdefs.h <<\_ACEOF
 
5305
#define _GNU_SOURCE 1
 
5306
_ACEOF
 
5307
 
 
5308
  cat >>confdefs.h <<\_ACEOF
 
5309
#define _POSIX_PTHREAD_SEMANTICS 1
 
5310
_ACEOF
 
5311
 
 
5312
  cat >>confdefs.h <<\_ACEOF
 
5313
#define _TANDEM_SOURCE 1
 
5314
_ACEOF
 
5315
 
 
5316
 
 
5317
 
 
5318
 
 
5319
 
 
5320
 
 
5321
 
 
5322
 
 
5323
 
 
5324
for ac_prog in flex lex
 
5325
do
 
5326
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5327
set dummy $ac_prog; ac_word=$2
 
5328
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5330
if test "${ac_cv_prog_LEX+set}" = set; then
 
5331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5332
else
 
5333
  if test -n "$LEX"; then
 
5334
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
5335
else
 
5336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5337
for as_dir in $PATH
 
5338
do
 
5339
  IFS=$as_save_IFS
 
5340
  test -z "$as_dir" && as_dir=.
 
5341
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5343
    ac_cv_prog_LEX="$ac_prog"
 
5344
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5345
    break 2
 
5346
  fi
 
5347
done
 
5348
done
 
5349
IFS=$as_save_IFS
 
5350
 
 
5351
fi
 
5352
fi
 
5353
LEX=$ac_cv_prog_LEX
 
5354
if test -n "$LEX"; then
 
5355
  { echo "$as_me:$LINENO: result: $LEX" >&5
 
5356
echo "${ECHO_T}$LEX" >&6; }
 
5357
else
 
5358
  { echo "$as_me:$LINENO: result: no" >&5
 
5359
echo "${ECHO_T}no" >&6; }
 
5360
fi
 
5361
 
 
5362
 
 
5363
  test -n "$LEX" && break
 
5364
done
 
5365
test -n "$LEX" || LEX=":"
 
5366
 
 
5367
if test "x$LEX" != "x:"; then
 
5368
  cat >conftest.l <<_ACEOF
 
5369
%%
 
5370
a { ECHO; }
 
5371
b { REJECT; }
 
5372
c { yymore (); }
 
5373
d { yyless (1); }
 
5374
e { yyless (input () != 0); }
 
5375
f { unput (yytext[0]); }
 
5376
. { BEGIN INITIAL; }
 
5377
%%
 
5378
#ifdef YYTEXT_POINTER
 
5379
extern char *yytext;
 
5380
#endif
 
5381
int
 
5382
main (void)
 
5383
{
 
5384
  return ! yylex () + ! yywrap ();
 
5385
}
 
5386
_ACEOF
 
5387
{ (ac_try="$LEX conftest.l"
 
5388
case "(($ac_try" in
 
5389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5390
  *) ac_try_echo=$ac_try;;
 
5391
esac
 
5392
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5393
  (eval "$LEX conftest.l") 2>&5
 
5394
  ac_status=$?
 
5395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5396
  (exit $ac_status); }
 
5397
{ echo "$as_me:$LINENO: checking lex output file root" >&5
 
5398
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
 
5399
if test "${ac_cv_prog_lex_root+set}" = set; then
 
5400
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5401
else
 
5402
 
 
5403
if test -f lex.yy.c; then
 
5404
  ac_cv_prog_lex_root=lex.yy
 
5405
elif test -f lexyy.c; then
 
5406
  ac_cv_prog_lex_root=lexyy
 
5407
else
 
5408
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 
5409
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
5410
   { (exit 1); exit 1; }; }
 
5411
fi
 
5412
fi
 
5413
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
5414
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
 
5415
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
5416
 
 
5417
if test -z "${LEXLIB+set}"; then
 
5418
  { echo "$as_me:$LINENO: checking lex library" >&5
 
5419
echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
 
5420
if test "${ac_cv_lib_lex+set}" = set; then
 
5421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5422
else
 
5423
 
 
5424
    ac_save_LIBS=$LIBS
 
5425
    ac_cv_lib_lex='none needed'
 
5426
    for ac_lib in '' -lfl -ll; do
 
5427
      LIBS="$ac_lib $ac_save_LIBS"
 
5428
      cat >conftest.$ac_ext <<_ACEOF
 
5429
`cat $LEX_OUTPUT_ROOT.c`
 
5430
_ACEOF
 
5431
rm -f conftest.$ac_objext conftest$ac_exeext
 
5432
if { (ac_try="$ac_link"
 
5433
case "(($ac_try" in
 
5434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5435
  *) ac_try_echo=$ac_try;;
 
5436
esac
 
5437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5438
  (eval "$ac_link") 2>conftest.er1
 
5439
  ac_status=$?
 
5440
  grep -v '^ *+' conftest.er1 >conftest.err
 
5441
  rm -f conftest.er1
 
5442
  cat conftest.err >&5
 
5443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5444
  (exit $ac_status); } && {
 
5445
         test -z "$ac_c_werror_flag" ||
 
5446
         test ! -s conftest.err
 
5447
       } && test -s conftest$ac_exeext &&
 
5448
       $as_test_x conftest$ac_exeext; then
 
5449
  ac_cv_lib_lex=$ac_lib
 
5450
else
 
5451
  echo "$as_me: failed program was:" >&5
 
5452
sed 's/^/| /' conftest.$ac_ext >&5
 
5453
 
 
5454
 
 
5455
fi
 
5456
 
 
5457
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5458
      conftest$ac_exeext conftest.$ac_ext
 
5459
      test "$ac_cv_lib_lex" != 'none needed' && break
 
5460
    done
 
5461
    LIBS=$ac_save_LIBS
 
5462
 
 
5463
fi
 
5464
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
 
5465
echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
 
5466
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 
5467
fi
 
5468
 
 
5469
 
 
5470
{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
5471
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
 
5472
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
5473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5474
else
 
5475
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
5476
# default is implementation-dependent.  Figure out which it is, since
 
5477
# not all implementations provide the %pointer and %array declarations.
 
5478
ac_cv_prog_lex_yytext_pointer=no
 
5479
ac_save_LIBS=$LIBS
 
5480
LIBS="$LEXLIB $ac_save_LIBS"
 
5481
cat >conftest.$ac_ext <<_ACEOF
 
5482
#define YYTEXT_POINTER 1
 
5483
`cat $LEX_OUTPUT_ROOT.c`
 
5484
_ACEOF
 
5485
rm -f conftest.$ac_objext conftest$ac_exeext
 
5486
if { (ac_try="$ac_link"
 
5487
case "(($ac_try" in
 
5488
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5489
  *) ac_try_echo=$ac_try;;
 
5490
esac
 
5491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5492
  (eval "$ac_link") 2>conftest.er1
 
5493
  ac_status=$?
 
5494
  grep -v '^ *+' conftest.er1 >conftest.err
 
5495
  rm -f conftest.er1
 
5496
  cat conftest.err >&5
 
5497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5498
  (exit $ac_status); } && {
 
5499
         test -z "$ac_c_werror_flag" ||
 
5500
         test ! -s conftest.err
 
5501
       } && test -s conftest$ac_exeext &&
 
5502
       $as_test_x conftest$ac_exeext; then
 
5503
  ac_cv_prog_lex_yytext_pointer=yes
 
5504
else
 
5505
  echo "$as_me: failed program was:" >&5
 
5506
sed 's/^/| /' conftest.$ac_ext >&5
 
5507
 
 
5508
 
 
5509
fi
 
5510
 
 
5511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5512
      conftest$ac_exeext conftest.$ac_ext
 
5513
LIBS=$ac_save_LIBS
 
5514
 
 
5515
fi
 
5516
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
5517
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
 
5518
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
5519
 
 
5520
cat >>confdefs.h <<\_ACEOF
 
5521
#define YYTEXT_POINTER 1
 
5522
_ACEOF
 
5523
 
 
5524
fi
 
5525
rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
5526
 
 
5527
fi
 
5528
if test "$LEX" = :; then
 
5529
  LEX=${am_missing_run}flex
 
5530
fi
 
5531
# Find a good install program.  We prefer a C program (faster),
 
5532
# so one script is as good as another.  But avoid the broken or
 
5533
# incompatible versions:
 
5534
# SysV /etc/install, /usr/sbin/install
 
5535
# SunOS /usr/etc/install
 
5536
# IRIX /sbin/install
 
5537
# AIX /bin/install
 
5538
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
5539
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
5540
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
5541
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
5542
# OS/2's system install, which has a completely different semantic
 
5543
# ./install, which can be erroneously created by make from ./install.sh.
 
5544
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
5545
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
5546
if test -z "$INSTALL"; then
 
5547
if test "${ac_cv_path_install+set}" = set; then
 
5548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5549
else
 
5550
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5551
for as_dir in $PATH
 
5552
do
 
5553
  IFS=$as_save_IFS
 
5554
  test -z "$as_dir" && as_dir=.
 
5555
  # Account for people who put trailing slashes in PATH elements.
 
5556
case $as_dir/ in
 
5557
  ./ | .// | /cC/* | \
 
5558
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
5559
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
5560
  /usr/ucb/* ) ;;
 
5561
  *)
 
5562
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
5563
    # Don't use installbsd from OSF since it installs stuff as root
 
5564
    # by default.
 
5565
    for ac_prog in ginstall scoinst install; do
 
5566
      for ac_exec_ext in '' $ac_executable_extensions; do
 
5567
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
5568
          if test $ac_prog = install &&
 
5569
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
5570
            # AIX install.  It has an incompatible calling convention.
 
5571
            :
 
5572
          elif test $ac_prog = install &&
 
5573
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
5574
            # program-specific install script used by HP pwplus--don't use.
 
5575
            :
 
5576
          else
 
5577
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
5578
            break 3
 
5579
          fi
 
5580
        fi
 
5581
      done
 
5582
    done
 
5583
    ;;
 
5584
esac
 
5585
done
 
5586
IFS=$as_save_IFS
 
5587
 
 
5588
 
 
5589
fi
 
5590
  if test "${ac_cv_path_install+set}" = set; then
 
5591
    INSTALL=$ac_cv_path_install
 
5592
  else
 
5593
    # As a last resort, use the slow shell script.  Don't cache a
 
5594
    # value for INSTALL within a source directory, because that will
 
5595
    # break other packages using the cache if that directory is
 
5596
    # removed, or if the value is a relative name.
 
5597
    INSTALL=$ac_install_sh
 
5598
  fi
 
5599
fi
 
5600
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
5601
echo "${ECHO_T}$INSTALL" >&6; }
 
5602
 
 
5603
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
5604
# It thinks the first close brace ends the variable substitution.
 
5605
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
5606
 
 
5607
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
5608
 
 
5609
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
5610
 
 
5611
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5612
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
5613
LN_S=$as_ln_s
 
5614
if test "$LN_S" = "ln -s"; then
 
5615
  { echo "$as_me:$LINENO: result: yes" >&5
 
5616
echo "${ECHO_T}yes" >&6; }
 
5617
else
 
5618
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5619
echo "${ECHO_T}no, using $LN_S" >&6; }
 
5620
fi
 
5621
 
 
5622
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
5623
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
5624
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
5625
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
5626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5627
else
 
5628
  cat >conftest.make <<\_ACEOF
 
5629
SHELL = /bin/sh
 
5630
all:
 
5631
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
5632
_ACEOF
 
5633
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
5634
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
5635
  *@@@%%%=?*=@@@%%%*)
 
5636
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
5637
  *)
 
5638
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
5639
esac
 
5640
rm -f conftest.make
 
5641
fi
 
5642
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
5643
  { echo "$as_me:$LINENO: result: yes" >&5
 
5644
echo "${ECHO_T}yes" >&6; }
 
5645
  SET_MAKE=
 
5646
else
 
5647
  { echo "$as_me:$LINENO: result: no" >&5
 
5648
echo "${ECHO_T}no" >&6; }
 
5649
  SET_MAKE="MAKE=${MAKE-make}"
 
5650
fi
 
5651
 
 
5652
# Check whether --enable-shared was given.
 
5653
if test "${enable_shared+set}" = set; then
 
5654
  enableval=$enable_shared; p=${PACKAGE-default}
 
5655
    case $enableval in
 
5656
    yes) enable_shared=yes ;;
 
5657
    no) enable_shared=no ;;
 
5658
    *)
 
5659
      enable_shared=no
 
5660
      # Look at the argument we got.  We use all the common list separators.
 
5661
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5662
      for pkg in $enableval; do
 
5663
        IFS="$lt_save_ifs"
 
5664
        if test "X$pkg" = "X$p"; then
 
5665
          enable_shared=yes
 
5666
        fi
 
5667
      done
 
5668
      IFS="$lt_save_ifs"
 
5669
      ;;
 
5670
    esac
 
5671
else
 
5672
  enable_shared=yes
 
5673
fi
 
5674
 
 
5675
 
 
5676
# Check whether --enable-static was given.
 
5677
if test "${enable_static+set}" = set; then
 
5678
  enableval=$enable_static; p=${PACKAGE-default}
 
5679
    case $enableval in
 
5680
    yes) enable_static=yes ;;
 
5681
    no) enable_static=no ;;
 
5682
    *)
 
5683
     enable_static=no
 
5684
      # Look at the argument we got.  We use all the common list separators.
 
5685
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5686
      for pkg in $enableval; do
 
5687
        IFS="$lt_save_ifs"
 
5688
        if test "X$pkg" = "X$p"; then
 
5689
          enable_static=yes
 
5690
        fi
 
5691
      done
 
5692
      IFS="$lt_save_ifs"
 
5693
      ;;
 
5694
    esac
 
5695
else
 
5696
  enable_static=yes
 
5697
fi
 
5698
 
 
5699
 
 
5700
# Check whether --enable-fast-install was given.
 
5701
if test "${enable_fast_install+set}" = set; then
 
5702
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
5703
    case $enableval in
 
5704
    yes) enable_fast_install=yes ;;
 
5705
    no) enable_fast_install=no ;;
 
5706
    *)
 
5707
      enable_fast_install=no
 
5708
      # Look at the argument we got.  We use all the common list separators.
 
5709
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5710
      for pkg in $enableval; do
 
5711
        IFS="$lt_save_ifs"
 
5712
        if test "X$pkg" = "X$p"; then
 
5713
          enable_fast_install=yes
 
5714
        fi
 
5715
      done
 
5716
      IFS="$lt_save_ifs"
 
5717
      ;;
 
5718
    esac
 
5719
else
 
5720
  enable_fast_install=yes
 
5721
fi
 
5722
 
 
5723
 
 
5724
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5725
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
5726
if test "${lt_cv_path_SED+set}" = set; then
 
5727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5728
else
 
5729
  # Loop through the user's path and test for sed and gsed.
 
5730
# Then use that list of sed's as ones to test for truncation.
 
5731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5732
for as_dir in $PATH
 
5733
do
 
5734
  IFS=$as_save_IFS
 
5735
  test -z "$as_dir" && as_dir=.
 
5736
  for lt_ac_prog in sed gsed; do
 
5737
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5738
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
5739
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
5740
      fi
 
5741
    done
 
5742
  done
 
5743
done
 
5744
IFS=$as_save_IFS
 
5745
lt_ac_max=0
 
5746
lt_ac_count=0
 
5747
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
5748
# along with /bin/sed that truncates output.
 
5749
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
5750
  test ! -f $lt_ac_sed && continue
 
5751
  cat /dev/null > conftest.in
 
5752
  lt_ac_count=0
 
5753
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
5754
  # Check for GNU sed and select it if it is found.
 
5755
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
5756
    lt_cv_path_SED=$lt_ac_sed
 
5757
    break
 
5758
  fi
 
5759
  while true; do
 
5760
    cat conftest.in conftest.in >conftest.tmp
 
5761
    mv conftest.tmp conftest.in
 
5762
    cp conftest.in conftest.nl
 
5763
    echo >>conftest.nl
 
5764
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
5765
    cmp -s conftest.out conftest.nl || break
 
5766
    # 10000 chars as input seems more than enough
 
5767
    test $lt_ac_count -gt 10 && break
 
5768
    lt_ac_count=`expr $lt_ac_count + 1`
 
5769
    if test $lt_ac_count -gt $lt_ac_max; then
 
5770
      lt_ac_max=$lt_ac_count
 
5771
      lt_cv_path_SED=$lt_ac_sed
 
5772
    fi
 
5773
  done
 
5774
done
 
5775
 
 
5776
fi
 
5777
 
 
5778
SED=$lt_cv_path_SED
 
5779
 
 
5780
{ echo "$as_me:$LINENO: result: $SED" >&5
 
5781
echo "${ECHO_T}$SED" >&6; }
 
5782
 
 
5783
 
 
5784
# Check whether --with-gnu-ld was given.
 
5785
if test "${with_gnu_ld+set}" = set; then
 
5786
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5787
else
 
5788
  with_gnu_ld=no
 
5789
fi
 
5790
 
 
5791
ac_prog=ld
 
5792
if test "$GCC" = yes; then
 
5793
  # Check if gcc -print-prog-name=ld gives a path.
 
5794
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5795
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
5796
  case $host in
 
5797
  *-*-mingw*)
 
5798
    # gcc leaves a trailing carriage return which upsets mingw
 
5799
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5800
  *)
 
5801
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5802
  esac
 
5803
  case $ac_prog in
 
5804
    # Accept absolute paths.
 
5805
    [\\/]* | ?:[\\/]*)
 
5806
      re_direlt='/[^/][^/]*/\.\./'
 
5807
      # Canonicalize the pathname of ld
 
5808
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5809
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5810
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5811
      done
 
5812
      test -z "$LD" && LD="$ac_prog"
 
5813
      ;;
 
5814
  "")
 
5815
    # If it fails, then pretend we aren't using GCC.
 
5816
    ac_prog=ld
 
5817
    ;;
 
5818
  *)
 
5819
    # If it is relative, then search for the first ld in PATH.
 
5820
    with_gnu_ld=unknown
 
5821
    ;;
 
5822
  esac
 
5823
elif test "$with_gnu_ld" = yes; then
 
5824
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5825
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
5826
else
 
5827
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5828
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
5829
fi
 
5830
if test "${lt_cv_path_LD+set}" = set; then
 
5831
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5832
else
 
5833
  if test -z "$LD"; then
 
5834
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5835
  for ac_dir in $PATH; do
 
5836
    IFS="$lt_save_ifs"
 
5837
    test -z "$ac_dir" && ac_dir=.
 
5838
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5839
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5840
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5841
      # but apparently some variants of GNU ld only accept -v.
 
5842
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5843
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5844
      *GNU* | *'with BFD'*)
 
5845
        test "$with_gnu_ld" != no && break
 
5846
        ;;
 
5847
      *)
 
5848
        test "$with_gnu_ld" != yes && break
 
5849
        ;;
 
5850
      esac
 
5851
    fi
 
5852
  done
 
5853
  IFS="$lt_save_ifs"
 
5854
else
 
5855
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5856
fi
 
5857
fi
 
5858
 
 
5859
LD="$lt_cv_path_LD"
 
5860
if test -n "$LD"; then
 
5861
  { echo "$as_me:$LINENO: result: $LD" >&5
 
5862
echo "${ECHO_T}$LD" >&6; }
 
5863
else
 
5864
  { echo "$as_me:$LINENO: result: no" >&5
 
5865
echo "${ECHO_T}no" >&6; }
 
5866
fi
 
5867
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5868
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5869
   { (exit 1); exit 1; }; }
 
5870
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5871
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
5872
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
5873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5874
else
 
5875
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5876
case `$LD -v 2>&1 </dev/null` in
 
5877
*GNU* | *'with BFD'*)
 
5878
  lt_cv_prog_gnu_ld=yes
 
5879
  ;;
 
5880
*)
 
5881
  lt_cv_prog_gnu_ld=no
 
5882
  ;;
 
5883
esac
 
5884
fi
 
5885
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
5886
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
5887
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5888
 
 
5889
 
 
5890
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5891
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
5892
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5894
else
 
5895
  lt_cv_ld_reload_flag='-r'
 
5896
fi
 
5897
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5898
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
5899
reload_flag=$lt_cv_ld_reload_flag
 
5900
case $reload_flag in
 
5901
"" | " "*) ;;
 
5902
*) reload_flag=" $reload_flag" ;;
 
5903
esac
 
5904
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5905
case $host_os in
 
5906
  darwin*)
 
5907
    if test "$GCC" = yes; then
 
5908
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5909
    else
 
5910
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5911
    fi
 
5912
    ;;
 
5913
esac
 
5914
 
 
5915
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5916
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
5917
if test "${lt_cv_path_NM+set}" = set; then
 
5918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5919
else
 
5920
  if test -n "$NM"; then
 
5921
  # Let the user override the test.
 
5922
  lt_cv_path_NM="$NM"
 
5923
else
 
5924
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5925
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5926
    lt_nm_to_check="$lt_nm_to_check nm"
 
5927
  fi
 
5928
  for lt_tmp_nm in $lt_nm_to_check; do
 
5929
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5930
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5931
      IFS="$lt_save_ifs"
 
5932
      test -z "$ac_dir" && ac_dir=.
 
5933
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5934
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5935
        # Check to see if the nm accepts a BSD-compat flag.
 
5936
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5937
        #   nm: unknown option "B" ignored
 
5938
        # Tru64's nm complains that /dev/null is an invalid object file
 
5939
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5940
        */dev/null* | *'Invalid file or object type'*)
 
5941
          lt_cv_path_NM="$tmp_nm -B"
 
5942
          break
 
5943
          ;;
 
5944
        *)
 
5945
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5946
          */dev/null*)
 
5947
            lt_cv_path_NM="$tmp_nm -p"
 
5948
            break
 
5949
            ;;
 
5950
          *)
 
5951
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5952
            continue # so that we can try to find one that supports BSD flags
 
5953
            ;;
 
5954
          esac
 
5955
          ;;
 
5956
        esac
 
5957
      fi
 
5958
    done
 
5959
    IFS="$lt_save_ifs"
 
5960
  done
 
5961
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5962
fi
 
5963
fi
 
5964
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5965
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
5966
NM="$lt_cv_path_NM"
 
5967
 
 
5968
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
5969
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
5970
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5972
else
 
5973
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5974
lt_cv_file_magic_test_file=
 
5975
lt_cv_deplibs_check_method='unknown'
 
5976
# Need to set the preceding variable on all platforms that support
 
5977
# interlibrary dependencies.
 
5978
# 'none' -- dependencies not supported.
 
5979
# `unknown' -- same as none, but documents that we really don't know.
 
5980
# 'pass_all' -- all dependencies passed with no checks.
 
5981
# 'test_compile' -- check by making test program.
 
5982
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5983
# which responds to the $file_magic_cmd with a given extended regex.
 
5984
# If you have `file' or equivalent on your system and you're not sure
 
5985
# whether `pass_all' will *always* work, you probably want this one.
 
5986
 
 
5987
case $host_os in
 
5988
aix4* | aix5*)
 
5989
  lt_cv_deplibs_check_method=pass_all
 
5990
  ;;
 
5991
 
 
5992
beos*)
 
5993
  lt_cv_deplibs_check_method=pass_all
 
5994
  ;;
 
5995
 
 
5996
bsdi[45]*)
 
5997
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5998
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5999
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6000
  ;;
 
6001
 
 
6002
cygwin*)
 
6003
  # func_win32_libid is a shell function defined in ltmain.sh
 
6004
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6005
  lt_cv_file_magic_cmd='func_win32_libid'
 
6006
  ;;
 
6007
 
 
6008
mingw* | pw32*)
 
6009
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6010
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6011
  # unless we find 'file', for example because we are cross-compiling.
 
6012
  if ( file / ) >/dev/null 2>&1; then
 
6013
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6014
    lt_cv_file_magic_cmd='func_win32_libid'
 
6015
  else
 
6016
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6017
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6018
  fi
 
6019
  ;;
 
6020
 
 
6021
darwin* | rhapsody*)
 
6022
  lt_cv_deplibs_check_method=pass_all
 
6023
  ;;
 
6024
 
 
6025
freebsd* | dragonfly*)
 
6026
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6027
    case $host_cpu in
 
6028
    i*86 )
 
6029
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6030
      # Let's accept both of them until this is cleared up.
 
6031
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6032
      lt_cv_file_magic_cmd=/usr/bin/file
 
6033
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6034
      ;;
 
6035
    esac
 
6036
  else
 
6037
    lt_cv_deplibs_check_method=pass_all
 
6038
  fi
 
6039
  ;;
 
6040
 
 
6041
gnu*)
 
6042
  lt_cv_deplibs_check_method=pass_all
 
6043
  ;;
 
6044
 
 
6045
hpux10.20* | hpux11*)
 
6046
  lt_cv_file_magic_cmd=/usr/bin/file
 
6047
  case $host_cpu in
 
6048
  ia64*)
 
6049
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6050
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6051
    ;;
 
6052
  hppa*64*)
 
6053
    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]'
 
6054
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6055
    ;;
 
6056
  *)
 
6057
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6058
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6059
    ;;
 
6060
  esac
 
6061
  ;;
 
6062
 
 
6063
interix[3-9]*)
 
6064
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6065
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6066
  ;;
 
6067
 
 
6068
irix5* | irix6* | nonstopux*)
 
6069
  case $LD in
 
6070
  *-32|*"-32 ") libmagic=32-bit;;
 
6071
  *-n32|*"-n32 ") libmagic=N32;;
 
6072
  *-64|*"-64 ") libmagic=64-bit;;
 
6073
  *) libmagic=never-match;;
 
6074
  esac
 
6075
  lt_cv_deplibs_check_method=pass_all
 
6076
  ;;
 
6077
 
 
6078
# This must be Linux ELF.
 
6079
linux* | k*bsd*-gnu)
 
6080
  lt_cv_deplibs_check_method=pass_all
 
6081
  ;;
 
6082
 
 
6083
netbsd*)
 
6084
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6085
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6086
  else
 
6087
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6088
  fi
 
6089
  ;;
 
6090
 
 
6091
newos6*)
 
6092
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6093
  lt_cv_file_magic_cmd=/usr/bin/file
 
6094
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6095
  ;;
 
6096
 
 
6097
nto-qnx*)
 
6098
  lt_cv_deplibs_check_method=unknown
 
6099
  ;;
 
6100
 
 
6101
openbsd*)
 
6102
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6103
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6104
  else
 
6105
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6106
  fi
 
6107
  ;;
 
6108
 
 
6109
osf3* | osf4* | osf5*)
 
6110
  lt_cv_deplibs_check_method=pass_all
 
6111
  ;;
 
6112
 
 
6113
rdos*)
 
6114
  lt_cv_deplibs_check_method=pass_all
 
6115
  ;;
 
6116
 
 
6117
solaris*)
 
6118
  lt_cv_deplibs_check_method=pass_all
 
6119
  ;;
 
6120
 
 
6121
sysv4 | sysv4.3*)
 
6122
  case $host_vendor in
 
6123
  motorola)
 
6124
    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]'
 
6125
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6126
    ;;
 
6127
  ncr)
 
6128
    lt_cv_deplibs_check_method=pass_all
 
6129
    ;;
 
6130
  sequent)
 
6131
    lt_cv_file_magic_cmd='/bin/file'
 
6132
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6133
    ;;
 
6134
  sni)
 
6135
    lt_cv_file_magic_cmd='/bin/file'
 
6136
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6137
    lt_cv_file_magic_test_file=/lib/libc.so
 
6138
    ;;
 
6139
  siemens)
 
6140
    lt_cv_deplibs_check_method=pass_all
 
6141
    ;;
 
6142
  pc)
 
6143
    lt_cv_deplibs_check_method=pass_all
 
6144
    ;;
 
6145
  esac
 
6146
  ;;
 
6147
 
 
6148
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6149
  lt_cv_deplibs_check_method=pass_all
 
6150
  ;;
 
6151
esac
 
6152
 
 
6153
fi
 
6154
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
6155
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
6156
file_magic_cmd=$lt_cv_file_magic_cmd
 
6157
deplibs_check_method=$lt_cv_deplibs_check_method
 
6158
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6159
 
 
6160
 
 
6161
 
 
6162
 
 
6163
# If no C compiler was specified, use CC.
 
6164
LTCC=${LTCC-"$CC"}
 
6165
 
 
6166
# If no C compiler flags were specified, use CFLAGS.
 
6167
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6168
 
 
6169
# Allow CC to be a program name with arguments.
 
6170
compiler=$CC
 
6171
 
 
6172
# Check whether --enable-libtool-lock was given.
 
6173
if test "${enable_libtool_lock+set}" = set; then
 
6174
  enableval=$enable_libtool_lock;
 
6175
fi
 
6176
 
 
6177
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6178
 
 
6179
# Some flags need to be propagated to the compiler or linker for good
 
6180
# libtool support.
 
6181
case $host in
 
6182
ia64-*-hpux*)
 
6183
  # Find out which ABI we are using.
 
6184
  echo 'int i;' > conftest.$ac_ext
 
6185
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6186
  (eval $ac_compile) 2>&5
 
6187
  ac_status=$?
 
6188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6189
  (exit $ac_status); }; then
 
6190
    case `/usr/bin/file conftest.$ac_objext` in
 
6191
    *ELF-32*)
 
6192
      HPUX_IA64_MODE="32"
 
6193
      ;;
 
6194
    *ELF-64*)
 
6195
      HPUX_IA64_MODE="64"
 
6196
      ;;
 
6197
    esac
 
6198
  fi
 
6199
  rm -rf conftest*
 
6200
  ;;
 
6201
*-*-irix6*)
 
6202
  # Find out which ABI we are using.
 
6203
  echo '#line 6203 "configure"' > conftest.$ac_ext
 
6204
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6205
  (eval $ac_compile) 2>&5
 
6206
  ac_status=$?
 
6207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6208
  (exit $ac_status); }; then
 
6209
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
6210
    case `/usr/bin/file conftest.$ac_objext` in
 
6211
    *32-bit*)
 
6212
      LD="${LD-ld} -melf32bsmip"
 
6213
      ;;
 
6214
    *N32*)
 
6215
      LD="${LD-ld} -melf32bmipn32"
 
6216
      ;;
 
6217
    *64-bit*)
 
6218
      LD="${LD-ld} -melf64bmip"
 
6219
      ;;
 
6220
    esac
 
6221
   else
 
6222
    case `/usr/bin/file conftest.$ac_objext` in
 
6223
    *32-bit*)
 
6224
      LD="${LD-ld} -32"
 
6225
      ;;
 
6226
    *N32*)
 
6227
      LD="${LD-ld} -n32"
 
6228
      ;;
 
6229
    *64-bit*)
 
6230
      LD="${LD-ld} -64"
 
6231
      ;;
 
6232
    esac
 
6233
   fi
 
6234
  fi
 
6235
  rm -rf conftest*
 
6236
  ;;
 
6237
 
 
6238
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6239
s390*-*linux*|sparc*-*linux*)
 
6240
  # Find out which ABI we are using.
 
6241
  echo 'int i;' > conftest.$ac_ext
 
6242
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6243
  (eval $ac_compile) 2>&5
 
6244
  ac_status=$?
 
6245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6246
  (exit $ac_status); }; then
 
6247
    case `/usr/bin/file conftest.o` in
 
6248
    *32-bit*)
 
6249
      case $host in
 
6250
        x86_64-*kfreebsd*-gnu)
 
6251
          LD="${LD-ld} -m elf_i386_fbsd"
 
6252
          ;;
 
6253
        x86_64-*linux*)
 
6254
          LD="${LD-ld} -m elf_i386"
 
6255
          ;;
 
6256
        ppc64-*linux*|powerpc64-*linux*)
 
6257
          LD="${LD-ld} -m elf32ppclinux"
 
6258
          ;;
 
6259
        s390x-*linux*)
 
6260
          LD="${LD-ld} -m elf_s390"
 
6261
          ;;
 
6262
        sparc64-*linux*)
 
6263
          LD="${LD-ld} -m elf32_sparc"
 
6264
          ;;
 
6265
      esac
 
6266
      ;;
 
6267
    *64-bit*)
 
6268
      libsuff=64
 
6269
      case $host in
 
6270
        x86_64-*kfreebsd*-gnu)
 
6271
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
6272
          ;;
 
6273
        x86_64-*linux*)
 
6274
          LD="${LD-ld} -m elf_x86_64"
 
6275
          ;;
 
6276
        ppc*-*linux*|powerpc*-*linux*)
 
6277
          LD="${LD-ld} -m elf64ppc"
 
6278
          ;;
 
6279
        s390*-*linux*)
 
6280
          LD="${LD-ld} -m elf64_s390"
 
6281
          ;;
 
6282
        sparc*-*linux*)
 
6283
          LD="${LD-ld} -m elf64_sparc"
 
6284
          ;;
 
6285
      esac
 
6286
      ;;
 
6287
    esac
 
6288
  fi
 
6289
  rm -rf conftest*
 
6290
  ;;
 
6291
 
 
6292
*-*-sco3.2v5*)
 
6293
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6294
  SAVE_CFLAGS="$CFLAGS"
 
6295
  CFLAGS="$CFLAGS -belf"
 
6296
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6297
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
6298
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6300
else
 
6301
  ac_ext=c
 
6302
ac_cpp='$CPP $CPPFLAGS'
 
6303
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6304
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6305
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6306
 
 
6307
     cat >conftest.$ac_ext <<_ACEOF
 
6308
/* confdefs.h.  */
 
6309
_ACEOF
 
6310
cat confdefs.h >>conftest.$ac_ext
 
6311
cat >>conftest.$ac_ext <<_ACEOF
 
6312
/* end confdefs.h.  */
 
6313
 
 
6314
int
 
6315
main ()
 
6316
{
 
6317
 
 
6318
  ;
 
6319
  return 0;
 
6320
}
 
6321
_ACEOF
 
6322
rm -f conftest.$ac_objext conftest$ac_exeext
 
6323
if { (ac_try="$ac_link"
 
6324
case "(($ac_try" in
 
6325
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6326
  *) ac_try_echo=$ac_try;;
 
6327
esac
 
6328
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6329
  (eval "$ac_link") 2>conftest.er1
 
6330
  ac_status=$?
 
6331
  grep -v '^ *+' conftest.er1 >conftest.err
 
6332
  rm -f conftest.er1
 
6333
  cat conftest.err >&5
 
6334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6335
  (exit $ac_status); } && {
 
6336
         test -z "$ac_c_werror_flag" ||
 
6337
         test ! -s conftest.err
 
6338
       } && test -s conftest$ac_exeext &&
 
6339
       $as_test_x conftest$ac_exeext; then
 
6340
  lt_cv_cc_needs_belf=yes
 
6341
else
 
6342
  echo "$as_me: failed program was:" >&5
 
6343
sed 's/^/| /' conftest.$ac_ext >&5
 
6344
 
 
6345
        lt_cv_cc_needs_belf=no
 
6346
fi
 
6347
 
 
6348
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6349
      conftest$ac_exeext conftest.$ac_ext
 
6350
     ac_ext=c
 
6351
ac_cpp='$CPP $CPPFLAGS'
 
6352
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6353
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6354
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6355
 
 
6356
fi
 
6357
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6358
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
6359
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6360
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6361
    CFLAGS="$SAVE_CFLAGS"
 
6362
  fi
 
6363
  ;;
 
6364
sparc*-*solaris*)
 
6365
  # Find out which ABI we are using.
 
6366
  echo 'int i;' > conftest.$ac_ext
 
6367
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6368
  (eval $ac_compile) 2>&5
 
6369
  ac_status=$?
 
6370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6371
  (exit $ac_status); }; then
 
6372
    case `/usr/bin/file conftest.o` in
 
6373
    *64-bit*)
 
6374
      case $lt_cv_prog_gnu_ld in
 
6375
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6376
      *)    LD="${LD-ld} -64" ;;
 
6377
      esac
 
6378
      ;;
 
6379
    esac
 
6380
  fi
 
6381
  rm -rf conftest*
 
6382
  ;;
 
6383
 
 
6384
 
 
6385
esac
 
6386
 
 
6387
need_locks="$enable_libtool_lock"
 
6388
 
 
6389
 
 
6390
 
 
6391
for ac_header in dlfcn.h
 
6392
do
 
6393
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6395
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6396
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6397
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6399
fi
 
6400
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6401
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6402
echo "${ECHO_T}$ac_res" >&6; }
 
6403
else
 
6404
  # Is the header compilable?
 
6405
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6406
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
6407
cat >conftest.$ac_ext <<_ACEOF
 
6408
/* confdefs.h.  */
 
6409
_ACEOF
 
6410
cat confdefs.h >>conftest.$ac_ext
 
6411
cat >>conftest.$ac_ext <<_ACEOF
 
6412
/* end confdefs.h.  */
 
6413
$ac_includes_default
 
6414
#include <$ac_header>
 
6415
_ACEOF
 
6416
rm -f conftest.$ac_objext
 
6417
if { (ac_try="$ac_compile"
 
6418
case "(($ac_try" in
 
6419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6420
  *) ac_try_echo=$ac_try;;
 
6421
esac
 
6422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6423
  (eval "$ac_compile") 2>conftest.er1
 
6424
  ac_status=$?
 
6425
  grep -v '^ *+' conftest.er1 >conftest.err
 
6426
  rm -f conftest.er1
 
6427
  cat conftest.err >&5
 
6428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6429
  (exit $ac_status); } && {
 
6430
         test -z "$ac_c_werror_flag" ||
 
6431
         test ! -s conftest.err
 
6432
       } && test -s conftest.$ac_objext; then
 
6433
  ac_header_compiler=yes
 
6434
else
 
6435
  echo "$as_me: failed program was:" >&5
 
6436
sed 's/^/| /' conftest.$ac_ext >&5
 
6437
 
 
6438
        ac_header_compiler=no
 
6439
fi
 
6440
 
 
6441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6442
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6443
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6444
 
 
6445
# Is the header present?
 
6446
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6447
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
6448
cat >conftest.$ac_ext <<_ACEOF
 
6449
/* confdefs.h.  */
 
6450
_ACEOF
 
6451
cat confdefs.h >>conftest.$ac_ext
 
6452
cat >>conftest.$ac_ext <<_ACEOF
 
6453
/* end confdefs.h.  */
 
6454
#include <$ac_header>
 
6455
_ACEOF
 
6456
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6457
case "(($ac_try" in
 
6458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6459
  *) ac_try_echo=$ac_try;;
 
6460
esac
 
6461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6462
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6463
  ac_status=$?
 
6464
  grep -v '^ *+' conftest.er1 >conftest.err
 
6465
  rm -f conftest.er1
 
6466
  cat conftest.err >&5
 
6467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6468
  (exit $ac_status); } >/dev/null && {
 
6469
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6470
         test ! -s conftest.err
 
6471
       }; then
 
6472
  ac_header_preproc=yes
 
6473
else
 
6474
  echo "$as_me: failed program was:" >&5
 
6475
sed 's/^/| /' conftest.$ac_ext >&5
 
6476
 
 
6477
  ac_header_preproc=no
 
6478
fi
 
6479
 
 
6480
rm -f conftest.err conftest.$ac_ext
 
6481
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6482
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6483
 
 
6484
# So?  What about this header?
 
6485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6486
  yes:no: )
 
6487
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6488
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6489
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6490
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6491
    ac_header_preproc=yes
 
6492
    ;;
 
6493
  no:yes:* )
 
6494
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6495
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6496
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6497
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6498
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6499
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6500
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6501
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6502
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6503
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6504
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6505
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6506
    ( cat <<\_ASBOX
 
6507
## --------------------------------------- ##
 
6508
## Report this to opendap-tech@opendap.org ##
 
6509
## --------------------------------------- ##
 
6510
_ASBOX
 
6511
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6512
    ;;
 
6513
esac
 
6514
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6515
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6516
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6518
else
 
6519
  eval "$as_ac_Header=\$ac_header_preproc"
 
6520
fi
 
6521
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6522
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6523
echo "${ECHO_T}$ac_res" >&6; }
 
6524
 
 
6525
fi
 
6526
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6527
  cat >>confdefs.h <<_ACEOF
 
6528
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6529
_ACEOF
 
6530
 
 
6531
fi
 
6532
 
 
6533
done
 
6534
 
 
6535
 
 
6536
 
 
6537
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6538
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6539
    (test "X$CXX" != "Xg++"))) ; then
 
6540
  ac_ext=cpp
 
6541
ac_cpp='$CXXCPP $CPPFLAGS'
 
6542
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6543
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6544
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6545
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6546
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
6547
if test -z "$CXXCPP"; then
 
6548
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6550
else
 
6551
      # Double quotes because CXXCPP needs to be expanded
 
6552
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6553
    do
 
6554
      ac_preproc_ok=false
 
6555
for ac_cxx_preproc_warn_flag in '' yes
 
6556
do
 
6557
  # Use a header file that comes with gcc, so configuring glibc
 
6558
  # with a fresh cross-compiler works.
 
6559
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6560
  # <limits.h> exists even on freestanding compilers.
 
6561
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6562
  # not just through cpp. "Syntax error" is here to catch this case.
 
6563
  cat >conftest.$ac_ext <<_ACEOF
 
6564
/* confdefs.h.  */
 
6565
_ACEOF
 
6566
cat confdefs.h >>conftest.$ac_ext
 
6567
cat >>conftest.$ac_ext <<_ACEOF
 
6568
/* end confdefs.h.  */
 
6569
#ifdef __STDC__
 
6570
# include <limits.h>
 
6571
#else
 
6572
# include <assert.h>
 
6573
#endif
 
6574
                     Syntax error
 
6575
_ACEOF
 
6576
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6577
case "(($ac_try" in
 
6578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6579
  *) ac_try_echo=$ac_try;;
 
6580
esac
 
6581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6582
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6583
  ac_status=$?
 
6584
  grep -v '^ *+' conftest.er1 >conftest.err
 
6585
  rm -f conftest.er1
 
6586
  cat conftest.err >&5
 
6587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6588
  (exit $ac_status); } >/dev/null && {
 
6589
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6590
         test ! -s conftest.err
 
6591
       }; then
 
6592
  :
 
6593
else
 
6594
  echo "$as_me: failed program was:" >&5
 
6595
sed 's/^/| /' conftest.$ac_ext >&5
 
6596
 
 
6597
  # Broken: fails on valid input.
 
6598
continue
 
6599
fi
 
6600
 
 
6601
rm -f conftest.err conftest.$ac_ext
 
6602
 
 
6603
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6604
  # can be detected and how.
 
6605
  cat >conftest.$ac_ext <<_ACEOF
 
6606
/* confdefs.h.  */
 
6607
_ACEOF
 
6608
cat confdefs.h >>conftest.$ac_ext
 
6609
cat >>conftest.$ac_ext <<_ACEOF
 
6610
/* end confdefs.h.  */
 
6611
#include <ac_nonexistent.h>
 
6612
_ACEOF
 
6613
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6614
case "(($ac_try" in
 
6615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6616
  *) ac_try_echo=$ac_try;;
 
6617
esac
 
6618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6619
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6620
  ac_status=$?
 
6621
  grep -v '^ *+' conftest.er1 >conftest.err
 
6622
  rm -f conftest.er1
 
6623
  cat conftest.err >&5
 
6624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6625
  (exit $ac_status); } >/dev/null && {
 
6626
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6627
         test ! -s conftest.err
 
6628
       }; then
 
6629
  # Broken: success on invalid input.
 
6630
continue
 
6631
else
 
6632
  echo "$as_me: failed program was:" >&5
 
6633
sed 's/^/| /' conftest.$ac_ext >&5
 
6634
 
 
6635
  # Passes both tests.
 
6636
ac_preproc_ok=:
 
6637
break
 
6638
fi
 
6639
 
 
6640
rm -f conftest.err conftest.$ac_ext
 
6641
 
 
6642
done
 
6643
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6644
rm -f conftest.err conftest.$ac_ext
 
6645
if $ac_preproc_ok; then
 
6646
  break
 
6647
fi
 
6648
 
 
6649
    done
 
6650
    ac_cv_prog_CXXCPP=$CXXCPP
 
6651
 
 
6652
fi
 
6653
  CXXCPP=$ac_cv_prog_CXXCPP
 
6654
else
 
6655
  ac_cv_prog_CXXCPP=$CXXCPP
 
6656
fi
 
6657
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6658
echo "${ECHO_T}$CXXCPP" >&6; }
 
6659
ac_preproc_ok=false
 
6660
for ac_cxx_preproc_warn_flag in '' yes
 
6661
do
 
6662
  # Use a header file that comes with gcc, so configuring glibc
 
6663
  # with a fresh cross-compiler works.
 
6664
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6665
  # <limits.h> exists even on freestanding compilers.
 
6666
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6667
  # not just through cpp. "Syntax error" is here to catch this case.
 
6668
  cat >conftest.$ac_ext <<_ACEOF
 
6669
/* confdefs.h.  */
 
6670
_ACEOF
 
6671
cat confdefs.h >>conftest.$ac_ext
 
6672
cat >>conftest.$ac_ext <<_ACEOF
 
6673
/* end confdefs.h.  */
 
6674
#ifdef __STDC__
 
6675
# include <limits.h>
 
6676
#else
 
6677
# include <assert.h>
 
6678
#endif
 
6679
                     Syntax error
 
6680
_ACEOF
 
6681
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6682
case "(($ac_try" in
 
6683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6684
  *) ac_try_echo=$ac_try;;
 
6685
esac
 
6686
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6687
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6688
  ac_status=$?
 
6689
  grep -v '^ *+' conftest.er1 >conftest.err
 
6690
  rm -f conftest.er1
 
6691
  cat conftest.err >&5
 
6692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6693
  (exit $ac_status); } >/dev/null && {
 
6694
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6695
         test ! -s conftest.err
 
6696
       }; then
 
6697
  :
 
6698
else
 
6699
  echo "$as_me: failed program was:" >&5
 
6700
sed 's/^/| /' conftest.$ac_ext >&5
 
6701
 
 
6702
  # Broken: fails on valid input.
 
6703
continue
 
6704
fi
 
6705
 
 
6706
rm -f conftest.err conftest.$ac_ext
 
6707
 
 
6708
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6709
  # can be detected and how.
 
6710
  cat >conftest.$ac_ext <<_ACEOF
 
6711
/* confdefs.h.  */
 
6712
_ACEOF
 
6713
cat confdefs.h >>conftest.$ac_ext
 
6714
cat >>conftest.$ac_ext <<_ACEOF
 
6715
/* end confdefs.h.  */
 
6716
#include <ac_nonexistent.h>
 
6717
_ACEOF
 
6718
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6719
case "(($ac_try" in
 
6720
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6721
  *) ac_try_echo=$ac_try;;
 
6722
esac
 
6723
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6724
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6725
  ac_status=$?
 
6726
  grep -v '^ *+' conftest.er1 >conftest.err
 
6727
  rm -f conftest.er1
 
6728
  cat conftest.err >&5
 
6729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6730
  (exit $ac_status); } >/dev/null && {
 
6731
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6732
         test ! -s conftest.err
 
6733
       }; then
 
6734
  # Broken: success on invalid input.
 
6735
continue
 
6736
else
 
6737
  echo "$as_me: failed program was:" >&5
 
6738
sed 's/^/| /' conftest.$ac_ext >&5
 
6739
 
 
6740
  # Passes both tests.
 
6741
ac_preproc_ok=:
 
6742
break
 
6743
fi
 
6744
 
 
6745
rm -f conftest.err conftest.$ac_ext
 
6746
 
 
6747
done
 
6748
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6749
rm -f conftest.err conftest.$ac_ext
 
6750
if $ac_preproc_ok; then
 
6751
  :
 
6752
else
 
6753
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6754
See \`config.log' for more details." >&5
 
6755
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6756
See \`config.log' for more details." >&2;}
 
6757
   { (exit 1); exit 1; }; }
 
6758
fi
 
6759
 
 
6760
ac_ext=cpp
 
6761
ac_cpp='$CXXCPP $CPPFLAGS'
 
6762
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6763
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6764
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6765
 
 
6766
fi
 
6767
 
 
6768
 
 
6769
ac_ext=f
 
6770
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6771
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6772
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6773
if test -n "$ac_tool_prefix"; then
 
6774
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6775
  do
 
6776
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6777
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6778
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6780
if test "${ac_cv_prog_F77+set}" = set; then
 
6781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6782
else
 
6783
  if test -n "$F77"; then
 
6784
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6785
else
 
6786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6787
for as_dir in $PATH
 
6788
do
 
6789
  IFS=$as_save_IFS
 
6790
  test -z "$as_dir" && as_dir=.
 
6791
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6792
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6793
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6794
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6795
    break 2
 
6796
  fi
 
6797
done
 
6798
done
 
6799
IFS=$as_save_IFS
 
6800
 
 
6801
fi
 
6802
fi
 
6803
F77=$ac_cv_prog_F77
 
6804
if test -n "$F77"; then
 
6805
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6806
echo "${ECHO_T}$F77" >&6; }
 
6807
else
 
6808
  { echo "$as_me:$LINENO: result: no" >&5
 
6809
echo "${ECHO_T}no" >&6; }
 
6810
fi
 
6811
 
 
6812
 
 
6813
    test -n "$F77" && break
 
6814
  done
 
6815
fi
 
6816
if test -z "$F77"; then
 
6817
  ac_ct_F77=$F77
 
6818
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6819
do
 
6820
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6821
set dummy $ac_prog; ac_word=$2
 
6822
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6823
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6824
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6826
else
 
6827
  if test -n "$ac_ct_F77"; then
 
6828
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6829
else
 
6830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6831
for as_dir in $PATH
 
6832
do
 
6833
  IFS=$as_save_IFS
 
6834
  test -z "$as_dir" && as_dir=.
 
6835
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6836
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6837
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6838
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6839
    break 2
 
6840
  fi
 
6841
done
 
6842
done
 
6843
IFS=$as_save_IFS
 
6844
 
 
6845
fi
 
6846
fi
 
6847
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6848
if test -n "$ac_ct_F77"; then
 
6849
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6850
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6851
else
 
6852
  { echo "$as_me:$LINENO: result: no" >&5
 
6853
echo "${ECHO_T}no" >&6; }
 
6854
fi
 
6855
 
 
6856
 
 
6857
  test -n "$ac_ct_F77" && break
 
6858
done
 
6859
 
 
6860
  if test "x$ac_ct_F77" = x; then
 
6861
    F77=""
 
6862
  else
 
6863
    case $cross_compiling:$ac_tool_warned in
 
6864
yes:)
 
6865
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6866
whose name does not start with the host triplet.  If you think this
 
6867
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6868
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6869
whose name does not start with the host triplet.  If you think this
 
6870
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6871
ac_tool_warned=yes ;;
 
6872
esac
 
6873
    F77=$ac_ct_F77
 
6874
  fi
 
6875
fi
 
6876
 
 
6877
 
 
6878
# Provide some information about the compiler.
 
6879
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6880
ac_compiler=`set X $ac_compile; echo $2`
 
6881
{ (ac_try="$ac_compiler --version >&5"
 
6882
case "(($ac_try" in
 
6883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6884
  *) ac_try_echo=$ac_try;;
 
6885
esac
 
6886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6887
  (eval "$ac_compiler --version >&5") 2>&5
 
6888
  ac_status=$?
 
6889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6890
  (exit $ac_status); }
 
6891
{ (ac_try="$ac_compiler -v >&5"
 
6892
case "(($ac_try" in
 
6893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6894
  *) ac_try_echo=$ac_try;;
 
6895
esac
 
6896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6897
  (eval "$ac_compiler -v >&5") 2>&5
 
6898
  ac_status=$?
 
6899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6900
  (exit $ac_status); }
 
6901
{ (ac_try="$ac_compiler -V >&5"
 
6902
case "(($ac_try" in
 
6903
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6904
  *) ac_try_echo=$ac_try;;
 
6905
esac
 
6906
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6907
  (eval "$ac_compiler -V >&5") 2>&5
 
6908
  ac_status=$?
 
6909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6910
  (exit $ac_status); }
 
6911
rm -f a.out
 
6912
 
 
6913
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6914
# input file.  (Note that this only needs to work for GNU compilers.)
 
6915
ac_save_ext=$ac_ext
 
6916
ac_ext=F
 
6917
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6918
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6919
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6921
else
 
6922
  cat >conftest.$ac_ext <<_ACEOF
 
6923
      program main
 
6924
#ifndef __GNUC__
 
6925
       choke me
 
6926
#endif
 
6927
 
 
6928
      end
 
6929
_ACEOF
 
6930
rm -f conftest.$ac_objext
 
6931
if { (ac_try="$ac_compile"
 
6932
case "(($ac_try" in
 
6933
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6934
  *) ac_try_echo=$ac_try;;
 
6935
esac
 
6936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6937
  (eval "$ac_compile") 2>conftest.er1
 
6938
  ac_status=$?
 
6939
  grep -v '^ *+' conftest.er1 >conftest.err
 
6940
  rm -f conftest.er1
 
6941
  cat conftest.err >&5
 
6942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6943
  (exit $ac_status); } && {
 
6944
         test -z "$ac_f77_werror_flag" ||
 
6945
         test ! -s conftest.err
 
6946
       } && test -s conftest.$ac_objext; then
 
6947
  ac_compiler_gnu=yes
 
6948
else
 
6949
  echo "$as_me: failed program was:" >&5
 
6950
sed 's/^/| /' conftest.$ac_ext >&5
 
6951
 
 
6952
        ac_compiler_gnu=no
 
6953
fi
 
6954
 
 
6955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6956
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6957
 
 
6958
fi
 
6959
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6960
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6961
ac_ext=$ac_save_ext
 
6962
ac_test_FFLAGS=${FFLAGS+set}
 
6963
ac_save_FFLAGS=$FFLAGS
 
6964
FFLAGS=
 
6965
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6966
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6967
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6969
else
 
6970
  FFLAGS=-g
 
6971
cat >conftest.$ac_ext <<_ACEOF
 
6972
      program main
 
6973
 
 
6974
      end
 
6975
_ACEOF
 
6976
rm -f conftest.$ac_objext
 
6977
if { (ac_try="$ac_compile"
 
6978
case "(($ac_try" in
 
6979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6980
  *) ac_try_echo=$ac_try;;
 
6981
esac
 
6982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6983
  (eval "$ac_compile") 2>conftest.er1
 
6984
  ac_status=$?
 
6985
  grep -v '^ *+' conftest.er1 >conftest.err
 
6986
  rm -f conftest.er1
 
6987
  cat conftest.err >&5
 
6988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6989
  (exit $ac_status); } && {
 
6990
         test -z "$ac_f77_werror_flag" ||
 
6991
         test ! -s conftest.err
 
6992
       } && test -s conftest.$ac_objext; then
 
6993
  ac_cv_prog_f77_g=yes
 
6994
else
 
6995
  echo "$as_me: failed program was:" >&5
 
6996
sed 's/^/| /' conftest.$ac_ext >&5
 
6997
 
 
6998
        ac_cv_prog_f77_g=no
 
6999
fi
 
7000
 
 
7001
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7002
 
 
7003
fi
 
7004
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
7005
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
7006
if test "$ac_test_FFLAGS" = set; then
 
7007
  FFLAGS=$ac_save_FFLAGS
 
7008
elif test $ac_cv_prog_f77_g = yes; then
 
7009
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7010
    FFLAGS="-g -O2"
 
7011
  else
 
7012
    FFLAGS="-g"
 
7013
  fi
 
7014
else
 
7015
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7016
    FFLAGS="-O2"
 
7017
  else
 
7018
    FFLAGS=
 
7019
  fi
 
7020
fi
 
7021
 
 
7022
G77=`test $ac_compiler_gnu = yes && echo yes`
 
7023
ac_ext=c
 
7024
ac_cpp='$CPP $CPPFLAGS'
 
7025
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7026
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7027
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7028
 
 
7029
 
 
7030
 
 
7031
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
7032
 
 
7033
# find the maximum length of command line arguments
 
7034
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
7035
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
7036
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
7037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7038
else
 
7039
    i=0
 
7040
  teststring="ABCD"
 
7041
 
 
7042
  case $build_os in
 
7043
  msdosdjgpp*)
 
7044
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
7045
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
7046
    # during glob expansion).  Even if it were fixed, the result of this
 
7047
    # check would be larger than it should be.
 
7048
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
7049
    ;;
 
7050
 
 
7051
  gnu*)
 
7052
    # Under GNU Hurd, this test is not required because there is
 
7053
    # no limit to the length of command line arguments.
 
7054
    # Libtool will interpret -1 as no limit whatsoever
 
7055
    lt_cv_sys_max_cmd_len=-1;
 
7056
    ;;
 
7057
 
 
7058
  cygwin* | mingw*)
 
7059
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
7060
    # about 5 minutes as the teststring grows exponentially.
 
7061
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
7062
    # you end up with a "frozen" computer, even though with patience
 
7063
    # the test eventually succeeds (with a max line length of 256k).
 
7064
    # Instead, let's just punt: use the minimum linelength reported by
 
7065
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
7066
    lt_cv_sys_max_cmd_len=8192;
 
7067
    ;;
 
7068
 
 
7069
  amigaos*)
 
7070
    # On AmigaOS with pdksh, this test takes hours, literally.
 
7071
    # So we just punt and use a minimum line length of 8192.
 
7072
    lt_cv_sys_max_cmd_len=8192;
 
7073
    ;;
 
7074
 
 
7075
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
7076
    # This has been around since 386BSD, at least.  Likely further.
 
7077
    if test -x /sbin/sysctl; then
 
7078
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
7079
    elif test -x /usr/sbin/sysctl; then
 
7080
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
7081
    else
 
7082
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
7083
    fi
 
7084
    # And add a safety zone
 
7085
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7086
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
7087
    ;;
 
7088
 
 
7089
  interix*)
 
7090
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
7091
    lt_cv_sys_max_cmd_len=196608
 
7092
    ;;
 
7093
 
 
7094
  osf*)
 
7095
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
7096
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
7097
    # nice to cause kernel panics so lets avoid the loop below.
 
7098
    # First set a reasonable default.
 
7099
    lt_cv_sys_max_cmd_len=16384
 
7100
    #
 
7101
    if test -x /sbin/sysconfig; then
 
7102
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
7103
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
7104
      esac
 
7105
    fi
 
7106
    ;;
 
7107
  sco3.2v5*)
 
7108
    lt_cv_sys_max_cmd_len=102400
 
7109
    ;;
 
7110
  sysv5* | sco5v6* | sysv4.2uw2*)
 
7111
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
7112
    if test -n "$kargmax"; then
 
7113
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
7114
    else
 
7115
      lt_cv_sys_max_cmd_len=32768
 
7116
    fi
 
7117
    ;;
 
7118
  *)
 
7119
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
7120
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
7121
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7122
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
7123
    else
 
7124
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
7125
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
7126
               = "XX$teststring") >/dev/null 2>&1 &&
 
7127
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
7128
              lt_cv_sys_max_cmd_len=$new_result &&
 
7129
              test $i != 17 # 1/2 MB should be enough
 
7130
      do
 
7131
        i=`expr $i + 1`
 
7132
        teststring=$teststring$teststring
 
7133
      done
 
7134
      teststring=
 
7135
      # Add a significant safety factor because C++ compilers can tack on massive
 
7136
      # amounts of additional arguments before passing them to the linker.
 
7137
      # It appears as though 1/2 is a usable value.
 
7138
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
7139
    fi
 
7140
    ;;
 
7141
  esac
 
7142
 
 
7143
fi
 
7144
 
 
7145
if test -n $lt_cv_sys_max_cmd_len ; then
 
7146
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
7147
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
7148
else
 
7149
  { echo "$as_me:$LINENO: result: none" >&5
 
7150
echo "${ECHO_T}none" >&6; }
 
7151
fi
 
7152
 
 
7153
 
 
7154
 
 
7155
 
 
7156
 
 
7157
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7158
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
7159
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
7160
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
7161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7162
else
 
7163
 
 
7164
# These are sane defaults that work on at least a few old systems.
 
7165
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7166
 
 
7167
# Character class describing NM global symbol codes.
 
7168
symcode='[BCDEGRST]'
 
7169
 
 
7170
# Regexp to match symbols that can be accessed directly from C.
 
7171
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7172
 
 
7173
# Transform an extracted symbol line into a proper C declaration
 
7174
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
7175
 
 
7176
# Transform an extracted symbol line into symbol name and symbol address
 
7177
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'"
 
7178
 
 
7179
# Define system-specific variables.
 
7180
case $host_os in
 
7181
aix*)
 
7182
  symcode='[BCDT]'
 
7183
  ;;
 
7184
cygwin* | mingw* | pw32*)
 
7185
  symcode='[ABCDGISTW]'
 
7186
  ;;
 
7187
hpux*) # Its linker distinguishes data from code symbols
 
7188
  if test "$host_cpu" = ia64; then
 
7189
    symcode='[ABCDEGRST]'
 
7190
  fi
 
7191
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7192
  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'"
 
7193
  ;;
 
7194
linux* | k*bsd*-gnu)
 
7195
  if test "$host_cpu" = ia64; then
 
7196
    symcode='[ABCDGIRSTW]'
 
7197
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7198
    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'"
 
7199
  fi
 
7200
  ;;
 
7201
irix* | nonstopux*)
 
7202
  symcode='[BCDEGRST]'
 
7203
  ;;
 
7204
osf*)
 
7205
  symcode='[BCDEGQRST]'
 
7206
  ;;
 
7207
solaris*)
 
7208
  symcode='[BDRT]'
 
7209
  ;;
 
7210
sco3.2v5*)
 
7211
  symcode='[DT]'
 
7212
  ;;
 
7213
sysv4.2uw2*)
 
7214
  symcode='[DT]'
 
7215
  ;;
 
7216
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7217
  symcode='[ABDT]'
 
7218
  ;;
 
7219
sysv4)
 
7220
  symcode='[DFNSTU]'
 
7221
  ;;
 
7222
esac
 
7223
 
 
7224
# Handle CRLF in mingw tool chain
 
7225
opt_cr=
 
7226
case $build_os in
 
7227
mingw*)
 
7228
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7229
  ;;
 
7230
esac
 
7231
 
 
7232
# If we're using GNU nm, then use its standard symbol codes.
 
7233
case `$NM -V 2>&1` in
 
7234
*GNU* | *'with BFD'*)
 
7235
  symcode='[ABCDGIRSTW]' ;;
 
7236
esac
 
7237
 
 
7238
# Try without a prefix undercore, then with it.
 
7239
for ac_symprfx in "" "_"; do
 
7240
 
 
7241
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7242
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7243
 
 
7244
  # Write the raw and C identifiers.
 
7245
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7246
 
 
7247
  # Check to see that the pipe works correctly.
 
7248
  pipe_works=no
 
7249
 
 
7250
  rm -f conftest*
 
7251
  cat > conftest.$ac_ext <<EOF
 
7252
#ifdef __cplusplus
 
7253
extern "C" {
 
7254
#endif
 
7255
char nm_test_var;
 
7256
void nm_test_func(){}
 
7257
#ifdef __cplusplus
 
7258
}
 
7259
#endif
 
7260
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7261
EOF
 
7262
 
 
7263
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7264
  (eval $ac_compile) 2>&5
 
7265
  ac_status=$?
 
7266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7267
  (exit $ac_status); }; then
 
7268
    # Now try to grab the symbols.
 
7269
    nlist=conftest.nm
 
7270
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
7271
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7272
  ac_status=$?
 
7273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7274
  (exit $ac_status); } && test -s "$nlist"; then
 
7275
      # Try sorting and uniquifying the output.
 
7276
      if sort "$nlist" | uniq > "$nlist"T; then
 
7277
        mv -f "$nlist"T "$nlist"
 
7278
      else
 
7279
        rm -f "$nlist"T
 
7280
      fi
 
7281
 
 
7282
      # Make sure that we snagged all the symbols we need.
 
7283
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
7284
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
7285
          cat <<EOF > conftest.$ac_ext
 
7286
#ifdef __cplusplus
 
7287
extern "C" {
 
7288
#endif
 
7289
 
 
7290
EOF
 
7291
          # Now generate the symbol file.
 
7292
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
7293
 
 
7294
          cat <<EOF >> conftest.$ac_ext
 
7295
#if defined (__STDC__) && __STDC__
 
7296
# define lt_ptr_t void *
 
7297
#else
 
7298
# define lt_ptr_t char *
 
7299
# define const
 
7300
#endif
 
7301
 
 
7302
/* The mapping between symbol names and symbols. */
 
7303
const struct {
 
7304
  const char *name;
 
7305
  lt_ptr_t address;
 
7306
}
 
7307
lt_preloaded_symbols[] =
 
7308
{
 
7309
EOF
 
7310
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
7311
          cat <<\EOF >> conftest.$ac_ext
 
7312
  {0, (lt_ptr_t) 0}
 
7313
};
 
7314
 
 
7315
#ifdef __cplusplus
 
7316
}
 
7317
#endif
 
7318
EOF
 
7319
          # Now try linking the two files.
 
7320
          mv conftest.$ac_objext conftstm.$ac_objext
 
7321
          lt_save_LIBS="$LIBS"
 
7322
          lt_save_CFLAGS="$CFLAGS"
 
7323
          LIBS="conftstm.$ac_objext"
 
7324
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7325
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7326
  (eval $ac_link) 2>&5
 
7327
  ac_status=$?
 
7328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7329
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
7330
            pipe_works=yes
 
7331
          fi
 
7332
          LIBS="$lt_save_LIBS"
 
7333
          CFLAGS="$lt_save_CFLAGS"
 
7334
        else
 
7335
          echo "cannot find nm_test_func in $nlist" >&5
 
7336
        fi
 
7337
      else
 
7338
        echo "cannot find nm_test_var in $nlist" >&5
 
7339
      fi
 
7340
    else
 
7341
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7342
    fi
 
7343
  else
 
7344
    echo "$progname: failed program was:" >&5
 
7345
    cat conftest.$ac_ext >&5
 
7346
  fi
 
7347
  rm -f conftest* conftst*
 
7348
 
 
7349
  # Do not use the global_symbol_pipe unless it works.
 
7350
  if test "$pipe_works" = yes; then
 
7351
    break
 
7352
  else
 
7353
    lt_cv_sys_global_symbol_pipe=
 
7354
  fi
 
7355
done
 
7356
 
 
7357
fi
 
7358
 
 
7359
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7360
  lt_cv_sys_global_symbol_to_cdecl=
 
7361
fi
 
7362
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7363
  { echo "$as_me:$LINENO: result: failed" >&5
 
7364
echo "${ECHO_T}failed" >&6; }
 
7365
else
 
7366
  { echo "$as_me:$LINENO: result: ok" >&5
 
7367
echo "${ECHO_T}ok" >&6; }
 
7368
fi
 
7369
 
 
7370
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
7371
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
7372
if test "${lt_cv_objdir+set}" = set; then
 
7373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7374
else
 
7375
  rm -f .libs 2>/dev/null
 
7376
mkdir .libs 2>/dev/null
 
7377
if test -d .libs; then
 
7378
  lt_cv_objdir=.libs
 
7379
else
 
7380
  # MS-DOS does not allow filenames that begin with a dot.
 
7381
  lt_cv_objdir=_libs
 
7382
fi
 
7383
rmdir .libs 2>/dev/null
 
7384
fi
 
7385
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7386
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
7387
objdir=$lt_cv_objdir
 
7388
 
 
7389
 
 
7390
 
 
7391
 
 
7392
 
 
7393
case $host_os in
 
7394
aix3*)
 
7395
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7396
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7397
  # vanish in a puff of smoke.
 
7398
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7399
    COLLECT_NAMES=
 
7400
    export COLLECT_NAMES
 
7401
  fi
 
7402
  ;;
 
7403
esac
 
7404
 
 
7405
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7406
# metacharacters that are still active within double-quoted strings.
 
7407
Xsed='sed -e 1s/^X//'
 
7408
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7409
 
 
7410
# Same as above, but do not quote variable references.
 
7411
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7412
 
 
7413
# Sed substitution to delay expansion of an escaped shell variable in a
 
7414
# double_quote_subst'ed string.
 
7415
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7416
 
 
7417
# Sed substitution to avoid accidental globbing in evaled expressions
 
7418
no_glob_subst='s/\*/\\\*/g'
 
7419
 
 
7420
# Constants:
 
7421
rm="rm -f"
 
7422
 
 
7423
# Global variables:
 
7424
default_ofile=libtool
 
7425
can_build_shared=yes
 
7426
 
 
7427
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7428
# which needs '.lib').
 
7429
libext=a
 
7430
ltmain="$ac_aux_dir/ltmain.sh"
 
7431
ofile="$default_ofile"
 
7432
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7433
 
 
7434
if test -n "$ac_tool_prefix"; then
 
7435
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7436
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7437
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7439
if test "${ac_cv_prog_AR+set}" = set; then
 
7440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7441
else
 
7442
  if test -n "$AR"; then
 
7443
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7444
else
 
7445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7446
for as_dir in $PATH
 
7447
do
 
7448
  IFS=$as_save_IFS
 
7449
  test -z "$as_dir" && as_dir=.
 
7450
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7451
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7452
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7453
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7454
    break 2
 
7455
  fi
 
7456
done
 
7457
done
 
7458
IFS=$as_save_IFS
 
7459
 
 
7460
fi
 
7461
fi
 
7462
AR=$ac_cv_prog_AR
 
7463
if test -n "$AR"; then
 
7464
  { echo "$as_me:$LINENO: result: $AR" >&5
 
7465
echo "${ECHO_T}$AR" >&6; }
 
7466
else
 
7467
  { echo "$as_me:$LINENO: result: no" >&5
 
7468
echo "${ECHO_T}no" >&6; }
 
7469
fi
 
7470
 
 
7471
 
 
7472
fi
 
7473
if test -z "$ac_cv_prog_AR"; then
 
7474
  ac_ct_AR=$AR
 
7475
  # Extract the first word of "ar", so it can be a program name with args.
 
7476
set dummy ar; ac_word=$2
 
7477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7479
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7481
else
 
7482
  if test -n "$ac_ct_AR"; then
 
7483
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7484
else
 
7485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7486
for as_dir in $PATH
 
7487
do
 
7488
  IFS=$as_save_IFS
 
7489
  test -z "$as_dir" && as_dir=.
 
7490
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7492
    ac_cv_prog_ac_ct_AR="ar"
 
7493
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7494
    break 2
 
7495
  fi
 
7496
done
 
7497
done
 
7498
IFS=$as_save_IFS
 
7499
 
 
7500
fi
 
7501
fi
 
7502
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7503
if test -n "$ac_ct_AR"; then
 
7504
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7505
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
7506
else
 
7507
  { echo "$as_me:$LINENO: result: no" >&5
 
7508
echo "${ECHO_T}no" >&6; }
 
7509
fi
 
7510
 
 
7511
  if test "x$ac_ct_AR" = x; then
 
7512
    AR="false"
 
7513
  else
 
7514
    case $cross_compiling:$ac_tool_warned in
 
7515
yes:)
 
7516
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7517
whose name does not start with the host triplet.  If you think this
 
7518
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7519
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7520
whose name does not start with the host triplet.  If you think this
 
7521
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7522
ac_tool_warned=yes ;;
 
7523
esac
 
7524
    AR=$ac_ct_AR
 
7525
  fi
 
7526
else
 
7527
  AR="$ac_cv_prog_AR"
 
7528
fi
 
7529
 
 
7530
if test -n "$ac_tool_prefix"; then
 
7531
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7532
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7533
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7534
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7535
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7537
else
 
7538
  if test -n "$RANLIB"; then
 
7539
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7540
else
 
7541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7542
for as_dir in $PATH
 
7543
do
 
7544
  IFS=$as_save_IFS
 
7545
  test -z "$as_dir" && as_dir=.
 
7546
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7547
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7548
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7549
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7550
    break 2
 
7551
  fi
 
7552
done
 
7553
done
 
7554
IFS=$as_save_IFS
 
7555
 
 
7556
fi
 
7557
fi
 
7558
RANLIB=$ac_cv_prog_RANLIB
 
7559
if test -n "$RANLIB"; then
 
7560
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7561
echo "${ECHO_T}$RANLIB" >&6; }
 
7562
else
 
7563
  { echo "$as_me:$LINENO: result: no" >&5
 
7564
echo "${ECHO_T}no" >&6; }
 
7565
fi
 
7566
 
 
7567
 
 
7568
fi
 
7569
if test -z "$ac_cv_prog_RANLIB"; then
 
7570
  ac_ct_RANLIB=$RANLIB
 
7571
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7572
set dummy ranlib; ac_word=$2
 
7573
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7575
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7577
else
 
7578
  if test -n "$ac_ct_RANLIB"; then
 
7579
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7580
else
 
7581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7582
for as_dir in $PATH
 
7583
do
 
7584
  IFS=$as_save_IFS
 
7585
  test -z "$as_dir" && as_dir=.
 
7586
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7587
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7588
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7589
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7590
    break 2
 
7591
  fi
 
7592
done
 
7593
done
 
7594
IFS=$as_save_IFS
 
7595
 
 
7596
fi
 
7597
fi
 
7598
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7599
if test -n "$ac_ct_RANLIB"; then
 
7600
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7601
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
7602
else
 
7603
  { echo "$as_me:$LINENO: result: no" >&5
 
7604
echo "${ECHO_T}no" >&6; }
 
7605
fi
 
7606
 
 
7607
  if test "x$ac_ct_RANLIB" = x; then
 
7608
    RANLIB=":"
 
7609
  else
 
7610
    case $cross_compiling:$ac_tool_warned in
 
7611
yes:)
 
7612
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7613
whose name does not start with the host triplet.  If you think this
 
7614
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7615
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7616
whose name does not start with the host triplet.  If you think this
 
7617
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7618
ac_tool_warned=yes ;;
 
7619
esac
 
7620
    RANLIB=$ac_ct_RANLIB
 
7621
  fi
 
7622
else
 
7623
  RANLIB="$ac_cv_prog_RANLIB"
 
7624
fi
 
7625
 
 
7626
if test -n "$ac_tool_prefix"; then
 
7627
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7628
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7629
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7631
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7633
else
 
7634
  if test -n "$STRIP"; then
 
7635
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7636
else
 
7637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7638
for as_dir in $PATH
 
7639
do
 
7640
  IFS=$as_save_IFS
 
7641
  test -z "$as_dir" && as_dir=.
 
7642
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7643
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7644
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7645
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7646
    break 2
 
7647
  fi
 
7648
done
 
7649
done
 
7650
IFS=$as_save_IFS
 
7651
 
 
7652
fi
 
7653
fi
 
7654
STRIP=$ac_cv_prog_STRIP
 
7655
if test -n "$STRIP"; then
 
7656
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7657
echo "${ECHO_T}$STRIP" >&6; }
 
7658
else
 
7659
  { echo "$as_me:$LINENO: result: no" >&5
 
7660
echo "${ECHO_T}no" >&6; }
 
7661
fi
 
7662
 
 
7663
 
 
7664
fi
 
7665
if test -z "$ac_cv_prog_STRIP"; then
 
7666
  ac_ct_STRIP=$STRIP
 
7667
  # Extract the first word of "strip", so it can be a program name with args.
 
7668
set dummy strip; ac_word=$2
 
7669
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7671
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7673
else
 
7674
  if test -n "$ac_ct_STRIP"; then
 
7675
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7676
else
 
7677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7678
for as_dir in $PATH
 
7679
do
 
7680
  IFS=$as_save_IFS
 
7681
  test -z "$as_dir" && as_dir=.
 
7682
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7683
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7684
    ac_cv_prog_ac_ct_STRIP="strip"
 
7685
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7686
    break 2
 
7687
  fi
 
7688
done
 
7689
done
 
7690
IFS=$as_save_IFS
 
7691
 
 
7692
fi
 
7693
fi
 
7694
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7695
if test -n "$ac_ct_STRIP"; then
 
7696
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7697
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
7698
else
 
7699
  { echo "$as_me:$LINENO: result: no" >&5
 
7700
echo "${ECHO_T}no" >&6; }
 
7701
fi
 
7702
 
 
7703
  if test "x$ac_ct_STRIP" = x; then
 
7704
    STRIP=":"
 
7705
  else
 
7706
    case $cross_compiling:$ac_tool_warned in
 
7707
yes:)
 
7708
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7709
whose name does not start with the host triplet.  If you think this
 
7710
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7711
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7712
whose name does not start with the host triplet.  If you think this
 
7713
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7714
ac_tool_warned=yes ;;
 
7715
esac
 
7716
    STRIP=$ac_ct_STRIP
 
7717
  fi
 
7718
else
 
7719
  STRIP="$ac_cv_prog_STRIP"
 
7720
fi
 
7721
 
 
7722
 
 
7723
old_CC="$CC"
 
7724
old_CFLAGS="$CFLAGS"
 
7725
 
 
7726
# Set sane defaults for various variables
 
7727
test -z "$AR" && AR=ar
 
7728
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7729
test -z "$AS" && AS=as
 
7730
test -z "$CC" && CC=cc
 
7731
test -z "$LTCC" && LTCC=$CC
 
7732
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7733
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7734
test -z "$LD" && LD=ld
 
7735
test -z "$LN_S" && LN_S="ln -s"
 
7736
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7737
test -z "$NM" && NM=nm
 
7738
test -z "$SED" && SED=sed
 
7739
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7740
test -z "$RANLIB" && RANLIB=:
 
7741
test -z "$STRIP" && STRIP=:
 
7742
test -z "$ac_objext" && ac_objext=o
 
7743
 
 
7744
# Determine commands to create old-style static archives.
 
7745
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7746
old_postinstall_cmds='chmod 644 $oldlib'
 
7747
old_postuninstall_cmds=
 
7748
 
 
7749
if test -n "$RANLIB"; then
 
7750
  case $host_os in
 
7751
  openbsd*)
 
7752
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7753
    ;;
 
7754
  *)
 
7755
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7756
    ;;
 
7757
  esac
 
7758
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7759
fi
 
7760
 
 
7761
for cc_temp in $compiler""; do
 
7762
  case $cc_temp in
 
7763
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7764
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7765
    \-*) ;;
 
7766
    *) break;;
 
7767
  esac
 
7768
done
 
7769
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7770
 
 
7771
 
 
7772
# Only perform the check for file, if the check method requires it
 
7773
case $deplibs_check_method in
 
7774
file_magic*)
 
7775
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7776
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7777
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7778
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7780
else
 
7781
  case $MAGIC_CMD in
 
7782
[\\/*] |  ?:[\\/]*)
 
7783
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7784
  ;;
 
7785
*)
 
7786
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7787
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7788
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7789
  for ac_dir in $ac_dummy; do
 
7790
    IFS="$lt_save_ifs"
 
7791
    test -z "$ac_dir" && ac_dir=.
 
7792
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7793
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7794
      if test -n "$file_magic_test_file"; then
 
7795
        case $deplibs_check_method in
 
7796
        "file_magic "*)
 
7797
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7798
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7799
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7800
            $EGREP "$file_magic_regex" > /dev/null; then
 
7801
            :
 
7802
          else
 
7803
            cat <<EOF 1>&2
 
7804
 
 
7805
*** Warning: the command libtool uses to detect shared libraries,
 
7806
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7807
*** The result is that libtool may fail to recognize shared libraries
 
7808
*** as such.  This will affect the creation of libtool libraries that
 
7809
*** depend on shared libraries, but programs linked with such libtool
 
7810
*** libraries will work regardless of this problem.  Nevertheless, you
 
7811
*** may want to report the problem to your system manager and/or to
 
7812
*** bug-libtool@gnu.org
 
7813
 
 
7814
EOF
 
7815
          fi ;;
 
7816
        esac
 
7817
      fi
 
7818
      break
 
7819
    fi
 
7820
  done
 
7821
  IFS="$lt_save_ifs"
 
7822
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7823
  ;;
 
7824
esac
 
7825
fi
 
7826
 
 
7827
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7828
if test -n "$MAGIC_CMD"; then
 
7829
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7830
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7831
else
 
7832
  { echo "$as_me:$LINENO: result: no" >&5
 
7833
echo "${ECHO_T}no" >&6; }
 
7834
fi
 
7835
 
 
7836
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7837
  if test -n "$ac_tool_prefix"; then
 
7838
    { echo "$as_me:$LINENO: checking for file" >&5
 
7839
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7840
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7842
else
 
7843
  case $MAGIC_CMD in
 
7844
[\\/*] |  ?:[\\/]*)
 
7845
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7846
  ;;
 
7847
*)
 
7848
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7849
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7850
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7851
  for ac_dir in $ac_dummy; do
 
7852
    IFS="$lt_save_ifs"
 
7853
    test -z "$ac_dir" && ac_dir=.
 
7854
    if test -f $ac_dir/file; then
 
7855
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7856
      if test -n "$file_magic_test_file"; then
 
7857
        case $deplibs_check_method in
 
7858
        "file_magic "*)
 
7859
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7860
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7861
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7862
            $EGREP "$file_magic_regex" > /dev/null; then
 
7863
            :
 
7864
          else
 
7865
            cat <<EOF 1>&2
 
7866
 
 
7867
*** Warning: the command libtool uses to detect shared libraries,
 
7868
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7869
*** The result is that libtool may fail to recognize shared libraries
 
7870
*** as such.  This will affect the creation of libtool libraries that
 
7871
*** depend on shared libraries, but programs linked with such libtool
 
7872
*** libraries will work regardless of this problem.  Nevertheless, you
 
7873
*** may want to report the problem to your system manager and/or to
 
7874
*** bug-libtool@gnu.org
 
7875
 
 
7876
EOF
 
7877
          fi ;;
 
7878
        esac
 
7879
      fi
 
7880
      break
 
7881
    fi
 
7882
  done
 
7883
  IFS="$lt_save_ifs"
 
7884
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7885
  ;;
 
7886
esac
 
7887
fi
 
7888
 
 
7889
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7890
if test -n "$MAGIC_CMD"; then
 
7891
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7892
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7893
else
 
7894
  { echo "$as_me:$LINENO: result: no" >&5
 
7895
echo "${ECHO_T}no" >&6; }
 
7896
fi
 
7897
 
 
7898
  else
 
7899
    MAGIC_CMD=:
 
7900
  fi
 
7901
fi
 
7902
 
 
7903
  fi
 
7904
  ;;
 
7905
esac
 
7906
 
 
7907
enable_dlopen=no
 
7908
enable_win32_dll=no
 
7909
 
 
7910
# Check whether --enable-libtool-lock was given.
 
7911
if test "${enable_libtool_lock+set}" = set; then
 
7912
  enableval=$enable_libtool_lock;
 
7913
fi
 
7914
 
 
7915
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7916
 
 
7917
 
 
7918
# Check whether --with-pic was given.
 
7919
if test "${with_pic+set}" = set; then
 
7920
  withval=$with_pic; pic_mode="$withval"
 
7921
else
 
7922
  pic_mode=default
 
7923
fi
 
7924
 
 
7925
test -z "$pic_mode" && pic_mode=default
 
7926
 
 
7927
# Use C for the default configuration in the libtool script
 
7928
tagname=
 
7929
lt_save_CC="$CC"
 
7930
ac_ext=c
 
7931
ac_cpp='$CPP $CPPFLAGS'
 
7932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7933
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7934
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7935
 
 
7936
 
 
7937
# Source file extension for C test sources.
 
7938
ac_ext=c
 
7939
 
 
7940
# Object file extension for compiled C test sources.
 
7941
objext=o
 
7942
objext=$objext
 
7943
 
 
7944
# Code to be used in simple compile tests
 
7945
lt_simple_compile_test_code="int some_variable = 0;"
 
7946
 
 
7947
# Code to be used in simple link tests
 
7948
lt_simple_link_test_code='int main(){return(0);}'
 
7949
 
 
7950
 
 
7951
# If no C compiler was specified, use CC.
 
7952
LTCC=${LTCC-"$CC"}
 
7953
 
 
7954
# If no C compiler flags were specified, use CFLAGS.
 
7955
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7956
 
 
7957
# Allow CC to be a program name with arguments.
 
7958
compiler=$CC
 
7959
 
 
7960
 
 
7961
# save warnings/boilerplate of simple test code
 
7962
ac_outfile=conftest.$ac_objext
 
7963
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7964
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7965
_lt_compiler_boilerplate=`cat conftest.err`
 
7966
$rm conftest*
 
7967
 
 
7968
ac_outfile=conftest.$ac_objext
 
7969
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7970
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7971
_lt_linker_boilerplate=`cat conftest.err`
 
7972
$rm conftest*
 
7973
 
 
7974
 
 
7975
 
 
7976
lt_prog_compiler_no_builtin_flag=
 
7977
 
 
7978
if test "$GCC" = yes; then
 
7979
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7980
 
 
7981
 
 
7982
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7983
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7984
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7985
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7986
else
 
7987
  lt_cv_prog_compiler_rtti_exceptions=no
 
7988
  ac_outfile=conftest.$ac_objext
 
7989
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7990
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7991
   # Insert the option either (1) after the last *FLAGS variable, or
 
7992
   # (2) before a word containing "conftest.", or (3) at the end.
 
7993
   # Note that $ac_compile itself does not contain backslashes and begins
 
7994
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7995
   # The option is referenced via a variable to avoid confusing sed.
 
7996
   lt_compile=`echo "$ac_compile" | $SED \
 
7997
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7998
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7999
   -e 's:$: $lt_compiler_flag:'`
 
8000
   (eval echo "\"\$as_me:8000: $lt_compile\"" >&5)
 
8001
   (eval "$lt_compile" 2>conftest.err)
 
8002
   ac_status=$?
 
8003
   cat conftest.err >&5
 
8004
   echo "$as_me:8004: \$? = $ac_status" >&5
 
8005
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8006
     # The compiler can only warn and ignore the option if not recognized
 
8007
     # So say no if there are warnings other than the usual output.
 
8008
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8009
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8010
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8011
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8012
     fi
 
8013
   fi
 
8014
   $rm conftest*
 
8015
 
 
8016
fi
 
8017
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8018
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8019
 
 
8020
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8021
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8022
else
 
8023
    :
 
8024
fi
 
8025
 
 
8026
fi
 
8027
 
 
8028
lt_prog_compiler_wl=
 
8029
lt_prog_compiler_pic=
 
8030
lt_prog_compiler_static=
 
8031
 
 
8032
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
8033
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
8034
 
 
8035
  if test "$GCC" = yes; then
 
8036
    lt_prog_compiler_wl='-Wl,'
 
8037
    lt_prog_compiler_static='-static'
 
8038
 
 
8039
    case $host_os in
 
8040
      aix*)
 
8041
      # All AIX code is PIC.
 
8042
      if test "$host_cpu" = ia64; then
 
8043
        # AIX 5 now supports IA64 processor
 
8044
        lt_prog_compiler_static='-Bstatic'
 
8045
      fi
 
8046
      ;;
 
8047
 
 
8048
    amigaos*)
 
8049
      # FIXME: we need at least 68020 code to build shared libraries, but
 
8050
      # adding the `-m68020' flag to GCC prevents building anything better,
 
8051
      # like `-m68040'.
 
8052
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8053
      ;;
 
8054
 
 
8055
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8056
      # PIC is the default for these OSes.
 
8057
      ;;
 
8058
 
 
8059
    mingw* | cygwin* | pw32* | os2*)
 
8060
      # This hack is so that the source file can tell whether it is being
 
8061
      # built for inclusion in a dll (and should export symbols for example).
 
8062
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8063
      # (--disable-auto-import) libraries
 
8064
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8065
      ;;
 
8066
 
 
8067
    darwin* | rhapsody*)
 
8068
      # PIC is the default on this platform
 
8069
      # Common symbols not allowed in MH_DYLIB files
 
8070
      lt_prog_compiler_pic='-fno-common'
 
8071
      ;;
 
8072
 
 
8073
    interix[3-9]*)
 
8074
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8075
      # Instead, we relocate shared libraries at runtime.
 
8076
      ;;
 
8077
 
 
8078
    msdosdjgpp*)
 
8079
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8080
      # on systems that don't support them.
 
8081
      lt_prog_compiler_can_build_shared=no
 
8082
      enable_shared=no
 
8083
      ;;
 
8084
 
 
8085
    sysv4*MP*)
 
8086
      if test -d /usr/nec; then
 
8087
        lt_prog_compiler_pic=-Kconform_pic
 
8088
      fi
 
8089
      ;;
 
8090
 
 
8091
    hpux*)
 
8092
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8093
      # not for PA HP-UX.
 
8094
      case $host_cpu in
 
8095
      hppa*64*|ia64*)
 
8096
        # +Z the default
 
8097
        ;;
 
8098
      *)
 
8099
        lt_prog_compiler_pic='-fPIC'
 
8100
        ;;
 
8101
      esac
 
8102
      ;;
 
8103
 
 
8104
    *)
 
8105
      lt_prog_compiler_pic='-fPIC'
 
8106
      ;;
 
8107
    esac
 
8108
  else
 
8109
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8110
    case $host_os in
 
8111
    aix*)
 
8112
      lt_prog_compiler_wl='-Wl,'
 
8113
      if test "$host_cpu" = ia64; then
 
8114
        # AIX 5 now supports IA64 processor
 
8115
        lt_prog_compiler_static='-Bstatic'
 
8116
      else
 
8117
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8118
      fi
 
8119
      ;;
 
8120
      darwin*)
 
8121
        # PIC is the default on this platform
 
8122
        # Common symbols not allowed in MH_DYLIB files
 
8123
       case $cc_basename in
 
8124
         xlc*)
 
8125
         lt_prog_compiler_pic='-qnocommon'
 
8126
         lt_prog_compiler_wl='-Wl,'
 
8127
         ;;
 
8128
       esac
 
8129
       ;;
 
8130
 
 
8131
    mingw* | cygwin* | pw32* | os2*)
 
8132
      # This hack is so that the source file can tell whether it is being
 
8133
      # built for inclusion in a dll (and should export symbols for example).
 
8134
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8135
      ;;
 
8136
 
 
8137
    hpux9* | hpux10* | hpux11*)
 
8138
      lt_prog_compiler_wl='-Wl,'
 
8139
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8140
      # not for PA HP-UX.
 
8141
      case $host_cpu in
 
8142
      hppa*64*|ia64*)
 
8143
        # +Z the default
 
8144
        ;;
 
8145
      *)
 
8146
        lt_prog_compiler_pic='+Z'
 
8147
        ;;
 
8148
      esac
 
8149
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8150
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8151
      ;;
 
8152
 
 
8153
    irix5* | irix6* | nonstopux*)
 
8154
      lt_prog_compiler_wl='-Wl,'
 
8155
      # PIC (with -KPIC) is the default.
 
8156
      lt_prog_compiler_static='-non_shared'
 
8157
      ;;
 
8158
 
 
8159
    newsos6)
 
8160
      lt_prog_compiler_pic='-KPIC'
 
8161
      lt_prog_compiler_static='-Bstatic'
 
8162
      ;;
 
8163
 
 
8164
    linux* | k*bsd*-gnu)
 
8165
      case $cc_basename in
 
8166
      icc* | ecc*)
 
8167
        lt_prog_compiler_wl='-Wl,'
 
8168
        lt_prog_compiler_pic='-KPIC'
 
8169
        lt_prog_compiler_static='-static'
 
8170
        ;;
 
8171
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8172
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8173
        # which looks to be a dead project)
 
8174
        lt_prog_compiler_wl='-Wl,'
 
8175
        lt_prog_compiler_pic='-fpic'
 
8176
        lt_prog_compiler_static='-Bstatic'
 
8177
        ;;
 
8178
      ccc*)
 
8179
        lt_prog_compiler_wl='-Wl,'
 
8180
        # All Alpha code is PIC.
 
8181
        lt_prog_compiler_static='-non_shared'
 
8182
        ;;
 
8183
      *)
 
8184
        case `$CC -V 2>&1 | sed 5q` in
 
8185
        *Sun\ C*)
 
8186
          # Sun C 5.9
 
8187
          lt_prog_compiler_pic='-KPIC'
 
8188
          lt_prog_compiler_static='-Bstatic'
 
8189
          lt_prog_compiler_wl='-Wl,'
 
8190
          ;;
 
8191
        *Sun\ F*)
 
8192
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8193
          lt_prog_compiler_pic='-KPIC'
 
8194
          lt_prog_compiler_static='-Bstatic'
 
8195
          lt_prog_compiler_wl=''
 
8196
          ;;
 
8197
        esac
 
8198
        ;;
 
8199
      esac
 
8200
      ;;
 
8201
 
 
8202
    osf3* | osf4* | osf5*)
 
8203
      lt_prog_compiler_wl='-Wl,'
 
8204
      # All OSF/1 code is PIC.
 
8205
      lt_prog_compiler_static='-non_shared'
 
8206
      ;;
 
8207
 
 
8208
    rdos*)
 
8209
      lt_prog_compiler_static='-non_shared'
 
8210
      ;;
 
8211
 
 
8212
    solaris*)
 
8213
      lt_prog_compiler_pic='-KPIC'
 
8214
      lt_prog_compiler_static='-Bstatic'
 
8215
      case $cc_basename in
 
8216
      f77* | f90* | f95*)
 
8217
        lt_prog_compiler_wl='-Qoption ld ';;
 
8218
      *)
 
8219
        lt_prog_compiler_wl='-Wl,';;
 
8220
      esac
 
8221
      ;;
 
8222
 
 
8223
    sunos4*)
 
8224
      lt_prog_compiler_wl='-Qoption ld '
 
8225
      lt_prog_compiler_pic='-PIC'
 
8226
      lt_prog_compiler_static='-Bstatic'
 
8227
      ;;
 
8228
 
 
8229
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8230
      lt_prog_compiler_wl='-Wl,'
 
8231
      lt_prog_compiler_pic='-KPIC'
 
8232
      lt_prog_compiler_static='-Bstatic'
 
8233
      ;;
 
8234
 
 
8235
    sysv4*MP*)
 
8236
      if test -d /usr/nec ;then
 
8237
        lt_prog_compiler_pic='-Kconform_pic'
 
8238
        lt_prog_compiler_static='-Bstatic'
 
8239
      fi
 
8240
      ;;
 
8241
 
 
8242
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8243
      lt_prog_compiler_wl='-Wl,'
 
8244
      lt_prog_compiler_pic='-KPIC'
 
8245
      lt_prog_compiler_static='-Bstatic'
 
8246
      ;;
 
8247
 
 
8248
    unicos*)
 
8249
      lt_prog_compiler_wl='-Wl,'
 
8250
      lt_prog_compiler_can_build_shared=no
 
8251
      ;;
 
8252
 
 
8253
    uts4*)
 
8254
      lt_prog_compiler_pic='-pic'
 
8255
      lt_prog_compiler_static='-Bstatic'
 
8256
      ;;
 
8257
 
 
8258
    *)
 
8259
      lt_prog_compiler_can_build_shared=no
 
8260
      ;;
 
8261
    esac
 
8262
  fi
 
8263
 
 
8264
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8265
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
8266
 
 
8267
#
 
8268
# Check to make sure the PIC flag actually works.
 
8269
#
 
8270
if test -n "$lt_prog_compiler_pic"; then
 
8271
 
 
8272
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8273
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
8274
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8276
else
 
8277
  lt_prog_compiler_pic_works=no
 
8278
  ac_outfile=conftest.$ac_objext
 
8279
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8280
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8281
   # Insert the option either (1) after the last *FLAGS variable, or
 
8282
   # (2) before a word containing "conftest.", or (3) at the end.
 
8283
   # Note that $ac_compile itself does not contain backslashes and begins
 
8284
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8285
   # The option is referenced via a variable to avoid confusing sed.
 
8286
   lt_compile=`echo "$ac_compile" | $SED \
 
8287
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8288
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8289
   -e 's:$: $lt_compiler_flag:'`
 
8290
   (eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
 
8291
   (eval "$lt_compile" 2>conftest.err)
 
8292
   ac_status=$?
 
8293
   cat conftest.err >&5
 
8294
   echo "$as_me:8294: \$? = $ac_status" >&5
 
8295
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8296
     # The compiler can only warn and ignore the option if not recognized
 
8297
     # So say no if there are warnings other than the usual output.
 
8298
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8299
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8300
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8301
       lt_prog_compiler_pic_works=yes
 
8302
     fi
 
8303
   fi
 
8304
   $rm conftest*
 
8305
 
 
8306
fi
 
8307
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
8308
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
8309
 
 
8310
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8311
    case $lt_prog_compiler_pic in
 
8312
     "" | " "*) ;;
 
8313
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8314
     esac
 
8315
else
 
8316
    lt_prog_compiler_pic=
 
8317
     lt_prog_compiler_can_build_shared=no
 
8318
fi
 
8319
 
 
8320
fi
 
8321
case $host_os in
 
8322
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8323
  *djgpp*)
 
8324
    lt_prog_compiler_pic=
 
8325
    ;;
 
8326
  *)
 
8327
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8328
    ;;
 
8329
esac
 
8330
 
 
8331
#
 
8332
# Check to make sure the static flag actually works.
 
8333
#
 
8334
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8335
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8336
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
8337
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8339
else
 
8340
  lt_prog_compiler_static_works=no
 
8341
   save_LDFLAGS="$LDFLAGS"
 
8342
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8343
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8344
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8345
     # The linker can only warn and ignore the option if not recognized
 
8346
     # So say no if there are warnings
 
8347
     if test -s conftest.err; then
 
8348
       # Append any errors to the config.log.
 
8349
       cat conftest.err 1>&5
 
8350
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8351
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8352
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8353
         lt_prog_compiler_static_works=yes
 
8354
       fi
 
8355
     else
 
8356
       lt_prog_compiler_static_works=yes
 
8357
     fi
 
8358
   fi
 
8359
   $rm conftest*
 
8360
   LDFLAGS="$save_LDFLAGS"
 
8361
 
 
8362
fi
 
8363
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8364
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
8365
 
 
8366
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8367
    :
 
8368
else
 
8369
    lt_prog_compiler_static=
 
8370
fi
 
8371
 
 
8372
 
 
8373
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8374
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
8375
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8377
else
 
8378
  lt_cv_prog_compiler_c_o=no
 
8379
   $rm -r conftest 2>/dev/null
 
8380
   mkdir conftest
 
8381
   cd conftest
 
8382
   mkdir out
 
8383
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8384
 
 
8385
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8386
   # Insert the option either (1) after the last *FLAGS variable, or
 
8387
   # (2) before a word containing "conftest.", or (3) at the end.
 
8388
   # Note that $ac_compile itself does not contain backslashes and begins
 
8389
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8390
   lt_compile=`echo "$ac_compile" | $SED \
 
8391
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8392
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8393
   -e 's:$: $lt_compiler_flag:'`
 
8394
   (eval echo "\"\$as_me:8394: $lt_compile\"" >&5)
 
8395
   (eval "$lt_compile" 2>out/conftest.err)
 
8396
   ac_status=$?
 
8397
   cat out/conftest.err >&5
 
8398
   echo "$as_me:8398: \$? = $ac_status" >&5
 
8399
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8400
   then
 
8401
     # The compiler can only warn and ignore the option if not recognized
 
8402
     # So say no if there are warnings
 
8403
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8404
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8405
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8406
       lt_cv_prog_compiler_c_o=yes
 
8407
     fi
 
8408
   fi
 
8409
   chmod u+w . 2>&5
 
8410
   $rm conftest*
 
8411
   # SGI C++ compiler will create directory out/ii_files/ for
 
8412
   # template instantiation
 
8413
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8414
   $rm out/* && rmdir out
 
8415
   cd ..
 
8416
   rmdir conftest
 
8417
   $rm conftest*
 
8418
 
 
8419
fi
 
8420
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8421
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8422
 
 
8423
 
 
8424
hard_links="nottested"
 
8425
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8426
  # do not overwrite the value of need_locks provided by the user
 
8427
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8428
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
8429
  hard_links=yes
 
8430
  $rm conftest*
 
8431
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8432
  touch conftest.a
 
8433
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8434
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8435
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8436
echo "${ECHO_T}$hard_links" >&6; }
 
8437
  if test "$hard_links" = no; then
 
8438
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8439
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8440
    need_locks=warn
 
8441
  fi
 
8442
else
 
8443
  need_locks=no
 
8444
fi
 
8445
 
 
8446
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8447
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8448
 
 
8449
  runpath_var=
 
8450
  allow_undefined_flag=
 
8451
  enable_shared_with_static_runtimes=no
 
8452
  archive_cmds=
 
8453
  archive_expsym_cmds=
 
8454
  old_archive_From_new_cmds=
 
8455
  old_archive_from_expsyms_cmds=
 
8456
  export_dynamic_flag_spec=
 
8457
  whole_archive_flag_spec=
 
8458
  thread_safe_flag_spec=
 
8459
  hardcode_libdir_flag_spec=
 
8460
  hardcode_libdir_flag_spec_ld=
 
8461
  hardcode_libdir_separator=
 
8462
  hardcode_direct=no
 
8463
  hardcode_minus_L=no
 
8464
  hardcode_shlibpath_var=unsupported
 
8465
  link_all_deplibs=unknown
 
8466
  hardcode_automatic=no
 
8467
  module_cmds=
 
8468
  module_expsym_cmds=
 
8469
  always_export_symbols=no
 
8470
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8471
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8472
  # included in the symbol list
 
8473
  include_expsyms=
 
8474
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8475
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8476
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8477
  # as well as any symbol that contains `d'.
 
8478
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8479
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8480
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8481
  # the symbol is explicitly referenced.  Since portable code cannot
 
8482
  # rely on this symbol name, it's probably fine to never include it in
 
8483
  # preloaded symbol tables.
 
8484
  extract_expsyms_cmds=
 
8485
  # Just being paranoid about ensuring that cc_basename is set.
 
8486
  for cc_temp in $compiler""; do
 
8487
  case $cc_temp in
 
8488
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8489
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8490
    \-*) ;;
 
8491
    *) break;;
 
8492
  esac
 
8493
done
 
8494
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8495
 
 
8496
  case $host_os in
 
8497
  cygwin* | mingw* | pw32*)
 
8498
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8499
    # When not using gcc, we currently assume that we are using
 
8500
    # Microsoft Visual C++.
 
8501
    if test "$GCC" != yes; then
 
8502
      with_gnu_ld=no
 
8503
    fi
 
8504
    ;;
 
8505
  interix*)
 
8506
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8507
    with_gnu_ld=yes
 
8508
    ;;
 
8509
  openbsd*)
 
8510
    with_gnu_ld=no
 
8511
    ;;
 
8512
  esac
 
8513
 
 
8514
  ld_shlibs=yes
 
8515
  if test "$with_gnu_ld" = yes; then
 
8516
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8517
    wlarc='${wl}'
 
8518
 
 
8519
    # Set some defaults for GNU ld with shared library support. These
 
8520
    # are reset later if shared libraries are not supported. Putting them
 
8521
    # here allows them to be overridden if necessary.
 
8522
    runpath_var=LD_RUN_PATH
 
8523
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8524
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8525
    # ancient GNU ld didn't support --whole-archive et. al.
 
8526
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8527
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8528
      else
 
8529
        whole_archive_flag_spec=
 
8530
    fi
 
8531
    supports_anon_versioning=no
 
8532
    case `$LD -v 2>/dev/null` in
 
8533
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8534
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8535
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8536
      *\ 2.11.*) ;; # other 2.11 versions
 
8537
      *) supports_anon_versioning=yes ;;
 
8538
    esac
 
8539
 
 
8540
    # See if GNU ld supports shared libraries.
 
8541
    case $host_os in
 
8542
    aix3* | aix4* | aix5*)
 
8543
      # On AIX/PPC, the GNU linker is very broken
 
8544
      if test "$host_cpu" != ia64; then
 
8545
        ld_shlibs=no
 
8546
        cat <<EOF 1>&2
 
8547
 
 
8548
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8549
*** to be unable to reliably create shared libraries on AIX.
 
8550
*** Therefore, libtool is disabling shared libraries support.  If you
 
8551
*** really care for shared libraries, you may want to modify your PATH
 
8552
*** so that a non-GNU linker is found, and then restart.
 
8553
 
 
8554
EOF
 
8555
      fi
 
8556
      ;;
 
8557
 
 
8558
    amigaos*)
 
8559
      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)'
 
8560
      hardcode_libdir_flag_spec='-L$libdir'
 
8561
      hardcode_minus_L=yes
 
8562
 
 
8563
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8564
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8565
      # to version 4, is to share data among multiple programs linked
 
8566
      # with the same dynamic library.  Since this doesn't match the
 
8567
      # behavior of shared libraries on other platforms, we can't use
 
8568
      # them.
 
8569
      ld_shlibs=no
 
8570
      ;;
 
8571
 
 
8572
    beos*)
 
8573
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8574
        allow_undefined_flag=unsupported
 
8575
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8576
        # support --undefined.  This deserves some investigation.  FIXME
 
8577
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8578
      else
 
8579
        ld_shlibs=no
 
8580
      fi
 
8581
      ;;
 
8582
 
 
8583
    cygwin* | mingw* | pw32*)
 
8584
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8585
      # as there is no search path for DLLs.
 
8586
      hardcode_libdir_flag_spec='-L$libdir'
 
8587
      allow_undefined_flag=unsupported
 
8588
      always_export_symbols=no
 
8589
      enable_shared_with_static_runtimes=yes
 
8590
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8591
 
 
8592
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8593
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8594
        # If the export-symbols file already is a .def file (1st line
 
8595
        # is EXPORTS), use it as is; otherwise, prepend...
 
8596
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8597
          cp $export_symbols $output_objdir/$soname.def;
 
8598
        else
 
8599
          echo EXPORTS > $output_objdir/$soname.def;
 
8600
          cat $export_symbols >> $output_objdir/$soname.def;
 
8601
        fi~
 
8602
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8603
      else
 
8604
        ld_shlibs=no
 
8605
      fi
 
8606
      ;;
 
8607
 
 
8608
    interix[3-9]*)
 
8609
      hardcode_direct=no
 
8610
      hardcode_shlibpath_var=no
 
8611
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8612
      export_dynamic_flag_spec='${wl}-E'
 
8613
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8614
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8615
      # default) and relocated if they conflict, which is a slow very memory
 
8616
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8617
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8618
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8619
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8620
      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'
 
8621
      ;;
 
8622
 
 
8623
    gnu* | linux* | k*bsd*-gnu)
 
8624
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8625
        tmp_addflag=
 
8626
        case $cc_basename,$host_cpu in
 
8627
        pgcc*)                          # Portland Group C compiler
 
8628
          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'
 
8629
          tmp_addflag=' $pic_flag'
 
8630
          ;;
 
8631
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8632
          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'
 
8633
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8634
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8635
          tmp_addflag=' -i_dynamic' ;;
 
8636
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8637
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8638
        ifc* | ifort*)                  # Intel Fortran compiler
 
8639
          tmp_addflag=' -nofor_main' ;;
 
8640
        esac
 
8641
        case `$CC -V 2>&1 | sed 5q` in
 
8642
        *Sun\ C*)                       # Sun C 5.9
 
8643
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8644
          tmp_sharedflag='-G' ;;
 
8645
        *Sun\ F*)                       # Sun Fortran 8.3
 
8646
          tmp_sharedflag='-G' ;;
 
8647
        *)
 
8648
          tmp_sharedflag='-shared' ;;
 
8649
        esac
 
8650
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8651
 
 
8652
        if test $supports_anon_versioning = yes; then
 
8653
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8654
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8655
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8656
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8657
        fi
 
8658
      else
 
8659
        ld_shlibs=no
 
8660
      fi
 
8661
      ;;
 
8662
 
 
8663
    netbsd*)
 
8664
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8665
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8666
        wlarc=
 
8667
      else
 
8668
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8669
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8670
      fi
 
8671
      ;;
 
8672
 
 
8673
    solaris*)
 
8674
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8675
        ld_shlibs=no
 
8676
        cat <<EOF 1>&2
 
8677
 
 
8678
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8679
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8680
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8681
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8682
*** your PATH or compiler configuration so that the native linker is
 
8683
*** used, and then restart.
 
8684
 
 
8685
EOF
 
8686
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8687
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8688
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8689
      else
 
8690
        ld_shlibs=no
 
8691
      fi
 
8692
      ;;
 
8693
 
 
8694
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8695
      case `$LD -v 2>&1` in
 
8696
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8697
        ld_shlibs=no
 
8698
        cat <<_LT_EOF 1>&2
 
8699
 
 
8700
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8701
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8702
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8703
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8704
*** your PATH or compiler configuration so that the native linker is
 
8705
*** used, and then restart.
 
8706
 
 
8707
_LT_EOF
 
8708
        ;;
 
8709
        *)
 
8710
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8711
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8712
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8713
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8714
          else
 
8715
            ld_shlibs=no
 
8716
          fi
 
8717
        ;;
 
8718
      esac
 
8719
      ;;
 
8720
 
 
8721
    sunos4*)
 
8722
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8723
      wlarc=
 
8724
      hardcode_direct=yes
 
8725
      hardcode_shlibpath_var=no
 
8726
      ;;
 
8727
 
 
8728
    *)
 
8729
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8730
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8731
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8732
      else
 
8733
        ld_shlibs=no
 
8734
      fi
 
8735
      ;;
 
8736
    esac
 
8737
 
 
8738
    if test "$ld_shlibs" = no; then
 
8739
      runpath_var=
 
8740
      hardcode_libdir_flag_spec=
 
8741
      export_dynamic_flag_spec=
 
8742
      whole_archive_flag_spec=
 
8743
    fi
 
8744
  else
 
8745
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8746
    case $host_os in
 
8747
    aix3*)
 
8748
      allow_undefined_flag=unsupported
 
8749
      always_export_symbols=yes
 
8750
      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'
 
8751
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8752
      # are no directories specified by -L.
 
8753
      hardcode_minus_L=yes
 
8754
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8755
        # Neither direct hardcoding nor static linking is supported with a
 
8756
        # broken collect2.
 
8757
        hardcode_direct=unsupported
 
8758
      fi
 
8759
      ;;
 
8760
 
 
8761
    aix4* | aix5*)
 
8762
      if test "$host_cpu" = ia64; then
 
8763
        # On IA64, the linker does run time linking by default, so we don't
 
8764
        # have to do anything special.
 
8765
        aix_use_runtimelinking=no
 
8766
        exp_sym_flag='-Bexport'
 
8767
        no_entry_flag=""
 
8768
      else
 
8769
        # If we're using GNU nm, then we don't want the "-C" option.
 
8770
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8771
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8772
          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'
 
8773
        else
 
8774
          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'
 
8775
        fi
 
8776
        aix_use_runtimelinking=no
 
8777
 
 
8778
        # Test if we are trying to use run time linking or normal
 
8779
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8780
        # need to do runtime linking.
 
8781
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8782
          for ld_flag in $LDFLAGS; do
 
8783
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8784
            aix_use_runtimelinking=yes
 
8785
            break
 
8786
          fi
 
8787
          done
 
8788
          ;;
 
8789
        esac
 
8790
 
 
8791
        exp_sym_flag='-bexport'
 
8792
        no_entry_flag='-bnoentry'
 
8793
      fi
 
8794
 
 
8795
      # When large executables or shared objects are built, AIX ld can
 
8796
      # have problems creating the table of contents.  If linking a library
 
8797
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8798
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8799
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8800
 
 
8801
      archive_cmds=''
 
8802
      hardcode_direct=yes
 
8803
      hardcode_libdir_separator=':'
 
8804
      link_all_deplibs=yes
 
8805
 
 
8806
      if test "$GCC" = yes; then
 
8807
        case $host_os in aix4.[012]|aix4.[012].*)
 
8808
        # We only want to do this on AIX 4.2 and lower, the check
 
8809
        # below for broken collect2 doesn't work under 4.3+
 
8810
          collect2name=`${CC} -print-prog-name=collect2`
 
8811
          if test -f "$collect2name" && \
 
8812
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8813
          then
 
8814
          # We have reworked collect2
 
8815
          :
 
8816
          else
 
8817
          # We have old collect2
 
8818
          hardcode_direct=unsupported
 
8819
          # It fails to find uninstalled libraries when the uninstalled
 
8820
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8821
          # to unsupported forces relinking
 
8822
          hardcode_minus_L=yes
 
8823
          hardcode_libdir_flag_spec='-L$libdir'
 
8824
          hardcode_libdir_separator=
 
8825
          fi
 
8826
          ;;
 
8827
        esac
 
8828
        shared_flag='-shared'
 
8829
        if test "$aix_use_runtimelinking" = yes; then
 
8830
          shared_flag="$shared_flag "'${wl}-G'
 
8831
        fi
 
8832
      else
 
8833
        # not using gcc
 
8834
        if test "$host_cpu" = ia64; then
 
8835
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8836
        # chokes on -Wl,-G. The following line is correct:
 
8837
          shared_flag='-G'
 
8838
        else
 
8839
          if test "$aix_use_runtimelinking" = yes; then
 
8840
            shared_flag='${wl}-G'
 
8841
          else
 
8842
            shared_flag='${wl}-bM:SRE'
 
8843
          fi
 
8844
        fi
 
8845
      fi
 
8846
 
 
8847
      # It seems that -bexpall does not export symbols beginning with
 
8848
      # underscore (_), so it is better to generate a list of symbols to export.
 
8849
      always_export_symbols=yes
 
8850
      if test "$aix_use_runtimelinking" = yes; then
 
8851
        # Warning - without using the other runtime loading flags (-brtl),
 
8852
        # -berok will link without error, but may produce a broken library.
 
8853
        allow_undefined_flag='-berok'
 
8854
       # Determine the default libpath from the value encoded in an empty executable.
 
8855
       cat >conftest.$ac_ext <<_ACEOF
 
8856
/* confdefs.h.  */
 
8857
_ACEOF
 
8858
cat confdefs.h >>conftest.$ac_ext
 
8859
cat >>conftest.$ac_ext <<_ACEOF
 
8860
/* end confdefs.h.  */
 
8861
 
 
8862
int
 
8863
main ()
 
8864
{
 
8865
 
 
8866
  ;
 
8867
  return 0;
 
8868
}
 
8869
_ACEOF
 
8870
rm -f conftest.$ac_objext conftest$ac_exeext
 
8871
if { (ac_try="$ac_link"
 
8872
case "(($ac_try" in
 
8873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8874
  *) ac_try_echo=$ac_try;;
 
8875
esac
 
8876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8877
  (eval "$ac_link") 2>conftest.er1
 
8878
  ac_status=$?
 
8879
  grep -v '^ *+' conftest.er1 >conftest.err
 
8880
  rm -f conftest.er1
 
8881
  cat conftest.err >&5
 
8882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8883
  (exit $ac_status); } && {
 
8884
         test -z "$ac_c_werror_flag" ||
 
8885
         test ! -s conftest.err
 
8886
       } && test -s conftest$ac_exeext &&
 
8887
       $as_test_x conftest$ac_exeext; then
 
8888
 
 
8889
lt_aix_libpath_sed='
 
8890
    /Import File Strings/,/^$/ {
 
8891
        /^0/ {
 
8892
            s/^0  *\(.*\)$/\1/
 
8893
            p
 
8894
        }
 
8895
    }'
 
8896
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8897
# Check for a 64-bit object if we didn't find anything.
 
8898
if test -z "$aix_libpath"; then
 
8899
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8900
fi
 
8901
else
 
8902
  echo "$as_me: failed program was:" >&5
 
8903
sed 's/^/| /' conftest.$ac_ext >&5
 
8904
 
 
8905
 
 
8906
fi
 
8907
 
 
8908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8909
      conftest$ac_exeext conftest.$ac_ext
 
8910
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8911
 
 
8912
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8913
        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"
 
8914
       else
 
8915
        if test "$host_cpu" = ia64; then
 
8916
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8917
          allow_undefined_flag="-z nodefs"
 
8918
          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"
 
8919
        else
 
8920
         # Determine the default libpath from the value encoded in an empty executable.
 
8921
         cat >conftest.$ac_ext <<_ACEOF
 
8922
/* confdefs.h.  */
 
8923
_ACEOF
 
8924
cat confdefs.h >>conftest.$ac_ext
 
8925
cat >>conftest.$ac_ext <<_ACEOF
 
8926
/* end confdefs.h.  */
 
8927
 
 
8928
int
 
8929
main ()
 
8930
{
 
8931
 
 
8932
  ;
 
8933
  return 0;
 
8934
}
 
8935
_ACEOF
 
8936
rm -f conftest.$ac_objext conftest$ac_exeext
 
8937
if { (ac_try="$ac_link"
 
8938
case "(($ac_try" in
 
8939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8940
  *) ac_try_echo=$ac_try;;
 
8941
esac
 
8942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8943
  (eval "$ac_link") 2>conftest.er1
 
8944
  ac_status=$?
 
8945
  grep -v '^ *+' conftest.er1 >conftest.err
 
8946
  rm -f conftest.er1
 
8947
  cat conftest.err >&5
 
8948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8949
  (exit $ac_status); } && {
 
8950
         test -z "$ac_c_werror_flag" ||
 
8951
         test ! -s conftest.err
 
8952
       } && test -s conftest$ac_exeext &&
 
8953
       $as_test_x conftest$ac_exeext; then
 
8954
 
 
8955
lt_aix_libpath_sed='
 
8956
    /Import File Strings/,/^$/ {
 
8957
        /^0/ {
 
8958
            s/^0  *\(.*\)$/\1/
 
8959
            p
 
8960
        }
 
8961
    }'
 
8962
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8963
# Check for a 64-bit object if we didn't find anything.
 
8964
if test -z "$aix_libpath"; then
 
8965
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8966
fi
 
8967
else
 
8968
  echo "$as_me: failed program was:" >&5
 
8969
sed 's/^/| /' conftest.$ac_ext >&5
 
8970
 
 
8971
 
 
8972
fi
 
8973
 
 
8974
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8975
      conftest$ac_exeext conftest.$ac_ext
 
8976
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8977
 
 
8978
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8979
          # Warning - without using the other run time loading flags,
 
8980
          # -berok will link without error, but may produce a broken library.
 
8981
          no_undefined_flag=' ${wl}-bernotok'
 
8982
          allow_undefined_flag=' ${wl}-berok'
 
8983
          # Exported symbols can be pulled into shared objects from archives
 
8984
          whole_archive_flag_spec='$convenience'
 
8985
          archive_cmds_need_lc=yes
 
8986
          # This is similar to how AIX traditionally builds its shared libraries.
 
8987
          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'
 
8988
        fi
 
8989
      fi
 
8990
      ;;
 
8991
 
 
8992
    amigaos*)
 
8993
      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)'
 
8994
      hardcode_libdir_flag_spec='-L$libdir'
 
8995
      hardcode_minus_L=yes
 
8996
      # see comment about different semantics on the GNU ld section
 
8997
      ld_shlibs=no
 
8998
      ;;
 
8999
 
 
9000
    bsdi[45]*)
 
9001
      export_dynamic_flag_spec=-rdynamic
 
9002
      ;;
 
9003
 
 
9004
    cygwin* | mingw* | pw32*)
 
9005
      # When not using gcc, we currently assume that we are using
 
9006
      # Microsoft Visual C++.
 
9007
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9008
      # no search path for DLLs.
 
9009
      hardcode_libdir_flag_spec=' '
 
9010
      allow_undefined_flag=unsupported
 
9011
      # Tell ltmain to make .lib files, not .a files.
 
9012
      libext=lib
 
9013
      # Tell ltmain to make .dll files, not .so files.
 
9014
      shrext_cmds=".dll"
 
9015
      # FIXME: Setting linknames here is a bad hack.
 
9016
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9017
      # The linker will automatically build a .lib file if we build a DLL.
 
9018
      old_archive_From_new_cmds='true'
 
9019
      # FIXME: Should let the user specify the lib program.
 
9020
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9021
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9022
      enable_shared_with_static_runtimes=yes
 
9023
      ;;
 
9024
 
 
9025
    darwin* | rhapsody*)
 
9026
      case $host_os in
 
9027
        rhapsody* | darwin1.[012])
 
9028
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
9029
         ;;
 
9030
       *) # Darwin 1.3 on
 
9031
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9032
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9033
         else
 
9034
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9035
             10.[012])
 
9036
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9037
               ;;
 
9038
             10.*)
 
9039
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
9040
               ;;
 
9041
           esac
 
9042
         fi
 
9043
         ;;
 
9044
      esac
 
9045
      archive_cmds_need_lc=no
 
9046
      hardcode_direct=no
 
9047
      hardcode_automatic=yes
 
9048
      hardcode_shlibpath_var=unsupported
 
9049
      whole_archive_flag_spec=''
 
9050
      link_all_deplibs=yes
 
9051
    if test "$GCC" = yes ; then
 
9052
        output_verbose_link_cmd='echo'
 
9053
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9054
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9055
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9056
      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}'
 
9057
      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}'
 
9058
    else
 
9059
      case $cc_basename in
 
9060
        xlc*)
 
9061
         output_verbose_link_cmd='echo'
 
9062
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
9063
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9064
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9065
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9066
          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}'
 
9067
          ;;
 
9068
       *)
 
9069
         ld_shlibs=no
 
9070
          ;;
 
9071
      esac
 
9072
    fi
 
9073
      ;;
 
9074
 
 
9075
    dgux*)
 
9076
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9077
      hardcode_libdir_flag_spec='-L$libdir'
 
9078
      hardcode_shlibpath_var=no
 
9079
      ;;
 
9080
 
 
9081
    freebsd1*)
 
9082
      ld_shlibs=no
 
9083
      ;;
 
9084
 
 
9085
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9086
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9087
    # does not break anything, and helps significantly (at the cost of a little
 
9088
    # extra space).
 
9089
    freebsd2.2*)
 
9090
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9091
      hardcode_libdir_flag_spec='-R$libdir'
 
9092
      hardcode_direct=yes
 
9093
      hardcode_shlibpath_var=no
 
9094
      ;;
 
9095
 
 
9096
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9097
    freebsd2*)
 
9098
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9099
      hardcode_direct=yes
 
9100
      hardcode_minus_L=yes
 
9101
      hardcode_shlibpath_var=no
 
9102
      ;;
 
9103
 
 
9104
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9105
    freebsd* | dragonfly*)
 
9106
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9107
      hardcode_libdir_flag_spec='-R$libdir'
 
9108
      hardcode_direct=yes
 
9109
      hardcode_shlibpath_var=no
 
9110
      ;;
 
9111
 
 
9112
    hpux9*)
 
9113
      if test "$GCC" = yes; then
 
9114
        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'
 
9115
      else
 
9116
        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'
 
9117
      fi
 
9118
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9119
      hardcode_libdir_separator=:
 
9120
      hardcode_direct=yes
 
9121
 
 
9122
      # hardcode_minus_L: Not really in the search PATH,
 
9123
      # but as the default location of the library.
 
9124
      hardcode_minus_L=yes
 
9125
      export_dynamic_flag_spec='${wl}-E'
 
9126
      ;;
 
9127
 
 
9128
    hpux10*)
 
9129
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9130
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9131
      else
 
9132
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9133
      fi
 
9134
      if test "$with_gnu_ld" = no; then
 
9135
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9136
        hardcode_libdir_separator=:
 
9137
 
 
9138
        hardcode_direct=yes
 
9139
        export_dynamic_flag_spec='${wl}-E'
 
9140
 
 
9141
        # hardcode_minus_L: Not really in the search PATH,
 
9142
        # but as the default location of the library.
 
9143
        hardcode_minus_L=yes
 
9144
      fi
 
9145
      ;;
 
9146
 
 
9147
    hpux11*)
 
9148
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9149
        case $host_cpu in
 
9150
        hppa*64*)
 
9151
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9152
          ;;
 
9153
        ia64*)
 
9154
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9155
          ;;
 
9156
        *)
 
9157
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9158
          ;;
 
9159
        esac
 
9160
      else
 
9161
        case $host_cpu in
 
9162
        hppa*64*)
 
9163
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9164
          ;;
 
9165
        ia64*)
 
9166
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9167
          ;;
 
9168
        *)
 
9169
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9170
          ;;
 
9171
        esac
 
9172
      fi
 
9173
      if test "$with_gnu_ld" = no; then
 
9174
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9175
        hardcode_libdir_separator=:
 
9176
 
 
9177
        case $host_cpu in
 
9178
        hppa*64*|ia64*)
 
9179
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9180
          hardcode_direct=no
 
9181
          hardcode_shlibpath_var=no
 
9182
          ;;
 
9183
        *)
 
9184
          hardcode_direct=yes
 
9185
          export_dynamic_flag_spec='${wl}-E'
 
9186
 
 
9187
          # hardcode_minus_L: Not really in the search PATH,
 
9188
          # but as the default location of the library.
 
9189
          hardcode_minus_L=yes
 
9190
          ;;
 
9191
        esac
 
9192
      fi
 
9193
      ;;
 
9194
 
 
9195
    irix5* | irix6* | nonstopux*)
 
9196
      if test "$GCC" = yes; then
 
9197
        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'
 
9198
      else
 
9199
        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'
 
9200
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9201
      fi
 
9202
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9203
      hardcode_libdir_separator=:
 
9204
      link_all_deplibs=yes
 
9205
      ;;
 
9206
 
 
9207
    netbsd*)
 
9208
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9209
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9210
      else
 
9211
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9212
      fi
 
9213
      hardcode_libdir_flag_spec='-R$libdir'
 
9214
      hardcode_direct=yes
 
9215
      hardcode_shlibpath_var=no
 
9216
      ;;
 
9217
 
 
9218
    newsos6)
 
9219
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9220
      hardcode_direct=yes
 
9221
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9222
      hardcode_libdir_separator=:
 
9223
      hardcode_shlibpath_var=no
 
9224
      ;;
 
9225
 
 
9226
    openbsd*)
 
9227
      if test -f /usr/libexec/ld.so; then
 
9228
        hardcode_direct=yes
 
9229
        hardcode_shlibpath_var=no
 
9230
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9231
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9232
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9233
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9234
          export_dynamic_flag_spec='${wl}-E'
 
9235
        else
 
9236
          case $host_os in
 
9237
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9238
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9239
             hardcode_libdir_flag_spec='-R$libdir'
 
9240
             ;;
 
9241
           *)
 
9242
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9243
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9244
             ;;
 
9245
          esac
 
9246
        fi
 
9247
      else
 
9248
        ld_shlibs=no
 
9249
      fi
 
9250
      ;;
 
9251
 
 
9252
    os2*)
 
9253
      hardcode_libdir_flag_spec='-L$libdir'
 
9254
      hardcode_minus_L=yes
 
9255
      allow_undefined_flag=unsupported
 
9256
      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'
 
9257
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9258
      ;;
 
9259
 
 
9260
    osf3*)
 
9261
      if test "$GCC" = yes; then
 
9262
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9263
        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'
 
9264
      else
 
9265
        allow_undefined_flag=' -expect_unresolved \*'
 
9266
        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'
 
9267
      fi
 
9268
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9269
      hardcode_libdir_separator=:
 
9270
      ;;
 
9271
 
 
9272
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9273
      if test "$GCC" = yes; then
 
9274
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9275
        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'
 
9276
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9277
      else
 
9278
        allow_undefined_flag=' -expect_unresolved \*'
 
9279
        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'
 
9280
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9281
        $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'
 
9282
 
 
9283
        # Both c and cxx compiler support -rpath directly
 
9284
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9285
      fi
 
9286
      hardcode_libdir_separator=:
 
9287
      ;;
 
9288
 
 
9289
    solaris*)
 
9290
      no_undefined_flag=' -z text'
 
9291
      if test "$GCC" = yes; then
 
9292
        wlarc='${wl}'
 
9293
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9294
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9295
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9296
      else
 
9297
        wlarc=''
 
9298
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9299
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9300
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9301
      fi
 
9302
      hardcode_libdir_flag_spec='-R$libdir'
 
9303
      hardcode_shlibpath_var=no
 
9304
      case $host_os in
 
9305
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9306
      *)
 
9307
        # The compiler driver will combine and reorder linker options,
 
9308
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9309
        # but is careful enough not to reorder.
 
9310
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9311
        if test "$GCC" = yes; then
 
9312
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9313
        else
 
9314
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9315
        fi
 
9316
        ;;
 
9317
      esac
 
9318
      link_all_deplibs=yes
 
9319
      ;;
 
9320
 
 
9321
    sunos4*)
 
9322
      if test "x$host_vendor" = xsequent; then
 
9323
        # Use $CC to link under sequent, because it throws in some extra .o
 
9324
        # files that make .init and .fini sections work.
 
9325
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9326
      else
 
9327
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9328
      fi
 
9329
      hardcode_libdir_flag_spec='-L$libdir'
 
9330
      hardcode_direct=yes
 
9331
      hardcode_minus_L=yes
 
9332
      hardcode_shlibpath_var=no
 
9333
      ;;
 
9334
 
 
9335
    sysv4)
 
9336
      case $host_vendor in
 
9337
        sni)
 
9338
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9339
          hardcode_direct=yes # is this really true???
 
9340
        ;;
 
9341
        siemens)
 
9342
          ## LD is ld it makes a PLAMLIB
 
9343
          ## CC just makes a GrossModule.
 
9344
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9345
          reload_cmds='$CC -r -o $output$reload_objs'
 
9346
          hardcode_direct=no
 
9347
        ;;
 
9348
        motorola)
 
9349
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9350
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9351
        ;;
 
9352
      esac
 
9353
      runpath_var='LD_RUN_PATH'
 
9354
      hardcode_shlibpath_var=no
 
9355
      ;;
 
9356
 
 
9357
    sysv4.3*)
 
9358
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9359
      hardcode_shlibpath_var=no
 
9360
      export_dynamic_flag_spec='-Bexport'
 
9361
      ;;
 
9362
 
 
9363
    sysv4*MP*)
 
9364
      if test -d /usr/nec; then
 
9365
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9366
        hardcode_shlibpath_var=no
 
9367
        runpath_var=LD_RUN_PATH
 
9368
        hardcode_runpath_var=yes
 
9369
        ld_shlibs=yes
 
9370
      fi
 
9371
      ;;
 
9372
 
 
9373
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9374
      no_undefined_flag='${wl}-z,text'
 
9375
      archive_cmds_need_lc=no
 
9376
      hardcode_shlibpath_var=no
 
9377
      runpath_var='LD_RUN_PATH'
 
9378
 
 
9379
      if test "$GCC" = yes; then
 
9380
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9381
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9382
      else
 
9383
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9384
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9385
      fi
 
9386
      ;;
 
9387
 
 
9388
    sysv5* | sco3.2v5* | sco5v6*)
 
9389
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9390
      # link with -lc, and that would cause any symbols used from libc to
 
9391
      # always be unresolved, which means just about no library would
 
9392
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9393
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9394
      # as -z defs.
 
9395
      no_undefined_flag='${wl}-z,text'
 
9396
      allow_undefined_flag='${wl}-z,nodefs'
 
9397
      archive_cmds_need_lc=no
 
9398
      hardcode_shlibpath_var=no
 
9399
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9400
      hardcode_libdir_separator=':'
 
9401
      link_all_deplibs=yes
 
9402
      export_dynamic_flag_spec='${wl}-Bexport'
 
9403
      runpath_var='LD_RUN_PATH'
 
9404
 
 
9405
      if test "$GCC" = yes; then
 
9406
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9407
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9408
      else
 
9409
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9410
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9411
      fi
 
9412
      ;;
 
9413
 
 
9414
    uts4*)
 
9415
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9416
      hardcode_libdir_flag_spec='-L$libdir'
 
9417
      hardcode_shlibpath_var=no
 
9418
      ;;
 
9419
 
 
9420
    *)
 
9421
      ld_shlibs=no
 
9422
      ;;
 
9423
    esac
 
9424
  fi
 
9425
 
 
9426
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9427
echo "${ECHO_T}$ld_shlibs" >&6; }
 
9428
test "$ld_shlibs" = no && can_build_shared=no
 
9429
 
 
9430
#
 
9431
# Do we need to explicitly link libc?
 
9432
#
 
9433
case "x$archive_cmds_need_lc" in
 
9434
x|xyes)
 
9435
  # Assume -lc should be added
 
9436
  archive_cmds_need_lc=yes
 
9437
 
 
9438
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9439
    case $archive_cmds in
 
9440
    *'~'*)
 
9441
      # FIXME: we may have to deal with multi-command sequences.
 
9442
      ;;
 
9443
    '$CC '*)
 
9444
      # Test whether the compiler implicitly links with -lc since on some
 
9445
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9446
      # to ld, don't add -lc before -lgcc.
 
9447
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9448
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
9449
      $rm conftest*
 
9450
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9451
 
 
9452
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9453
  (eval $ac_compile) 2>&5
 
9454
  ac_status=$?
 
9455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9456
  (exit $ac_status); } 2>conftest.err; then
 
9457
        soname=conftest
 
9458
        lib=conftest
 
9459
        libobjs=conftest.$ac_objext
 
9460
        deplibs=
 
9461
        wl=$lt_prog_compiler_wl
 
9462
        pic_flag=$lt_prog_compiler_pic
 
9463
        compiler_flags=-v
 
9464
        linker_flags=-v
 
9465
        verstring=
 
9466
        output_objdir=.
 
9467
        libname=conftest
 
9468
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9469
        allow_undefined_flag=
 
9470
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9471
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9472
  ac_status=$?
 
9473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9474
  (exit $ac_status); }
 
9475
        then
 
9476
          archive_cmds_need_lc=no
 
9477
        else
 
9478
          archive_cmds_need_lc=yes
 
9479
        fi
 
9480
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9481
      else
 
9482
        cat conftest.err 1>&5
 
9483
      fi
 
9484
      $rm conftest*
 
9485
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9486
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9487
      ;;
 
9488
    esac
 
9489
  fi
 
9490
  ;;
 
9491
esac
 
9492
 
 
9493
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9494
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9495
library_names_spec=
 
9496
libname_spec='lib$name'
 
9497
soname_spec=
 
9498
shrext_cmds=".so"
 
9499
postinstall_cmds=
 
9500
postuninstall_cmds=
 
9501
finish_cmds=
 
9502
finish_eval=
 
9503
shlibpath_var=
 
9504
shlibpath_overrides_runpath=unknown
 
9505
version_type=none
 
9506
dynamic_linker="$host_os ld.so"
 
9507
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9508
 
 
9509
if test "$GCC" = yes; then
 
9510
  case $host_os in
 
9511
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9512
    *) lt_awk_arg="/^libraries:/" ;;
 
9513
  esac
 
9514
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9515
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9516
    # if the path contains ";" then we assume it to be the separator
 
9517
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9518
    # assumed that no part of a normal pathname contains ";" but that should
 
9519
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9520
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9521
  else
 
9522
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9523
  fi
 
9524
  # Ok, now we have the path, separated by spaces, we can step through it
 
9525
  # and add multilib dir if necessary.
 
9526
  lt_tmp_lt_search_path_spec=
 
9527
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9528
  for lt_sys_path in $lt_search_path_spec; do
 
9529
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9530
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9531
    else
 
9532
      test -d "$lt_sys_path" && \
 
9533
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9534
    fi
 
9535
  done
 
9536
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9537
BEGIN {RS=" "; FS="/|\n";} {
 
9538
  lt_foo="";
 
9539
  lt_count=0;
 
9540
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9541
    if ($lt_i != "" && $lt_i != ".") {
 
9542
      if ($lt_i == "..") {
 
9543
        lt_count++;
 
9544
      } else {
 
9545
        if (lt_count == 0) {
 
9546
          lt_foo="/" $lt_i lt_foo;
 
9547
        } else {
 
9548
          lt_count--;
 
9549
        }
 
9550
      }
 
9551
    }
 
9552
  }
 
9553
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9554
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9555
}'`
 
9556
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9557
else
 
9558
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9559
fi
 
9560
need_lib_prefix=unknown
 
9561
hardcode_into_libs=no
 
9562
 
 
9563
# when you set need_version to no, make sure it does not cause -set_version
 
9564
# flags to be left without arguments
 
9565
need_version=unknown
 
9566
 
 
9567
case $host_os in
 
9568
aix3*)
 
9569
  version_type=linux
 
9570
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9571
  shlibpath_var=LIBPATH
 
9572
 
 
9573
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9574
  soname_spec='${libname}${release}${shared_ext}$major'
 
9575
  ;;
 
9576
 
 
9577
aix4* | aix5*)
 
9578
  version_type=linux
 
9579
  need_lib_prefix=no
 
9580
  need_version=no
 
9581
  hardcode_into_libs=yes
 
9582
  if test "$host_cpu" = ia64; then
 
9583
    # AIX 5 supports IA64
 
9584
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9585
    shlibpath_var=LD_LIBRARY_PATH
 
9586
  else
 
9587
    # With GCC up to 2.95.x, collect2 would create an import file
 
9588
    # for dependence libraries.  The import file would start with
 
9589
    # the line `#! .'.  This would cause the generated library to
 
9590
    # depend on `.', always an invalid library.  This was fixed in
 
9591
    # development snapshots of GCC prior to 3.0.
 
9592
    case $host_os in
 
9593
      aix4 | aix4.[01] | aix4.[01].*)
 
9594
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9595
           echo ' yes '
 
9596
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9597
        :
 
9598
      else
 
9599
        can_build_shared=no
 
9600
      fi
 
9601
      ;;
 
9602
    esac
 
9603
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9604
    # soname into executable. Probably we can add versioning support to
 
9605
    # collect2, so additional links can be useful in future.
 
9606
    if test "$aix_use_runtimelinking" = yes; then
 
9607
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9608
      # instead of lib<name>.a to let people know that these are not
 
9609
      # typical AIX shared libraries.
 
9610
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9611
    else
 
9612
      # We preserve .a as extension for shared libraries through AIX4.2
 
9613
      # and later when we are not doing run time linking.
 
9614
      library_names_spec='${libname}${release}.a $libname.a'
 
9615
      soname_spec='${libname}${release}${shared_ext}$major'
 
9616
    fi
 
9617
    shlibpath_var=LIBPATH
 
9618
  fi
 
9619
  ;;
 
9620
 
 
9621
amigaos*)
 
9622
  library_names_spec='$libname.ixlibrary $libname.a'
 
9623
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9624
  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'
 
9625
  ;;
 
9626
 
 
9627
beos*)
 
9628
  library_names_spec='${libname}${shared_ext}'
 
9629
  dynamic_linker="$host_os ld.so"
 
9630
  shlibpath_var=LIBRARY_PATH
 
9631
  ;;
 
9632
 
 
9633
bsdi[45]*)
 
9634
  version_type=linux
 
9635
  need_version=no
 
9636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9637
  soname_spec='${libname}${release}${shared_ext}$major'
 
9638
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9639
  shlibpath_var=LD_LIBRARY_PATH
 
9640
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9641
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9642
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9643
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9644
  # libtool to hard-code these into programs
 
9645
  ;;
 
9646
 
 
9647
cygwin* | mingw* | pw32*)
 
9648
  version_type=windows
 
9649
  shrext_cmds=".dll"
 
9650
  need_version=no
 
9651
  need_lib_prefix=no
 
9652
 
 
9653
  case $GCC,$host_os in
 
9654
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9655
    library_names_spec='$libname.dll.a'
 
9656
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9657
    postinstall_cmds='base_file=`basename \${file}`~
 
9658
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9659
      dldir=$destdir/`dirname \$dlpath`~
 
9660
      test -d \$dldir || mkdir -p \$dldir~
 
9661
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9662
      chmod a+x \$dldir/$dlname'
 
9663
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9664
      dlpath=$dir/\$dldll~
 
9665
       $rm \$dlpath'
 
9666
    shlibpath_overrides_runpath=yes
 
9667
 
 
9668
    case $host_os in
 
9669
    cygwin*)
 
9670
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9671
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9672
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9673
      ;;
 
9674
    mingw*)
 
9675
      # MinGW DLLs use traditional 'lib' prefix
 
9676
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9677
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9678
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9679
        # It is most probably a Windows format PATH printed by
 
9680
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9681
        # path with ; separators, and with drive letters. We can handle the
 
9682
        # drive letters (cygwin fileutils understands them), so leave them,
 
9683
        # especially as we might pass files found there to a mingw objdump,
 
9684
        # which wouldn't understand a cygwinified path. Ahh.
 
9685
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9686
      else
 
9687
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9688
      fi
 
9689
      ;;
 
9690
    pw32*)
 
9691
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9692
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9693
      ;;
 
9694
    esac
 
9695
    ;;
 
9696
 
 
9697
  *)
 
9698
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9699
    ;;
 
9700
  esac
 
9701
  dynamic_linker='Win32 ld.exe'
 
9702
  # FIXME: first we should search . and the directory the executable is in
 
9703
  shlibpath_var=PATH
 
9704
  ;;
 
9705
 
 
9706
darwin* | rhapsody*)
 
9707
  dynamic_linker="$host_os dyld"
 
9708
  version_type=darwin
 
9709
  need_lib_prefix=no
 
9710
  need_version=no
 
9711
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9712
  soname_spec='${libname}${release}${major}$shared_ext'
 
9713
  shlibpath_overrides_runpath=yes
 
9714
  shlibpath_var=DYLD_LIBRARY_PATH
 
9715
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9716
 
 
9717
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9718
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9719
  ;;
 
9720
 
 
9721
dgux*)
 
9722
  version_type=linux
 
9723
  need_lib_prefix=no
 
9724
  need_version=no
 
9725
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9726
  soname_spec='${libname}${release}${shared_ext}$major'
 
9727
  shlibpath_var=LD_LIBRARY_PATH
 
9728
  ;;
 
9729
 
 
9730
freebsd1*)
 
9731
  dynamic_linker=no
 
9732
  ;;
 
9733
 
 
9734
freebsd* | dragonfly*)
 
9735
  # DragonFly does not have aout.  When/if they implement a new
 
9736
  # versioning mechanism, adjust this.
 
9737
  if test -x /usr/bin/objformat; then
 
9738
    objformat=`/usr/bin/objformat`
 
9739
  else
 
9740
    case $host_os in
 
9741
    freebsd[123]*) objformat=aout ;;
 
9742
    *) objformat=elf ;;
 
9743
    esac
 
9744
  fi
 
9745
  version_type=freebsd-$objformat
 
9746
  case $version_type in
 
9747
    freebsd-elf*)
 
9748
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9749
      need_version=no
 
9750
      need_lib_prefix=no
 
9751
      ;;
 
9752
    freebsd-*)
 
9753
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9754
      need_version=yes
 
9755
      ;;
 
9756
  esac
 
9757
  shlibpath_var=LD_LIBRARY_PATH
 
9758
  case $host_os in
 
9759
  freebsd2*)
 
9760
    shlibpath_overrides_runpath=yes
 
9761
    ;;
 
9762
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9763
    shlibpath_overrides_runpath=yes
 
9764
    hardcode_into_libs=yes
 
9765
    ;;
 
9766
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9767
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9768
    shlibpath_overrides_runpath=no
 
9769
    hardcode_into_libs=yes
 
9770
    ;;
 
9771
  *) # from 4.6 on, and DragonFly
 
9772
    shlibpath_overrides_runpath=yes
 
9773
    hardcode_into_libs=yes
 
9774
    ;;
 
9775
  esac
 
9776
  ;;
 
9777
 
 
9778
gnu*)
 
9779
  version_type=linux
 
9780
  need_lib_prefix=no
 
9781
  need_version=no
 
9782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9783
  soname_spec='${libname}${release}${shared_ext}$major'
 
9784
  shlibpath_var=LD_LIBRARY_PATH
 
9785
  hardcode_into_libs=yes
 
9786
  ;;
 
9787
 
 
9788
hpux9* | hpux10* | hpux11*)
 
9789
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9790
  # link against other versions.
 
9791
  version_type=sunos
 
9792
  need_lib_prefix=no
 
9793
  need_version=no
 
9794
  case $host_cpu in
 
9795
  ia64*)
 
9796
    shrext_cmds='.so'
 
9797
    hardcode_into_libs=yes
 
9798
    dynamic_linker="$host_os dld.so"
 
9799
    shlibpath_var=LD_LIBRARY_PATH
 
9800
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9801
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9802
    soname_spec='${libname}${release}${shared_ext}$major'
 
9803
    if test "X$HPUX_IA64_MODE" = X32; then
 
9804
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9805
    else
 
9806
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9807
    fi
 
9808
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9809
    ;;
 
9810
   hppa*64*)
 
9811
     shrext_cmds='.sl'
 
9812
     hardcode_into_libs=yes
 
9813
     dynamic_linker="$host_os dld.sl"
 
9814
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9815
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9816
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9817
     soname_spec='${libname}${release}${shared_ext}$major'
 
9818
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9819
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9820
     ;;
 
9821
   *)
 
9822
    shrext_cmds='.sl'
 
9823
    dynamic_linker="$host_os dld.sl"
 
9824
    shlibpath_var=SHLIB_PATH
 
9825
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9826
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9827
    soname_spec='${libname}${release}${shared_ext}$major'
 
9828
    ;;
 
9829
  esac
 
9830
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9831
  postinstall_cmds='chmod 555 $lib'
 
9832
  ;;
 
9833
 
 
9834
interix[3-9]*)
 
9835
  version_type=linux
 
9836
  need_lib_prefix=no
 
9837
  need_version=no
 
9838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9839
  soname_spec='${libname}${release}${shared_ext}$major'
 
9840
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9841
  shlibpath_var=LD_LIBRARY_PATH
 
9842
  shlibpath_overrides_runpath=no
 
9843
  hardcode_into_libs=yes
 
9844
  ;;
 
9845
 
 
9846
irix5* | irix6* | nonstopux*)
 
9847
  case $host_os in
 
9848
    nonstopux*) version_type=nonstopux ;;
 
9849
    *)
 
9850
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9851
                version_type=linux
 
9852
        else
 
9853
                version_type=irix
 
9854
        fi ;;
 
9855
  esac
 
9856
  need_lib_prefix=no
 
9857
  need_version=no
 
9858
  soname_spec='${libname}${release}${shared_ext}$major'
 
9859
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9860
  case $host_os in
 
9861
  irix5* | nonstopux*)
 
9862
    libsuff= shlibsuff=
 
9863
    ;;
 
9864
  *)
 
9865
    case $LD in # libtool.m4 will add one of these switches to LD
 
9866
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9867
      libsuff= shlibsuff= libmagic=32-bit;;
 
9868
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9869
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9870
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9871
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9872
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9873
    esac
 
9874
    ;;
 
9875
  esac
 
9876
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9877
  shlibpath_overrides_runpath=no
 
9878
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9879
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9880
  hardcode_into_libs=yes
 
9881
  ;;
 
9882
 
 
9883
# No shared lib support for Linux oldld, aout, or coff.
 
9884
linux*oldld* | linux*aout* | linux*coff*)
 
9885
  dynamic_linker=no
 
9886
  ;;
 
9887
 
 
9888
# This must be Linux ELF.
 
9889
linux* | k*bsd*-gnu)
 
9890
  version_type=linux
 
9891
  need_lib_prefix=no
 
9892
  need_version=no
 
9893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9894
  soname_spec='${libname}${release}${shared_ext}$major'
 
9895
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9896
  shlibpath_var=LD_LIBRARY_PATH
 
9897
  shlibpath_overrides_runpath=no
 
9898
  # This implies no fast_install, which is unacceptable.
 
9899
  # Some rework will be needed to allow for fast_install
 
9900
  # before this can be enabled.
 
9901
  hardcode_into_libs=yes
 
9902
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9903
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9904
 
 
9905
  # Append ld.so.conf contents to the search path
 
9906
  if test -f /etc/ld.so.conf; then
 
9907
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9908
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9909
  fi
 
9910
 
 
9911
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9912
  # powerpc, because MkLinux only supported shared libraries with the
 
9913
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9914
  # most powerpc-linux boxes support dynamic linking these days and
 
9915
  # people can always --disable-shared, the test was removed, and we
 
9916
  # assume the GNU/Linux dynamic linker is in use.
 
9917
  dynamic_linker='GNU/Linux ld.so'
 
9918
  ;;
 
9919
 
 
9920
netbsd*)
 
9921
  version_type=sunos
 
9922
  need_lib_prefix=no
 
9923
  need_version=no
 
9924
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9925
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9926
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9927
    dynamic_linker='NetBSD (a.out) ld.so'
 
9928
  else
 
9929
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9930
    soname_spec='${libname}${release}${shared_ext}$major'
 
9931
    dynamic_linker='NetBSD ld.elf_so'
 
9932
  fi
 
9933
  shlibpath_var=LD_LIBRARY_PATH
 
9934
  shlibpath_overrides_runpath=yes
 
9935
  hardcode_into_libs=yes
 
9936
  ;;
 
9937
 
 
9938
newsos6)
 
9939
  version_type=linux
 
9940
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9941
  shlibpath_var=LD_LIBRARY_PATH
 
9942
  shlibpath_overrides_runpath=yes
 
9943
  ;;
 
9944
 
 
9945
nto-qnx*)
 
9946
  version_type=linux
 
9947
  need_lib_prefix=no
 
9948
  need_version=no
 
9949
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9950
  soname_spec='${libname}${release}${shared_ext}$major'
 
9951
  shlibpath_var=LD_LIBRARY_PATH
 
9952
  shlibpath_overrides_runpath=yes
 
9953
  ;;
 
9954
 
 
9955
openbsd*)
 
9956
  version_type=sunos
 
9957
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9958
  need_lib_prefix=no
 
9959
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9960
  case $host_os in
 
9961
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9962
    *)                         need_version=no  ;;
 
9963
  esac
 
9964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9965
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9966
  shlibpath_var=LD_LIBRARY_PATH
 
9967
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9968
    case $host_os in
 
9969
      openbsd2.[89] | openbsd2.[89].*)
 
9970
        shlibpath_overrides_runpath=no
 
9971
        ;;
 
9972
      *)
 
9973
        shlibpath_overrides_runpath=yes
 
9974
        ;;
 
9975
      esac
 
9976
  else
 
9977
    shlibpath_overrides_runpath=yes
 
9978
  fi
 
9979
  ;;
 
9980
 
 
9981
os2*)
 
9982
  libname_spec='$name'
 
9983
  shrext_cmds=".dll"
 
9984
  need_lib_prefix=no
 
9985
  library_names_spec='$libname${shared_ext} $libname.a'
 
9986
  dynamic_linker='OS/2 ld.exe'
 
9987
  shlibpath_var=LIBPATH
 
9988
  ;;
 
9989
 
 
9990
osf3* | osf4* | osf5*)
 
9991
  version_type=osf
 
9992
  need_lib_prefix=no
 
9993
  need_version=no
 
9994
  soname_spec='${libname}${release}${shared_ext}$major'
 
9995
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9996
  shlibpath_var=LD_LIBRARY_PATH
 
9997
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9998
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9999
  ;;
 
10000
 
 
10001
rdos*)
 
10002
  dynamic_linker=no
 
10003
  ;;
 
10004
 
 
10005
solaris*)
 
10006
  version_type=linux
 
10007
  need_lib_prefix=no
 
10008
  need_version=no
 
10009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10010
  soname_spec='${libname}${release}${shared_ext}$major'
 
10011
  shlibpath_var=LD_LIBRARY_PATH
 
10012
  shlibpath_overrides_runpath=yes
 
10013
  hardcode_into_libs=yes
 
10014
  # ldd complains unless libraries are executable
 
10015
  postinstall_cmds='chmod +x $lib'
 
10016
  ;;
 
10017
 
 
10018
sunos4*)
 
10019
  version_type=sunos
 
10020
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10021
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10022
  shlibpath_var=LD_LIBRARY_PATH
 
10023
  shlibpath_overrides_runpath=yes
 
10024
  if test "$with_gnu_ld" = yes; then
 
10025
    need_lib_prefix=no
 
10026
  fi
 
10027
  need_version=yes
 
10028
  ;;
 
10029
 
 
10030
sysv4 | sysv4.3*)
 
10031
  version_type=linux
 
10032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10033
  soname_spec='${libname}${release}${shared_ext}$major'
 
10034
  shlibpath_var=LD_LIBRARY_PATH
 
10035
  case $host_vendor in
 
10036
    sni)
 
10037
      shlibpath_overrides_runpath=no
 
10038
      need_lib_prefix=no
 
10039
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10040
      runpath_var=LD_RUN_PATH
 
10041
      ;;
 
10042
    siemens)
 
10043
      need_lib_prefix=no
 
10044
      ;;
 
10045
    motorola)
 
10046
      need_lib_prefix=no
 
10047
      need_version=no
 
10048
      shlibpath_overrides_runpath=no
 
10049
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10050
      ;;
 
10051
  esac
 
10052
  ;;
 
10053
 
 
10054
sysv4*MP*)
 
10055
  if test -d /usr/nec ;then
 
10056
    version_type=linux
 
10057
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10058
    soname_spec='$libname${shared_ext}.$major'
 
10059
    shlibpath_var=LD_LIBRARY_PATH
 
10060
  fi
 
10061
  ;;
 
10062
 
 
10063
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10064
  version_type=freebsd-elf
 
10065
  need_lib_prefix=no
 
10066
  need_version=no
 
10067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10068
  soname_spec='${libname}${release}${shared_ext}$major'
 
10069
  shlibpath_var=LD_LIBRARY_PATH
 
10070
  hardcode_into_libs=yes
 
10071
  if test "$with_gnu_ld" = yes; then
 
10072
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10073
    shlibpath_overrides_runpath=no
 
10074
  else
 
10075
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10076
    shlibpath_overrides_runpath=yes
 
10077
    case $host_os in
 
10078
      sco3.2v5*)
 
10079
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10080
        ;;
 
10081
    esac
 
10082
  fi
 
10083
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10084
  ;;
 
10085
 
 
10086
uts4*)
 
10087
  version_type=linux
 
10088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10089
  soname_spec='${libname}${release}${shared_ext}$major'
 
10090
  shlibpath_var=LD_LIBRARY_PATH
 
10091
  ;;
 
10092
 
 
10093
*)
 
10094
  dynamic_linker=no
 
10095
  ;;
 
10096
esac
 
10097
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10098
echo "${ECHO_T}$dynamic_linker" >&6; }
 
10099
test "$dynamic_linker" = no && can_build_shared=no
 
10100
 
 
10101
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10102
if test "$GCC" = yes; then
 
10103
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10104
fi
 
10105
 
 
10106
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10107
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
10108
hardcode_action=
 
10109
if test -n "$hardcode_libdir_flag_spec" || \
 
10110
   test -n "$runpath_var" || \
 
10111
   test "X$hardcode_automatic" = "Xyes" ; then
 
10112
 
 
10113
  # We can hardcode non-existant directories.
 
10114
  if test "$hardcode_direct" != no &&
 
10115
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10116
     # have to relink, otherwise we might link with an installed library
 
10117
     # when we should be linking with a yet-to-be-installed one
 
10118
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10119
     test "$hardcode_minus_L" != no; then
 
10120
    # Linking always hardcodes the temporary library directory.
 
10121
    hardcode_action=relink
 
10122
  else
 
10123
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10124
    hardcode_action=immediate
 
10125
  fi
 
10126
else
 
10127
  # We cannot hardcode anything, or else we can only hardcode existing
 
10128
  # directories.
 
10129
  hardcode_action=unsupported
 
10130
fi
 
10131
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10132
echo "${ECHO_T}$hardcode_action" >&6; }
 
10133
 
 
10134
if test "$hardcode_action" = relink; then
 
10135
  # Fast installation is not supported
 
10136
  enable_fast_install=no
 
10137
elif test "$shlibpath_overrides_runpath" = yes ||
 
10138
     test "$enable_shared" = no; then
 
10139
  # Fast installation is not necessary
 
10140
  enable_fast_install=needless
 
10141
fi
 
10142
 
 
10143
striplib=
 
10144
old_striplib=
 
10145
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10146
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
10147
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10148
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10149
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10150
  { echo "$as_me:$LINENO: result: yes" >&5
 
10151
echo "${ECHO_T}yes" >&6; }
 
10152
else
 
10153
# FIXME - insert some real tests, host_os isn't really good enough
 
10154
  case $host_os in
 
10155
   darwin*)
 
10156
       if test -n "$STRIP" ; then
 
10157
         striplib="$STRIP -x"
 
10158
         old_striplib="$STRIP -S"
 
10159
         { echo "$as_me:$LINENO: result: yes" >&5
 
10160
echo "${ECHO_T}yes" >&6; }
 
10161
       else
 
10162
  { echo "$as_me:$LINENO: result: no" >&5
 
10163
echo "${ECHO_T}no" >&6; }
 
10164
fi
 
10165
       ;;
 
10166
   *)
 
10167
  { echo "$as_me:$LINENO: result: no" >&5
 
10168
echo "${ECHO_T}no" >&6; }
 
10169
    ;;
 
10170
  esac
 
10171
fi
 
10172
 
 
10173
if test "x$enable_dlopen" != xyes; then
 
10174
  enable_dlopen=unknown
 
10175
  enable_dlopen_self=unknown
 
10176
  enable_dlopen_self_static=unknown
 
10177
else
 
10178
  lt_cv_dlopen=no
 
10179
  lt_cv_dlopen_libs=
 
10180
 
 
10181
  case $host_os in
 
10182
  beos*)
 
10183
    lt_cv_dlopen="load_add_on"
 
10184
    lt_cv_dlopen_libs=
 
10185
    lt_cv_dlopen_self=yes
 
10186
    ;;
 
10187
 
 
10188
  mingw* | pw32*)
 
10189
    lt_cv_dlopen="LoadLibrary"
 
10190
    lt_cv_dlopen_libs=
 
10191
   ;;
 
10192
 
 
10193
  cygwin*)
 
10194
    lt_cv_dlopen="dlopen"
 
10195
    lt_cv_dlopen_libs=
 
10196
   ;;
 
10197
 
 
10198
  darwin*)
 
10199
  # if libdl is installed we need to link against it
 
10200
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10201
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10202
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10204
else
 
10205
  ac_check_lib_save_LIBS=$LIBS
 
10206
LIBS="-ldl  $LIBS"
 
10207
cat >conftest.$ac_ext <<_ACEOF
 
10208
/* confdefs.h.  */
 
10209
_ACEOF
 
10210
cat confdefs.h >>conftest.$ac_ext
 
10211
cat >>conftest.$ac_ext <<_ACEOF
 
10212
/* end confdefs.h.  */
 
10213
 
 
10214
/* Override any GCC internal prototype to avoid an error.
 
10215
   Use char because int might match the return type of a GCC
 
10216
   builtin and then its argument prototype would still apply.  */
 
10217
#ifdef __cplusplus
 
10218
extern "C"
 
10219
#endif
 
10220
char dlopen ();
 
10221
int
 
10222
main ()
 
10223
{
 
10224
return dlopen ();
 
10225
  ;
 
10226
  return 0;
 
10227
}
 
10228
_ACEOF
 
10229
rm -f conftest.$ac_objext conftest$ac_exeext
 
10230
if { (ac_try="$ac_link"
 
10231
case "(($ac_try" in
 
10232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10233
  *) ac_try_echo=$ac_try;;
 
10234
esac
 
10235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10236
  (eval "$ac_link") 2>conftest.er1
 
10237
  ac_status=$?
 
10238
  grep -v '^ *+' conftest.er1 >conftest.err
 
10239
  rm -f conftest.er1
 
10240
  cat conftest.err >&5
 
10241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10242
  (exit $ac_status); } && {
 
10243
         test -z "$ac_c_werror_flag" ||
 
10244
         test ! -s conftest.err
 
10245
       } && test -s conftest$ac_exeext &&
 
10246
       $as_test_x conftest$ac_exeext; then
 
10247
  ac_cv_lib_dl_dlopen=yes
 
10248
else
 
10249
  echo "$as_me: failed program was:" >&5
 
10250
sed 's/^/| /' conftest.$ac_ext >&5
 
10251
 
 
10252
        ac_cv_lib_dl_dlopen=no
 
10253
fi
 
10254
 
 
10255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10256
      conftest$ac_exeext conftest.$ac_ext
 
10257
LIBS=$ac_check_lib_save_LIBS
 
10258
fi
 
10259
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10260
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10261
if test $ac_cv_lib_dl_dlopen = yes; then
 
10262
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10263
else
 
10264
 
 
10265
    lt_cv_dlopen="dyld"
 
10266
    lt_cv_dlopen_libs=
 
10267
    lt_cv_dlopen_self=yes
 
10268
 
 
10269
fi
 
10270
 
 
10271
   ;;
 
10272
 
 
10273
  *)
 
10274
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
10275
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
10276
if test "${ac_cv_func_shl_load+set}" = set; then
 
10277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10278
else
 
10279
  cat >conftest.$ac_ext <<_ACEOF
 
10280
/* confdefs.h.  */
 
10281
_ACEOF
 
10282
cat confdefs.h >>conftest.$ac_ext
 
10283
cat >>conftest.$ac_ext <<_ACEOF
 
10284
/* end confdefs.h.  */
 
10285
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10286
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10287
#define shl_load innocuous_shl_load
 
10288
 
 
10289
/* System header to define __stub macros and hopefully few prototypes,
 
10290
    which can conflict with char shl_load (); below.
 
10291
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10292
    <limits.h> exists even on freestanding compilers.  */
 
10293
 
 
10294
#ifdef __STDC__
 
10295
# include <limits.h>
 
10296
#else
 
10297
# include <assert.h>
 
10298
#endif
 
10299
 
 
10300
#undef shl_load
 
10301
 
 
10302
/* Override any GCC internal prototype to avoid an error.
 
10303
   Use char because int might match the return type of a GCC
 
10304
   builtin and then its argument prototype would still apply.  */
 
10305
#ifdef __cplusplus
 
10306
extern "C"
 
10307
#endif
 
10308
char shl_load ();
 
10309
/* The GNU C library defines this for functions which it implements
 
10310
    to always fail with ENOSYS.  Some functions are actually named
 
10311
    something starting with __ and the normal name is an alias.  */
 
10312
#if defined __stub_shl_load || defined __stub___shl_load
 
10313
choke me
 
10314
#endif
 
10315
 
 
10316
int
 
10317
main ()
 
10318
{
 
10319
return shl_load ();
 
10320
  ;
 
10321
  return 0;
 
10322
}
 
10323
_ACEOF
 
10324
rm -f conftest.$ac_objext conftest$ac_exeext
 
10325
if { (ac_try="$ac_link"
 
10326
case "(($ac_try" in
 
10327
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10328
  *) ac_try_echo=$ac_try;;
 
10329
esac
 
10330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10331
  (eval "$ac_link") 2>conftest.er1
 
10332
  ac_status=$?
 
10333
  grep -v '^ *+' conftest.er1 >conftest.err
 
10334
  rm -f conftest.er1
 
10335
  cat conftest.err >&5
 
10336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10337
  (exit $ac_status); } && {
 
10338
         test -z "$ac_c_werror_flag" ||
 
10339
         test ! -s conftest.err
 
10340
       } && test -s conftest$ac_exeext &&
 
10341
       $as_test_x conftest$ac_exeext; then
 
10342
  ac_cv_func_shl_load=yes
 
10343
else
 
10344
  echo "$as_me: failed program was:" >&5
 
10345
sed 's/^/| /' conftest.$ac_ext >&5
 
10346
 
 
10347
        ac_cv_func_shl_load=no
 
10348
fi
 
10349
 
 
10350
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10351
      conftest$ac_exeext conftest.$ac_ext
 
10352
fi
 
10353
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10354
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
10355
if test $ac_cv_func_shl_load = yes; then
 
10356
  lt_cv_dlopen="shl_load"
 
10357
else
 
10358
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10359
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
10360
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10362
else
 
10363
  ac_check_lib_save_LIBS=$LIBS
 
10364
LIBS="-ldld  $LIBS"
 
10365
cat >conftest.$ac_ext <<_ACEOF
 
10366
/* confdefs.h.  */
 
10367
_ACEOF
 
10368
cat confdefs.h >>conftest.$ac_ext
 
10369
cat >>conftest.$ac_ext <<_ACEOF
 
10370
/* end confdefs.h.  */
 
10371
 
 
10372
/* Override any GCC internal prototype to avoid an error.
 
10373
   Use char because int might match the return type of a GCC
 
10374
   builtin and then its argument prototype would still apply.  */
 
10375
#ifdef __cplusplus
 
10376
extern "C"
 
10377
#endif
 
10378
char shl_load ();
 
10379
int
 
10380
main ()
 
10381
{
 
10382
return shl_load ();
 
10383
  ;
 
10384
  return 0;
 
10385
}
 
10386
_ACEOF
 
10387
rm -f conftest.$ac_objext conftest$ac_exeext
 
10388
if { (ac_try="$ac_link"
 
10389
case "(($ac_try" in
 
10390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10391
  *) ac_try_echo=$ac_try;;
 
10392
esac
 
10393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10394
  (eval "$ac_link") 2>conftest.er1
 
10395
  ac_status=$?
 
10396
  grep -v '^ *+' conftest.er1 >conftest.err
 
10397
  rm -f conftest.er1
 
10398
  cat conftest.err >&5
 
10399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10400
  (exit $ac_status); } && {
 
10401
         test -z "$ac_c_werror_flag" ||
 
10402
         test ! -s conftest.err
 
10403
       } && test -s conftest$ac_exeext &&
 
10404
       $as_test_x conftest$ac_exeext; then
 
10405
  ac_cv_lib_dld_shl_load=yes
 
10406
else
 
10407
  echo "$as_me: failed program was:" >&5
 
10408
sed 's/^/| /' conftest.$ac_ext >&5
 
10409
 
 
10410
        ac_cv_lib_dld_shl_load=no
 
10411
fi
 
10412
 
 
10413
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10414
      conftest$ac_exeext conftest.$ac_ext
 
10415
LIBS=$ac_check_lib_save_LIBS
 
10416
fi
 
10417
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10418
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
10419
if test $ac_cv_lib_dld_shl_load = yes; then
 
10420
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10421
else
 
10422
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10423
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
10424
if test "${ac_cv_func_dlopen+set}" = set; then
 
10425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10426
else
 
10427
  cat >conftest.$ac_ext <<_ACEOF
 
10428
/* confdefs.h.  */
 
10429
_ACEOF
 
10430
cat confdefs.h >>conftest.$ac_ext
 
10431
cat >>conftest.$ac_ext <<_ACEOF
 
10432
/* end confdefs.h.  */
 
10433
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10434
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10435
#define dlopen innocuous_dlopen
 
10436
 
 
10437
/* System header to define __stub macros and hopefully few prototypes,
 
10438
    which can conflict with char dlopen (); below.
 
10439
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10440
    <limits.h> exists even on freestanding compilers.  */
 
10441
 
 
10442
#ifdef __STDC__
 
10443
# include <limits.h>
 
10444
#else
 
10445
# include <assert.h>
 
10446
#endif
 
10447
 
 
10448
#undef dlopen
 
10449
 
 
10450
/* Override any GCC internal prototype to avoid an error.
 
10451
   Use char because int might match the return type of a GCC
 
10452
   builtin and then its argument prototype would still apply.  */
 
10453
#ifdef __cplusplus
 
10454
extern "C"
 
10455
#endif
 
10456
char dlopen ();
 
10457
/* The GNU C library defines this for functions which it implements
 
10458
    to always fail with ENOSYS.  Some functions are actually named
 
10459
    something starting with __ and the normal name is an alias.  */
 
10460
#if defined __stub_dlopen || defined __stub___dlopen
 
10461
choke me
 
10462
#endif
 
10463
 
 
10464
int
 
10465
main ()
 
10466
{
 
10467
return dlopen ();
 
10468
  ;
 
10469
  return 0;
 
10470
}
 
10471
_ACEOF
 
10472
rm -f conftest.$ac_objext conftest$ac_exeext
 
10473
if { (ac_try="$ac_link"
 
10474
case "(($ac_try" in
 
10475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10476
  *) ac_try_echo=$ac_try;;
 
10477
esac
 
10478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10479
  (eval "$ac_link") 2>conftest.er1
 
10480
  ac_status=$?
 
10481
  grep -v '^ *+' conftest.er1 >conftest.err
 
10482
  rm -f conftest.er1
 
10483
  cat conftest.err >&5
 
10484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10485
  (exit $ac_status); } && {
 
10486
         test -z "$ac_c_werror_flag" ||
 
10487
         test ! -s conftest.err
 
10488
       } && test -s conftest$ac_exeext &&
 
10489
       $as_test_x conftest$ac_exeext; then
 
10490
  ac_cv_func_dlopen=yes
 
10491
else
 
10492
  echo "$as_me: failed program was:" >&5
 
10493
sed 's/^/| /' conftest.$ac_ext >&5
 
10494
 
 
10495
        ac_cv_func_dlopen=no
 
10496
fi
 
10497
 
 
10498
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10499
      conftest$ac_exeext conftest.$ac_ext
 
10500
fi
 
10501
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10502
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
10503
if test $ac_cv_func_dlopen = yes; then
 
10504
  lt_cv_dlopen="dlopen"
 
10505
else
 
10506
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10507
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10508
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10509
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10510
else
 
10511
  ac_check_lib_save_LIBS=$LIBS
 
10512
LIBS="-ldl  $LIBS"
 
10513
cat >conftest.$ac_ext <<_ACEOF
 
10514
/* confdefs.h.  */
 
10515
_ACEOF
 
10516
cat confdefs.h >>conftest.$ac_ext
 
10517
cat >>conftest.$ac_ext <<_ACEOF
 
10518
/* end confdefs.h.  */
 
10519
 
 
10520
/* Override any GCC internal prototype to avoid an error.
 
10521
   Use char because int might match the return type of a GCC
 
10522
   builtin and then its argument prototype would still apply.  */
 
10523
#ifdef __cplusplus
 
10524
extern "C"
 
10525
#endif
 
10526
char dlopen ();
 
10527
int
 
10528
main ()
 
10529
{
 
10530
return dlopen ();
 
10531
  ;
 
10532
  return 0;
 
10533
}
 
10534
_ACEOF
 
10535
rm -f conftest.$ac_objext conftest$ac_exeext
 
10536
if { (ac_try="$ac_link"
 
10537
case "(($ac_try" in
 
10538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10539
  *) ac_try_echo=$ac_try;;
 
10540
esac
 
10541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10542
  (eval "$ac_link") 2>conftest.er1
 
10543
  ac_status=$?
 
10544
  grep -v '^ *+' conftest.er1 >conftest.err
 
10545
  rm -f conftest.er1
 
10546
  cat conftest.err >&5
 
10547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10548
  (exit $ac_status); } && {
 
10549
         test -z "$ac_c_werror_flag" ||
 
10550
         test ! -s conftest.err
 
10551
       } && test -s conftest$ac_exeext &&
 
10552
       $as_test_x conftest$ac_exeext; then
 
10553
  ac_cv_lib_dl_dlopen=yes
 
10554
else
 
10555
  echo "$as_me: failed program was:" >&5
 
10556
sed 's/^/| /' conftest.$ac_ext >&5
 
10557
 
 
10558
        ac_cv_lib_dl_dlopen=no
 
10559
fi
 
10560
 
 
10561
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10562
      conftest$ac_exeext conftest.$ac_ext
 
10563
LIBS=$ac_check_lib_save_LIBS
 
10564
fi
 
10565
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10566
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10567
if test $ac_cv_lib_dl_dlopen = yes; then
 
10568
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10569
else
 
10570
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10571
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10572
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10574
else
 
10575
  ac_check_lib_save_LIBS=$LIBS
 
10576
LIBS="-lsvld  $LIBS"
 
10577
cat >conftest.$ac_ext <<_ACEOF
 
10578
/* confdefs.h.  */
 
10579
_ACEOF
 
10580
cat confdefs.h >>conftest.$ac_ext
 
10581
cat >>conftest.$ac_ext <<_ACEOF
 
10582
/* end confdefs.h.  */
 
10583
 
 
10584
/* Override any GCC internal prototype to avoid an error.
 
10585
   Use char because int might match the return type of a GCC
 
10586
   builtin and then its argument prototype would still apply.  */
 
10587
#ifdef __cplusplus
 
10588
extern "C"
 
10589
#endif
 
10590
char dlopen ();
 
10591
int
 
10592
main ()
 
10593
{
 
10594
return dlopen ();
 
10595
  ;
 
10596
  return 0;
 
10597
}
 
10598
_ACEOF
 
10599
rm -f conftest.$ac_objext conftest$ac_exeext
 
10600
if { (ac_try="$ac_link"
 
10601
case "(($ac_try" in
 
10602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10603
  *) ac_try_echo=$ac_try;;
 
10604
esac
 
10605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10606
  (eval "$ac_link") 2>conftest.er1
 
10607
  ac_status=$?
 
10608
  grep -v '^ *+' conftest.er1 >conftest.err
 
10609
  rm -f conftest.er1
 
10610
  cat conftest.err >&5
 
10611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10612
  (exit $ac_status); } && {
 
10613
         test -z "$ac_c_werror_flag" ||
 
10614
         test ! -s conftest.err
 
10615
       } && test -s conftest$ac_exeext &&
 
10616
       $as_test_x conftest$ac_exeext; then
 
10617
  ac_cv_lib_svld_dlopen=yes
 
10618
else
 
10619
  echo "$as_me: failed program was:" >&5
 
10620
sed 's/^/| /' conftest.$ac_ext >&5
 
10621
 
 
10622
        ac_cv_lib_svld_dlopen=no
 
10623
fi
 
10624
 
 
10625
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10626
      conftest$ac_exeext conftest.$ac_ext
 
10627
LIBS=$ac_check_lib_save_LIBS
 
10628
fi
 
10629
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10630
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10631
if test $ac_cv_lib_svld_dlopen = yes; then
 
10632
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10633
else
 
10634
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10635
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10636
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10638
else
 
10639
  ac_check_lib_save_LIBS=$LIBS
 
10640
LIBS="-ldld  $LIBS"
 
10641
cat >conftest.$ac_ext <<_ACEOF
 
10642
/* confdefs.h.  */
 
10643
_ACEOF
 
10644
cat confdefs.h >>conftest.$ac_ext
 
10645
cat >>conftest.$ac_ext <<_ACEOF
 
10646
/* end confdefs.h.  */
 
10647
 
 
10648
/* Override any GCC internal prototype to avoid an error.
 
10649
   Use char because int might match the return type of a GCC
 
10650
   builtin and then its argument prototype would still apply.  */
 
10651
#ifdef __cplusplus
 
10652
extern "C"
 
10653
#endif
 
10654
char dld_link ();
 
10655
int
 
10656
main ()
 
10657
{
 
10658
return dld_link ();
 
10659
  ;
 
10660
  return 0;
 
10661
}
 
10662
_ACEOF
 
10663
rm -f conftest.$ac_objext conftest$ac_exeext
 
10664
if { (ac_try="$ac_link"
 
10665
case "(($ac_try" in
 
10666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10667
  *) ac_try_echo=$ac_try;;
 
10668
esac
 
10669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10670
  (eval "$ac_link") 2>conftest.er1
 
10671
  ac_status=$?
 
10672
  grep -v '^ *+' conftest.er1 >conftest.err
 
10673
  rm -f conftest.er1
 
10674
  cat conftest.err >&5
 
10675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10676
  (exit $ac_status); } && {
 
10677
         test -z "$ac_c_werror_flag" ||
 
10678
         test ! -s conftest.err
 
10679
       } && test -s conftest$ac_exeext &&
 
10680
       $as_test_x conftest$ac_exeext; then
 
10681
  ac_cv_lib_dld_dld_link=yes
 
10682
else
 
10683
  echo "$as_me: failed program was:" >&5
 
10684
sed 's/^/| /' conftest.$ac_ext >&5
 
10685
 
 
10686
        ac_cv_lib_dld_dld_link=no
 
10687
fi
 
10688
 
 
10689
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10690
      conftest$ac_exeext conftest.$ac_ext
 
10691
LIBS=$ac_check_lib_save_LIBS
 
10692
fi
 
10693
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10694
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10695
if test $ac_cv_lib_dld_dld_link = yes; then
 
10696
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10697
fi
 
10698
 
 
10699
 
 
10700
fi
 
10701
 
 
10702
 
 
10703
fi
 
10704
 
 
10705
 
 
10706
fi
 
10707
 
 
10708
 
 
10709
fi
 
10710
 
 
10711
 
 
10712
fi
 
10713
 
 
10714
    ;;
 
10715
  esac
 
10716
 
 
10717
  if test "x$lt_cv_dlopen" != xno; then
 
10718
    enable_dlopen=yes
 
10719
  else
 
10720
    enable_dlopen=no
 
10721
  fi
 
10722
 
 
10723
  case $lt_cv_dlopen in
 
10724
  dlopen)
 
10725
    save_CPPFLAGS="$CPPFLAGS"
 
10726
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10727
 
 
10728
    save_LDFLAGS="$LDFLAGS"
 
10729
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10730
 
 
10731
    save_LIBS="$LIBS"
 
10732
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10733
 
 
10734
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10735
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10736
if test "${lt_cv_dlopen_self+set}" = set; then
 
10737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10738
else
 
10739
          if test "$cross_compiling" = yes; then :
 
10740
  lt_cv_dlopen_self=cross
 
10741
else
 
10742
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10743
  lt_status=$lt_dlunknown
 
10744
  cat > conftest.$ac_ext <<EOF
 
10745
#line 10745 "configure"
 
10746
#include "confdefs.h"
 
10747
 
 
10748
#if HAVE_DLFCN_H
 
10749
#include <dlfcn.h>
 
10750
#endif
 
10751
 
 
10752
#include <stdio.h>
 
10753
 
 
10754
#ifdef RTLD_GLOBAL
 
10755
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10756
#else
 
10757
#  ifdef DL_GLOBAL
 
10758
#    define LT_DLGLOBAL         DL_GLOBAL
 
10759
#  else
 
10760
#    define LT_DLGLOBAL         0
 
10761
#  endif
 
10762
#endif
 
10763
 
 
10764
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10765
   find out it does not work in some platform. */
 
10766
#ifndef LT_DLLAZY_OR_NOW
 
10767
#  ifdef RTLD_LAZY
 
10768
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10769
#  else
 
10770
#    ifdef DL_LAZY
 
10771
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10772
#    else
 
10773
#      ifdef RTLD_NOW
 
10774
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10775
#      else
 
10776
#        ifdef DL_NOW
 
10777
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10778
#        else
 
10779
#          define LT_DLLAZY_OR_NOW      0
 
10780
#        endif
 
10781
#      endif
 
10782
#    endif
 
10783
#  endif
 
10784
#endif
 
10785
 
 
10786
#ifdef __cplusplus
 
10787
extern "C" void exit (int);
 
10788
#endif
 
10789
 
 
10790
void fnord() { int i=42;}
 
10791
int main ()
 
10792
{
 
10793
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10794
  int status = $lt_dlunknown;
 
10795
 
 
10796
  if (self)
 
10797
    {
 
10798
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10799
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10800
      /* dlclose (self); */
 
10801
    }
 
10802
  else
 
10803
    puts (dlerror ());
 
10804
 
 
10805
    exit (status);
 
10806
}
 
10807
EOF
 
10808
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10809
  (eval $ac_link) 2>&5
 
10810
  ac_status=$?
 
10811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10812
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10813
    (./conftest; exit; ) >&5 2>/dev/null
 
10814
    lt_status=$?
 
10815
    case x$lt_status in
 
10816
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10817
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10818
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10819
    esac
 
10820
  else :
 
10821
    # compilation failed
 
10822
    lt_cv_dlopen_self=no
 
10823
  fi
 
10824
fi
 
10825
rm -fr conftest*
 
10826
 
 
10827
 
 
10828
fi
 
10829
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10830
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10831
 
 
10832
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10833
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10834
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10835
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10836
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10838
else
 
10839
          if test "$cross_compiling" = yes; then :
 
10840
  lt_cv_dlopen_self_static=cross
 
10841
else
 
10842
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10843
  lt_status=$lt_dlunknown
 
10844
  cat > conftest.$ac_ext <<EOF
 
10845
#line 10845 "configure"
 
10846
#include "confdefs.h"
 
10847
 
 
10848
#if HAVE_DLFCN_H
 
10849
#include <dlfcn.h>
 
10850
#endif
 
10851
 
 
10852
#include <stdio.h>
 
10853
 
 
10854
#ifdef RTLD_GLOBAL
 
10855
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10856
#else
 
10857
#  ifdef DL_GLOBAL
 
10858
#    define LT_DLGLOBAL         DL_GLOBAL
 
10859
#  else
 
10860
#    define LT_DLGLOBAL         0
 
10861
#  endif
 
10862
#endif
 
10863
 
 
10864
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10865
   find out it does not work in some platform. */
 
10866
#ifndef LT_DLLAZY_OR_NOW
 
10867
#  ifdef RTLD_LAZY
 
10868
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10869
#  else
 
10870
#    ifdef DL_LAZY
 
10871
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10872
#    else
 
10873
#      ifdef RTLD_NOW
 
10874
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10875
#      else
 
10876
#        ifdef DL_NOW
 
10877
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10878
#        else
 
10879
#          define LT_DLLAZY_OR_NOW      0
 
10880
#        endif
 
10881
#      endif
 
10882
#    endif
 
10883
#  endif
 
10884
#endif
 
10885
 
 
10886
#ifdef __cplusplus
 
10887
extern "C" void exit (int);
 
10888
#endif
 
10889
 
 
10890
void fnord() { int i=42;}
 
10891
int main ()
 
10892
{
 
10893
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10894
  int status = $lt_dlunknown;
 
10895
 
 
10896
  if (self)
 
10897
    {
 
10898
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10899
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10900
      /* dlclose (self); */
 
10901
    }
 
10902
  else
 
10903
    puts (dlerror ());
 
10904
 
 
10905
    exit (status);
 
10906
}
 
10907
EOF
 
10908
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10909
  (eval $ac_link) 2>&5
 
10910
  ac_status=$?
 
10911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10912
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10913
    (./conftest; exit; ) >&5 2>/dev/null
 
10914
    lt_status=$?
 
10915
    case x$lt_status in
 
10916
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10917
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10918
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10919
    esac
 
10920
  else :
 
10921
    # compilation failed
 
10922
    lt_cv_dlopen_self_static=no
 
10923
  fi
 
10924
fi
 
10925
rm -fr conftest*
 
10926
 
 
10927
 
 
10928
fi
 
10929
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10930
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10931
    fi
 
10932
 
 
10933
    CPPFLAGS="$save_CPPFLAGS"
 
10934
    LDFLAGS="$save_LDFLAGS"
 
10935
    LIBS="$save_LIBS"
 
10936
    ;;
 
10937
  esac
 
10938
 
 
10939
  case $lt_cv_dlopen_self in
 
10940
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10941
  *) enable_dlopen_self=unknown ;;
 
10942
  esac
 
10943
 
 
10944
  case $lt_cv_dlopen_self_static in
 
10945
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10946
  *) enable_dlopen_self_static=unknown ;;
 
10947
  esac
 
10948
fi
 
10949
 
 
10950
 
 
10951
# Report which library types will actually be built
 
10952
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10953
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10954
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10955
echo "${ECHO_T}$can_build_shared" >&6; }
 
10956
 
 
10957
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10958
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10959
test "$can_build_shared" = "no" && enable_shared=no
 
10960
 
 
10961
# On AIX, shared libraries and static libraries use the same namespace, and
 
10962
# are all built from PIC.
 
10963
case $host_os in
 
10964
aix3*)
 
10965
  test "$enable_shared" = yes && enable_static=no
 
10966
  if test -n "$RANLIB"; then
 
10967
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10968
    postinstall_cmds='$RANLIB $lib'
 
10969
  fi
 
10970
  ;;
 
10971
 
 
10972
aix4* | aix5*)
 
10973
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10974
    test "$enable_shared" = yes && enable_static=no
 
10975
  fi
 
10976
    ;;
 
10977
esac
 
10978
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10979
echo "${ECHO_T}$enable_shared" >&6; }
 
10980
 
 
10981
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10982
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10983
# Make sure either enable_shared or enable_static is yes.
 
10984
test "$enable_shared" = yes || enable_static=yes
 
10985
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10986
echo "${ECHO_T}$enable_static" >&6; }
 
10987
 
 
10988
# The else clause should only fire when bootstrapping the
 
10989
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10990
# with your package, and you will get complaints that there are
 
10991
# no rules to generate ltmain.sh.
 
10992
if test -f "$ltmain"; then
 
10993
  # See if we are running on zsh, and set the options which allow our commands through
 
10994
  # without removal of \ escapes.
 
10995
  if test -n "${ZSH_VERSION+set}" ; then
 
10996
    setopt NO_GLOB_SUBST
 
10997
  fi
 
10998
  # Now quote all the things that may contain metacharacters while being
 
10999
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11000
  # variables and quote the copies for generation of the libtool script.
 
11001
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
11002
    SED SHELL STRIP \
 
11003
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11004
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11005
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11006
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11007
    lt_cv_sys_global_symbol_to_c_name_address \
 
11008
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11009
    old_postinstall_cmds old_postuninstall_cmds \
 
11010
    compiler \
 
11011
    CC \
 
11012
    LD \
 
11013
    lt_prog_compiler_wl \
 
11014
    lt_prog_compiler_pic \
 
11015
    lt_prog_compiler_static \
 
11016
    lt_prog_compiler_no_builtin_flag \
 
11017
    export_dynamic_flag_spec \
 
11018
    thread_safe_flag_spec \
 
11019
    whole_archive_flag_spec \
 
11020
    enable_shared_with_static_runtimes \
 
11021
    old_archive_cmds \
 
11022
    old_archive_from_new_cmds \
 
11023
    predep_objects \
 
11024
    postdep_objects \
 
11025
    predeps \
 
11026
    postdeps \
 
11027
    compiler_lib_search_path \
 
11028
    archive_cmds \
 
11029
    archive_expsym_cmds \
 
11030
    postinstall_cmds \
 
11031
    postuninstall_cmds \
 
11032
    old_archive_from_expsyms_cmds \
 
11033
    allow_undefined_flag \
 
11034
    no_undefined_flag \
 
11035
    export_symbols_cmds \
 
11036
    hardcode_libdir_flag_spec \
 
11037
    hardcode_libdir_flag_spec_ld \
 
11038
    hardcode_libdir_separator \
 
11039
    hardcode_automatic \
 
11040
    module_cmds \
 
11041
    module_expsym_cmds \
 
11042
    lt_cv_prog_compiler_c_o \
 
11043
    fix_srcfile_path \
 
11044
    exclude_expsyms \
 
11045
    include_expsyms; do
 
11046
 
 
11047
    case $var in
 
11048
    old_archive_cmds | \
 
11049
    old_archive_from_new_cmds | \
 
11050
    archive_cmds | \
 
11051
    archive_expsym_cmds | \
 
11052
    module_cmds | \
 
11053
    module_expsym_cmds | \
 
11054
    old_archive_from_expsyms_cmds | \
 
11055
    export_symbols_cmds | \
 
11056
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11057
    postinstall_cmds | postuninstall_cmds | \
 
11058
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11059
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11060
      # Double-quote double-evaled strings.
 
11061
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11062
      ;;
 
11063
    *)
 
11064
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11065
      ;;
 
11066
    esac
 
11067
  done
 
11068
 
 
11069
  case $lt_echo in
 
11070
  *'\$0 --fallback-echo"')
 
11071
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11072
    ;;
 
11073
  esac
 
11074
 
 
11075
cfgfile="${ofile}T"
 
11076
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11077
  $rm -f "$cfgfile"
 
11078
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11079
echo "$as_me: creating $ofile" >&6;}
 
11080
 
 
11081
  cat <<__EOF__ >> "$cfgfile"
 
11082
#! $SHELL
 
11083
 
 
11084
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11085
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11086
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11087
#
 
11088
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
11089
# Free Software Foundation, Inc.
 
11090
#
 
11091
# This file is part of GNU Libtool:
 
11092
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11093
#
 
11094
# This program is free software; you can redistribute it and/or modify
 
11095
# it under the terms of the GNU General Public License as published by
 
11096
# the Free Software Foundation; either version 2 of the License, or
 
11097
# (at your option) any later version.
 
11098
#
 
11099
# This program is distributed in the hope that it will be useful, but
 
11100
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11101
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11102
# General Public License for more details.
 
11103
#
 
11104
# You should have received a copy of the GNU General Public License
 
11105
# along with this program; if not, write to the Free Software
 
11106
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
11107
#
 
11108
# As a special exception to the GNU General Public License, if you
 
11109
# distribute this file as part of a program that contains a
 
11110
# configuration script generated by Autoconf, you may include it under
 
11111
# the same distribution terms that you use for the rest of that program.
 
11112
 
 
11113
# A sed program that does not truncate output.
 
11114
SED=$lt_SED
 
11115
 
 
11116
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11117
Xsed="$SED -e 1s/^X//"
 
11118
 
 
11119
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11120
# if CDPATH is set.
 
11121
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11122
 
 
11123
# The names of the tagged configurations supported by this script.
 
11124
available_tags=
 
11125
 
 
11126
# ### BEGIN LIBTOOL CONFIG
 
11127
 
 
11128
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11129
 
 
11130
# Shell to use when invoking shell scripts.
 
11131
SHELL=$lt_SHELL
 
11132
 
 
11133
# Whether or not to build shared libraries.
 
11134
build_libtool_libs=$enable_shared
 
11135
 
 
11136
# Whether or not to build static libraries.
 
11137
build_old_libs=$enable_static
 
11138
 
 
11139
# Whether or not to add -lc for building shared libraries.
 
11140
build_libtool_need_lc=$archive_cmds_need_lc
 
11141
 
 
11142
# Whether or not to disallow shared libs when runtime libs are static
 
11143
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11144
 
 
11145
# Whether or not to optimize for fast installation.
 
11146
fast_install=$enable_fast_install
 
11147
 
 
11148
# The host system.
 
11149
host_alias=$host_alias
 
11150
host=$host
 
11151
host_os=$host_os
 
11152
 
 
11153
# The build system.
 
11154
build_alias=$build_alias
 
11155
build=$build
 
11156
build_os=$build_os
 
11157
 
 
11158
# An echo program that does not interpret backslashes.
 
11159
echo=$lt_echo
 
11160
 
 
11161
# The archiver.
 
11162
AR=$lt_AR
 
11163
AR_FLAGS=$lt_AR_FLAGS
 
11164
 
 
11165
# A C compiler.
 
11166
LTCC=$lt_LTCC
 
11167
 
 
11168
# LTCC compiler flags.
 
11169
LTCFLAGS=$lt_LTCFLAGS
 
11170
 
 
11171
# A language-specific compiler.
 
11172
CC=$lt_compiler
 
11173
 
 
11174
# Is the compiler the GNU C compiler?
 
11175
with_gcc=$GCC
 
11176
 
 
11177
# An ERE matcher.
 
11178
EGREP=$lt_EGREP
 
11179
 
 
11180
# The linker used to build libraries.
 
11181
LD=$lt_LD
 
11182
 
 
11183
# Whether we need hard or soft links.
 
11184
LN_S=$lt_LN_S
 
11185
 
 
11186
# A BSD-compatible nm program.
 
11187
NM=$lt_NM
 
11188
 
 
11189
# A symbol stripping program
 
11190
STRIP=$lt_STRIP
 
11191
 
 
11192
# Used to examine libraries when file_magic_cmd begins "file"
 
11193
MAGIC_CMD=$MAGIC_CMD
 
11194
 
 
11195
# Used on cygwin: DLL creation program.
 
11196
DLLTOOL="$DLLTOOL"
 
11197
 
 
11198
# Used on cygwin: object dumper.
 
11199
OBJDUMP="$OBJDUMP"
 
11200
 
 
11201
# Used on cygwin: assembler.
 
11202
AS="$AS"
 
11203
 
 
11204
# The name of the directory that contains temporary libtool files.
 
11205
objdir=$objdir
 
11206
 
 
11207
# How to create reloadable object files.
 
11208
reload_flag=$lt_reload_flag
 
11209
reload_cmds=$lt_reload_cmds
 
11210
 
 
11211
# How to pass a linker flag through the compiler.
 
11212
wl=$lt_lt_prog_compiler_wl
 
11213
 
 
11214
# Object file suffix (normally "o").
 
11215
objext="$ac_objext"
 
11216
 
 
11217
# Old archive suffix (normally "a").
 
11218
libext="$libext"
 
11219
 
 
11220
# Shared library suffix (normally ".so").
 
11221
shrext_cmds='$shrext_cmds'
 
11222
 
 
11223
# Executable file suffix (normally "").
 
11224
exeext="$exeext"
 
11225
 
 
11226
# Additional compiler flags for building library objects.
 
11227
pic_flag=$lt_lt_prog_compiler_pic
 
11228
pic_mode=$pic_mode
 
11229
 
 
11230
# What is the maximum length of a command?
 
11231
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11232
 
 
11233
# Does compiler simultaneously support -c and -o options?
 
11234
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11235
 
 
11236
# Must we lock files when doing compilation?
 
11237
need_locks=$lt_need_locks
 
11238
 
 
11239
# Do we need the lib prefix for modules?
 
11240
need_lib_prefix=$need_lib_prefix
 
11241
 
 
11242
# Do we need a version for libraries?
 
11243
need_version=$need_version
 
11244
 
 
11245
# Whether dlopen is supported.
 
11246
dlopen_support=$enable_dlopen
 
11247
 
 
11248
# Whether dlopen of programs is supported.
 
11249
dlopen_self=$enable_dlopen_self
 
11250
 
 
11251
# Whether dlopen of statically linked programs is supported.
 
11252
dlopen_self_static=$enable_dlopen_self_static
 
11253
 
 
11254
# Compiler flag to prevent dynamic linking.
 
11255
link_static_flag=$lt_lt_prog_compiler_static
 
11256
 
 
11257
# Compiler flag to turn off builtin functions.
 
11258
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11259
 
 
11260
# Compiler flag to allow reflexive dlopens.
 
11261
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11262
 
 
11263
# Compiler flag to generate shared objects directly from archives.
 
11264
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11265
 
 
11266
# Compiler flag to generate thread-safe objects.
 
11267
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11268
 
 
11269
# Library versioning type.
 
11270
version_type=$version_type
 
11271
 
 
11272
# Format of library name prefix.
 
11273
libname_spec=$lt_libname_spec
 
11274
 
 
11275
# List of archive names.  First name is the real one, the rest are links.
 
11276
# The last name is the one that the linker finds with -lNAME.
 
11277
library_names_spec=$lt_library_names_spec
 
11278
 
 
11279
# The coded name of the library, if different from the real name.
 
11280
soname_spec=$lt_soname_spec
 
11281
 
 
11282
# Commands used to build and install an old-style archive.
 
11283
RANLIB=$lt_RANLIB
 
11284
old_archive_cmds=$lt_old_archive_cmds
 
11285
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11286
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11287
 
 
11288
# Create an old-style archive from a shared archive.
 
11289
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11290
 
 
11291
# Create a temporary old-style archive to link instead of a shared archive.
 
11292
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11293
 
 
11294
# Commands used to build and install a shared archive.
 
11295
archive_cmds=$lt_archive_cmds
 
11296
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11297
postinstall_cmds=$lt_postinstall_cmds
 
11298
postuninstall_cmds=$lt_postuninstall_cmds
 
11299
 
 
11300
# Commands used to build a loadable module (assumed same as above if empty)
 
11301
module_cmds=$lt_module_cmds
 
11302
module_expsym_cmds=$lt_module_expsym_cmds
 
11303
 
 
11304
# Commands to strip libraries.
 
11305
old_striplib=$lt_old_striplib
 
11306
striplib=$lt_striplib
 
11307
 
 
11308
# Dependencies to place before the objects being linked to create a
 
11309
# shared library.
 
11310
predep_objects=$lt_predep_objects
 
11311
 
 
11312
# Dependencies to place after the objects being linked to create a
 
11313
# shared library.
 
11314
postdep_objects=$lt_postdep_objects
 
11315
 
 
11316
# Dependencies to place before the objects being linked to create a
 
11317
# shared library.
 
11318
predeps=$lt_predeps
 
11319
 
 
11320
# Dependencies to place after the objects being linked to create a
 
11321
# shared library.
 
11322
postdeps=$lt_postdeps
 
11323
 
 
11324
# The library search path used internally by the compiler when linking
 
11325
# a shared library.
 
11326
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11327
 
 
11328
# Method to check whether dependent libraries are shared objects.
 
11329
deplibs_check_method=$lt_deplibs_check_method
 
11330
 
 
11331
# Command to use when deplibs_check_method == file_magic.
 
11332
file_magic_cmd=$lt_file_magic_cmd
 
11333
 
 
11334
# Flag that allows shared libraries with undefined symbols to be built.
 
11335
allow_undefined_flag=$lt_allow_undefined_flag
 
11336
 
 
11337
# Flag that forces no undefined symbols.
 
11338
no_undefined_flag=$lt_no_undefined_flag
 
11339
 
 
11340
# Commands used to finish a libtool library installation in a directory.
 
11341
finish_cmds=$lt_finish_cmds
 
11342
 
 
11343
# Same as above, but a single script fragment to be evaled but not shown.
 
11344
finish_eval=$lt_finish_eval
 
11345
 
 
11346
# Take the output of nm and produce a listing of raw symbols and C names.
 
11347
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11348
 
 
11349
# Transform the output of nm in a proper C declaration
 
11350
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11351
 
 
11352
# Transform the output of nm in a C name address pair
 
11353
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11354
 
 
11355
# This is the shared library runtime path variable.
 
11356
runpath_var=$runpath_var
 
11357
 
 
11358
# This is the shared library path variable.
 
11359
shlibpath_var=$shlibpath_var
 
11360
 
 
11361
# Is shlibpath searched before the hard-coded library search path?
 
11362
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11363
 
 
11364
# How to hardcode a shared library path into an executable.
 
11365
hardcode_action=$hardcode_action
 
11366
 
 
11367
# Whether we should hardcode library paths into libraries.
 
11368
hardcode_into_libs=$hardcode_into_libs
 
11369
 
 
11370
# Flag to hardcode \$libdir into a binary during linking.
 
11371
# This must work even if \$libdir does not exist.
 
11372
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11373
 
 
11374
# If ld is used when linking, flag to hardcode \$libdir into
 
11375
# a binary during linking. This must work even if \$libdir does
 
11376
# not exist.
 
11377
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11378
 
 
11379
# Whether we need a single -rpath flag with a separated argument.
 
11380
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11381
 
 
11382
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11383
# resulting binary.
 
11384
hardcode_direct=$hardcode_direct
 
11385
 
 
11386
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11387
# resulting binary.
 
11388
hardcode_minus_L=$hardcode_minus_L
 
11389
 
 
11390
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11391
# the resulting binary.
 
11392
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11393
 
 
11394
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11395
# and all subsequent libraries and executables linked against it.
 
11396
hardcode_automatic=$hardcode_automatic
 
11397
 
 
11398
# Variables whose values should be saved in libtool wrapper scripts and
 
11399
# restored at relink time.
 
11400
variables_saved_for_relink="$variables_saved_for_relink"
 
11401
 
 
11402
# Whether libtool must link a program against all its dependency libraries.
 
11403
link_all_deplibs=$link_all_deplibs
 
11404
 
 
11405
# Compile-time system search path for libraries
 
11406
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11407
 
 
11408
# Run-time system search path for libraries
 
11409
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11410
 
 
11411
# Fix the shell variable \$srcfile for the compiler.
 
11412
fix_srcfile_path=$lt_fix_srcfile_path
 
11413
 
 
11414
# Set to yes if exported symbols are required.
 
11415
always_export_symbols=$always_export_symbols
 
11416
 
 
11417
# The commands to list exported symbols.
 
11418
export_symbols_cmds=$lt_export_symbols_cmds
 
11419
 
 
11420
# The commands to extract the exported symbol list from a shared archive.
 
11421
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11422
 
 
11423
# Symbols that should not be listed in the preloaded symbols.
 
11424
exclude_expsyms=$lt_exclude_expsyms
 
11425
 
 
11426
# Symbols that must always be exported.
 
11427
include_expsyms=$lt_include_expsyms
 
11428
 
 
11429
# ### END LIBTOOL CONFIG
 
11430
 
 
11431
__EOF__
 
11432
 
 
11433
 
 
11434
  case $host_os in
 
11435
  aix3*)
 
11436
    cat <<\EOF >> "$cfgfile"
 
11437
 
 
11438
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11439
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11440
# vanish in a puff of smoke.
 
11441
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11442
  COLLECT_NAMES=
 
11443
  export COLLECT_NAMES
 
11444
fi
 
11445
EOF
 
11446
    ;;
 
11447
  esac
 
11448
 
 
11449
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11450
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11451
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11452
  # is reportedly fixed, but why not run on old versions too?
 
11453
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11454
 
 
11455
  mv -f "$cfgfile" "$ofile" || \
 
11456
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11457
  chmod +x "$ofile"
 
11458
 
 
11459
else
 
11460
  # If there is no Makefile yet, we rely on a make rule to execute
 
11461
  # `config.status --recheck' to rerun these tests and create the
 
11462
  # libtool script then.
 
11463
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11464
  if test -f "$ltmain_in"; then
 
11465
    test -f Makefile && make "$ltmain"
 
11466
  fi
 
11467
fi
 
11468
 
 
11469
 
 
11470
ac_ext=c
 
11471
ac_cpp='$CPP $CPPFLAGS'
 
11472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11475
 
 
11476
CC="$lt_save_CC"
 
11477
 
 
11478
 
 
11479
# Check whether --with-tags was given.
 
11480
if test "${with_tags+set}" = set; then
 
11481
  withval=$with_tags; tagnames="$withval"
 
11482
fi
 
11483
 
 
11484
 
 
11485
if test -f "$ltmain" && test -n "$tagnames"; then
 
11486
  if test ! -f "${ofile}"; then
 
11487
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11488
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11489
  fi
 
11490
 
 
11491
  if test -z "$LTCC"; then
 
11492
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11493
    if test -z "$LTCC"; then
 
11494
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11495
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11496
    else
 
11497
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11498
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11499
    fi
 
11500
  fi
 
11501
  if test -z "$LTCFLAGS"; then
 
11502
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11503
  fi
 
11504
 
 
11505
  # Extract list of available tagged configurations in $ofile.
 
11506
  # Note that this assumes the entire list is on one line.
 
11507
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11508
 
 
11509
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11510
  for tagname in $tagnames; do
 
11511
    IFS="$lt_save_ifs"
 
11512
    # Check whether tagname contains only valid characters
 
11513
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11514
    "") ;;
 
11515
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11516
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11517
   { (exit 1); exit 1; }; }
 
11518
        ;;
 
11519
    esac
 
11520
 
 
11521
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11522
    then
 
11523
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11524
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11525
   { (exit 1); exit 1; }; }
 
11526
    fi
 
11527
 
 
11528
    # Update the list of available tags.
 
11529
    if test -n "$tagname"; then
 
11530
      echo appending configuration tag \"$tagname\" to $ofile
 
11531
 
 
11532
      case $tagname in
 
11533
      CXX)
 
11534
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11535
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11536
            (test "X$CXX" != "Xg++"))) ; then
 
11537
          ac_ext=cpp
 
11538
ac_cpp='$CXXCPP $CPPFLAGS'
 
11539
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11540
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11541
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11542
 
 
11543
 
 
11544
 
 
11545
 
 
11546
archive_cmds_need_lc_CXX=no
 
11547
allow_undefined_flag_CXX=
 
11548
always_export_symbols_CXX=no
 
11549
archive_expsym_cmds_CXX=
 
11550
export_dynamic_flag_spec_CXX=
 
11551
hardcode_direct_CXX=no
 
11552
hardcode_libdir_flag_spec_CXX=
 
11553
hardcode_libdir_flag_spec_ld_CXX=
 
11554
hardcode_libdir_separator_CXX=
 
11555
hardcode_minus_L_CXX=no
 
11556
hardcode_shlibpath_var_CXX=unsupported
 
11557
hardcode_automatic_CXX=no
 
11558
module_cmds_CXX=
 
11559
module_expsym_cmds_CXX=
 
11560
link_all_deplibs_CXX=unknown
 
11561
old_archive_cmds_CXX=$old_archive_cmds
 
11562
no_undefined_flag_CXX=
 
11563
whole_archive_flag_spec_CXX=
 
11564
enable_shared_with_static_runtimes_CXX=no
 
11565
 
 
11566
# Dependencies to place before and after the object being linked:
 
11567
predep_objects_CXX=
 
11568
postdep_objects_CXX=
 
11569
predeps_CXX=
 
11570
postdeps_CXX=
 
11571
compiler_lib_search_path_CXX=
 
11572
 
 
11573
# Source file extension for C++ test sources.
 
11574
ac_ext=cpp
 
11575
 
 
11576
# Object file extension for compiled C++ test sources.
 
11577
objext=o
 
11578
objext_CXX=$objext
 
11579
 
 
11580
# Code to be used in simple compile tests
 
11581
lt_simple_compile_test_code="int some_variable = 0;"
 
11582
 
 
11583
# Code to be used in simple link tests
 
11584
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11585
 
 
11586
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11587
 
 
11588
# If no C compiler was specified, use CC.
 
11589
LTCC=${LTCC-"$CC"}
 
11590
 
 
11591
# If no C compiler flags were specified, use CFLAGS.
 
11592
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11593
 
 
11594
# Allow CC to be a program name with arguments.
 
11595
compiler=$CC
 
11596
 
 
11597
 
 
11598
# save warnings/boilerplate of simple test code
 
11599
ac_outfile=conftest.$ac_objext
 
11600
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11601
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11602
_lt_compiler_boilerplate=`cat conftest.err`
 
11603
$rm conftest*
 
11604
 
 
11605
ac_outfile=conftest.$ac_objext
 
11606
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11607
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11608
_lt_linker_boilerplate=`cat conftest.err`
 
11609
$rm conftest*
 
11610
 
 
11611
 
 
11612
# Allow CC to be a program name with arguments.
 
11613
lt_save_CC=$CC
 
11614
lt_save_LD=$LD
 
11615
lt_save_GCC=$GCC
 
11616
GCC=$GXX
 
11617
lt_save_with_gnu_ld=$with_gnu_ld
 
11618
lt_save_path_LD=$lt_cv_path_LD
 
11619
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11620
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11621
else
 
11622
  $as_unset lt_cv_prog_gnu_ld
 
11623
fi
 
11624
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11625
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11626
else
 
11627
  $as_unset lt_cv_path_LD
 
11628
fi
 
11629
test -z "${LDCXX+set}" || LD=$LDCXX
 
11630
CC=${CXX-"c++"}
 
11631
compiler=$CC
 
11632
compiler_CXX=$CC
 
11633
for cc_temp in $compiler""; do
 
11634
  case $cc_temp in
 
11635
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11636
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11637
    \-*) ;;
 
11638
    *) break;;
 
11639
  esac
 
11640
done
 
11641
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11642
 
 
11643
 
 
11644
# We don't want -fno-exception wen compiling C++ code, so set the
 
11645
# no_builtin_flag separately
 
11646
if test "$GXX" = yes; then
 
11647
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11648
else
 
11649
  lt_prog_compiler_no_builtin_flag_CXX=
 
11650
fi
 
11651
 
 
11652
if test "$GXX" = yes; then
 
11653
  # Set up default GNU C++ configuration
 
11654
 
 
11655
 
 
11656
# Check whether --with-gnu-ld was given.
 
11657
if test "${with_gnu_ld+set}" = set; then
 
11658
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11659
else
 
11660
  with_gnu_ld=no
 
11661
fi
 
11662
 
 
11663
ac_prog=ld
 
11664
if test "$GCC" = yes; then
 
11665
  # Check if gcc -print-prog-name=ld gives a path.
 
11666
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11667
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11668
  case $host in
 
11669
  *-*-mingw*)
 
11670
    # gcc leaves a trailing carriage return which upsets mingw
 
11671
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11672
  *)
 
11673
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11674
  esac
 
11675
  case $ac_prog in
 
11676
    # Accept absolute paths.
 
11677
    [\\/]* | ?:[\\/]*)
 
11678
      re_direlt='/[^/][^/]*/\.\./'
 
11679
      # Canonicalize the pathname of ld
 
11680
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11681
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11682
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11683
      done
 
11684
      test -z "$LD" && LD="$ac_prog"
 
11685
      ;;
 
11686
  "")
 
11687
    # If it fails, then pretend we aren't using GCC.
 
11688
    ac_prog=ld
 
11689
    ;;
 
11690
  *)
 
11691
    # If it is relative, then search for the first ld in PATH.
 
11692
    with_gnu_ld=unknown
 
11693
    ;;
 
11694
  esac
 
11695
elif test "$with_gnu_ld" = yes; then
 
11696
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11697
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11698
else
 
11699
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11700
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11701
fi
 
11702
if test "${lt_cv_path_LD+set}" = set; then
 
11703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11704
else
 
11705
  if test -z "$LD"; then
 
11706
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11707
  for ac_dir in $PATH; do
 
11708
    IFS="$lt_save_ifs"
 
11709
    test -z "$ac_dir" && ac_dir=.
 
11710
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11711
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11712
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11713
      # but apparently some variants of GNU ld only accept -v.
 
11714
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11715
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11716
      *GNU* | *'with BFD'*)
 
11717
        test "$with_gnu_ld" != no && break
 
11718
        ;;
 
11719
      *)
 
11720
        test "$with_gnu_ld" != yes && break
 
11721
        ;;
 
11722
      esac
 
11723
    fi
 
11724
  done
 
11725
  IFS="$lt_save_ifs"
 
11726
else
 
11727
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11728
fi
 
11729
fi
 
11730
 
 
11731
LD="$lt_cv_path_LD"
 
11732
if test -n "$LD"; then
 
11733
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11734
echo "${ECHO_T}$LD" >&6; }
 
11735
else
 
11736
  { echo "$as_me:$LINENO: result: no" >&5
 
11737
echo "${ECHO_T}no" >&6; }
 
11738
fi
 
11739
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11740
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11741
   { (exit 1); exit 1; }; }
 
11742
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11743
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11744
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11745
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11746
else
 
11747
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11748
case `$LD -v 2>&1 </dev/null` in
 
11749
*GNU* | *'with BFD'*)
 
11750
  lt_cv_prog_gnu_ld=yes
 
11751
  ;;
 
11752
*)
 
11753
  lt_cv_prog_gnu_ld=no
 
11754
  ;;
 
11755
esac
 
11756
fi
 
11757
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11758
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11759
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11760
 
 
11761
 
 
11762
 
 
11763
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11764
  # archiving commands below assume that GNU ld is being used.
 
11765
  if test "$with_gnu_ld" = yes; then
 
11766
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11767
    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'
 
11768
 
 
11769
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11770
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11771
 
 
11772
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11773
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11774
    #     investigate it a little bit more. (MM)
 
11775
    wlarc='${wl}'
 
11776
 
 
11777
    # ancient GNU ld didn't support --whole-archive et. al.
 
11778
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11779
        grep 'no-whole-archive' > /dev/null; then
 
11780
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11781
    else
 
11782
      whole_archive_flag_spec_CXX=
 
11783
    fi
 
11784
  else
 
11785
    with_gnu_ld=no
 
11786
    wlarc=
 
11787
 
 
11788
    # A generic and very simple default shared library creation
 
11789
    # command for GNU C++ for the case where it uses the native
 
11790
    # linker, instead of GNU ld.  If possible, this setting should
 
11791
    # overridden to take advantage of the native linker features on
 
11792
    # the platform it is being used on.
 
11793
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11794
  fi
 
11795
 
 
11796
  # Commands to make compiler produce verbose output that lists
 
11797
  # what "hidden" libraries, object files and flags are used when
 
11798
  # linking a shared library.
 
11799
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11800
 
 
11801
else
 
11802
  GXX=no
 
11803
  with_gnu_ld=no
 
11804
  wlarc=
 
11805
fi
 
11806
 
 
11807
# PORTME: fill in a description of your system's C++ link characteristics
 
11808
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11809
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11810
ld_shlibs_CXX=yes
 
11811
case $host_os in
 
11812
  aix3*)
 
11813
    # FIXME: insert proper C++ library support
 
11814
    ld_shlibs_CXX=no
 
11815
    ;;
 
11816
  aix4* | aix5*)
 
11817
    if test "$host_cpu" = ia64; then
 
11818
      # On IA64, the linker does run time linking by default, so we don't
 
11819
      # have to do anything special.
 
11820
      aix_use_runtimelinking=no
 
11821
      exp_sym_flag='-Bexport'
 
11822
      no_entry_flag=""
 
11823
    else
 
11824
      aix_use_runtimelinking=no
 
11825
 
 
11826
      # Test if we are trying to use run time linking or normal
 
11827
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11828
      # need to do runtime linking.
 
11829
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11830
        for ld_flag in $LDFLAGS; do
 
11831
          case $ld_flag in
 
11832
          *-brtl*)
 
11833
            aix_use_runtimelinking=yes
 
11834
            break
 
11835
            ;;
 
11836
          esac
 
11837
        done
 
11838
        ;;
 
11839
      esac
 
11840
 
 
11841
      exp_sym_flag='-bexport'
 
11842
      no_entry_flag='-bnoentry'
 
11843
    fi
 
11844
 
 
11845
    # When large executables or shared objects are built, AIX ld can
 
11846
    # have problems creating the table of contents.  If linking a library
 
11847
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11848
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11849
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11850
 
 
11851
    archive_cmds_CXX=''
 
11852
    hardcode_direct_CXX=yes
 
11853
    hardcode_libdir_separator_CXX=':'
 
11854
    link_all_deplibs_CXX=yes
 
11855
 
 
11856
    if test "$GXX" = yes; then
 
11857
      case $host_os in aix4.[012]|aix4.[012].*)
 
11858
      # We only want to do this on AIX 4.2 and lower, the check
 
11859
      # below for broken collect2 doesn't work under 4.3+
 
11860
        collect2name=`${CC} -print-prog-name=collect2`
 
11861
        if test -f "$collect2name" && \
 
11862
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11863
        then
 
11864
          # We have reworked collect2
 
11865
          :
 
11866
        else
 
11867
          # We have old collect2
 
11868
          hardcode_direct_CXX=unsupported
 
11869
          # It fails to find uninstalled libraries when the uninstalled
 
11870
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11871
          # to unsupported forces relinking
 
11872
          hardcode_minus_L_CXX=yes
 
11873
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11874
          hardcode_libdir_separator_CXX=
 
11875
        fi
 
11876
        ;;
 
11877
      esac
 
11878
      shared_flag='-shared'
 
11879
      if test "$aix_use_runtimelinking" = yes; then
 
11880
        shared_flag="$shared_flag "'${wl}-G'
 
11881
      fi
 
11882
    else
 
11883
      # not using gcc
 
11884
      if test "$host_cpu" = ia64; then
 
11885
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11886
        # chokes on -Wl,-G. The following line is correct:
 
11887
        shared_flag='-G'
 
11888
      else
 
11889
        if test "$aix_use_runtimelinking" = yes; then
 
11890
          shared_flag='${wl}-G'
 
11891
        else
 
11892
          shared_flag='${wl}-bM:SRE'
 
11893
        fi
 
11894
      fi
 
11895
    fi
 
11896
 
 
11897
    # It seems that -bexpall does not export symbols beginning with
 
11898
    # underscore (_), so it is better to generate a list of symbols to export.
 
11899
    always_export_symbols_CXX=yes
 
11900
    if test "$aix_use_runtimelinking" = yes; then
 
11901
      # Warning - without using the other runtime loading flags (-brtl),
 
11902
      # -berok will link without error, but may produce a broken library.
 
11903
      allow_undefined_flag_CXX='-berok'
 
11904
      # Determine the default libpath from the value encoded in an empty executable.
 
11905
      cat >conftest.$ac_ext <<_ACEOF
 
11906
/* confdefs.h.  */
 
11907
_ACEOF
 
11908
cat confdefs.h >>conftest.$ac_ext
 
11909
cat >>conftest.$ac_ext <<_ACEOF
 
11910
/* end confdefs.h.  */
 
11911
 
 
11912
int
 
11913
main ()
 
11914
{
 
11915
 
 
11916
  ;
 
11917
  return 0;
 
11918
}
 
11919
_ACEOF
 
11920
rm -f conftest.$ac_objext conftest$ac_exeext
 
11921
if { (ac_try="$ac_link"
 
11922
case "(($ac_try" in
 
11923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11924
  *) ac_try_echo=$ac_try;;
 
11925
esac
 
11926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11927
  (eval "$ac_link") 2>conftest.er1
 
11928
  ac_status=$?
 
11929
  grep -v '^ *+' conftest.er1 >conftest.err
 
11930
  rm -f conftest.er1
 
11931
  cat conftest.err >&5
 
11932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11933
  (exit $ac_status); } && {
 
11934
         test -z "$ac_cxx_werror_flag" ||
 
11935
         test ! -s conftest.err
 
11936
       } && test -s conftest$ac_exeext &&
 
11937
       $as_test_x conftest$ac_exeext; then
 
11938
 
 
11939
lt_aix_libpath_sed='
 
11940
    /Import File Strings/,/^$/ {
 
11941
        /^0/ {
 
11942
            s/^0  *\(.*\)$/\1/
 
11943
            p
 
11944
        }
 
11945
    }'
 
11946
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11947
# Check for a 64-bit object if we didn't find anything.
 
11948
if test -z "$aix_libpath"; then
 
11949
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11950
fi
 
11951
else
 
11952
  echo "$as_me: failed program was:" >&5
 
11953
sed 's/^/| /' conftest.$ac_ext >&5
 
11954
 
 
11955
 
 
11956
fi
 
11957
 
 
11958
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11959
      conftest$ac_exeext conftest.$ac_ext
 
11960
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11961
 
 
11962
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11963
 
 
11964
      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"
 
11965
     else
 
11966
      if test "$host_cpu" = ia64; then
 
11967
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11968
        allow_undefined_flag_CXX="-z nodefs"
 
11969
        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"
 
11970
      else
 
11971
        # Determine the default libpath from the value encoded in an empty executable.
 
11972
        cat >conftest.$ac_ext <<_ACEOF
 
11973
/* confdefs.h.  */
 
11974
_ACEOF
 
11975
cat confdefs.h >>conftest.$ac_ext
 
11976
cat >>conftest.$ac_ext <<_ACEOF
 
11977
/* end confdefs.h.  */
 
11978
 
 
11979
int
 
11980
main ()
 
11981
{
 
11982
 
 
11983
  ;
 
11984
  return 0;
 
11985
}
 
11986
_ACEOF
 
11987
rm -f conftest.$ac_objext conftest$ac_exeext
 
11988
if { (ac_try="$ac_link"
 
11989
case "(($ac_try" in
 
11990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11991
  *) ac_try_echo=$ac_try;;
 
11992
esac
 
11993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11994
  (eval "$ac_link") 2>conftest.er1
 
11995
  ac_status=$?
 
11996
  grep -v '^ *+' conftest.er1 >conftest.err
 
11997
  rm -f conftest.er1
 
11998
  cat conftest.err >&5
 
11999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12000
  (exit $ac_status); } && {
 
12001
         test -z "$ac_cxx_werror_flag" ||
 
12002
         test ! -s conftest.err
 
12003
       } && test -s conftest$ac_exeext &&
 
12004
       $as_test_x conftest$ac_exeext; then
 
12005
 
 
12006
lt_aix_libpath_sed='
 
12007
    /Import File Strings/,/^$/ {
 
12008
        /^0/ {
 
12009
            s/^0  *\(.*\)$/\1/
 
12010
            p
 
12011
        }
 
12012
    }'
 
12013
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12014
# Check for a 64-bit object if we didn't find anything.
 
12015
if test -z "$aix_libpath"; then
 
12016
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12017
fi
 
12018
else
 
12019
  echo "$as_me: failed program was:" >&5
 
12020
sed 's/^/| /' conftest.$ac_ext >&5
 
12021
 
 
12022
 
 
12023
fi
 
12024
 
 
12025
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12026
      conftest$ac_exeext conftest.$ac_ext
 
12027
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12028
 
 
12029
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12030
        # Warning - without using the other run time loading flags,
 
12031
        # -berok will link without error, but may produce a broken library.
 
12032
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12033
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12034
        # Exported symbols can be pulled into shared objects from archives
 
12035
        whole_archive_flag_spec_CXX='$convenience'
 
12036
        archive_cmds_need_lc_CXX=yes
 
12037
        # This is similar to how AIX traditionally builds its shared libraries.
 
12038
        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'
 
12039
      fi
 
12040
    fi
 
12041
    ;;
 
12042
 
 
12043
  beos*)
 
12044
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12045
      allow_undefined_flag_CXX=unsupported
 
12046
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12047
      # support --undefined.  This deserves some investigation.  FIXME
 
12048
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12049
    else
 
12050
      ld_shlibs_CXX=no
 
12051
    fi
 
12052
    ;;
 
12053
 
 
12054
  chorus*)
 
12055
    case $cc_basename in
 
12056
      *)
 
12057
        # FIXME: insert proper C++ library support
 
12058
        ld_shlibs_CXX=no
 
12059
        ;;
 
12060
    esac
 
12061
    ;;
 
12062
 
 
12063
  cygwin* | mingw* | pw32*)
 
12064
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12065
    # as there is no search path for DLLs.
 
12066
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12067
    allow_undefined_flag_CXX=unsupported
 
12068
    always_export_symbols_CXX=no
 
12069
    enable_shared_with_static_runtimes_CXX=yes
 
12070
 
 
12071
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12072
      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'
 
12073
      # If the export-symbols file already is a .def file (1st line
 
12074
      # is EXPORTS), use it as is; otherwise, prepend...
 
12075
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12076
        cp $export_symbols $output_objdir/$soname.def;
 
12077
      else
 
12078
        echo EXPORTS > $output_objdir/$soname.def;
 
12079
        cat $export_symbols >> $output_objdir/$soname.def;
 
12080
      fi~
 
12081
      $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'
 
12082
    else
 
12083
      ld_shlibs_CXX=no
 
12084
    fi
 
12085
  ;;
 
12086
      darwin* | rhapsody*)
 
12087
        case $host_os in
 
12088
        rhapsody* | darwin1.[012])
 
12089
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
12090
         ;;
 
12091
       *) # Darwin 1.3 on
 
12092
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
12093
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
12094
         else
 
12095
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
12096
             10.[012])
 
12097
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
12098
               ;;
 
12099
             10.*)
 
12100
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
12101
               ;;
 
12102
           esac
 
12103
         fi
 
12104
         ;;
 
12105
        esac
 
12106
      archive_cmds_need_lc_CXX=no
 
12107
      hardcode_direct_CXX=no
 
12108
      hardcode_automatic_CXX=yes
 
12109
      hardcode_shlibpath_var_CXX=unsupported
 
12110
      whole_archive_flag_spec_CXX=''
 
12111
      link_all_deplibs_CXX=yes
 
12112
 
 
12113
    if test "$GXX" = yes ; then
 
12114
      lt_int_apple_cc_single_mod=no
 
12115
      output_verbose_link_cmd='echo'
 
12116
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
12117
       lt_int_apple_cc_single_mod=yes
 
12118
      fi
 
12119
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12120
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12121
      else
 
12122
          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'
 
12123
        fi
 
12124
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12125
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12126
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12127
            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}'
 
12128
          else
 
12129
            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}'
 
12130
          fi
 
12131
            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}'
 
12132
      else
 
12133
      case $cc_basename in
 
12134
        xlc*)
 
12135
         output_verbose_link_cmd='echo'
 
12136
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
12137
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12138
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12139
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12140
          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}'
 
12141
          ;;
 
12142
       *)
 
12143
         ld_shlibs_CXX=no
 
12144
          ;;
 
12145
      esac
 
12146
      fi
 
12147
        ;;
 
12148
 
 
12149
  dgux*)
 
12150
    case $cc_basename in
 
12151
      ec++*)
 
12152
        # FIXME: insert proper C++ library support
 
12153
        ld_shlibs_CXX=no
 
12154
        ;;
 
12155
      ghcx*)
 
12156
        # Green Hills C++ Compiler
 
12157
        # FIXME: insert proper C++ library support
 
12158
        ld_shlibs_CXX=no
 
12159
        ;;
 
12160
      *)
 
12161
        # FIXME: insert proper C++ library support
 
12162
        ld_shlibs_CXX=no
 
12163
        ;;
 
12164
    esac
 
12165
    ;;
 
12166
  freebsd[12]*)
 
12167
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12168
    ld_shlibs_CXX=no
 
12169
    ;;
 
12170
  freebsd-elf*)
 
12171
    archive_cmds_need_lc_CXX=no
 
12172
    ;;
 
12173
  freebsd* | dragonfly*)
 
12174
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12175
    # conventions
 
12176
    ld_shlibs_CXX=yes
 
12177
    ;;
 
12178
  gnu*)
 
12179
    ;;
 
12180
  hpux9*)
 
12181
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12182
    hardcode_libdir_separator_CXX=:
 
12183
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12184
    hardcode_direct_CXX=yes
 
12185
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12186
                                # but as the default
 
12187
                                # location of the library.
 
12188
 
 
12189
    case $cc_basename in
 
12190
    CC*)
 
12191
      # FIXME: insert proper C++ library support
 
12192
      ld_shlibs_CXX=no
 
12193
      ;;
 
12194
    aCC*)
 
12195
      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'
 
12196
      # Commands to make compiler produce verbose output that lists
 
12197
      # what "hidden" libraries, object files and flags are used when
 
12198
      # linking a shared library.
 
12199
      #
 
12200
      # There doesn't appear to be a way to prevent this compiler from
 
12201
      # explicitly linking system object files so we need to strip them
 
12202
      # from the output so that they don't get included in the library
 
12203
      # dependencies.
 
12204
      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'
 
12205
      ;;
 
12206
    *)
 
12207
      if test "$GXX" = yes; then
 
12208
        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'
 
12209
      else
 
12210
        # FIXME: insert proper C++ library support
 
12211
        ld_shlibs_CXX=no
 
12212
      fi
 
12213
      ;;
 
12214
    esac
 
12215
    ;;
 
12216
  hpux10*|hpux11*)
 
12217
    if test $with_gnu_ld = no; then
 
12218
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12219
      hardcode_libdir_separator_CXX=:
 
12220
 
 
12221
      case $host_cpu in
 
12222
      hppa*64*|ia64*) ;;
 
12223
      *)
 
12224
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12225
        ;;
 
12226
      esac
 
12227
    fi
 
12228
    case $host_cpu in
 
12229
    hppa*64*|ia64*)
 
12230
      hardcode_direct_CXX=no
 
12231
      hardcode_shlibpath_var_CXX=no
 
12232
      ;;
 
12233
    *)
 
12234
      hardcode_direct_CXX=yes
 
12235
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12236
                                              # but as the default
 
12237
                                              # location of the library.
 
12238
      ;;
 
12239
    esac
 
12240
 
 
12241
    case $cc_basename in
 
12242
      CC*)
 
12243
        # FIXME: insert proper C++ library support
 
12244
        ld_shlibs_CXX=no
 
12245
        ;;
 
12246
      aCC*)
 
12247
        case $host_cpu in
 
12248
        hppa*64*)
 
12249
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12250
          ;;
 
12251
        ia64*)
 
12252
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12253
          ;;
 
12254
        *)
 
12255
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12256
          ;;
 
12257
        esac
 
12258
        # Commands to make compiler produce verbose output that lists
 
12259
        # what "hidden" libraries, object files and flags are used when
 
12260
        # linking a shared library.
 
12261
        #
 
12262
        # There doesn't appear to be a way to prevent this compiler from
 
12263
        # explicitly linking system object files so we need to strip them
 
12264
        # from the output so that they don't get included in the library
 
12265
        # dependencies.
 
12266
        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'
 
12267
        ;;
 
12268
      *)
 
12269
        if test "$GXX" = yes; then
 
12270
          if test $with_gnu_ld = no; then
 
12271
            case $host_cpu in
 
12272
            hppa*64*)
 
12273
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12274
              ;;
 
12275
            ia64*)
 
12276
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12277
              ;;
 
12278
            *)
 
12279
              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'
 
12280
              ;;
 
12281
            esac
 
12282
          fi
 
12283
        else
 
12284
          # FIXME: insert proper C++ library support
 
12285
          ld_shlibs_CXX=no
 
12286
        fi
 
12287
        ;;
 
12288
    esac
 
12289
    ;;
 
12290
  interix[3-9]*)
 
12291
    hardcode_direct_CXX=no
 
12292
    hardcode_shlibpath_var_CXX=no
 
12293
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12294
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12295
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12296
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12297
    # default) and relocated if they conflict, which is a slow very memory
 
12298
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12299
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12300
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12301
    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'
 
12302
    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'
 
12303
    ;;
 
12304
  irix5* | irix6*)
 
12305
    case $cc_basename in
 
12306
      CC*)
 
12307
        # SGI C++
 
12308
        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'
 
12309
 
 
12310
        # Archives containing C++ object files must be created using
 
12311
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12312
        # necessary to make sure instantiated templates are included
 
12313
        # in the archive.
 
12314
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12315
        ;;
 
12316
      *)
 
12317
        if test "$GXX" = yes; then
 
12318
          if test "$with_gnu_ld" = no; then
 
12319
            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'
 
12320
          else
 
12321
            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'
 
12322
          fi
 
12323
        fi
 
12324
        link_all_deplibs_CXX=yes
 
12325
        ;;
 
12326
    esac
 
12327
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12328
    hardcode_libdir_separator_CXX=:
 
12329
    ;;
 
12330
  linux* | k*bsd*-gnu)
 
12331
    case $cc_basename in
 
12332
      KCC*)
 
12333
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12334
 
 
12335
        # KCC will only create a shared library if the output file
 
12336
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12337
        # to its proper name (with version) after linking.
 
12338
        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'
 
12339
        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'
 
12340
        # Commands to make compiler produce verbose output that lists
 
12341
        # what "hidden" libraries, object files and flags are used when
 
12342
        # linking a shared library.
 
12343
        #
 
12344
        # There doesn't appear to be a way to prevent this compiler from
 
12345
        # explicitly linking system object files so we need to strip them
 
12346
        # from the output so that they don't get included in the library
 
12347
        # dependencies.
 
12348
        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'
 
12349
 
 
12350
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12351
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12352
 
 
12353
        # Archives containing C++ object files must be created using
 
12354
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12355
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12356
        ;;
 
12357
      icpc*)
 
12358
        # Intel C++
 
12359
        with_gnu_ld=yes
 
12360
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12361
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12362
        # earlier do not add the objects themselves.
 
12363
        case `$CC -V 2>&1` in
 
12364
        *"Version 7."*)
 
12365
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12366
          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'
 
12367
          ;;
 
12368
        *)  # Version 8.0 or newer
 
12369
          tmp_idyn=
 
12370
          case $host_cpu in
 
12371
            ia64*) tmp_idyn=' -i_dynamic';;
 
12372
          esac
 
12373
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12374
          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'
 
12375
          ;;
 
12376
        esac
 
12377
        archive_cmds_need_lc_CXX=no
 
12378
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12379
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12380
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12381
        ;;
 
12382
      pgCC*)
 
12383
        # Portland Group C++ compiler
 
12384
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12385
        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'
 
12386
 
 
12387
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12388
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12389
        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'
 
12390
        ;;
 
12391
      cxx*)
 
12392
        # Compaq C++
 
12393
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12394
        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'
 
12395
 
 
12396
        runpath_var=LD_RUN_PATH
 
12397
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12398
        hardcode_libdir_separator_CXX=:
 
12399
 
 
12400
        # Commands to make compiler produce verbose output that lists
 
12401
        # what "hidden" libraries, object files and flags are used when
 
12402
        # linking a shared library.
 
12403
        #
 
12404
        # There doesn't appear to be a way to prevent this compiler from
 
12405
        # explicitly linking system object files so we need to strip them
 
12406
        # from the output so that they don't get included in the library
 
12407
        # dependencies.
 
12408
        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'
 
12409
        ;;
 
12410
      *)
 
12411
        case `$CC -V 2>&1 | sed 5q` in
 
12412
        *Sun\ C*)
 
12413
          # Sun C++ 5.9
 
12414
          no_undefined_flag_CXX=' -zdefs'
 
12415
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12416
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
12417
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12418
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
12419
 
 
12420
          # Not sure whether something based on
 
12421
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12422
          # would be better.
 
12423
          output_verbose_link_cmd='echo'
 
12424
 
 
12425
          # Archives containing C++ object files must be created using
 
12426
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12427
          # necessary to make sure instantiated templates are included
 
12428
          # in the archive.
 
12429
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12430
          ;;
 
12431
        esac
 
12432
        ;;
 
12433
    esac
 
12434
    ;;
 
12435
  lynxos*)
 
12436
    # FIXME: insert proper C++ library support
 
12437
    ld_shlibs_CXX=no
 
12438
    ;;
 
12439
  m88k*)
 
12440
    # FIXME: insert proper C++ library support
 
12441
    ld_shlibs_CXX=no
 
12442
    ;;
 
12443
  mvs*)
 
12444
    case $cc_basename in
 
12445
      cxx*)
 
12446
        # FIXME: insert proper C++ library support
 
12447
        ld_shlibs_CXX=no
 
12448
        ;;
 
12449
      *)
 
12450
        # FIXME: insert proper C++ library support
 
12451
        ld_shlibs_CXX=no
 
12452
        ;;
 
12453
    esac
 
12454
    ;;
 
12455
  netbsd*)
 
12456
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12457
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12458
      wlarc=
 
12459
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12460
      hardcode_direct_CXX=yes
 
12461
      hardcode_shlibpath_var_CXX=no
 
12462
    fi
 
12463
    # Workaround some broken pre-1.5 toolchains
 
12464
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12465
    ;;
 
12466
  openbsd2*)
 
12467
    # C++ shared libraries are fairly broken
 
12468
    ld_shlibs_CXX=no
 
12469
    ;;
 
12470
  openbsd*)
 
12471
    if test -f /usr/libexec/ld.so; then
 
12472
      hardcode_direct_CXX=yes
 
12473
      hardcode_shlibpath_var_CXX=no
 
12474
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12475
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12476
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12477
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12478
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12479
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12480
      fi
 
12481
      output_verbose_link_cmd='echo'
 
12482
    else
 
12483
      ld_shlibs_CXX=no
 
12484
    fi
 
12485
    ;;
 
12486
  osf3*)
 
12487
    case $cc_basename in
 
12488
      KCC*)
 
12489
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12490
 
 
12491
        # KCC will only create a shared library if the output file
 
12492
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12493
        # to its proper name (with version) after linking.
 
12494
        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'
 
12495
 
 
12496
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12497
        hardcode_libdir_separator_CXX=:
 
12498
 
 
12499
        # Archives containing C++ object files must be created using
 
12500
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12501
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12502
 
 
12503
        ;;
 
12504
      RCC*)
 
12505
        # Rational C++ 2.4.1
 
12506
        # FIXME: insert proper C++ library support
 
12507
        ld_shlibs_CXX=no
 
12508
        ;;
 
12509
      cxx*)
 
12510
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12511
        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'
 
12512
 
 
12513
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12514
        hardcode_libdir_separator_CXX=:
 
12515
 
 
12516
        # Commands to make compiler produce verbose output that lists
 
12517
        # what "hidden" libraries, object files and flags are used when
 
12518
        # linking a shared library.
 
12519
        #
 
12520
        # There doesn't appear to be a way to prevent this compiler from
 
12521
        # explicitly linking system object files so we need to strip them
 
12522
        # from the output so that they don't get included in the library
 
12523
        # dependencies.
 
12524
        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'
 
12525
        ;;
 
12526
      *)
 
12527
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12528
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12529
          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'
 
12530
 
 
12531
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12532
          hardcode_libdir_separator_CXX=:
 
12533
 
 
12534
          # Commands to make compiler produce verbose output that lists
 
12535
          # what "hidden" libraries, object files and flags are used when
 
12536
          # linking a shared library.
 
12537
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12538
 
 
12539
        else
 
12540
          # FIXME: insert proper C++ library support
 
12541
          ld_shlibs_CXX=no
 
12542
        fi
 
12543
        ;;
 
12544
    esac
 
12545
    ;;
 
12546
  osf4* | osf5*)
 
12547
    case $cc_basename in
 
12548
      KCC*)
 
12549
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12550
 
 
12551
        # KCC will only create a shared library if the output file
 
12552
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12553
        # to its proper name (with version) after linking.
 
12554
        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'
 
12555
 
 
12556
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12557
        hardcode_libdir_separator_CXX=:
 
12558
 
 
12559
        # Archives containing C++ object files must be created using
 
12560
        # the KAI C++ compiler.
 
12561
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12562
        ;;
 
12563
      RCC*)
 
12564
        # Rational C++ 2.4.1
 
12565
        # FIXME: insert proper C++ library support
 
12566
        ld_shlibs_CXX=no
 
12567
        ;;
 
12568
      cxx*)
 
12569
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12570
        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'
 
12571
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12572
          echo "-hidden">> $lib.exp~
 
12573
          $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~
 
12574
          $rm $lib.exp'
 
12575
 
 
12576
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12577
        hardcode_libdir_separator_CXX=:
 
12578
 
 
12579
        # Commands to make compiler produce verbose output that lists
 
12580
        # what "hidden" libraries, object files and flags are used when
 
12581
        # linking a shared library.
 
12582
        #
 
12583
        # There doesn't appear to be a way to prevent this compiler from
 
12584
        # explicitly linking system object files so we need to strip them
 
12585
        # from the output so that they don't get included in the library
 
12586
        # dependencies.
 
12587
        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'
 
12588
        ;;
 
12589
      *)
 
12590
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12591
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12592
         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'
 
12593
 
 
12594
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12595
          hardcode_libdir_separator_CXX=:
 
12596
 
 
12597
          # Commands to make compiler produce verbose output that lists
 
12598
          # what "hidden" libraries, object files and flags are used when
 
12599
          # linking a shared library.
 
12600
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12601
 
 
12602
        else
 
12603
          # FIXME: insert proper C++ library support
 
12604
          ld_shlibs_CXX=no
 
12605
        fi
 
12606
        ;;
 
12607
    esac
 
12608
    ;;
 
12609
  psos*)
 
12610
    # FIXME: insert proper C++ library support
 
12611
    ld_shlibs_CXX=no
 
12612
    ;;
 
12613
  sunos4*)
 
12614
    case $cc_basename in
 
12615
      CC*)
 
12616
        # Sun C++ 4.x
 
12617
        # FIXME: insert proper C++ library support
 
12618
        ld_shlibs_CXX=no
 
12619
        ;;
 
12620
      lcc*)
 
12621
        # Lucid
 
12622
        # FIXME: insert proper C++ library support
 
12623
        ld_shlibs_CXX=no
 
12624
        ;;
 
12625
      *)
 
12626
        # FIXME: insert proper C++ library support
 
12627
        ld_shlibs_CXX=no
 
12628
        ;;
 
12629
    esac
 
12630
    ;;
 
12631
  solaris*)
 
12632
    case $cc_basename in
 
12633
      CC*)
 
12634
        # Sun C++ 4.2, 5.x and Centerline C++
 
12635
        archive_cmds_need_lc_CXX=yes
 
12636
        no_undefined_flag_CXX=' -zdefs'
 
12637
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12638
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12639
        $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'
 
12640
 
 
12641
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12642
        hardcode_shlibpath_var_CXX=no
 
12643
        case $host_os in
 
12644
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12645
          *)
 
12646
            # The compiler driver will combine and reorder linker options,
 
12647
            # but understands `-z linker_flag'.
 
12648
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12649
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12650
            ;;
 
12651
        esac
 
12652
        link_all_deplibs_CXX=yes
 
12653
 
 
12654
        output_verbose_link_cmd='echo'
 
12655
 
 
12656
        # Archives containing C++ object files must be created using
 
12657
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12658
        # necessary to make sure instantiated templates are included
 
12659
        # in the archive.
 
12660
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12661
        ;;
 
12662
      gcx*)
 
12663
        # Green Hills C++ Compiler
 
12664
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12665
 
 
12666
        # The C++ compiler must be used to create the archive.
 
12667
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12668
        ;;
 
12669
      *)
 
12670
        # GNU C++ compiler with Solaris linker
 
12671
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12672
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12673
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12674
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12675
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12676
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12677
 
 
12678
            # Commands to make compiler produce verbose output that lists
 
12679
            # what "hidden" libraries, object files and flags are used when
 
12680
            # linking a shared library.
 
12681
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12682
          else
 
12683
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12684
            # platform.
 
12685
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12686
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12687
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12688
 
 
12689
            # Commands to make compiler produce verbose output that lists
 
12690
            # what "hidden" libraries, object files and flags are used when
 
12691
            # linking a shared library.
 
12692
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12693
          fi
 
12694
 
 
12695
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12696
          case $host_os in
 
12697
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12698
          *)
 
12699
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12700
            ;;
 
12701
          esac
 
12702
        fi
 
12703
        ;;
 
12704
    esac
 
12705
    ;;
 
12706
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12707
    no_undefined_flag_CXX='${wl}-z,text'
 
12708
    archive_cmds_need_lc_CXX=no
 
12709
    hardcode_shlibpath_var_CXX=no
 
12710
    runpath_var='LD_RUN_PATH'
 
12711
 
 
12712
    case $cc_basename in
 
12713
      CC*)
 
12714
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12715
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12716
        ;;
 
12717
      *)
 
12718
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12719
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12720
        ;;
 
12721
    esac
 
12722
    ;;
 
12723
  sysv5* | sco3.2v5* | sco5v6*)
 
12724
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12725
    # link with -lc, and that would cause any symbols used from libc to
 
12726
    # always be unresolved, which means just about no library would
 
12727
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12728
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12729
    # as -z defs.
 
12730
    # For security reasons, it is highly recommended that you always
 
12731
    # use absolute paths for naming shared libraries, and exclude the
 
12732
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12733
    # requires that you compile everything twice, which is a pain.
 
12734
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12735
    # non-empty value in the environment.  Most likely only useful for
 
12736
    # creating official distributions of packages.
 
12737
    # This is a hack until libtool officially supports absolute path
 
12738
    # names for shared libraries.
 
12739
    no_undefined_flag_CXX='${wl}-z,text'
 
12740
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12741
    archive_cmds_need_lc_CXX=no
 
12742
    hardcode_shlibpath_var_CXX=no
 
12743
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12744
    hardcode_libdir_separator_CXX=':'
 
12745
    link_all_deplibs_CXX=yes
 
12746
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12747
    runpath_var='LD_RUN_PATH'
 
12748
 
 
12749
    case $cc_basename in
 
12750
      CC*)
 
12751
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12752
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12753
        ;;
 
12754
      *)
 
12755
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12756
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12757
        ;;
 
12758
    esac
 
12759
    ;;
 
12760
  tandem*)
 
12761
    case $cc_basename in
 
12762
      NCC*)
 
12763
        # NonStop-UX NCC 3.20
 
12764
        # FIXME: insert proper C++ library support
 
12765
        ld_shlibs_CXX=no
 
12766
        ;;
 
12767
      *)
 
12768
        # FIXME: insert proper C++ library support
 
12769
        ld_shlibs_CXX=no
 
12770
        ;;
 
12771
    esac
 
12772
    ;;
 
12773
  vxworks*)
 
12774
    # FIXME: insert proper C++ library support
 
12775
    ld_shlibs_CXX=no
 
12776
    ;;
 
12777
  *)
 
12778
    # FIXME: insert proper C++ library support
 
12779
    ld_shlibs_CXX=no
 
12780
    ;;
 
12781
esac
 
12782
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12783
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12784
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12785
 
 
12786
GCC_CXX="$GXX"
 
12787
LD_CXX="$LD"
 
12788
 
 
12789
 
 
12790
cat > conftest.$ac_ext <<EOF
 
12791
class Foo
 
12792
{
 
12793
public:
 
12794
  Foo (void) { a = 0; }
 
12795
private:
 
12796
  int a;
 
12797
};
 
12798
EOF
 
12799
 
 
12800
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12801
  (eval $ac_compile) 2>&5
 
12802
  ac_status=$?
 
12803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12804
  (exit $ac_status); }; then
 
12805
  # Parse the compiler output and extract the necessary
 
12806
  # objects, libraries and library flags.
 
12807
 
 
12808
  # Sentinel used to keep track of whether or not we are before
 
12809
  # the conftest object file.
 
12810
  pre_test_object_deps_done=no
 
12811
 
 
12812
  # The `*' in the case matches for architectures that use `case' in
 
12813
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12814
  # eval without this substitution.
 
12815
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12816
 
 
12817
  for p in `eval $output_verbose_link_cmd`; do
 
12818
    case $p in
 
12819
 
 
12820
    -L* | -R* | -l*)
 
12821
       # Some compilers place space between "-{L,R}" and the path.
 
12822
       # Remove the space.
 
12823
       if test $p = "-L" \
 
12824
          || test $p = "-R"; then
 
12825
         prev=$p
 
12826
         continue
 
12827
       else
 
12828
         prev=
 
12829
       fi
 
12830
 
 
12831
       if test "$pre_test_object_deps_done" = no; then
 
12832
         case $p in
 
12833
         -L* | -R*)
 
12834
           # Internal compiler library paths should come after those
 
12835
           # provided the user.  The postdeps already come after the
 
12836
           # user supplied libs so there is no need to process them.
 
12837
           if test -z "$compiler_lib_search_path_CXX"; then
 
12838
             compiler_lib_search_path_CXX="${prev}${p}"
 
12839
           else
 
12840
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12841
           fi
 
12842
           ;;
 
12843
         # The "-l" case would never come before the object being
 
12844
         # linked, so don't bother handling this case.
 
12845
         esac
 
12846
       else
 
12847
         if test -z "$postdeps_CXX"; then
 
12848
           postdeps_CXX="${prev}${p}"
 
12849
         else
 
12850
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12851
         fi
 
12852
       fi
 
12853
       ;;
 
12854
 
 
12855
    *.$objext)
 
12856
       # This assumes that the test object file only shows up
 
12857
       # once in the compiler output.
 
12858
       if test "$p" = "conftest.$objext"; then
 
12859
         pre_test_object_deps_done=yes
 
12860
         continue
 
12861
       fi
 
12862
 
 
12863
       if test "$pre_test_object_deps_done" = no; then
 
12864
         if test -z "$predep_objects_CXX"; then
 
12865
           predep_objects_CXX="$p"
 
12866
         else
 
12867
           predep_objects_CXX="$predep_objects_CXX $p"
 
12868
         fi
 
12869
       else
 
12870
         if test -z "$postdep_objects_CXX"; then
 
12871
           postdep_objects_CXX="$p"
 
12872
         else
 
12873
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12874
         fi
 
12875
       fi
 
12876
       ;;
 
12877
 
 
12878
    *) ;; # Ignore the rest.
 
12879
 
 
12880
    esac
 
12881
  done
 
12882
 
 
12883
  # Clean up.
 
12884
  rm -f a.out a.exe
 
12885
else
 
12886
  echo "libtool.m4: error: problem compiling CXX test program"
 
12887
fi
 
12888
 
 
12889
$rm -f confest.$objext
 
12890
 
 
12891
# PORTME: override above test on systems where it is broken
 
12892
case $host_os in
 
12893
interix[3-9]*)
 
12894
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12895
  # hack all around it, let's just trust "g++" to DTRT.
 
12896
  predep_objects_CXX=
 
12897
  postdep_objects_CXX=
 
12898
  postdeps_CXX=
 
12899
  ;;
 
12900
 
 
12901
linux*)
 
12902
  case `$CC -V 2>&1 | sed 5q` in
 
12903
  *Sun\ C*)
 
12904
    # Sun C++ 5.9
 
12905
    #
 
12906
    # The more standards-conforming stlport4 library is
 
12907
    # incompatible with the Cstd library. Avoid specifying
 
12908
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12909
    # -library=stlport4 depends on it.
 
12910
    case " $CXX $CXXFLAGS " in
 
12911
    *" -library=stlport4 "*)
 
12912
      solaris_use_stlport4=yes
 
12913
      ;;
 
12914
    esac
 
12915
    if test "$solaris_use_stlport4" != yes; then
 
12916
      postdeps_CXX='-library=Cstd -library=Crun'
 
12917
    fi
 
12918
    ;;
 
12919
  esac
 
12920
  ;;
 
12921
 
 
12922
solaris*)
 
12923
  case $cc_basename in
 
12924
  CC*)
 
12925
    # The more standards-conforming stlport4 library is
 
12926
    # incompatible with the Cstd library. Avoid specifying
 
12927
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12928
    # -library=stlport4 depends on it.
 
12929
    case " $CXX $CXXFLAGS " in
 
12930
    *" -library=stlport4 "*)
 
12931
      solaris_use_stlport4=yes
 
12932
      ;;
 
12933
    esac
 
12934
 
 
12935
    # Adding this requires a known-good setup of shared libraries for
 
12936
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12937
    # archive will be linked into the output, leading to subtle bugs.
 
12938
    if test "$solaris_use_stlport4" != yes; then
 
12939
      postdeps_CXX='-library=Cstd -library=Crun'
 
12940
    fi
 
12941
    ;;
 
12942
  esac
 
12943
  ;;
 
12944
esac
 
12945
 
 
12946
 
 
12947
case " $postdeps_CXX " in
 
12948
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12949
esac
 
12950
 
 
12951
lt_prog_compiler_wl_CXX=
 
12952
lt_prog_compiler_pic_CXX=
 
12953
lt_prog_compiler_static_CXX=
 
12954
 
 
12955
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12956
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12957
 
 
12958
  # C++ specific cases for pic, static, wl, etc.
 
12959
  if test "$GXX" = yes; then
 
12960
    lt_prog_compiler_wl_CXX='-Wl,'
 
12961
    lt_prog_compiler_static_CXX='-static'
 
12962
 
 
12963
    case $host_os in
 
12964
    aix*)
 
12965
      # All AIX code is PIC.
 
12966
      if test "$host_cpu" = ia64; then
 
12967
        # AIX 5 now supports IA64 processor
 
12968
        lt_prog_compiler_static_CXX='-Bstatic'
 
12969
      fi
 
12970
      ;;
 
12971
    amigaos*)
 
12972
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12973
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12974
      # like `-m68040'.
 
12975
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12976
      ;;
 
12977
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12978
      # PIC is the default for these OSes.
 
12979
      ;;
 
12980
    mingw* | cygwin* | os2* | pw32*)
 
12981
      # This hack is so that the source file can tell whether it is being
 
12982
      # built for inclusion in a dll (and should export symbols for example).
 
12983
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12984
      # (--disable-auto-import) libraries
 
12985
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12986
      ;;
 
12987
    darwin* | rhapsody*)
 
12988
      # PIC is the default on this platform
 
12989
      # Common symbols not allowed in MH_DYLIB files
 
12990
      lt_prog_compiler_pic_CXX='-fno-common'
 
12991
      ;;
 
12992
    *djgpp*)
 
12993
      # DJGPP does not support shared libraries at all
 
12994
      lt_prog_compiler_pic_CXX=
 
12995
      ;;
 
12996
    interix[3-9]*)
 
12997
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12998
      # Instead, we relocate shared libraries at runtime.
 
12999
      ;;
 
13000
    sysv4*MP*)
 
13001
      if test -d /usr/nec; then
 
13002
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13003
      fi
 
13004
      ;;
 
13005
    hpux*)
 
13006
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13007
      # not for PA HP-UX.
 
13008
      case $host_cpu in
 
13009
      hppa*64*|ia64*)
 
13010
        ;;
 
13011
      *)
 
13012
        lt_prog_compiler_pic_CXX='-fPIC'
 
13013
        ;;
 
13014
      esac
 
13015
      ;;
 
13016
    *)
 
13017
      lt_prog_compiler_pic_CXX='-fPIC'
 
13018
      ;;
 
13019
    esac
 
13020
  else
 
13021
    case $host_os in
 
13022
      aix4* | aix5*)
 
13023
        # All AIX code is PIC.
 
13024
        if test "$host_cpu" = ia64; then
 
13025
          # AIX 5 now supports IA64 processor
 
13026
          lt_prog_compiler_static_CXX='-Bstatic'
 
13027
        else
 
13028
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13029
        fi
 
13030
        ;;
 
13031
      chorus*)
 
13032
        case $cc_basename in
 
13033
        cxch68*)
 
13034
          # Green Hills C++ Compiler
 
13035
          # _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"
 
13036
          ;;
 
13037
        esac
 
13038
        ;;
 
13039
       darwin*)
 
13040
         # PIC is the default on this platform
 
13041
         # Common symbols not allowed in MH_DYLIB files
 
13042
         case $cc_basename in
 
13043
           xlc*)
 
13044
           lt_prog_compiler_pic_CXX='-qnocommon'
 
13045
           lt_prog_compiler_wl_CXX='-Wl,'
 
13046
           ;;
 
13047
         esac
 
13048
       ;;
 
13049
      dgux*)
 
13050
        case $cc_basename in
 
13051
          ec++*)
 
13052
            lt_prog_compiler_pic_CXX='-KPIC'
 
13053
            ;;
 
13054
          ghcx*)
 
13055
            # Green Hills C++ Compiler
 
13056
            lt_prog_compiler_pic_CXX='-pic'
 
13057
            ;;
 
13058
          *)
 
13059
            ;;
 
13060
        esac
 
13061
        ;;
 
13062
      freebsd* | dragonfly*)
 
13063
        # FreeBSD uses GNU C++
 
13064
        ;;
 
13065
      hpux9* | hpux10* | hpux11*)
 
13066
        case $cc_basename in
 
13067
          CC*)
 
13068
            lt_prog_compiler_wl_CXX='-Wl,'
 
13069
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13070
            if test "$host_cpu" != ia64; then
 
13071
              lt_prog_compiler_pic_CXX='+Z'
 
13072
            fi
 
13073
            ;;
 
13074
          aCC*)
 
13075
            lt_prog_compiler_wl_CXX='-Wl,'
 
13076
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13077
            case $host_cpu in
 
13078
            hppa*64*|ia64*)
 
13079
              # +Z the default
 
13080
              ;;
 
13081
            *)
 
13082
              lt_prog_compiler_pic_CXX='+Z'
 
13083
              ;;
 
13084
            esac
 
13085
            ;;
 
13086
          *)
 
13087
            ;;
 
13088
        esac
 
13089
        ;;
 
13090
      interix*)
 
13091
        # This is c89, which is MS Visual C++ (no shared libs)
 
13092
        # Anyone wants to do a port?
 
13093
        ;;
 
13094
      irix5* | irix6* | nonstopux*)
 
13095
        case $cc_basename in
 
13096
          CC*)
 
13097
            lt_prog_compiler_wl_CXX='-Wl,'
 
13098
            lt_prog_compiler_static_CXX='-non_shared'
 
13099
            # CC pic flag -KPIC is the default.
 
13100
            ;;
 
13101
          *)
 
13102
            ;;
 
13103
        esac
 
13104
        ;;
 
13105
      linux* | k*bsd*-gnu)
 
13106
        case $cc_basename in
 
13107
          KCC*)
 
13108
            # KAI C++ Compiler
 
13109
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13110
            lt_prog_compiler_pic_CXX='-fPIC'
 
13111
            ;;
 
13112
          icpc* | ecpc*)
 
13113
            # Intel C++
 
13114
            lt_prog_compiler_wl_CXX='-Wl,'
 
13115
            lt_prog_compiler_pic_CXX='-KPIC'
 
13116
            lt_prog_compiler_static_CXX='-static'
 
13117
            ;;
 
13118
          pgCC*)
 
13119
            # Portland Group C++ compiler.
 
13120
            lt_prog_compiler_wl_CXX='-Wl,'
 
13121
            lt_prog_compiler_pic_CXX='-fpic'
 
13122
            lt_prog_compiler_static_CXX='-Bstatic'
 
13123
            ;;
 
13124
          cxx*)
 
13125
            # Compaq C++
 
13126
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13127
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13128
            lt_prog_compiler_pic_CXX=
 
13129
            lt_prog_compiler_static_CXX='-non_shared'
 
13130
            ;;
 
13131
          *)
 
13132
            case `$CC -V 2>&1 | sed 5q` in
 
13133
            *Sun\ C*)
 
13134
              # Sun C++ 5.9
 
13135
              lt_prog_compiler_pic_CXX='-KPIC'
 
13136
              lt_prog_compiler_static_CXX='-Bstatic'
 
13137
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13138
              ;;
 
13139
            esac
 
13140
            ;;
 
13141
        esac
 
13142
        ;;
 
13143
      lynxos*)
 
13144
        ;;
 
13145
      m88k*)
 
13146
        ;;
 
13147
      mvs*)
 
13148
        case $cc_basename in
 
13149
          cxx*)
 
13150
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13151
            ;;
 
13152
          *)
 
13153
            ;;
 
13154
        esac
 
13155
        ;;
 
13156
      netbsd*)
 
13157
        ;;
 
13158
      osf3* | osf4* | osf5*)
 
13159
        case $cc_basename in
 
13160
          KCC*)
 
13161
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13162
            ;;
 
13163
          RCC*)
 
13164
            # Rational C++ 2.4.1
 
13165
            lt_prog_compiler_pic_CXX='-pic'
 
13166
            ;;
 
13167
          cxx*)
 
13168
            # Digital/Compaq C++
 
13169
            lt_prog_compiler_wl_CXX='-Wl,'
 
13170
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13171
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13172
            lt_prog_compiler_pic_CXX=
 
13173
            lt_prog_compiler_static_CXX='-non_shared'
 
13174
            ;;
 
13175
          *)
 
13176
            ;;
 
13177
        esac
 
13178
        ;;
 
13179
      psos*)
 
13180
        ;;
 
13181
      solaris*)
 
13182
        case $cc_basename in
 
13183
          CC*)
 
13184
            # Sun C++ 4.2, 5.x and Centerline C++
 
13185
            lt_prog_compiler_pic_CXX='-KPIC'
 
13186
            lt_prog_compiler_static_CXX='-Bstatic'
 
13187
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13188
            ;;
 
13189
          gcx*)
 
13190
            # Green Hills C++ Compiler
 
13191
            lt_prog_compiler_pic_CXX='-PIC'
 
13192
            ;;
 
13193
          *)
 
13194
            ;;
 
13195
        esac
 
13196
        ;;
 
13197
      sunos4*)
 
13198
        case $cc_basename in
 
13199
          CC*)
 
13200
            # Sun C++ 4.x
 
13201
            lt_prog_compiler_pic_CXX='-pic'
 
13202
            lt_prog_compiler_static_CXX='-Bstatic'
 
13203
            ;;
 
13204
          lcc*)
 
13205
            # Lucid
 
13206
            lt_prog_compiler_pic_CXX='-pic'
 
13207
            ;;
 
13208
          *)
 
13209
            ;;
 
13210
        esac
 
13211
        ;;
 
13212
      tandem*)
 
13213
        case $cc_basename in
 
13214
          NCC*)
 
13215
            # NonStop-UX NCC 3.20
 
13216
            lt_prog_compiler_pic_CXX='-KPIC'
 
13217
            ;;
 
13218
          *)
 
13219
            ;;
 
13220
        esac
 
13221
        ;;
 
13222
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13223
        case $cc_basename in
 
13224
          CC*)
 
13225
            lt_prog_compiler_wl_CXX='-Wl,'
 
13226
            lt_prog_compiler_pic_CXX='-KPIC'
 
13227
            lt_prog_compiler_static_CXX='-Bstatic'
 
13228
            ;;
 
13229
        esac
 
13230
        ;;
 
13231
      vxworks*)
 
13232
        ;;
 
13233
      *)
 
13234
        lt_prog_compiler_can_build_shared_CXX=no
 
13235
        ;;
 
13236
    esac
 
13237
  fi
 
13238
 
 
13239
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13240
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
13241
 
 
13242
#
 
13243
# Check to make sure the PIC flag actually works.
 
13244
#
 
13245
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13246
 
 
13247
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13248
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
13249
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13251
else
 
13252
  lt_prog_compiler_pic_works_CXX=no
 
13253
  ac_outfile=conftest.$ac_objext
 
13254
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13255
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13256
   # Insert the option either (1) after the last *FLAGS variable, or
 
13257
   # (2) before a word containing "conftest.", or (3) at the end.
 
13258
   # Note that $ac_compile itself does not contain backslashes and begins
 
13259
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13260
   # The option is referenced via a variable to avoid confusing sed.
 
13261
   lt_compile=`echo "$ac_compile" | $SED \
 
13262
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13263
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13264
   -e 's:$: $lt_compiler_flag:'`
 
13265
   (eval echo "\"\$as_me:13265: $lt_compile\"" >&5)
 
13266
   (eval "$lt_compile" 2>conftest.err)
 
13267
   ac_status=$?
 
13268
   cat conftest.err >&5
 
13269
   echo "$as_me:13269: \$? = $ac_status" >&5
 
13270
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13271
     # The compiler can only warn and ignore the option if not recognized
 
13272
     # So say no if there are warnings other than the usual output.
 
13273
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13274
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13275
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13276
       lt_prog_compiler_pic_works_CXX=yes
 
13277
     fi
 
13278
   fi
 
13279
   $rm conftest*
 
13280
 
 
13281
fi
 
13282
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
13283
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
13284
 
 
13285
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13286
    case $lt_prog_compiler_pic_CXX in
 
13287
     "" | " "*) ;;
 
13288
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13289
     esac
 
13290
else
 
13291
    lt_prog_compiler_pic_CXX=
 
13292
     lt_prog_compiler_can_build_shared_CXX=no
 
13293
fi
 
13294
 
 
13295
fi
 
13296
case $host_os in
 
13297
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13298
  *djgpp*)
 
13299
    lt_prog_compiler_pic_CXX=
 
13300
    ;;
 
13301
  *)
 
13302
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13303
    ;;
 
13304
esac
 
13305
 
 
13306
#
 
13307
# Check to make sure the static flag actually works.
 
13308
#
 
13309
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13310
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13311
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
13312
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
13313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13314
else
 
13315
  lt_prog_compiler_static_works_CXX=no
 
13316
   save_LDFLAGS="$LDFLAGS"
 
13317
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13318
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13319
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13320
     # The linker can only warn and ignore the option if not recognized
 
13321
     # So say no if there are warnings
 
13322
     if test -s conftest.err; then
 
13323
       # Append any errors to the config.log.
 
13324
       cat conftest.err 1>&5
 
13325
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13326
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13327
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13328
         lt_prog_compiler_static_works_CXX=yes
 
13329
       fi
 
13330
     else
 
13331
       lt_prog_compiler_static_works_CXX=yes
 
13332
     fi
 
13333
   fi
 
13334
   $rm conftest*
 
13335
   LDFLAGS="$save_LDFLAGS"
 
13336
 
 
13337
fi
 
13338
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
13339
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
13340
 
 
13341
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
13342
    :
 
13343
else
 
13344
    lt_prog_compiler_static_CXX=
 
13345
fi
 
13346
 
 
13347
 
 
13348
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13349
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13350
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13352
else
 
13353
  lt_cv_prog_compiler_c_o_CXX=no
 
13354
   $rm -r conftest 2>/dev/null
 
13355
   mkdir conftest
 
13356
   cd conftest
 
13357
   mkdir out
 
13358
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13359
 
 
13360
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13361
   # Insert the option either (1) after the last *FLAGS variable, or
 
13362
   # (2) before a word containing "conftest.", or (3) at the end.
 
13363
   # Note that $ac_compile itself does not contain backslashes and begins
 
13364
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13365
   lt_compile=`echo "$ac_compile" | $SED \
 
13366
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13367
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13368
   -e 's:$: $lt_compiler_flag:'`
 
13369
   (eval echo "\"\$as_me:13369: $lt_compile\"" >&5)
 
13370
   (eval "$lt_compile" 2>out/conftest.err)
 
13371
   ac_status=$?
 
13372
   cat out/conftest.err >&5
 
13373
   echo "$as_me:13373: \$? = $ac_status" >&5
 
13374
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13375
   then
 
13376
     # The compiler can only warn and ignore the option if not recognized
 
13377
     # So say no if there are warnings
 
13378
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13379
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13380
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13381
       lt_cv_prog_compiler_c_o_CXX=yes
 
13382
     fi
 
13383
   fi
 
13384
   chmod u+w . 2>&5
 
13385
   $rm conftest*
 
13386
   # SGI C++ compiler will create directory out/ii_files/ for
 
13387
   # template instantiation
 
13388
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13389
   $rm out/* && rmdir out
 
13390
   cd ..
 
13391
   rmdir conftest
 
13392
   $rm conftest*
 
13393
 
 
13394
fi
 
13395
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13396
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13397
 
 
13398
 
 
13399
hard_links="nottested"
 
13400
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13401
  # do not overwrite the value of need_locks provided by the user
 
13402
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13403
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13404
  hard_links=yes
 
13405
  $rm conftest*
 
13406
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13407
  touch conftest.a
 
13408
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13409
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13410
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
13411
echo "${ECHO_T}$hard_links" >&6; }
 
13412
  if test "$hard_links" = no; then
 
13413
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13414
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13415
    need_locks=warn
 
13416
  fi
 
13417
else
 
13418
  need_locks=no
 
13419
fi
 
13420
 
 
13421
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13422
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13423
 
 
13424
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13425
  case $host_os in
 
13426
  aix4* | aix5*)
 
13427
    # If we're using GNU nm, then we don't want the "-C" option.
 
13428
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13429
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13430
      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'
 
13431
    else
 
13432
      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'
 
13433
    fi
 
13434
    ;;
 
13435
  pw32*)
 
13436
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13437
  ;;
 
13438
  cygwin* | mingw*)
 
13439
    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'
 
13440
  ;;
 
13441
  *)
 
13442
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13443
  ;;
 
13444
  esac
 
13445
 
 
13446
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13447
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
13448
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13449
 
 
13450
#
 
13451
# Do we need to explicitly link libc?
 
13452
#
 
13453
case "x$archive_cmds_need_lc_CXX" in
 
13454
x|xyes)
 
13455
  # Assume -lc should be added
 
13456
  archive_cmds_need_lc_CXX=yes
 
13457
 
 
13458
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13459
    case $archive_cmds_CXX in
 
13460
    *'~'*)
 
13461
      # FIXME: we may have to deal with multi-command sequences.
 
13462
      ;;
 
13463
    '$CC '*)
 
13464
      # Test whether the compiler implicitly links with -lc since on some
 
13465
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13466
      # to ld, don't add -lc before -lgcc.
 
13467
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13468
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
13469
      $rm conftest*
 
13470
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13471
 
 
13472
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13473
  (eval $ac_compile) 2>&5
 
13474
  ac_status=$?
 
13475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13476
  (exit $ac_status); } 2>conftest.err; then
 
13477
        soname=conftest
 
13478
        lib=conftest
 
13479
        libobjs=conftest.$ac_objext
 
13480
        deplibs=
 
13481
        wl=$lt_prog_compiler_wl_CXX
 
13482
        pic_flag=$lt_prog_compiler_pic_CXX
 
13483
        compiler_flags=-v
 
13484
        linker_flags=-v
 
13485
        verstring=
 
13486
        output_objdir=.
 
13487
        libname=conftest
 
13488
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13489
        allow_undefined_flag_CXX=
 
13490
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13491
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13492
  ac_status=$?
 
13493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13494
  (exit $ac_status); }
 
13495
        then
 
13496
          archive_cmds_need_lc_CXX=no
 
13497
        else
 
13498
          archive_cmds_need_lc_CXX=yes
 
13499
        fi
 
13500
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13501
      else
 
13502
        cat conftest.err 1>&5
 
13503
      fi
 
13504
      $rm conftest*
 
13505
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13506
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
13507
      ;;
 
13508
    esac
 
13509
  fi
 
13510
  ;;
 
13511
esac
 
13512
 
 
13513
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13514
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
13515
library_names_spec=
 
13516
libname_spec='lib$name'
 
13517
soname_spec=
 
13518
shrext_cmds=".so"
 
13519
postinstall_cmds=
 
13520
postuninstall_cmds=
 
13521
finish_cmds=
 
13522
finish_eval=
 
13523
shlibpath_var=
 
13524
shlibpath_overrides_runpath=unknown
 
13525
version_type=none
 
13526
dynamic_linker="$host_os ld.so"
 
13527
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13528
 
 
13529
need_lib_prefix=unknown
 
13530
hardcode_into_libs=no
 
13531
 
 
13532
# when you set need_version to no, make sure it does not cause -set_version
 
13533
# flags to be left without arguments
 
13534
need_version=unknown
 
13535
 
 
13536
case $host_os in
 
13537
aix3*)
 
13538
  version_type=linux
 
13539
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13540
  shlibpath_var=LIBPATH
 
13541
 
 
13542
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13543
  soname_spec='${libname}${release}${shared_ext}$major'
 
13544
  ;;
 
13545
 
 
13546
aix4* | aix5*)
 
13547
  version_type=linux
 
13548
  need_lib_prefix=no
 
13549
  need_version=no
 
13550
  hardcode_into_libs=yes
 
13551
  if test "$host_cpu" = ia64; then
 
13552
    # AIX 5 supports IA64
 
13553
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13554
    shlibpath_var=LD_LIBRARY_PATH
 
13555
  else
 
13556
    # With GCC up to 2.95.x, collect2 would create an import file
 
13557
    # for dependence libraries.  The import file would start with
 
13558
    # the line `#! .'.  This would cause the generated library to
 
13559
    # depend on `.', always an invalid library.  This was fixed in
 
13560
    # development snapshots of GCC prior to 3.0.
 
13561
    case $host_os in
 
13562
      aix4 | aix4.[01] | aix4.[01].*)
 
13563
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13564
           echo ' yes '
 
13565
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13566
        :
 
13567
      else
 
13568
        can_build_shared=no
 
13569
      fi
 
13570
      ;;
 
13571
    esac
 
13572
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13573
    # soname into executable. Probably we can add versioning support to
 
13574
    # collect2, so additional links can be useful in future.
 
13575
    if test "$aix_use_runtimelinking" = yes; then
 
13576
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13577
      # instead of lib<name>.a to let people know that these are not
 
13578
      # typical AIX shared libraries.
 
13579
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13580
    else
 
13581
      # We preserve .a as extension for shared libraries through AIX4.2
 
13582
      # and later when we are not doing run time linking.
 
13583
      library_names_spec='${libname}${release}.a $libname.a'
 
13584
      soname_spec='${libname}${release}${shared_ext}$major'
 
13585
    fi
 
13586
    shlibpath_var=LIBPATH
 
13587
  fi
 
13588
  ;;
 
13589
 
 
13590
amigaos*)
 
13591
  library_names_spec='$libname.ixlibrary $libname.a'
 
13592
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13593
  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'
 
13594
  ;;
 
13595
 
 
13596
beos*)
 
13597
  library_names_spec='${libname}${shared_ext}'
 
13598
  dynamic_linker="$host_os ld.so"
 
13599
  shlibpath_var=LIBRARY_PATH
 
13600
  ;;
 
13601
 
 
13602
bsdi[45]*)
 
13603
  version_type=linux
 
13604
  need_version=no
 
13605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13606
  soname_spec='${libname}${release}${shared_ext}$major'
 
13607
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13608
  shlibpath_var=LD_LIBRARY_PATH
 
13609
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13610
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13611
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13612
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13613
  # libtool to hard-code these into programs
 
13614
  ;;
 
13615
 
 
13616
cygwin* | mingw* | pw32*)
 
13617
  version_type=windows
 
13618
  shrext_cmds=".dll"
 
13619
  need_version=no
 
13620
  need_lib_prefix=no
 
13621
 
 
13622
  case $GCC,$host_os in
 
13623
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13624
    library_names_spec='$libname.dll.a'
 
13625
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13626
    postinstall_cmds='base_file=`basename \${file}`~
 
13627
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13628
      dldir=$destdir/`dirname \$dlpath`~
 
13629
      test -d \$dldir || mkdir -p \$dldir~
 
13630
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13631
      chmod a+x \$dldir/$dlname'
 
13632
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13633
      dlpath=$dir/\$dldll~
 
13634
       $rm \$dlpath'
 
13635
    shlibpath_overrides_runpath=yes
 
13636
 
 
13637
    case $host_os in
 
13638
    cygwin*)
 
13639
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13640
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13641
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13642
      ;;
 
13643
    mingw*)
 
13644
      # MinGW DLLs use traditional 'lib' prefix
 
13645
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13646
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13647
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13648
        # It is most probably a Windows format PATH printed by
 
13649
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13650
        # path with ; separators, and with drive letters. We can handle the
 
13651
        # drive letters (cygwin fileutils understands them), so leave them,
 
13652
        # especially as we might pass files found there to a mingw objdump,
 
13653
        # which wouldn't understand a cygwinified path. Ahh.
 
13654
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13655
      else
 
13656
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13657
      fi
 
13658
      ;;
 
13659
    pw32*)
 
13660
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13661
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13662
      ;;
 
13663
    esac
 
13664
    ;;
 
13665
 
 
13666
  *)
 
13667
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13668
    ;;
 
13669
  esac
 
13670
  dynamic_linker='Win32 ld.exe'
 
13671
  # FIXME: first we should search . and the directory the executable is in
 
13672
  shlibpath_var=PATH
 
13673
  ;;
 
13674
 
 
13675
darwin* | rhapsody*)
 
13676
  dynamic_linker="$host_os dyld"
 
13677
  version_type=darwin
 
13678
  need_lib_prefix=no
 
13679
  need_version=no
 
13680
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13681
  soname_spec='${libname}${release}${major}$shared_ext'
 
13682
  shlibpath_overrides_runpath=yes
 
13683
  shlibpath_var=DYLD_LIBRARY_PATH
 
13684
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13685
 
 
13686
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13687
  ;;
 
13688
 
 
13689
dgux*)
 
13690
  version_type=linux
 
13691
  need_lib_prefix=no
 
13692
  need_version=no
 
13693
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13694
  soname_spec='${libname}${release}${shared_ext}$major'
 
13695
  shlibpath_var=LD_LIBRARY_PATH
 
13696
  ;;
 
13697
 
 
13698
freebsd1*)
 
13699
  dynamic_linker=no
 
13700
  ;;
 
13701
 
 
13702
freebsd* | dragonfly*)
 
13703
  # DragonFly does not have aout.  When/if they implement a new
 
13704
  # versioning mechanism, adjust this.
 
13705
  if test -x /usr/bin/objformat; then
 
13706
    objformat=`/usr/bin/objformat`
 
13707
  else
 
13708
    case $host_os in
 
13709
    freebsd[123]*) objformat=aout ;;
 
13710
    *) objformat=elf ;;
 
13711
    esac
 
13712
  fi
 
13713
  version_type=freebsd-$objformat
 
13714
  case $version_type in
 
13715
    freebsd-elf*)
 
13716
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13717
      need_version=no
 
13718
      need_lib_prefix=no
 
13719
      ;;
 
13720
    freebsd-*)
 
13721
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13722
      need_version=yes
 
13723
      ;;
 
13724
  esac
 
13725
  shlibpath_var=LD_LIBRARY_PATH
 
13726
  case $host_os in
 
13727
  freebsd2*)
 
13728
    shlibpath_overrides_runpath=yes
 
13729
    ;;
 
13730
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13731
    shlibpath_overrides_runpath=yes
 
13732
    hardcode_into_libs=yes
 
13733
    ;;
 
13734
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13735
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13736
    shlibpath_overrides_runpath=no
 
13737
    hardcode_into_libs=yes
 
13738
    ;;
 
13739
  *) # from 4.6 on, and DragonFly
 
13740
    shlibpath_overrides_runpath=yes
 
13741
    hardcode_into_libs=yes
 
13742
    ;;
 
13743
  esac
 
13744
  ;;
 
13745
 
 
13746
gnu*)
 
13747
  version_type=linux
 
13748
  need_lib_prefix=no
 
13749
  need_version=no
 
13750
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13751
  soname_spec='${libname}${release}${shared_ext}$major'
 
13752
  shlibpath_var=LD_LIBRARY_PATH
 
13753
  hardcode_into_libs=yes
 
13754
  ;;
 
13755
 
 
13756
hpux9* | hpux10* | hpux11*)
 
13757
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13758
  # link against other versions.
 
13759
  version_type=sunos
 
13760
  need_lib_prefix=no
 
13761
  need_version=no
 
13762
  case $host_cpu in
 
13763
  ia64*)
 
13764
    shrext_cmds='.so'
 
13765
    hardcode_into_libs=yes
 
13766
    dynamic_linker="$host_os dld.so"
 
13767
    shlibpath_var=LD_LIBRARY_PATH
 
13768
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13769
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13770
    soname_spec='${libname}${release}${shared_ext}$major'
 
13771
    if test "X$HPUX_IA64_MODE" = X32; then
 
13772
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13773
    else
 
13774
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13775
    fi
 
13776
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13777
    ;;
 
13778
   hppa*64*)
 
13779
     shrext_cmds='.sl'
 
13780
     hardcode_into_libs=yes
 
13781
     dynamic_linker="$host_os dld.sl"
 
13782
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13783
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13784
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13785
     soname_spec='${libname}${release}${shared_ext}$major'
 
13786
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13787
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13788
     ;;
 
13789
   *)
 
13790
    shrext_cmds='.sl'
 
13791
    dynamic_linker="$host_os dld.sl"
 
13792
    shlibpath_var=SHLIB_PATH
 
13793
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13794
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13795
    soname_spec='${libname}${release}${shared_ext}$major'
 
13796
    ;;
 
13797
  esac
 
13798
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13799
  postinstall_cmds='chmod 555 $lib'
 
13800
  ;;
 
13801
 
 
13802
interix[3-9]*)
 
13803
  version_type=linux
 
13804
  need_lib_prefix=no
 
13805
  need_version=no
 
13806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13807
  soname_spec='${libname}${release}${shared_ext}$major'
 
13808
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13809
  shlibpath_var=LD_LIBRARY_PATH
 
13810
  shlibpath_overrides_runpath=no
 
13811
  hardcode_into_libs=yes
 
13812
  ;;
 
13813
 
 
13814
irix5* | irix6* | nonstopux*)
 
13815
  case $host_os in
 
13816
    nonstopux*) version_type=nonstopux ;;
 
13817
    *)
 
13818
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13819
                version_type=linux
 
13820
        else
 
13821
                version_type=irix
 
13822
        fi ;;
 
13823
  esac
 
13824
  need_lib_prefix=no
 
13825
  need_version=no
 
13826
  soname_spec='${libname}${release}${shared_ext}$major'
 
13827
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13828
  case $host_os in
 
13829
  irix5* | nonstopux*)
 
13830
    libsuff= shlibsuff=
 
13831
    ;;
 
13832
  *)
 
13833
    case $LD in # libtool.m4 will add one of these switches to LD
 
13834
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13835
      libsuff= shlibsuff= libmagic=32-bit;;
 
13836
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13837
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13838
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13839
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13840
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13841
    esac
 
13842
    ;;
 
13843
  esac
 
13844
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13845
  shlibpath_overrides_runpath=no
 
13846
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13847
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13848
  hardcode_into_libs=yes
 
13849
  ;;
 
13850
 
 
13851
# No shared lib support for Linux oldld, aout, or coff.
 
13852
linux*oldld* | linux*aout* | linux*coff*)
 
13853
  dynamic_linker=no
 
13854
  ;;
 
13855
 
 
13856
# This must be Linux ELF.
 
13857
linux* | k*bsd*-gnu)
 
13858
  version_type=linux
 
13859
  need_lib_prefix=no
 
13860
  need_version=no
 
13861
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13862
  soname_spec='${libname}${release}${shared_ext}$major'
 
13863
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13864
  shlibpath_var=LD_LIBRARY_PATH
 
13865
  shlibpath_overrides_runpath=no
 
13866
  # This implies no fast_install, which is unacceptable.
 
13867
  # Some rework will be needed to allow for fast_install
 
13868
  # before this can be enabled.
 
13869
  hardcode_into_libs=yes
 
13870
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13871
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13872
 
 
13873
  # Append ld.so.conf contents to the search path
 
13874
  if test -f /etc/ld.so.conf; then
 
13875
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13876
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
13877
  fi
 
13878
 
 
13879
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13880
  # powerpc, because MkLinux only supported shared libraries with the
 
13881
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13882
  # most powerpc-linux boxes support dynamic linking these days and
 
13883
  # people can always --disable-shared, the test was removed, and we
 
13884
  # assume the GNU/Linux dynamic linker is in use.
 
13885
  dynamic_linker='GNU/Linux ld.so'
 
13886
  ;;
 
13887
 
 
13888
netbsd*)
 
13889
  version_type=sunos
 
13890
  need_lib_prefix=no
 
13891
  need_version=no
 
13892
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13893
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13894
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13895
    dynamic_linker='NetBSD (a.out) ld.so'
 
13896
  else
 
13897
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13898
    soname_spec='${libname}${release}${shared_ext}$major'
 
13899
    dynamic_linker='NetBSD ld.elf_so'
 
13900
  fi
 
13901
  shlibpath_var=LD_LIBRARY_PATH
 
13902
  shlibpath_overrides_runpath=yes
 
13903
  hardcode_into_libs=yes
 
13904
  ;;
 
13905
 
 
13906
newsos6)
 
13907
  version_type=linux
 
13908
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13909
  shlibpath_var=LD_LIBRARY_PATH
 
13910
  shlibpath_overrides_runpath=yes
 
13911
  ;;
 
13912
 
 
13913
nto-qnx*)
 
13914
  version_type=linux
 
13915
  need_lib_prefix=no
 
13916
  need_version=no
 
13917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13918
  soname_spec='${libname}${release}${shared_ext}$major'
 
13919
  shlibpath_var=LD_LIBRARY_PATH
 
13920
  shlibpath_overrides_runpath=yes
 
13921
  ;;
 
13922
 
 
13923
openbsd*)
 
13924
  version_type=sunos
 
13925
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13926
  need_lib_prefix=no
 
13927
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13928
  case $host_os in
 
13929
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13930
    *)                         need_version=no  ;;
 
13931
  esac
 
13932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13933
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13934
  shlibpath_var=LD_LIBRARY_PATH
 
13935
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13936
    case $host_os in
 
13937
      openbsd2.[89] | openbsd2.[89].*)
 
13938
        shlibpath_overrides_runpath=no
 
13939
        ;;
 
13940
      *)
 
13941
        shlibpath_overrides_runpath=yes
 
13942
        ;;
 
13943
      esac
 
13944
  else
 
13945
    shlibpath_overrides_runpath=yes
 
13946
  fi
 
13947
  ;;
 
13948
 
 
13949
os2*)
 
13950
  libname_spec='$name'
 
13951
  shrext_cmds=".dll"
 
13952
  need_lib_prefix=no
 
13953
  library_names_spec='$libname${shared_ext} $libname.a'
 
13954
  dynamic_linker='OS/2 ld.exe'
 
13955
  shlibpath_var=LIBPATH
 
13956
  ;;
 
13957
 
 
13958
osf3* | osf4* | osf5*)
 
13959
  version_type=osf
 
13960
  need_lib_prefix=no
 
13961
  need_version=no
 
13962
  soname_spec='${libname}${release}${shared_ext}$major'
 
13963
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13964
  shlibpath_var=LD_LIBRARY_PATH
 
13965
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13966
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13967
  ;;
 
13968
 
 
13969
rdos*)
 
13970
  dynamic_linker=no
 
13971
  ;;
 
13972
 
 
13973
solaris*)
 
13974
  version_type=linux
 
13975
  need_lib_prefix=no
 
13976
  need_version=no
 
13977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13978
  soname_spec='${libname}${release}${shared_ext}$major'
 
13979
  shlibpath_var=LD_LIBRARY_PATH
 
13980
  shlibpath_overrides_runpath=yes
 
13981
  hardcode_into_libs=yes
 
13982
  # ldd complains unless libraries are executable
 
13983
  postinstall_cmds='chmod +x $lib'
 
13984
  ;;
 
13985
 
 
13986
sunos4*)
 
13987
  version_type=sunos
 
13988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13989
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13990
  shlibpath_var=LD_LIBRARY_PATH
 
13991
  shlibpath_overrides_runpath=yes
 
13992
  if test "$with_gnu_ld" = yes; then
 
13993
    need_lib_prefix=no
 
13994
  fi
 
13995
  need_version=yes
 
13996
  ;;
 
13997
 
 
13998
sysv4 | sysv4.3*)
 
13999
  version_type=linux
 
14000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14001
  soname_spec='${libname}${release}${shared_ext}$major'
 
14002
  shlibpath_var=LD_LIBRARY_PATH
 
14003
  case $host_vendor in
 
14004
    sni)
 
14005
      shlibpath_overrides_runpath=no
 
14006
      need_lib_prefix=no
 
14007
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14008
      runpath_var=LD_RUN_PATH
 
14009
      ;;
 
14010
    siemens)
 
14011
      need_lib_prefix=no
 
14012
      ;;
 
14013
    motorola)
 
14014
      need_lib_prefix=no
 
14015
      need_version=no
 
14016
      shlibpath_overrides_runpath=no
 
14017
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14018
      ;;
 
14019
  esac
 
14020
  ;;
 
14021
 
 
14022
sysv4*MP*)
 
14023
  if test -d /usr/nec ;then
 
14024
    version_type=linux
 
14025
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14026
    soname_spec='$libname${shared_ext}.$major'
 
14027
    shlibpath_var=LD_LIBRARY_PATH
 
14028
  fi
 
14029
  ;;
 
14030
 
 
14031
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14032
  version_type=freebsd-elf
 
14033
  need_lib_prefix=no
 
14034
  need_version=no
 
14035
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14036
  soname_spec='${libname}${release}${shared_ext}$major'
 
14037
  shlibpath_var=LD_LIBRARY_PATH
 
14038
  hardcode_into_libs=yes
 
14039
  if test "$with_gnu_ld" = yes; then
 
14040
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14041
    shlibpath_overrides_runpath=no
 
14042
  else
 
14043
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14044
    shlibpath_overrides_runpath=yes
 
14045
    case $host_os in
 
14046
      sco3.2v5*)
 
14047
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14048
        ;;
 
14049
    esac
 
14050
  fi
 
14051
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14052
  ;;
 
14053
 
 
14054
uts4*)
 
14055
  version_type=linux
 
14056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14057
  soname_spec='${libname}${release}${shared_ext}$major'
 
14058
  shlibpath_var=LD_LIBRARY_PATH
 
14059
  ;;
 
14060
 
 
14061
*)
 
14062
  dynamic_linker=no
 
14063
  ;;
 
14064
esac
 
14065
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14066
echo "${ECHO_T}$dynamic_linker" >&6; }
 
14067
test "$dynamic_linker" = no && can_build_shared=no
 
14068
 
 
14069
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14070
if test "$GCC" = yes; then
 
14071
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14072
fi
 
14073
 
 
14074
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14075
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
14076
hardcode_action_CXX=
 
14077
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14078
   test -n "$runpath_var_CXX" || \
 
14079
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14080
 
 
14081
  # We can hardcode non-existant directories.
 
14082
  if test "$hardcode_direct_CXX" != no &&
 
14083
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14084
     # have to relink, otherwise we might link with an installed library
 
14085
     # when we should be linking with a yet-to-be-installed one
 
14086
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14087
     test "$hardcode_minus_L_CXX" != no; then
 
14088
    # Linking always hardcodes the temporary library directory.
 
14089
    hardcode_action_CXX=relink
 
14090
  else
 
14091
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14092
    hardcode_action_CXX=immediate
 
14093
  fi
 
14094
else
 
14095
  # We cannot hardcode anything, or else we can only hardcode existing
 
14096
  # directories.
 
14097
  hardcode_action_CXX=unsupported
 
14098
fi
 
14099
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14100
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
14101
 
 
14102
if test "$hardcode_action_CXX" = relink; then
 
14103
  # Fast installation is not supported
 
14104
  enable_fast_install=no
 
14105
elif test "$shlibpath_overrides_runpath" = yes ||
 
14106
     test "$enable_shared" = no; then
 
14107
  # Fast installation is not necessary
 
14108
  enable_fast_install=needless
 
14109
fi
 
14110
 
 
14111
 
 
14112
# The else clause should only fire when bootstrapping the
 
14113
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14114
# with your package, and you will get complaints that there are
 
14115
# no rules to generate ltmain.sh.
 
14116
if test -f "$ltmain"; then
 
14117
  # See if we are running on zsh, and set the options which allow our commands through
 
14118
  # without removal of \ escapes.
 
14119
  if test -n "${ZSH_VERSION+set}" ; then
 
14120
    setopt NO_GLOB_SUBST
 
14121
  fi
 
14122
  # Now quote all the things that may contain metacharacters while being
 
14123
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14124
  # variables and quote the copies for generation of the libtool script.
 
14125
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
14126
    SED SHELL STRIP \
 
14127
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14128
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14129
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14130
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14131
    lt_cv_sys_global_symbol_to_c_name_address \
 
14132
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14133
    old_postinstall_cmds old_postuninstall_cmds \
 
14134
    compiler_CXX \
 
14135
    CC_CXX \
 
14136
    LD_CXX \
 
14137
    lt_prog_compiler_wl_CXX \
 
14138
    lt_prog_compiler_pic_CXX \
 
14139
    lt_prog_compiler_static_CXX \
 
14140
    lt_prog_compiler_no_builtin_flag_CXX \
 
14141
    export_dynamic_flag_spec_CXX \
 
14142
    thread_safe_flag_spec_CXX \
 
14143
    whole_archive_flag_spec_CXX \
 
14144
    enable_shared_with_static_runtimes_CXX \
 
14145
    old_archive_cmds_CXX \
 
14146
    old_archive_from_new_cmds_CXX \
 
14147
    predep_objects_CXX \
 
14148
    postdep_objects_CXX \
 
14149
    predeps_CXX \
 
14150
    postdeps_CXX \
 
14151
    compiler_lib_search_path_CXX \
 
14152
    archive_cmds_CXX \
 
14153
    archive_expsym_cmds_CXX \
 
14154
    postinstall_cmds_CXX \
 
14155
    postuninstall_cmds_CXX \
 
14156
    old_archive_from_expsyms_cmds_CXX \
 
14157
    allow_undefined_flag_CXX \
 
14158
    no_undefined_flag_CXX \
 
14159
    export_symbols_cmds_CXX \
 
14160
    hardcode_libdir_flag_spec_CXX \
 
14161
    hardcode_libdir_flag_spec_ld_CXX \
 
14162
    hardcode_libdir_separator_CXX \
 
14163
    hardcode_automatic_CXX \
 
14164
    module_cmds_CXX \
 
14165
    module_expsym_cmds_CXX \
 
14166
    lt_cv_prog_compiler_c_o_CXX \
 
14167
    fix_srcfile_path_CXX \
 
14168
    exclude_expsyms_CXX \
 
14169
    include_expsyms_CXX; do
 
14170
 
 
14171
    case $var in
 
14172
    old_archive_cmds_CXX | \
 
14173
    old_archive_from_new_cmds_CXX | \
 
14174
    archive_cmds_CXX | \
 
14175
    archive_expsym_cmds_CXX | \
 
14176
    module_cmds_CXX | \
 
14177
    module_expsym_cmds_CXX | \
 
14178
    old_archive_from_expsyms_cmds_CXX | \
 
14179
    export_symbols_cmds_CXX | \
 
14180
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14181
    postinstall_cmds | postuninstall_cmds | \
 
14182
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14183
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14184
      # Double-quote double-evaled strings.
 
14185
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14186
      ;;
 
14187
    *)
 
14188
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14189
      ;;
 
14190
    esac
 
14191
  done
 
14192
 
 
14193
  case $lt_echo in
 
14194
  *'\$0 --fallback-echo"')
 
14195
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14196
    ;;
 
14197
  esac
 
14198
 
 
14199
cfgfile="$ofile"
 
14200
 
 
14201
  cat <<__EOF__ >> "$cfgfile"
 
14202
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14203
 
 
14204
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14205
 
 
14206
# Shell to use when invoking shell scripts.
 
14207
SHELL=$lt_SHELL
 
14208
 
 
14209
# Whether or not to build shared libraries.
 
14210
build_libtool_libs=$enable_shared
 
14211
 
 
14212
# Whether or not to build static libraries.
 
14213
build_old_libs=$enable_static
 
14214
 
 
14215
# Whether or not to add -lc for building shared libraries.
 
14216
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14217
 
 
14218
# Whether or not to disallow shared libs when runtime libs are static
 
14219
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14220
 
 
14221
# Whether or not to optimize for fast installation.
 
14222
fast_install=$enable_fast_install
 
14223
 
 
14224
# The host system.
 
14225
host_alias=$host_alias
 
14226
host=$host
 
14227
host_os=$host_os
 
14228
 
 
14229
# The build system.
 
14230
build_alias=$build_alias
 
14231
build=$build
 
14232
build_os=$build_os
 
14233
 
 
14234
# An echo program that does not interpret backslashes.
 
14235
echo=$lt_echo
 
14236
 
 
14237
# The archiver.
 
14238
AR=$lt_AR
 
14239
AR_FLAGS=$lt_AR_FLAGS
 
14240
 
 
14241
# A C compiler.
 
14242
LTCC=$lt_LTCC
 
14243
 
 
14244
# LTCC compiler flags.
 
14245
LTCFLAGS=$lt_LTCFLAGS
 
14246
 
 
14247
# A language-specific compiler.
 
14248
CC=$lt_compiler_CXX
 
14249
 
 
14250
# Is the compiler the GNU C compiler?
 
14251
with_gcc=$GCC_CXX
 
14252
 
 
14253
# An ERE matcher.
 
14254
EGREP=$lt_EGREP
 
14255
 
 
14256
# The linker used to build libraries.
 
14257
LD=$lt_LD_CXX
 
14258
 
 
14259
# Whether we need hard or soft links.
 
14260
LN_S=$lt_LN_S
 
14261
 
 
14262
# A BSD-compatible nm program.
 
14263
NM=$lt_NM
 
14264
 
 
14265
# A symbol stripping program
 
14266
STRIP=$lt_STRIP
 
14267
 
 
14268
# Used to examine libraries when file_magic_cmd begins "file"
 
14269
MAGIC_CMD=$MAGIC_CMD
 
14270
 
 
14271
# Used on cygwin: DLL creation program.
 
14272
DLLTOOL="$DLLTOOL"
 
14273
 
 
14274
# Used on cygwin: object dumper.
 
14275
OBJDUMP="$OBJDUMP"
 
14276
 
 
14277
# Used on cygwin: assembler.
 
14278
AS="$AS"
 
14279
 
 
14280
# The name of the directory that contains temporary libtool files.
 
14281
objdir=$objdir
 
14282
 
 
14283
# How to create reloadable object files.
 
14284
reload_flag=$lt_reload_flag
 
14285
reload_cmds=$lt_reload_cmds
 
14286
 
 
14287
# How to pass a linker flag through the compiler.
 
14288
wl=$lt_lt_prog_compiler_wl_CXX
 
14289
 
 
14290
# Object file suffix (normally "o").
 
14291
objext="$ac_objext"
 
14292
 
 
14293
# Old archive suffix (normally "a").
 
14294
libext="$libext"
 
14295
 
 
14296
# Shared library suffix (normally ".so").
 
14297
shrext_cmds='$shrext_cmds'
 
14298
 
 
14299
# Executable file suffix (normally "").
 
14300
exeext="$exeext"
 
14301
 
 
14302
# Additional compiler flags for building library objects.
 
14303
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14304
pic_mode=$pic_mode
 
14305
 
 
14306
# What is the maximum length of a command?
 
14307
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14308
 
 
14309
# Does compiler simultaneously support -c and -o options?
 
14310
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14311
 
 
14312
# Must we lock files when doing compilation?
 
14313
need_locks=$lt_need_locks
 
14314
 
 
14315
# Do we need the lib prefix for modules?
 
14316
need_lib_prefix=$need_lib_prefix
 
14317
 
 
14318
# Do we need a version for libraries?
 
14319
need_version=$need_version
 
14320
 
 
14321
# Whether dlopen is supported.
 
14322
dlopen_support=$enable_dlopen
 
14323
 
 
14324
# Whether dlopen of programs is supported.
 
14325
dlopen_self=$enable_dlopen_self
 
14326
 
 
14327
# Whether dlopen of statically linked programs is supported.
 
14328
dlopen_self_static=$enable_dlopen_self_static
 
14329
 
 
14330
# Compiler flag to prevent dynamic linking.
 
14331
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14332
 
 
14333
# Compiler flag to turn off builtin functions.
 
14334
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14335
 
 
14336
# Compiler flag to allow reflexive dlopens.
 
14337
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14338
 
 
14339
# Compiler flag to generate shared objects directly from archives.
 
14340
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14341
 
 
14342
# Compiler flag to generate thread-safe objects.
 
14343
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14344
 
 
14345
# Library versioning type.
 
14346
version_type=$version_type
 
14347
 
 
14348
# Format of library name prefix.
 
14349
libname_spec=$lt_libname_spec
 
14350
 
 
14351
# List of archive names.  First name is the real one, the rest are links.
 
14352
# The last name is the one that the linker finds with -lNAME.
 
14353
library_names_spec=$lt_library_names_spec
 
14354
 
 
14355
# The coded name of the library, if different from the real name.
 
14356
soname_spec=$lt_soname_spec
 
14357
 
 
14358
# Commands used to build and install an old-style archive.
 
14359
RANLIB=$lt_RANLIB
 
14360
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14361
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14362
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14363
 
 
14364
# Create an old-style archive from a shared archive.
 
14365
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14366
 
 
14367
# Create a temporary old-style archive to link instead of a shared archive.
 
14368
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14369
 
 
14370
# Commands used to build and install a shared archive.
 
14371
archive_cmds=$lt_archive_cmds_CXX
 
14372
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14373
postinstall_cmds=$lt_postinstall_cmds
 
14374
postuninstall_cmds=$lt_postuninstall_cmds
 
14375
 
 
14376
# Commands used to build a loadable module (assumed same as above if empty)
 
14377
module_cmds=$lt_module_cmds_CXX
 
14378
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14379
 
 
14380
# Commands to strip libraries.
 
14381
old_striplib=$lt_old_striplib
 
14382
striplib=$lt_striplib
 
14383
 
 
14384
# Dependencies to place before the objects being linked to create a
 
14385
# shared library.
 
14386
predep_objects=$lt_predep_objects_CXX
 
14387
 
 
14388
# Dependencies to place after the objects being linked to create a
 
14389
# shared library.
 
14390
postdep_objects=$lt_postdep_objects_CXX
 
14391
 
 
14392
# Dependencies to place before the objects being linked to create a
 
14393
# shared library.
 
14394
predeps=$lt_predeps_CXX
 
14395
 
 
14396
# Dependencies to place after the objects being linked to create a
 
14397
# shared library.
 
14398
postdeps=$lt_postdeps_CXX
 
14399
 
 
14400
# The library search path used internally by the compiler when linking
 
14401
# a shared library.
 
14402
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14403
 
 
14404
# Method to check whether dependent libraries are shared objects.
 
14405
deplibs_check_method=$lt_deplibs_check_method
 
14406
 
 
14407
# Command to use when deplibs_check_method == file_magic.
 
14408
file_magic_cmd=$lt_file_magic_cmd
 
14409
 
 
14410
# Flag that allows shared libraries with undefined symbols to be built.
 
14411
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14412
 
 
14413
# Flag that forces no undefined symbols.
 
14414
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14415
 
 
14416
# Commands used to finish a libtool library installation in a directory.
 
14417
finish_cmds=$lt_finish_cmds
 
14418
 
 
14419
# Same as above, but a single script fragment to be evaled but not shown.
 
14420
finish_eval=$lt_finish_eval
 
14421
 
 
14422
# Take the output of nm and produce a listing of raw symbols and C names.
 
14423
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14424
 
 
14425
# Transform the output of nm in a proper C declaration
 
14426
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14427
 
 
14428
# Transform the output of nm in a C name address pair
 
14429
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14430
 
 
14431
# This is the shared library runtime path variable.
 
14432
runpath_var=$runpath_var
 
14433
 
 
14434
# This is the shared library path variable.
 
14435
shlibpath_var=$shlibpath_var
 
14436
 
 
14437
# Is shlibpath searched before the hard-coded library search path?
 
14438
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14439
 
 
14440
# How to hardcode a shared library path into an executable.
 
14441
hardcode_action=$hardcode_action_CXX
 
14442
 
 
14443
# Whether we should hardcode library paths into libraries.
 
14444
hardcode_into_libs=$hardcode_into_libs
 
14445
 
 
14446
# Flag to hardcode \$libdir into a binary during linking.
 
14447
# This must work even if \$libdir does not exist.
 
14448
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14449
 
 
14450
# If ld is used when linking, flag to hardcode \$libdir into
 
14451
# a binary during linking. This must work even if \$libdir does
 
14452
# not exist.
 
14453
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14454
 
 
14455
# Whether we need a single -rpath flag with a separated argument.
 
14456
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14457
 
 
14458
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14459
# resulting binary.
 
14460
hardcode_direct=$hardcode_direct_CXX
 
14461
 
 
14462
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14463
# resulting binary.
 
14464
hardcode_minus_L=$hardcode_minus_L_CXX
 
14465
 
 
14466
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14467
# the resulting binary.
 
14468
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14469
 
 
14470
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14471
# and all subsequent libraries and executables linked against it.
 
14472
hardcode_automatic=$hardcode_automatic_CXX
 
14473
 
 
14474
# Variables whose values should be saved in libtool wrapper scripts and
 
14475
# restored at relink time.
 
14476
variables_saved_for_relink="$variables_saved_for_relink"
 
14477
 
 
14478
# Whether libtool must link a program against all its dependency libraries.
 
14479
link_all_deplibs=$link_all_deplibs_CXX
 
14480
 
 
14481
# Compile-time system search path for libraries
 
14482
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14483
 
 
14484
# Run-time system search path for libraries
 
14485
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14486
 
 
14487
# Fix the shell variable \$srcfile for the compiler.
 
14488
fix_srcfile_path=$lt_fix_srcfile_path
 
14489
 
 
14490
# Set to yes if exported symbols are required.
 
14491
always_export_symbols=$always_export_symbols_CXX
 
14492
 
 
14493
# The commands to list exported symbols.
 
14494
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14495
 
 
14496
# The commands to extract the exported symbol list from a shared archive.
 
14497
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14498
 
 
14499
# Symbols that should not be listed in the preloaded symbols.
 
14500
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14501
 
 
14502
# Symbols that must always be exported.
 
14503
include_expsyms=$lt_include_expsyms_CXX
 
14504
 
 
14505
# ### END LIBTOOL TAG CONFIG: $tagname
 
14506
 
 
14507
__EOF__
 
14508
 
 
14509
 
 
14510
else
 
14511
  # If there is no Makefile yet, we rely on a make rule to execute
 
14512
  # `config.status --recheck' to rerun these tests and create the
 
14513
  # libtool script then.
 
14514
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14515
  if test -f "$ltmain_in"; then
 
14516
    test -f Makefile && make "$ltmain"
 
14517
  fi
 
14518
fi
 
14519
 
 
14520
 
 
14521
ac_ext=c
 
14522
ac_cpp='$CPP $CPPFLAGS'
 
14523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14526
 
 
14527
CC=$lt_save_CC
 
14528
LDCXX=$LD
 
14529
LD=$lt_save_LD
 
14530
GCC=$lt_save_GCC
 
14531
with_gnu_ldcxx=$with_gnu_ld
 
14532
with_gnu_ld=$lt_save_with_gnu_ld
 
14533
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14534
lt_cv_path_LD=$lt_save_path_LD
 
14535
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14536
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14537
 
 
14538
        else
 
14539
          tagname=""
 
14540
        fi
 
14541
        ;;
 
14542
 
 
14543
      F77)
 
14544
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14545
 
 
14546
ac_ext=f
 
14547
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14548
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14549
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14550
 
 
14551
 
 
14552
archive_cmds_need_lc_F77=no
 
14553
allow_undefined_flag_F77=
 
14554
always_export_symbols_F77=no
 
14555
archive_expsym_cmds_F77=
 
14556
export_dynamic_flag_spec_F77=
 
14557
hardcode_direct_F77=no
 
14558
hardcode_libdir_flag_spec_F77=
 
14559
hardcode_libdir_flag_spec_ld_F77=
 
14560
hardcode_libdir_separator_F77=
 
14561
hardcode_minus_L_F77=no
 
14562
hardcode_automatic_F77=no
 
14563
module_cmds_F77=
 
14564
module_expsym_cmds_F77=
 
14565
link_all_deplibs_F77=unknown
 
14566
old_archive_cmds_F77=$old_archive_cmds
 
14567
no_undefined_flag_F77=
 
14568
whole_archive_flag_spec_F77=
 
14569
enable_shared_with_static_runtimes_F77=no
 
14570
 
 
14571
# Source file extension for f77 test sources.
 
14572
ac_ext=f
 
14573
 
 
14574
# Object file extension for compiled f77 test sources.
 
14575
objext=o
 
14576
objext_F77=$objext
 
14577
 
 
14578
# Code to be used in simple compile tests
 
14579
lt_simple_compile_test_code="\
 
14580
      subroutine t
 
14581
      return
 
14582
      end
 
14583
"
 
14584
 
 
14585
# Code to be used in simple link tests
 
14586
lt_simple_link_test_code="\
 
14587
      program t
 
14588
      end
 
14589
"
 
14590
 
 
14591
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14592
 
 
14593
# If no C compiler was specified, use CC.
 
14594
LTCC=${LTCC-"$CC"}
 
14595
 
 
14596
# If no C compiler flags were specified, use CFLAGS.
 
14597
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14598
 
 
14599
# Allow CC to be a program name with arguments.
 
14600
compiler=$CC
 
14601
 
 
14602
 
 
14603
# save warnings/boilerplate of simple test code
 
14604
ac_outfile=conftest.$ac_objext
 
14605
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14606
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14607
_lt_compiler_boilerplate=`cat conftest.err`
 
14608
$rm conftest*
 
14609
 
 
14610
ac_outfile=conftest.$ac_objext
 
14611
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14612
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14613
_lt_linker_boilerplate=`cat conftest.err`
 
14614
$rm conftest*
 
14615
 
 
14616
 
 
14617
# Allow CC to be a program name with arguments.
 
14618
lt_save_CC="$CC"
 
14619
CC=${F77-"f77"}
 
14620
compiler=$CC
 
14621
compiler_F77=$CC
 
14622
for cc_temp in $compiler""; do
 
14623
  case $cc_temp in
 
14624
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14625
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14626
    \-*) ;;
 
14627
    *) break;;
 
14628
  esac
 
14629
done
 
14630
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14631
 
 
14632
 
 
14633
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14634
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14635
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14636
echo "${ECHO_T}$can_build_shared" >&6; }
 
14637
 
 
14638
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14639
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
14640
test "$can_build_shared" = "no" && enable_shared=no
 
14641
 
 
14642
# On AIX, shared libraries and static libraries use the same namespace, and
 
14643
# are all built from PIC.
 
14644
case $host_os in
 
14645
aix3*)
 
14646
  test "$enable_shared" = yes && enable_static=no
 
14647
  if test -n "$RANLIB"; then
 
14648
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14649
    postinstall_cmds='$RANLIB $lib'
 
14650
  fi
 
14651
  ;;
 
14652
aix4* | aix5*)
 
14653
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14654
    test "$enable_shared" = yes && enable_static=no
 
14655
  fi
 
14656
  ;;
 
14657
esac
 
14658
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14659
echo "${ECHO_T}$enable_shared" >&6; }
 
14660
 
 
14661
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14662
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14663
# Make sure either enable_shared or enable_static is yes.
 
14664
test "$enable_shared" = yes || enable_static=yes
 
14665
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14666
echo "${ECHO_T}$enable_static" >&6; }
 
14667
 
 
14668
GCC_F77="$G77"
 
14669
LD_F77="$LD"
 
14670
 
 
14671
lt_prog_compiler_wl_F77=
 
14672
lt_prog_compiler_pic_F77=
 
14673
lt_prog_compiler_static_F77=
 
14674
 
 
14675
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14676
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14677
 
 
14678
  if test "$GCC" = yes; then
 
14679
    lt_prog_compiler_wl_F77='-Wl,'
 
14680
    lt_prog_compiler_static_F77='-static'
 
14681
 
 
14682
    case $host_os in
 
14683
      aix*)
 
14684
      # All AIX code is PIC.
 
14685
      if test "$host_cpu" = ia64; then
 
14686
        # AIX 5 now supports IA64 processor
 
14687
        lt_prog_compiler_static_F77='-Bstatic'
 
14688
      fi
 
14689
      ;;
 
14690
 
 
14691
    amigaos*)
 
14692
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14693
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14694
      # like `-m68040'.
 
14695
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14696
      ;;
 
14697
 
 
14698
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14699
      # PIC is the default for these OSes.
 
14700
      ;;
 
14701
 
 
14702
    mingw* | cygwin* | pw32* | os2*)
 
14703
      # This hack is so that the source file can tell whether it is being
 
14704
      # built for inclusion in a dll (and should export symbols for example).
 
14705
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14706
      # (--disable-auto-import) libraries
 
14707
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14708
      ;;
 
14709
 
 
14710
    darwin* | rhapsody*)
 
14711
      # PIC is the default on this platform
 
14712
      # Common symbols not allowed in MH_DYLIB files
 
14713
      lt_prog_compiler_pic_F77='-fno-common'
 
14714
      ;;
 
14715
 
 
14716
    interix[3-9]*)
 
14717
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14718
      # Instead, we relocate shared libraries at runtime.
 
14719
      ;;
 
14720
 
 
14721
    msdosdjgpp*)
 
14722
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14723
      # on systems that don't support them.
 
14724
      lt_prog_compiler_can_build_shared_F77=no
 
14725
      enable_shared=no
 
14726
      ;;
 
14727
 
 
14728
    sysv4*MP*)
 
14729
      if test -d /usr/nec; then
 
14730
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14731
      fi
 
14732
      ;;
 
14733
 
 
14734
    hpux*)
 
14735
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14736
      # not for PA HP-UX.
 
14737
      case $host_cpu in
 
14738
      hppa*64*|ia64*)
 
14739
        # +Z the default
 
14740
        ;;
 
14741
      *)
 
14742
        lt_prog_compiler_pic_F77='-fPIC'
 
14743
        ;;
 
14744
      esac
 
14745
      ;;
 
14746
 
 
14747
    *)
 
14748
      lt_prog_compiler_pic_F77='-fPIC'
 
14749
      ;;
 
14750
    esac
 
14751
  else
 
14752
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14753
    case $host_os in
 
14754
    aix*)
 
14755
      lt_prog_compiler_wl_F77='-Wl,'
 
14756
      if test "$host_cpu" = ia64; then
 
14757
        # AIX 5 now supports IA64 processor
 
14758
        lt_prog_compiler_static_F77='-Bstatic'
 
14759
      else
 
14760
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14761
      fi
 
14762
      ;;
 
14763
      darwin*)
 
14764
        # PIC is the default on this platform
 
14765
        # Common symbols not allowed in MH_DYLIB files
 
14766
       case $cc_basename in
 
14767
         xlc*)
 
14768
         lt_prog_compiler_pic_F77='-qnocommon'
 
14769
         lt_prog_compiler_wl_F77='-Wl,'
 
14770
         ;;
 
14771
       esac
 
14772
       ;;
 
14773
 
 
14774
    mingw* | cygwin* | pw32* | os2*)
 
14775
      # This hack is so that the source file can tell whether it is being
 
14776
      # built for inclusion in a dll (and should export symbols for example).
 
14777
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14778
      ;;
 
14779
 
 
14780
    hpux9* | hpux10* | hpux11*)
 
14781
      lt_prog_compiler_wl_F77='-Wl,'
 
14782
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14783
      # not for PA HP-UX.
 
14784
      case $host_cpu in
 
14785
      hppa*64*|ia64*)
 
14786
        # +Z the default
 
14787
        ;;
 
14788
      *)
 
14789
        lt_prog_compiler_pic_F77='+Z'
 
14790
        ;;
 
14791
      esac
 
14792
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14793
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14794
      ;;
 
14795
 
 
14796
    irix5* | irix6* | nonstopux*)
 
14797
      lt_prog_compiler_wl_F77='-Wl,'
 
14798
      # PIC (with -KPIC) is the default.
 
14799
      lt_prog_compiler_static_F77='-non_shared'
 
14800
      ;;
 
14801
 
 
14802
    newsos6)
 
14803
      lt_prog_compiler_pic_F77='-KPIC'
 
14804
      lt_prog_compiler_static_F77='-Bstatic'
 
14805
      ;;
 
14806
 
 
14807
    linux* | k*bsd*-gnu)
 
14808
      case $cc_basename in
 
14809
      icc* | ecc*)
 
14810
        lt_prog_compiler_wl_F77='-Wl,'
 
14811
        lt_prog_compiler_pic_F77='-KPIC'
 
14812
        lt_prog_compiler_static_F77='-static'
 
14813
        ;;
 
14814
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14815
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14816
        # which looks to be a dead project)
 
14817
        lt_prog_compiler_wl_F77='-Wl,'
 
14818
        lt_prog_compiler_pic_F77='-fpic'
 
14819
        lt_prog_compiler_static_F77='-Bstatic'
 
14820
        ;;
 
14821
      ccc*)
 
14822
        lt_prog_compiler_wl_F77='-Wl,'
 
14823
        # All Alpha code is PIC.
 
14824
        lt_prog_compiler_static_F77='-non_shared'
 
14825
        ;;
 
14826
      *)
 
14827
        case `$CC -V 2>&1 | sed 5q` in
 
14828
        *Sun\ C*)
 
14829
          # Sun C 5.9
 
14830
          lt_prog_compiler_pic_F77='-KPIC'
 
14831
          lt_prog_compiler_static_F77='-Bstatic'
 
14832
          lt_prog_compiler_wl_F77='-Wl,'
 
14833
          ;;
 
14834
        *Sun\ F*)
 
14835
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14836
          lt_prog_compiler_pic_F77='-KPIC'
 
14837
          lt_prog_compiler_static_F77='-Bstatic'
 
14838
          lt_prog_compiler_wl_F77=''
 
14839
          ;;
 
14840
        esac
 
14841
        ;;
 
14842
      esac
 
14843
      ;;
 
14844
 
 
14845
    osf3* | osf4* | osf5*)
 
14846
      lt_prog_compiler_wl_F77='-Wl,'
 
14847
      # All OSF/1 code is PIC.
 
14848
      lt_prog_compiler_static_F77='-non_shared'
 
14849
      ;;
 
14850
 
 
14851
    rdos*)
 
14852
      lt_prog_compiler_static_F77='-non_shared'
 
14853
      ;;
 
14854
 
 
14855
    solaris*)
 
14856
      lt_prog_compiler_pic_F77='-KPIC'
 
14857
      lt_prog_compiler_static_F77='-Bstatic'
 
14858
      case $cc_basename in
 
14859
      f77* | f90* | f95*)
 
14860
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14861
      *)
 
14862
        lt_prog_compiler_wl_F77='-Wl,';;
 
14863
      esac
 
14864
      ;;
 
14865
 
 
14866
    sunos4*)
 
14867
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14868
      lt_prog_compiler_pic_F77='-PIC'
 
14869
      lt_prog_compiler_static_F77='-Bstatic'
 
14870
      ;;
 
14871
 
 
14872
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14873
      lt_prog_compiler_wl_F77='-Wl,'
 
14874
      lt_prog_compiler_pic_F77='-KPIC'
 
14875
      lt_prog_compiler_static_F77='-Bstatic'
 
14876
      ;;
 
14877
 
 
14878
    sysv4*MP*)
 
14879
      if test -d /usr/nec ;then
 
14880
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14881
        lt_prog_compiler_static_F77='-Bstatic'
 
14882
      fi
 
14883
      ;;
 
14884
 
 
14885
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14886
      lt_prog_compiler_wl_F77='-Wl,'
 
14887
      lt_prog_compiler_pic_F77='-KPIC'
 
14888
      lt_prog_compiler_static_F77='-Bstatic'
 
14889
      ;;
 
14890
 
 
14891
    unicos*)
 
14892
      lt_prog_compiler_wl_F77='-Wl,'
 
14893
      lt_prog_compiler_can_build_shared_F77=no
 
14894
      ;;
 
14895
 
 
14896
    uts4*)
 
14897
      lt_prog_compiler_pic_F77='-pic'
 
14898
      lt_prog_compiler_static_F77='-Bstatic'
 
14899
      ;;
 
14900
 
 
14901
    *)
 
14902
      lt_prog_compiler_can_build_shared_F77=no
 
14903
      ;;
 
14904
    esac
 
14905
  fi
 
14906
 
 
14907
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14908
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14909
 
 
14910
#
 
14911
# Check to make sure the PIC flag actually works.
 
14912
#
 
14913
if test -n "$lt_prog_compiler_pic_F77"; then
 
14914
 
 
14915
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14916
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14917
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14919
else
 
14920
  lt_prog_compiler_pic_works_F77=no
 
14921
  ac_outfile=conftest.$ac_objext
 
14922
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14923
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14924
   # Insert the option either (1) after the last *FLAGS variable, or
 
14925
   # (2) before a word containing "conftest.", or (3) at the end.
 
14926
   # Note that $ac_compile itself does not contain backslashes and begins
 
14927
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14928
   # The option is referenced via a variable to avoid confusing sed.
 
14929
   lt_compile=`echo "$ac_compile" | $SED \
 
14930
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14931
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14932
   -e 's:$: $lt_compiler_flag:'`
 
14933
   (eval echo "\"\$as_me:14933: $lt_compile\"" >&5)
 
14934
   (eval "$lt_compile" 2>conftest.err)
 
14935
   ac_status=$?
 
14936
   cat conftest.err >&5
 
14937
   echo "$as_me:14937: \$? = $ac_status" >&5
 
14938
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14939
     # The compiler can only warn and ignore the option if not recognized
 
14940
     # So say no if there are warnings other than the usual output.
 
14941
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14942
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14943
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14944
       lt_prog_compiler_pic_works_F77=yes
 
14945
     fi
 
14946
   fi
 
14947
   $rm conftest*
 
14948
 
 
14949
fi
 
14950
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14951
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14952
 
 
14953
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14954
    case $lt_prog_compiler_pic_F77 in
 
14955
     "" | " "*) ;;
 
14956
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14957
     esac
 
14958
else
 
14959
    lt_prog_compiler_pic_F77=
 
14960
     lt_prog_compiler_can_build_shared_F77=no
 
14961
fi
 
14962
 
 
14963
fi
 
14964
case $host_os in
 
14965
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14966
  *djgpp*)
 
14967
    lt_prog_compiler_pic_F77=
 
14968
    ;;
 
14969
  *)
 
14970
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14971
    ;;
 
14972
esac
 
14973
 
 
14974
#
 
14975
# Check to make sure the static flag actually works.
 
14976
#
 
14977
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14978
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14979
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14980
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14982
else
 
14983
  lt_prog_compiler_static_works_F77=no
 
14984
   save_LDFLAGS="$LDFLAGS"
 
14985
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14986
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14987
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14988
     # The linker can only warn and ignore the option if not recognized
 
14989
     # So say no if there are warnings
 
14990
     if test -s conftest.err; then
 
14991
       # Append any errors to the config.log.
 
14992
       cat conftest.err 1>&5
 
14993
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14994
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14995
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14996
         lt_prog_compiler_static_works_F77=yes
 
14997
       fi
 
14998
     else
 
14999
       lt_prog_compiler_static_works_F77=yes
 
15000
     fi
 
15001
   fi
 
15002
   $rm conftest*
 
15003
   LDFLAGS="$save_LDFLAGS"
 
15004
 
 
15005
fi
 
15006
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
15007
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
15008
 
 
15009
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
15010
    :
 
15011
else
 
15012
    lt_prog_compiler_static_F77=
 
15013
fi
 
15014
 
 
15015
 
 
15016
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15017
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
15018
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15020
else
 
15021
  lt_cv_prog_compiler_c_o_F77=no
 
15022
   $rm -r conftest 2>/dev/null
 
15023
   mkdir conftest
 
15024
   cd conftest
 
15025
   mkdir out
 
15026
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15027
 
 
15028
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15029
   # Insert the option either (1) after the last *FLAGS variable, or
 
15030
   # (2) before a word containing "conftest.", or (3) at the end.
 
15031
   # Note that $ac_compile itself does not contain backslashes and begins
 
15032
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15033
   lt_compile=`echo "$ac_compile" | $SED \
 
15034
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15035
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15036
   -e 's:$: $lt_compiler_flag:'`
 
15037
   (eval echo "\"\$as_me:15037: $lt_compile\"" >&5)
 
15038
   (eval "$lt_compile" 2>out/conftest.err)
 
15039
   ac_status=$?
 
15040
   cat out/conftest.err >&5
 
15041
   echo "$as_me:15041: \$? = $ac_status" >&5
 
15042
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15043
   then
 
15044
     # The compiler can only warn and ignore the option if not recognized
 
15045
     # So say no if there are warnings
 
15046
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15047
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15048
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15049
       lt_cv_prog_compiler_c_o_F77=yes
 
15050
     fi
 
15051
   fi
 
15052
   chmod u+w . 2>&5
 
15053
   $rm conftest*
 
15054
   # SGI C++ compiler will create directory out/ii_files/ for
 
15055
   # template instantiation
 
15056
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15057
   $rm out/* && rmdir out
 
15058
   cd ..
 
15059
   rmdir conftest
 
15060
   $rm conftest*
 
15061
 
 
15062
fi
 
15063
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15064
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
15065
 
 
15066
 
 
15067
hard_links="nottested"
 
15068
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15069
  # do not overwrite the value of need_locks provided by the user
 
15070
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15071
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
15072
  hard_links=yes
 
15073
  $rm conftest*
 
15074
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15075
  touch conftest.a
 
15076
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15077
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15078
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
15079
echo "${ECHO_T}$hard_links" >&6; }
 
15080
  if test "$hard_links" = no; then
 
15081
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15082
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15083
    need_locks=warn
 
15084
  fi
 
15085
else
 
15086
  need_locks=no
 
15087
fi
 
15088
 
 
15089
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15090
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
15091
 
 
15092
  runpath_var=
 
15093
  allow_undefined_flag_F77=
 
15094
  enable_shared_with_static_runtimes_F77=no
 
15095
  archive_cmds_F77=
 
15096
  archive_expsym_cmds_F77=
 
15097
  old_archive_From_new_cmds_F77=
 
15098
  old_archive_from_expsyms_cmds_F77=
 
15099
  export_dynamic_flag_spec_F77=
 
15100
  whole_archive_flag_spec_F77=
 
15101
  thread_safe_flag_spec_F77=
 
15102
  hardcode_libdir_flag_spec_F77=
 
15103
  hardcode_libdir_flag_spec_ld_F77=
 
15104
  hardcode_libdir_separator_F77=
 
15105
  hardcode_direct_F77=no
 
15106
  hardcode_minus_L_F77=no
 
15107
  hardcode_shlibpath_var_F77=unsupported
 
15108
  link_all_deplibs_F77=unknown
 
15109
  hardcode_automatic_F77=no
 
15110
  module_cmds_F77=
 
15111
  module_expsym_cmds_F77=
 
15112
  always_export_symbols_F77=no
 
15113
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15114
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15115
  # included in the symbol list
 
15116
  include_expsyms_F77=
 
15117
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15118
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15119
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15120
  # as well as any symbol that contains `d'.
 
15121
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
15122
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15123
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15124
  # the symbol is explicitly referenced.  Since portable code cannot
 
15125
  # rely on this symbol name, it's probably fine to never include it in
 
15126
  # preloaded symbol tables.
 
15127
  extract_expsyms_cmds=
 
15128
  # Just being paranoid about ensuring that cc_basename is set.
 
15129
  for cc_temp in $compiler""; do
 
15130
  case $cc_temp in
 
15131
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15132
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15133
    \-*) ;;
 
15134
    *) break;;
 
15135
  esac
 
15136
done
 
15137
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15138
 
 
15139
  case $host_os in
 
15140
  cygwin* | mingw* | pw32*)
 
15141
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15142
    # When not using gcc, we currently assume that we are using
 
15143
    # Microsoft Visual C++.
 
15144
    if test "$GCC" != yes; then
 
15145
      with_gnu_ld=no
 
15146
    fi
 
15147
    ;;
 
15148
  interix*)
 
15149
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15150
    with_gnu_ld=yes
 
15151
    ;;
 
15152
  openbsd*)
 
15153
    with_gnu_ld=no
 
15154
    ;;
 
15155
  esac
 
15156
 
 
15157
  ld_shlibs_F77=yes
 
15158
  if test "$with_gnu_ld" = yes; then
 
15159
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15160
    wlarc='${wl}'
 
15161
 
 
15162
    # Set some defaults for GNU ld with shared library support. These
 
15163
    # are reset later if shared libraries are not supported. Putting them
 
15164
    # here allows them to be overridden if necessary.
 
15165
    runpath_var=LD_RUN_PATH
 
15166
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15167
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15168
    # ancient GNU ld didn't support --whole-archive et. al.
 
15169
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15170
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15171
      else
 
15172
        whole_archive_flag_spec_F77=
 
15173
    fi
 
15174
    supports_anon_versioning=no
 
15175
    case `$LD -v 2>/dev/null` in
 
15176
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15177
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15178
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15179
      *\ 2.11.*) ;; # other 2.11 versions
 
15180
      *) supports_anon_versioning=yes ;;
 
15181
    esac
 
15182
 
 
15183
    # See if GNU ld supports shared libraries.
 
15184
    case $host_os in
 
15185
    aix3* | aix4* | aix5*)
 
15186
      # On AIX/PPC, the GNU linker is very broken
 
15187
      if test "$host_cpu" != ia64; then
 
15188
        ld_shlibs_F77=no
 
15189
        cat <<EOF 1>&2
 
15190
 
 
15191
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15192
*** to be unable to reliably create shared libraries on AIX.
 
15193
*** Therefore, libtool is disabling shared libraries support.  If you
 
15194
*** really care for shared libraries, you may want to modify your PATH
 
15195
*** so that a non-GNU linker is found, and then restart.
 
15196
 
 
15197
EOF
 
15198
      fi
 
15199
      ;;
 
15200
 
 
15201
    amigaos*)
 
15202
      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)'
 
15203
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15204
      hardcode_minus_L_F77=yes
 
15205
 
 
15206
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15207
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15208
      # to version 4, is to share data among multiple programs linked
 
15209
      # with the same dynamic library.  Since this doesn't match the
 
15210
      # behavior of shared libraries on other platforms, we can't use
 
15211
      # them.
 
15212
      ld_shlibs_F77=no
 
15213
      ;;
 
15214
 
 
15215
    beos*)
 
15216
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15217
        allow_undefined_flag_F77=unsupported
 
15218
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15219
        # support --undefined.  This deserves some investigation.  FIXME
 
15220
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15221
      else
 
15222
        ld_shlibs_F77=no
 
15223
      fi
 
15224
      ;;
 
15225
 
 
15226
    cygwin* | mingw* | pw32*)
 
15227
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15228
      # as there is no search path for DLLs.
 
15229
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15230
      allow_undefined_flag_F77=unsupported
 
15231
      always_export_symbols_F77=no
 
15232
      enable_shared_with_static_runtimes_F77=yes
 
15233
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
15234
 
 
15235
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15236
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15237
        # If the export-symbols file already is a .def file (1st line
 
15238
        # is EXPORTS), use it as is; otherwise, prepend...
 
15239
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15240
          cp $export_symbols $output_objdir/$soname.def;
 
15241
        else
 
15242
          echo EXPORTS > $output_objdir/$soname.def;
 
15243
          cat $export_symbols >> $output_objdir/$soname.def;
 
15244
        fi~
 
15245
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15246
      else
 
15247
        ld_shlibs_F77=no
 
15248
      fi
 
15249
      ;;
 
15250
 
 
15251
    interix[3-9]*)
 
15252
      hardcode_direct_F77=no
 
15253
      hardcode_shlibpath_var_F77=no
 
15254
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15255
      export_dynamic_flag_spec_F77='${wl}-E'
 
15256
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15257
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15258
      # default) and relocated if they conflict, which is a slow very memory
 
15259
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15260
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15261
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15262
      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'
 
15263
      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'
 
15264
      ;;
 
15265
 
 
15266
    gnu* | linux* | k*bsd*-gnu)
 
15267
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15268
        tmp_addflag=
 
15269
        case $cc_basename,$host_cpu in
 
15270
        pgcc*)                          # Portland Group C compiler
 
15271
          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'
 
15272
          tmp_addflag=' $pic_flag'
 
15273
          ;;
 
15274
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15275
          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'
 
15276
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15277
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15278
          tmp_addflag=' -i_dynamic' ;;
 
15279
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15280
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15281
        ifc* | ifort*)                  # Intel Fortran compiler
 
15282
          tmp_addflag=' -nofor_main' ;;
 
15283
        esac
 
15284
        case `$CC -V 2>&1 | sed 5q` in
 
15285
        *Sun\ C*)                       # Sun C 5.9
 
15286
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15287
          tmp_sharedflag='-G' ;;
 
15288
        *Sun\ F*)                       # Sun Fortran 8.3
 
15289
          tmp_sharedflag='-G' ;;
 
15290
        *)
 
15291
          tmp_sharedflag='-shared' ;;
 
15292
        esac
 
15293
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15294
 
 
15295
        if test $supports_anon_versioning = yes; then
 
15296
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15297
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15298
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15299
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15300
        fi
 
15301
      else
 
15302
        ld_shlibs_F77=no
 
15303
      fi
 
15304
      ;;
 
15305
 
 
15306
    netbsd*)
 
15307
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15308
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15309
        wlarc=
 
15310
      else
 
15311
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15312
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15313
      fi
 
15314
      ;;
 
15315
 
 
15316
    solaris*)
 
15317
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15318
        ld_shlibs_F77=no
 
15319
        cat <<EOF 1>&2
 
15320
 
 
15321
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15322
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15323
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15324
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15325
*** your PATH or compiler configuration so that the native linker is
 
15326
*** used, and then restart.
 
15327
 
 
15328
EOF
 
15329
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15330
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15331
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15332
      else
 
15333
        ld_shlibs_F77=no
 
15334
      fi
 
15335
      ;;
 
15336
 
 
15337
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15338
      case `$LD -v 2>&1` in
 
15339
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15340
        ld_shlibs_F77=no
 
15341
        cat <<_LT_EOF 1>&2
 
15342
 
 
15343
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15344
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15345
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15346
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15347
*** your PATH or compiler configuration so that the native linker is
 
15348
*** used, and then restart.
 
15349
 
 
15350
_LT_EOF
 
15351
        ;;
 
15352
        *)
 
15353
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15354
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15355
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15356
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15357
          else
 
15358
            ld_shlibs_F77=no
 
15359
          fi
 
15360
        ;;
 
15361
      esac
 
15362
      ;;
 
15363
 
 
15364
    sunos4*)
 
15365
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15366
      wlarc=
 
15367
      hardcode_direct_F77=yes
 
15368
      hardcode_shlibpath_var_F77=no
 
15369
      ;;
 
15370
 
 
15371
    *)
 
15372
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15373
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15374
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15375
      else
 
15376
        ld_shlibs_F77=no
 
15377
      fi
 
15378
      ;;
 
15379
    esac
 
15380
 
 
15381
    if test "$ld_shlibs_F77" = no; then
 
15382
      runpath_var=
 
15383
      hardcode_libdir_flag_spec_F77=
 
15384
      export_dynamic_flag_spec_F77=
 
15385
      whole_archive_flag_spec_F77=
 
15386
    fi
 
15387
  else
 
15388
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15389
    case $host_os in
 
15390
    aix3*)
 
15391
      allow_undefined_flag_F77=unsupported
 
15392
      always_export_symbols_F77=yes
 
15393
      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'
 
15394
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15395
      # are no directories specified by -L.
 
15396
      hardcode_minus_L_F77=yes
 
15397
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15398
        # Neither direct hardcoding nor static linking is supported with a
 
15399
        # broken collect2.
 
15400
        hardcode_direct_F77=unsupported
 
15401
      fi
 
15402
      ;;
 
15403
 
 
15404
    aix4* | aix5*)
 
15405
      if test "$host_cpu" = ia64; then
 
15406
        # On IA64, the linker does run time linking by default, so we don't
 
15407
        # have to do anything special.
 
15408
        aix_use_runtimelinking=no
 
15409
        exp_sym_flag='-Bexport'
 
15410
        no_entry_flag=""
 
15411
      else
 
15412
        # If we're using GNU nm, then we don't want the "-C" option.
 
15413
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15414
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15415
          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'
 
15416
        else
 
15417
          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'
 
15418
        fi
 
15419
        aix_use_runtimelinking=no
 
15420
 
 
15421
        # Test if we are trying to use run time linking or normal
 
15422
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15423
        # need to do runtime linking.
 
15424
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15425
          for ld_flag in $LDFLAGS; do
 
15426
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15427
            aix_use_runtimelinking=yes
 
15428
            break
 
15429
          fi
 
15430
          done
 
15431
          ;;
 
15432
        esac
 
15433
 
 
15434
        exp_sym_flag='-bexport'
 
15435
        no_entry_flag='-bnoentry'
 
15436
      fi
 
15437
 
 
15438
      # When large executables or shared objects are built, AIX ld can
 
15439
      # have problems creating the table of contents.  If linking a library
 
15440
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15441
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15442
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15443
 
 
15444
      archive_cmds_F77=''
 
15445
      hardcode_direct_F77=yes
 
15446
      hardcode_libdir_separator_F77=':'
 
15447
      link_all_deplibs_F77=yes
 
15448
 
 
15449
      if test "$GCC" = yes; then
 
15450
        case $host_os in aix4.[012]|aix4.[012].*)
 
15451
        # We only want to do this on AIX 4.2 and lower, the check
 
15452
        # below for broken collect2 doesn't work under 4.3+
 
15453
          collect2name=`${CC} -print-prog-name=collect2`
 
15454
          if test -f "$collect2name" && \
 
15455
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15456
          then
 
15457
          # We have reworked collect2
 
15458
          :
 
15459
          else
 
15460
          # We have old collect2
 
15461
          hardcode_direct_F77=unsupported
 
15462
          # It fails to find uninstalled libraries when the uninstalled
 
15463
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15464
          # to unsupported forces relinking
 
15465
          hardcode_minus_L_F77=yes
 
15466
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15467
          hardcode_libdir_separator_F77=
 
15468
          fi
 
15469
          ;;
 
15470
        esac
 
15471
        shared_flag='-shared'
 
15472
        if test "$aix_use_runtimelinking" = yes; then
 
15473
          shared_flag="$shared_flag "'${wl}-G'
 
15474
        fi
 
15475
      else
 
15476
        # not using gcc
 
15477
        if test "$host_cpu" = ia64; then
 
15478
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15479
        # chokes on -Wl,-G. The following line is correct:
 
15480
          shared_flag='-G'
 
15481
        else
 
15482
          if test "$aix_use_runtimelinking" = yes; then
 
15483
            shared_flag='${wl}-G'
 
15484
          else
 
15485
            shared_flag='${wl}-bM:SRE'
 
15486
          fi
 
15487
        fi
 
15488
      fi
 
15489
 
 
15490
      # It seems that -bexpall does not export symbols beginning with
 
15491
      # underscore (_), so it is better to generate a list of symbols to export.
 
15492
      always_export_symbols_F77=yes
 
15493
      if test "$aix_use_runtimelinking" = yes; then
 
15494
        # Warning - without using the other runtime loading flags (-brtl),
 
15495
        # -berok will link without error, but may produce a broken library.
 
15496
        allow_undefined_flag_F77='-berok'
 
15497
       # Determine the default libpath from the value encoded in an empty executable.
 
15498
       cat >conftest.$ac_ext <<_ACEOF
 
15499
      program main
 
15500
 
 
15501
      end
 
15502
_ACEOF
 
15503
rm -f conftest.$ac_objext conftest$ac_exeext
 
15504
if { (ac_try="$ac_link"
 
15505
case "(($ac_try" in
 
15506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15507
  *) ac_try_echo=$ac_try;;
 
15508
esac
 
15509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15510
  (eval "$ac_link") 2>conftest.er1
 
15511
  ac_status=$?
 
15512
  grep -v '^ *+' conftest.er1 >conftest.err
 
15513
  rm -f conftest.er1
 
15514
  cat conftest.err >&5
 
15515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15516
  (exit $ac_status); } && {
 
15517
         test -z "$ac_f77_werror_flag" ||
 
15518
         test ! -s conftest.err
 
15519
       } && test -s conftest$ac_exeext &&
 
15520
       $as_test_x conftest$ac_exeext; then
 
15521
 
 
15522
lt_aix_libpath_sed='
 
15523
    /Import File Strings/,/^$/ {
 
15524
        /^0/ {
 
15525
            s/^0  *\(.*\)$/\1/
 
15526
            p
 
15527
        }
 
15528
    }'
 
15529
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15530
# Check for a 64-bit object if we didn't find anything.
 
15531
if test -z "$aix_libpath"; then
 
15532
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15533
fi
 
15534
else
 
15535
  echo "$as_me: failed program was:" >&5
 
15536
sed 's/^/| /' conftest.$ac_ext >&5
 
15537
 
 
15538
 
 
15539
fi
 
15540
 
 
15541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15542
      conftest$ac_exeext conftest.$ac_ext
 
15543
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15544
 
 
15545
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15546
        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"
 
15547
       else
 
15548
        if test "$host_cpu" = ia64; then
 
15549
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15550
          allow_undefined_flag_F77="-z nodefs"
 
15551
          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"
 
15552
        else
 
15553
         # Determine the default libpath from the value encoded in an empty executable.
 
15554
         cat >conftest.$ac_ext <<_ACEOF
 
15555
      program main
 
15556
 
 
15557
      end
 
15558
_ACEOF
 
15559
rm -f conftest.$ac_objext conftest$ac_exeext
 
15560
if { (ac_try="$ac_link"
 
15561
case "(($ac_try" in
 
15562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15563
  *) ac_try_echo=$ac_try;;
 
15564
esac
 
15565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15566
  (eval "$ac_link") 2>conftest.er1
 
15567
  ac_status=$?
 
15568
  grep -v '^ *+' conftest.er1 >conftest.err
 
15569
  rm -f conftest.er1
 
15570
  cat conftest.err >&5
 
15571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15572
  (exit $ac_status); } && {
 
15573
         test -z "$ac_f77_werror_flag" ||
 
15574
         test ! -s conftest.err
 
15575
       } && test -s conftest$ac_exeext &&
 
15576
       $as_test_x conftest$ac_exeext; then
 
15577
 
 
15578
lt_aix_libpath_sed='
 
15579
    /Import File Strings/,/^$/ {
 
15580
        /^0/ {
 
15581
            s/^0  *\(.*\)$/\1/
 
15582
            p
 
15583
        }
 
15584
    }'
 
15585
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15586
# Check for a 64-bit object if we didn't find anything.
 
15587
if test -z "$aix_libpath"; then
 
15588
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15589
fi
 
15590
else
 
15591
  echo "$as_me: failed program was:" >&5
 
15592
sed 's/^/| /' conftest.$ac_ext >&5
 
15593
 
 
15594
 
 
15595
fi
 
15596
 
 
15597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15598
      conftest$ac_exeext conftest.$ac_ext
 
15599
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15600
 
 
15601
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15602
          # Warning - without using the other run time loading flags,
 
15603
          # -berok will link without error, but may produce a broken library.
 
15604
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15605
          allow_undefined_flag_F77=' ${wl}-berok'
 
15606
          # Exported symbols can be pulled into shared objects from archives
 
15607
          whole_archive_flag_spec_F77='$convenience'
 
15608
          archive_cmds_need_lc_F77=yes
 
15609
          # This is similar to how AIX traditionally builds its shared libraries.
 
15610
          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'
 
15611
        fi
 
15612
      fi
 
15613
      ;;
 
15614
 
 
15615
    amigaos*)
 
15616
      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)'
 
15617
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15618
      hardcode_minus_L_F77=yes
 
15619
      # see comment about different semantics on the GNU ld section
 
15620
      ld_shlibs_F77=no
 
15621
      ;;
 
15622
 
 
15623
    bsdi[45]*)
 
15624
      export_dynamic_flag_spec_F77=-rdynamic
 
15625
      ;;
 
15626
 
 
15627
    cygwin* | mingw* | pw32*)
 
15628
      # When not using gcc, we currently assume that we are using
 
15629
      # Microsoft Visual C++.
 
15630
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15631
      # no search path for DLLs.
 
15632
      hardcode_libdir_flag_spec_F77=' '
 
15633
      allow_undefined_flag_F77=unsupported
 
15634
      # Tell ltmain to make .lib files, not .a files.
 
15635
      libext=lib
 
15636
      # Tell ltmain to make .dll files, not .so files.
 
15637
      shrext_cmds=".dll"
 
15638
      # FIXME: Setting linknames here is a bad hack.
 
15639
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15640
      # The linker will automatically build a .lib file if we build a DLL.
 
15641
      old_archive_From_new_cmds_F77='true'
 
15642
      # FIXME: Should let the user specify the lib program.
 
15643
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15644
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15645
      enable_shared_with_static_runtimes_F77=yes
 
15646
      ;;
 
15647
 
 
15648
    darwin* | rhapsody*)
 
15649
      case $host_os in
 
15650
        rhapsody* | darwin1.[012])
 
15651
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15652
         ;;
 
15653
       *) # Darwin 1.3 on
 
15654
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15655
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15656
         else
 
15657
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15658
             10.[012])
 
15659
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15660
               ;;
 
15661
             10.*)
 
15662
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15663
               ;;
 
15664
           esac
 
15665
         fi
 
15666
         ;;
 
15667
      esac
 
15668
      archive_cmds_need_lc_F77=no
 
15669
      hardcode_direct_F77=no
 
15670
      hardcode_automatic_F77=yes
 
15671
      hardcode_shlibpath_var_F77=unsupported
 
15672
      whole_archive_flag_spec_F77=''
 
15673
      link_all_deplibs_F77=yes
 
15674
    if test "$GCC" = yes ; then
 
15675
        output_verbose_link_cmd='echo'
 
15676
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15677
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15678
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15679
      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}'
 
15680
      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}'
 
15681
    else
 
15682
      case $cc_basename in
 
15683
        xlc*)
 
15684
         output_verbose_link_cmd='echo'
 
15685
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15686
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15687
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15688
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15689
          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}'
 
15690
          ;;
 
15691
       *)
 
15692
         ld_shlibs_F77=no
 
15693
          ;;
 
15694
      esac
 
15695
    fi
 
15696
      ;;
 
15697
 
 
15698
    dgux*)
 
15699
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15700
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15701
      hardcode_shlibpath_var_F77=no
 
15702
      ;;
 
15703
 
 
15704
    freebsd1*)
 
15705
      ld_shlibs_F77=no
 
15706
      ;;
 
15707
 
 
15708
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15709
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15710
    # does not break anything, and helps significantly (at the cost of a little
 
15711
    # extra space).
 
15712
    freebsd2.2*)
 
15713
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15714
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15715
      hardcode_direct_F77=yes
 
15716
      hardcode_shlibpath_var_F77=no
 
15717
      ;;
 
15718
 
 
15719
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15720
    freebsd2*)
 
15721
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15722
      hardcode_direct_F77=yes
 
15723
      hardcode_minus_L_F77=yes
 
15724
      hardcode_shlibpath_var_F77=no
 
15725
      ;;
 
15726
 
 
15727
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15728
    freebsd* | dragonfly*)
 
15729
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15730
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15731
      hardcode_direct_F77=yes
 
15732
      hardcode_shlibpath_var_F77=no
 
15733
      ;;
 
15734
 
 
15735
    hpux9*)
 
15736
      if test "$GCC" = yes; then
 
15737
        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'
 
15738
      else
 
15739
        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'
 
15740
      fi
 
15741
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15742
      hardcode_libdir_separator_F77=:
 
15743
      hardcode_direct_F77=yes
 
15744
 
 
15745
      # hardcode_minus_L: Not really in the search PATH,
 
15746
      # but as the default location of the library.
 
15747
      hardcode_minus_L_F77=yes
 
15748
      export_dynamic_flag_spec_F77='${wl}-E'
 
15749
      ;;
 
15750
 
 
15751
    hpux10*)
 
15752
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15753
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15754
      else
 
15755
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15756
      fi
 
15757
      if test "$with_gnu_ld" = no; then
 
15758
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15759
        hardcode_libdir_separator_F77=:
 
15760
 
 
15761
        hardcode_direct_F77=yes
 
15762
        export_dynamic_flag_spec_F77='${wl}-E'
 
15763
 
 
15764
        # hardcode_minus_L: Not really in the search PATH,
 
15765
        # but as the default location of the library.
 
15766
        hardcode_minus_L_F77=yes
 
15767
      fi
 
15768
      ;;
 
15769
 
 
15770
    hpux11*)
 
15771
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15772
        case $host_cpu in
 
15773
        hppa*64*)
 
15774
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15775
          ;;
 
15776
        ia64*)
 
15777
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15778
          ;;
 
15779
        *)
 
15780
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15781
          ;;
 
15782
        esac
 
15783
      else
 
15784
        case $host_cpu in
 
15785
        hppa*64*)
 
15786
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15787
          ;;
 
15788
        ia64*)
 
15789
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15790
          ;;
 
15791
        *)
 
15792
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15793
          ;;
 
15794
        esac
 
15795
      fi
 
15796
      if test "$with_gnu_ld" = no; then
 
15797
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15798
        hardcode_libdir_separator_F77=:
 
15799
 
 
15800
        case $host_cpu in
 
15801
        hppa*64*|ia64*)
 
15802
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15803
          hardcode_direct_F77=no
 
15804
          hardcode_shlibpath_var_F77=no
 
15805
          ;;
 
15806
        *)
 
15807
          hardcode_direct_F77=yes
 
15808
          export_dynamic_flag_spec_F77='${wl}-E'
 
15809
 
 
15810
          # hardcode_minus_L: Not really in the search PATH,
 
15811
          # but as the default location of the library.
 
15812
          hardcode_minus_L_F77=yes
 
15813
          ;;
 
15814
        esac
 
15815
      fi
 
15816
      ;;
 
15817
 
 
15818
    irix5* | irix6* | nonstopux*)
 
15819
      if test "$GCC" = yes; then
 
15820
        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'
 
15821
      else
 
15822
        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'
 
15823
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15824
      fi
 
15825
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15826
      hardcode_libdir_separator_F77=:
 
15827
      link_all_deplibs_F77=yes
 
15828
      ;;
 
15829
 
 
15830
    netbsd*)
 
15831
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15832
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15833
      else
 
15834
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15835
      fi
 
15836
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15837
      hardcode_direct_F77=yes
 
15838
      hardcode_shlibpath_var_F77=no
 
15839
      ;;
 
15840
 
 
15841
    newsos6)
 
15842
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15843
      hardcode_direct_F77=yes
 
15844
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15845
      hardcode_libdir_separator_F77=:
 
15846
      hardcode_shlibpath_var_F77=no
 
15847
      ;;
 
15848
 
 
15849
    openbsd*)
 
15850
      if test -f /usr/libexec/ld.so; then
 
15851
        hardcode_direct_F77=yes
 
15852
        hardcode_shlibpath_var_F77=no
 
15853
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15854
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15855
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15856
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15857
          export_dynamic_flag_spec_F77='${wl}-E'
 
15858
        else
 
15859
          case $host_os in
 
15860
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15861
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15862
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15863
             ;;
 
15864
           *)
 
15865
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15866
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15867
             ;;
 
15868
          esac
 
15869
        fi
 
15870
      else
 
15871
        ld_shlibs_F77=no
 
15872
      fi
 
15873
      ;;
 
15874
 
 
15875
    os2*)
 
15876
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15877
      hardcode_minus_L_F77=yes
 
15878
      allow_undefined_flag_F77=unsupported
 
15879
      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'
 
15880
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15881
      ;;
 
15882
 
 
15883
    osf3*)
 
15884
      if test "$GCC" = yes; then
 
15885
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15886
        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'
 
15887
      else
 
15888
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15889
        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'
 
15890
      fi
 
15891
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15892
      hardcode_libdir_separator_F77=:
 
15893
      ;;
 
15894
 
 
15895
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15896
      if test "$GCC" = yes; then
 
15897
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15898
        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'
 
15899
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15900
      else
 
15901
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15902
        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'
 
15903
        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~
 
15904
        $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'
 
15905
 
 
15906
        # Both c and cxx compiler support -rpath directly
 
15907
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15908
      fi
 
15909
      hardcode_libdir_separator_F77=:
 
15910
      ;;
 
15911
 
 
15912
    solaris*)
 
15913
      no_undefined_flag_F77=' -z text'
 
15914
      if test "$GCC" = yes; then
 
15915
        wlarc='${wl}'
 
15916
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15917
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15918
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15919
      else
 
15920
        wlarc=''
 
15921
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15922
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15923
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15924
      fi
 
15925
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15926
      hardcode_shlibpath_var_F77=no
 
15927
      case $host_os in
 
15928
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15929
      *)
 
15930
        # The compiler driver will combine and reorder linker options,
 
15931
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15932
        # but is careful enough not to reorder.
 
15933
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15934
        if test "$GCC" = yes; then
 
15935
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15936
        else
 
15937
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15938
        fi
 
15939
        ;;
 
15940
      esac
 
15941
      link_all_deplibs_F77=yes
 
15942
      ;;
 
15943
 
 
15944
    sunos4*)
 
15945
      if test "x$host_vendor" = xsequent; then
 
15946
        # Use $CC to link under sequent, because it throws in some extra .o
 
15947
        # files that make .init and .fini sections work.
 
15948
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15949
      else
 
15950
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15951
      fi
 
15952
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15953
      hardcode_direct_F77=yes
 
15954
      hardcode_minus_L_F77=yes
 
15955
      hardcode_shlibpath_var_F77=no
 
15956
      ;;
 
15957
 
 
15958
    sysv4)
 
15959
      case $host_vendor in
 
15960
        sni)
 
15961
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15962
          hardcode_direct_F77=yes # is this really true???
 
15963
        ;;
 
15964
        siemens)
 
15965
          ## LD is ld it makes a PLAMLIB
 
15966
          ## CC just makes a GrossModule.
 
15967
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15968
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15969
          hardcode_direct_F77=no
 
15970
        ;;
 
15971
        motorola)
 
15972
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15973
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15974
        ;;
 
15975
      esac
 
15976
      runpath_var='LD_RUN_PATH'
 
15977
      hardcode_shlibpath_var_F77=no
 
15978
      ;;
 
15979
 
 
15980
    sysv4.3*)
 
15981
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15982
      hardcode_shlibpath_var_F77=no
 
15983
      export_dynamic_flag_spec_F77='-Bexport'
 
15984
      ;;
 
15985
 
 
15986
    sysv4*MP*)
 
15987
      if test -d /usr/nec; then
 
15988
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15989
        hardcode_shlibpath_var_F77=no
 
15990
        runpath_var=LD_RUN_PATH
 
15991
        hardcode_runpath_var=yes
 
15992
        ld_shlibs_F77=yes
 
15993
      fi
 
15994
      ;;
 
15995
 
 
15996
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15997
      no_undefined_flag_F77='${wl}-z,text'
 
15998
      archive_cmds_need_lc_F77=no
 
15999
      hardcode_shlibpath_var_F77=no
 
16000
      runpath_var='LD_RUN_PATH'
 
16001
 
 
16002
      if test "$GCC" = yes; then
 
16003
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16004
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16005
      else
 
16006
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16007
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16008
      fi
 
16009
      ;;
 
16010
 
 
16011
    sysv5* | sco3.2v5* | sco5v6*)
 
16012
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16013
      # link with -lc, and that would cause any symbols used from libc to
 
16014
      # always be unresolved, which means just about no library would
 
16015
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16016
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16017
      # as -z defs.
 
16018
      no_undefined_flag_F77='${wl}-z,text'
 
16019
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
16020
      archive_cmds_need_lc_F77=no
 
16021
      hardcode_shlibpath_var_F77=no
 
16022
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16023
      hardcode_libdir_separator_F77=':'
 
16024
      link_all_deplibs_F77=yes
 
16025
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16026
      runpath_var='LD_RUN_PATH'
 
16027
 
 
16028
      if test "$GCC" = yes; then
 
16029
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16030
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16031
      else
 
16032
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16033
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16034
      fi
 
16035
      ;;
 
16036
 
 
16037
    uts4*)
 
16038
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16039
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16040
      hardcode_shlibpath_var_F77=no
 
16041
      ;;
 
16042
 
 
16043
    *)
 
16044
      ld_shlibs_F77=no
 
16045
      ;;
 
16046
    esac
 
16047
  fi
 
16048
 
 
16049
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16050
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
16051
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16052
 
 
16053
#
 
16054
# Do we need to explicitly link libc?
 
16055
#
 
16056
case "x$archive_cmds_need_lc_F77" in
 
16057
x|xyes)
 
16058
  # Assume -lc should be added
 
16059
  archive_cmds_need_lc_F77=yes
 
16060
 
 
16061
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16062
    case $archive_cmds_F77 in
 
16063
    *'~'*)
 
16064
      # FIXME: we may have to deal with multi-command sequences.
 
16065
      ;;
 
16066
    '$CC '*)
 
16067
      # Test whether the compiler implicitly links with -lc since on some
 
16068
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16069
      # to ld, don't add -lc before -lgcc.
 
16070
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16071
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
16072
      $rm conftest*
 
16073
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16074
 
 
16075
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16076
  (eval $ac_compile) 2>&5
 
16077
  ac_status=$?
 
16078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16079
  (exit $ac_status); } 2>conftest.err; then
 
16080
        soname=conftest
 
16081
        lib=conftest
 
16082
        libobjs=conftest.$ac_objext
 
16083
        deplibs=
 
16084
        wl=$lt_prog_compiler_wl_F77
 
16085
        pic_flag=$lt_prog_compiler_pic_F77
 
16086
        compiler_flags=-v
 
16087
        linker_flags=-v
 
16088
        verstring=
 
16089
        output_objdir=.
 
16090
        libname=conftest
 
16091
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16092
        allow_undefined_flag_F77=
 
16093
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16094
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16095
  ac_status=$?
 
16096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16097
  (exit $ac_status); }
 
16098
        then
 
16099
          archive_cmds_need_lc_F77=no
 
16100
        else
 
16101
          archive_cmds_need_lc_F77=yes
 
16102
        fi
 
16103
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16104
      else
 
16105
        cat conftest.err 1>&5
 
16106
      fi
 
16107
      $rm conftest*
 
16108
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16109
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
16110
      ;;
 
16111
    esac
 
16112
  fi
 
16113
  ;;
 
16114
esac
 
16115
 
 
16116
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16117
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
16118
library_names_spec=
 
16119
libname_spec='lib$name'
 
16120
soname_spec=
 
16121
shrext_cmds=".so"
 
16122
postinstall_cmds=
 
16123
postuninstall_cmds=
 
16124
finish_cmds=
 
16125
finish_eval=
 
16126
shlibpath_var=
 
16127
shlibpath_overrides_runpath=unknown
 
16128
version_type=none
 
16129
dynamic_linker="$host_os ld.so"
 
16130
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16131
 
 
16132
need_lib_prefix=unknown
 
16133
hardcode_into_libs=no
 
16134
 
 
16135
# when you set need_version to no, make sure it does not cause -set_version
 
16136
# flags to be left without arguments
 
16137
need_version=unknown
 
16138
 
 
16139
case $host_os in
 
16140
aix3*)
 
16141
  version_type=linux
 
16142
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16143
  shlibpath_var=LIBPATH
 
16144
 
 
16145
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16146
  soname_spec='${libname}${release}${shared_ext}$major'
 
16147
  ;;
 
16148
 
 
16149
aix4* | aix5*)
 
16150
  version_type=linux
 
16151
  need_lib_prefix=no
 
16152
  need_version=no
 
16153
  hardcode_into_libs=yes
 
16154
  if test "$host_cpu" = ia64; then
 
16155
    # AIX 5 supports IA64
 
16156
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16157
    shlibpath_var=LD_LIBRARY_PATH
 
16158
  else
 
16159
    # With GCC up to 2.95.x, collect2 would create an import file
 
16160
    # for dependence libraries.  The import file would start with
 
16161
    # the line `#! .'.  This would cause the generated library to
 
16162
    # depend on `.', always an invalid library.  This was fixed in
 
16163
    # development snapshots of GCC prior to 3.0.
 
16164
    case $host_os in
 
16165
      aix4 | aix4.[01] | aix4.[01].*)
 
16166
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16167
           echo ' yes '
 
16168
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16169
        :
 
16170
      else
 
16171
        can_build_shared=no
 
16172
      fi
 
16173
      ;;
 
16174
    esac
 
16175
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16176
    # soname into executable. Probably we can add versioning support to
 
16177
    # collect2, so additional links can be useful in future.
 
16178
    if test "$aix_use_runtimelinking" = yes; then
 
16179
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16180
      # instead of lib<name>.a to let people know that these are not
 
16181
      # typical AIX shared libraries.
 
16182
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16183
    else
 
16184
      # We preserve .a as extension for shared libraries through AIX4.2
 
16185
      # and later when we are not doing run time linking.
 
16186
      library_names_spec='${libname}${release}.a $libname.a'
 
16187
      soname_spec='${libname}${release}${shared_ext}$major'
 
16188
    fi
 
16189
    shlibpath_var=LIBPATH
 
16190
  fi
 
16191
  ;;
 
16192
 
 
16193
amigaos*)
 
16194
  library_names_spec='$libname.ixlibrary $libname.a'
 
16195
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16196
  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'
 
16197
  ;;
 
16198
 
 
16199
beos*)
 
16200
  library_names_spec='${libname}${shared_ext}'
 
16201
  dynamic_linker="$host_os ld.so"
 
16202
  shlibpath_var=LIBRARY_PATH
 
16203
  ;;
 
16204
 
 
16205
bsdi[45]*)
 
16206
  version_type=linux
 
16207
  need_version=no
 
16208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16209
  soname_spec='${libname}${release}${shared_ext}$major'
 
16210
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16211
  shlibpath_var=LD_LIBRARY_PATH
 
16212
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16213
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16214
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16215
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16216
  # libtool to hard-code these into programs
 
16217
  ;;
 
16218
 
 
16219
cygwin* | mingw* | pw32*)
 
16220
  version_type=windows
 
16221
  shrext_cmds=".dll"
 
16222
  need_version=no
 
16223
  need_lib_prefix=no
 
16224
 
 
16225
  case $GCC,$host_os in
 
16226
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16227
    library_names_spec='$libname.dll.a'
 
16228
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16229
    postinstall_cmds='base_file=`basename \${file}`~
 
16230
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16231
      dldir=$destdir/`dirname \$dlpath`~
 
16232
      test -d \$dldir || mkdir -p \$dldir~
 
16233
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16234
      chmod a+x \$dldir/$dlname'
 
16235
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16236
      dlpath=$dir/\$dldll~
 
16237
       $rm \$dlpath'
 
16238
    shlibpath_overrides_runpath=yes
 
16239
 
 
16240
    case $host_os in
 
16241
    cygwin*)
 
16242
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16243
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16244
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16245
      ;;
 
16246
    mingw*)
 
16247
      # MinGW DLLs use traditional 'lib' prefix
 
16248
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16249
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16250
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16251
        # It is most probably a Windows format PATH printed by
 
16252
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16253
        # path with ; separators, and with drive letters. We can handle the
 
16254
        # drive letters (cygwin fileutils understands them), so leave them,
 
16255
        # especially as we might pass files found there to a mingw objdump,
 
16256
        # which wouldn't understand a cygwinified path. Ahh.
 
16257
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16258
      else
 
16259
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16260
      fi
 
16261
      ;;
 
16262
    pw32*)
 
16263
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16264
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16265
      ;;
 
16266
    esac
 
16267
    ;;
 
16268
 
 
16269
  *)
 
16270
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16271
    ;;
 
16272
  esac
 
16273
  dynamic_linker='Win32 ld.exe'
 
16274
  # FIXME: first we should search . and the directory the executable is in
 
16275
  shlibpath_var=PATH
 
16276
  ;;
 
16277
 
 
16278
darwin* | rhapsody*)
 
16279
  dynamic_linker="$host_os dyld"
 
16280
  version_type=darwin
 
16281
  need_lib_prefix=no
 
16282
  need_version=no
 
16283
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16284
  soname_spec='${libname}${release}${major}$shared_ext'
 
16285
  shlibpath_overrides_runpath=yes
 
16286
  shlibpath_var=DYLD_LIBRARY_PATH
 
16287
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16288
 
 
16289
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16290
  ;;
 
16291
 
 
16292
dgux*)
 
16293
  version_type=linux
 
16294
  need_lib_prefix=no
 
16295
  need_version=no
 
16296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16297
  soname_spec='${libname}${release}${shared_ext}$major'
 
16298
  shlibpath_var=LD_LIBRARY_PATH
 
16299
  ;;
 
16300
 
 
16301
freebsd1*)
 
16302
  dynamic_linker=no
 
16303
  ;;
 
16304
 
 
16305
freebsd* | dragonfly*)
 
16306
  # DragonFly does not have aout.  When/if they implement a new
 
16307
  # versioning mechanism, adjust this.
 
16308
  if test -x /usr/bin/objformat; then
 
16309
    objformat=`/usr/bin/objformat`
 
16310
  else
 
16311
    case $host_os in
 
16312
    freebsd[123]*) objformat=aout ;;
 
16313
    *) objformat=elf ;;
 
16314
    esac
 
16315
  fi
 
16316
  version_type=freebsd-$objformat
 
16317
  case $version_type in
 
16318
    freebsd-elf*)
 
16319
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16320
      need_version=no
 
16321
      need_lib_prefix=no
 
16322
      ;;
 
16323
    freebsd-*)
 
16324
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16325
      need_version=yes
 
16326
      ;;
 
16327
  esac
 
16328
  shlibpath_var=LD_LIBRARY_PATH
 
16329
  case $host_os in
 
16330
  freebsd2*)
 
16331
    shlibpath_overrides_runpath=yes
 
16332
    ;;
 
16333
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16334
    shlibpath_overrides_runpath=yes
 
16335
    hardcode_into_libs=yes
 
16336
    ;;
 
16337
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16338
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16339
    shlibpath_overrides_runpath=no
 
16340
    hardcode_into_libs=yes
 
16341
    ;;
 
16342
  *) # from 4.6 on, and DragonFly
 
16343
    shlibpath_overrides_runpath=yes
 
16344
    hardcode_into_libs=yes
 
16345
    ;;
 
16346
  esac
 
16347
  ;;
 
16348
 
 
16349
gnu*)
 
16350
  version_type=linux
 
16351
  need_lib_prefix=no
 
16352
  need_version=no
 
16353
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16354
  soname_spec='${libname}${release}${shared_ext}$major'
 
16355
  shlibpath_var=LD_LIBRARY_PATH
 
16356
  hardcode_into_libs=yes
 
16357
  ;;
 
16358
 
 
16359
hpux9* | hpux10* | hpux11*)
 
16360
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16361
  # link against other versions.
 
16362
  version_type=sunos
 
16363
  need_lib_prefix=no
 
16364
  need_version=no
 
16365
  case $host_cpu in
 
16366
  ia64*)
 
16367
    shrext_cmds='.so'
 
16368
    hardcode_into_libs=yes
 
16369
    dynamic_linker="$host_os dld.so"
 
16370
    shlibpath_var=LD_LIBRARY_PATH
 
16371
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16372
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16373
    soname_spec='${libname}${release}${shared_ext}$major'
 
16374
    if test "X$HPUX_IA64_MODE" = X32; then
 
16375
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16376
    else
 
16377
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16378
    fi
 
16379
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16380
    ;;
 
16381
   hppa*64*)
 
16382
     shrext_cmds='.sl'
 
16383
     hardcode_into_libs=yes
 
16384
     dynamic_linker="$host_os dld.sl"
 
16385
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16386
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16387
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16388
     soname_spec='${libname}${release}${shared_ext}$major'
 
16389
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16390
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16391
     ;;
 
16392
   *)
 
16393
    shrext_cmds='.sl'
 
16394
    dynamic_linker="$host_os dld.sl"
 
16395
    shlibpath_var=SHLIB_PATH
 
16396
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16397
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16398
    soname_spec='${libname}${release}${shared_ext}$major'
 
16399
    ;;
 
16400
  esac
 
16401
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16402
  postinstall_cmds='chmod 555 $lib'
 
16403
  ;;
 
16404
 
 
16405
interix[3-9]*)
 
16406
  version_type=linux
 
16407
  need_lib_prefix=no
 
16408
  need_version=no
 
16409
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16410
  soname_spec='${libname}${release}${shared_ext}$major'
 
16411
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16412
  shlibpath_var=LD_LIBRARY_PATH
 
16413
  shlibpath_overrides_runpath=no
 
16414
  hardcode_into_libs=yes
 
16415
  ;;
 
16416
 
 
16417
irix5* | irix6* | nonstopux*)
 
16418
  case $host_os in
 
16419
    nonstopux*) version_type=nonstopux ;;
 
16420
    *)
 
16421
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16422
                version_type=linux
 
16423
        else
 
16424
                version_type=irix
 
16425
        fi ;;
 
16426
  esac
 
16427
  need_lib_prefix=no
 
16428
  need_version=no
 
16429
  soname_spec='${libname}${release}${shared_ext}$major'
 
16430
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16431
  case $host_os in
 
16432
  irix5* | nonstopux*)
 
16433
    libsuff= shlibsuff=
 
16434
    ;;
 
16435
  *)
 
16436
    case $LD in # libtool.m4 will add one of these switches to LD
 
16437
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16438
      libsuff= shlibsuff= libmagic=32-bit;;
 
16439
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16440
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16441
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16442
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16443
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16444
    esac
 
16445
    ;;
 
16446
  esac
 
16447
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16448
  shlibpath_overrides_runpath=no
 
16449
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16450
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16451
  hardcode_into_libs=yes
 
16452
  ;;
 
16453
 
 
16454
# No shared lib support for Linux oldld, aout, or coff.
 
16455
linux*oldld* | linux*aout* | linux*coff*)
 
16456
  dynamic_linker=no
 
16457
  ;;
 
16458
 
 
16459
# This must be Linux ELF.
 
16460
linux* | k*bsd*-gnu)
 
16461
  version_type=linux
 
16462
  need_lib_prefix=no
 
16463
  need_version=no
 
16464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16465
  soname_spec='${libname}${release}${shared_ext}$major'
 
16466
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16467
  shlibpath_var=LD_LIBRARY_PATH
 
16468
  shlibpath_overrides_runpath=no
 
16469
  # This implies no fast_install, which is unacceptable.
 
16470
  # Some rework will be needed to allow for fast_install
 
16471
  # before this can be enabled.
 
16472
  hardcode_into_libs=yes
 
16473
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16474
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16475
 
 
16476
  # Append ld.so.conf contents to the search path
 
16477
  if test -f /etc/ld.so.conf; then
 
16478
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16479
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
16480
  fi
 
16481
 
 
16482
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16483
  # powerpc, because MkLinux only supported shared libraries with the
 
16484
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16485
  # most powerpc-linux boxes support dynamic linking these days and
 
16486
  # people can always --disable-shared, the test was removed, and we
 
16487
  # assume the GNU/Linux dynamic linker is in use.
 
16488
  dynamic_linker='GNU/Linux ld.so'
 
16489
  ;;
 
16490
 
 
16491
netbsd*)
 
16492
  version_type=sunos
 
16493
  need_lib_prefix=no
 
16494
  need_version=no
 
16495
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16496
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16497
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16498
    dynamic_linker='NetBSD (a.out) ld.so'
 
16499
  else
 
16500
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16501
    soname_spec='${libname}${release}${shared_ext}$major'
 
16502
    dynamic_linker='NetBSD ld.elf_so'
 
16503
  fi
 
16504
  shlibpath_var=LD_LIBRARY_PATH
 
16505
  shlibpath_overrides_runpath=yes
 
16506
  hardcode_into_libs=yes
 
16507
  ;;
 
16508
 
 
16509
newsos6)
 
16510
  version_type=linux
 
16511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16512
  shlibpath_var=LD_LIBRARY_PATH
 
16513
  shlibpath_overrides_runpath=yes
 
16514
  ;;
 
16515
 
 
16516
nto-qnx*)
 
16517
  version_type=linux
 
16518
  need_lib_prefix=no
 
16519
  need_version=no
 
16520
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16521
  soname_spec='${libname}${release}${shared_ext}$major'
 
16522
  shlibpath_var=LD_LIBRARY_PATH
 
16523
  shlibpath_overrides_runpath=yes
 
16524
  ;;
 
16525
 
 
16526
openbsd*)
 
16527
  version_type=sunos
 
16528
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16529
  need_lib_prefix=no
 
16530
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16531
  case $host_os in
 
16532
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16533
    *)                         need_version=no  ;;
 
16534
  esac
 
16535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16536
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16537
  shlibpath_var=LD_LIBRARY_PATH
 
16538
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16539
    case $host_os in
 
16540
      openbsd2.[89] | openbsd2.[89].*)
 
16541
        shlibpath_overrides_runpath=no
 
16542
        ;;
 
16543
      *)
 
16544
        shlibpath_overrides_runpath=yes
 
16545
        ;;
 
16546
      esac
 
16547
  else
 
16548
    shlibpath_overrides_runpath=yes
 
16549
  fi
 
16550
  ;;
 
16551
 
 
16552
os2*)
 
16553
  libname_spec='$name'
 
16554
  shrext_cmds=".dll"
 
16555
  need_lib_prefix=no
 
16556
  library_names_spec='$libname${shared_ext} $libname.a'
 
16557
  dynamic_linker='OS/2 ld.exe'
 
16558
  shlibpath_var=LIBPATH
 
16559
  ;;
 
16560
 
 
16561
osf3* | osf4* | osf5*)
 
16562
  version_type=osf
 
16563
  need_lib_prefix=no
 
16564
  need_version=no
 
16565
  soname_spec='${libname}${release}${shared_ext}$major'
 
16566
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16567
  shlibpath_var=LD_LIBRARY_PATH
 
16568
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16569
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16570
  ;;
 
16571
 
 
16572
rdos*)
 
16573
  dynamic_linker=no
 
16574
  ;;
 
16575
 
 
16576
solaris*)
 
16577
  version_type=linux
 
16578
  need_lib_prefix=no
 
16579
  need_version=no
 
16580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16581
  soname_spec='${libname}${release}${shared_ext}$major'
 
16582
  shlibpath_var=LD_LIBRARY_PATH
 
16583
  shlibpath_overrides_runpath=yes
 
16584
  hardcode_into_libs=yes
 
16585
  # ldd complains unless libraries are executable
 
16586
  postinstall_cmds='chmod +x $lib'
 
16587
  ;;
 
16588
 
 
16589
sunos4*)
 
16590
  version_type=sunos
 
16591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16592
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16593
  shlibpath_var=LD_LIBRARY_PATH
 
16594
  shlibpath_overrides_runpath=yes
 
16595
  if test "$with_gnu_ld" = yes; then
 
16596
    need_lib_prefix=no
 
16597
  fi
 
16598
  need_version=yes
 
16599
  ;;
 
16600
 
 
16601
sysv4 | sysv4.3*)
 
16602
  version_type=linux
 
16603
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16604
  soname_spec='${libname}${release}${shared_ext}$major'
 
16605
  shlibpath_var=LD_LIBRARY_PATH
 
16606
  case $host_vendor in
 
16607
    sni)
 
16608
      shlibpath_overrides_runpath=no
 
16609
      need_lib_prefix=no
 
16610
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16611
      runpath_var=LD_RUN_PATH
 
16612
      ;;
 
16613
    siemens)
 
16614
      need_lib_prefix=no
 
16615
      ;;
 
16616
    motorola)
 
16617
      need_lib_prefix=no
 
16618
      need_version=no
 
16619
      shlibpath_overrides_runpath=no
 
16620
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16621
      ;;
 
16622
  esac
 
16623
  ;;
 
16624
 
 
16625
sysv4*MP*)
 
16626
  if test -d /usr/nec ;then
 
16627
    version_type=linux
 
16628
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16629
    soname_spec='$libname${shared_ext}.$major'
 
16630
    shlibpath_var=LD_LIBRARY_PATH
 
16631
  fi
 
16632
  ;;
 
16633
 
 
16634
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16635
  version_type=freebsd-elf
 
16636
  need_lib_prefix=no
 
16637
  need_version=no
 
16638
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16639
  soname_spec='${libname}${release}${shared_ext}$major'
 
16640
  shlibpath_var=LD_LIBRARY_PATH
 
16641
  hardcode_into_libs=yes
 
16642
  if test "$with_gnu_ld" = yes; then
 
16643
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16644
    shlibpath_overrides_runpath=no
 
16645
  else
 
16646
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16647
    shlibpath_overrides_runpath=yes
 
16648
    case $host_os in
 
16649
      sco3.2v5*)
 
16650
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16651
        ;;
 
16652
    esac
 
16653
  fi
 
16654
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16655
  ;;
 
16656
 
 
16657
uts4*)
 
16658
  version_type=linux
 
16659
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16660
  soname_spec='${libname}${release}${shared_ext}$major'
 
16661
  shlibpath_var=LD_LIBRARY_PATH
 
16662
  ;;
 
16663
 
 
16664
*)
 
16665
  dynamic_linker=no
 
16666
  ;;
 
16667
esac
 
16668
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16669
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16670
test "$dynamic_linker" = no && can_build_shared=no
 
16671
 
 
16672
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16673
if test "$GCC" = yes; then
 
16674
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16675
fi
 
16676
 
 
16677
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16678
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16679
hardcode_action_F77=
 
16680
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16681
   test -n "$runpath_var_F77" || \
 
16682
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16683
 
 
16684
  # We can hardcode non-existant directories.
 
16685
  if test "$hardcode_direct_F77" != no &&
 
16686
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16687
     # have to relink, otherwise we might link with an installed library
 
16688
     # when we should be linking with a yet-to-be-installed one
 
16689
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16690
     test "$hardcode_minus_L_F77" != no; then
 
16691
    # Linking always hardcodes the temporary library directory.
 
16692
    hardcode_action_F77=relink
 
16693
  else
 
16694
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16695
    hardcode_action_F77=immediate
 
16696
  fi
 
16697
else
 
16698
  # We cannot hardcode anything, or else we can only hardcode existing
 
16699
  # directories.
 
16700
  hardcode_action_F77=unsupported
 
16701
fi
 
16702
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16703
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16704
 
 
16705
if test "$hardcode_action_F77" = relink; then
 
16706
  # Fast installation is not supported
 
16707
  enable_fast_install=no
 
16708
elif test "$shlibpath_overrides_runpath" = yes ||
 
16709
     test "$enable_shared" = no; then
 
16710
  # Fast installation is not necessary
 
16711
  enable_fast_install=needless
 
16712
fi
 
16713
 
 
16714
 
 
16715
# The else clause should only fire when bootstrapping the
 
16716
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16717
# with your package, and you will get complaints that there are
 
16718
# no rules to generate ltmain.sh.
 
16719
if test -f "$ltmain"; then
 
16720
  # See if we are running on zsh, and set the options which allow our commands through
 
16721
  # without removal of \ escapes.
 
16722
  if test -n "${ZSH_VERSION+set}" ; then
 
16723
    setopt NO_GLOB_SUBST
 
16724
  fi
 
16725
  # Now quote all the things that may contain metacharacters while being
 
16726
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16727
  # variables and quote the copies for generation of the libtool script.
 
16728
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16729
    SED SHELL STRIP \
 
16730
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16731
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16732
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16733
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16734
    lt_cv_sys_global_symbol_to_c_name_address \
 
16735
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16736
    old_postinstall_cmds old_postuninstall_cmds \
 
16737
    compiler_F77 \
 
16738
    CC_F77 \
 
16739
    LD_F77 \
 
16740
    lt_prog_compiler_wl_F77 \
 
16741
    lt_prog_compiler_pic_F77 \
 
16742
    lt_prog_compiler_static_F77 \
 
16743
    lt_prog_compiler_no_builtin_flag_F77 \
 
16744
    export_dynamic_flag_spec_F77 \
 
16745
    thread_safe_flag_spec_F77 \
 
16746
    whole_archive_flag_spec_F77 \
 
16747
    enable_shared_with_static_runtimes_F77 \
 
16748
    old_archive_cmds_F77 \
 
16749
    old_archive_from_new_cmds_F77 \
 
16750
    predep_objects_F77 \
 
16751
    postdep_objects_F77 \
 
16752
    predeps_F77 \
 
16753
    postdeps_F77 \
 
16754
    compiler_lib_search_path_F77 \
 
16755
    archive_cmds_F77 \
 
16756
    archive_expsym_cmds_F77 \
 
16757
    postinstall_cmds_F77 \
 
16758
    postuninstall_cmds_F77 \
 
16759
    old_archive_from_expsyms_cmds_F77 \
 
16760
    allow_undefined_flag_F77 \
 
16761
    no_undefined_flag_F77 \
 
16762
    export_symbols_cmds_F77 \
 
16763
    hardcode_libdir_flag_spec_F77 \
 
16764
    hardcode_libdir_flag_spec_ld_F77 \
 
16765
    hardcode_libdir_separator_F77 \
 
16766
    hardcode_automatic_F77 \
 
16767
    module_cmds_F77 \
 
16768
    module_expsym_cmds_F77 \
 
16769
    lt_cv_prog_compiler_c_o_F77 \
 
16770
    fix_srcfile_path_F77 \
 
16771
    exclude_expsyms_F77 \
 
16772
    include_expsyms_F77; do
 
16773
 
 
16774
    case $var in
 
16775
    old_archive_cmds_F77 | \
 
16776
    old_archive_from_new_cmds_F77 | \
 
16777
    archive_cmds_F77 | \
 
16778
    archive_expsym_cmds_F77 | \
 
16779
    module_cmds_F77 | \
 
16780
    module_expsym_cmds_F77 | \
 
16781
    old_archive_from_expsyms_cmds_F77 | \
 
16782
    export_symbols_cmds_F77 | \
 
16783
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16784
    postinstall_cmds | postuninstall_cmds | \
 
16785
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16786
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16787
      # Double-quote double-evaled strings.
 
16788
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16789
      ;;
 
16790
    *)
 
16791
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16792
      ;;
 
16793
    esac
 
16794
  done
 
16795
 
 
16796
  case $lt_echo in
 
16797
  *'\$0 --fallback-echo"')
 
16798
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16799
    ;;
 
16800
  esac
 
16801
 
 
16802
cfgfile="$ofile"
 
16803
 
 
16804
  cat <<__EOF__ >> "$cfgfile"
 
16805
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16806
 
 
16807
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16808
 
 
16809
# Shell to use when invoking shell scripts.
 
16810
SHELL=$lt_SHELL
 
16811
 
 
16812
# Whether or not to build shared libraries.
 
16813
build_libtool_libs=$enable_shared
 
16814
 
 
16815
# Whether or not to build static libraries.
 
16816
build_old_libs=$enable_static
 
16817
 
 
16818
# Whether or not to add -lc for building shared libraries.
 
16819
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16820
 
 
16821
# Whether or not to disallow shared libs when runtime libs are static
 
16822
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16823
 
 
16824
# Whether or not to optimize for fast installation.
 
16825
fast_install=$enable_fast_install
 
16826
 
 
16827
# The host system.
 
16828
host_alias=$host_alias
 
16829
host=$host
 
16830
host_os=$host_os
 
16831
 
 
16832
# The build system.
 
16833
build_alias=$build_alias
 
16834
build=$build
 
16835
build_os=$build_os
 
16836
 
 
16837
# An echo program that does not interpret backslashes.
 
16838
echo=$lt_echo
 
16839
 
 
16840
# The archiver.
 
16841
AR=$lt_AR
 
16842
AR_FLAGS=$lt_AR_FLAGS
 
16843
 
 
16844
# A C compiler.
 
16845
LTCC=$lt_LTCC
 
16846
 
 
16847
# LTCC compiler flags.
 
16848
LTCFLAGS=$lt_LTCFLAGS
 
16849
 
 
16850
# A language-specific compiler.
 
16851
CC=$lt_compiler_F77
 
16852
 
 
16853
# Is the compiler the GNU C compiler?
 
16854
with_gcc=$GCC_F77
 
16855
 
 
16856
# An ERE matcher.
 
16857
EGREP=$lt_EGREP
 
16858
 
 
16859
# The linker used to build libraries.
 
16860
LD=$lt_LD_F77
 
16861
 
 
16862
# Whether we need hard or soft links.
 
16863
LN_S=$lt_LN_S
 
16864
 
 
16865
# A BSD-compatible nm program.
 
16866
NM=$lt_NM
 
16867
 
 
16868
# A symbol stripping program
 
16869
STRIP=$lt_STRIP
 
16870
 
 
16871
# Used to examine libraries when file_magic_cmd begins "file"
 
16872
MAGIC_CMD=$MAGIC_CMD
 
16873
 
 
16874
# Used on cygwin: DLL creation program.
 
16875
DLLTOOL="$DLLTOOL"
 
16876
 
 
16877
# Used on cygwin: object dumper.
 
16878
OBJDUMP="$OBJDUMP"
 
16879
 
 
16880
# Used on cygwin: assembler.
 
16881
AS="$AS"
 
16882
 
 
16883
# The name of the directory that contains temporary libtool files.
 
16884
objdir=$objdir
 
16885
 
 
16886
# How to create reloadable object files.
 
16887
reload_flag=$lt_reload_flag
 
16888
reload_cmds=$lt_reload_cmds
 
16889
 
 
16890
# How to pass a linker flag through the compiler.
 
16891
wl=$lt_lt_prog_compiler_wl_F77
 
16892
 
 
16893
# Object file suffix (normally "o").
 
16894
objext="$ac_objext"
 
16895
 
 
16896
# Old archive suffix (normally "a").
 
16897
libext="$libext"
 
16898
 
 
16899
# Shared library suffix (normally ".so").
 
16900
shrext_cmds='$shrext_cmds'
 
16901
 
 
16902
# Executable file suffix (normally "").
 
16903
exeext="$exeext"
 
16904
 
 
16905
# Additional compiler flags for building library objects.
 
16906
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16907
pic_mode=$pic_mode
 
16908
 
 
16909
# What is the maximum length of a command?
 
16910
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16911
 
 
16912
# Does compiler simultaneously support -c and -o options?
 
16913
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16914
 
 
16915
# Must we lock files when doing compilation?
 
16916
need_locks=$lt_need_locks
 
16917
 
 
16918
# Do we need the lib prefix for modules?
 
16919
need_lib_prefix=$need_lib_prefix
 
16920
 
 
16921
# Do we need a version for libraries?
 
16922
need_version=$need_version
 
16923
 
 
16924
# Whether dlopen is supported.
 
16925
dlopen_support=$enable_dlopen
 
16926
 
 
16927
# Whether dlopen of programs is supported.
 
16928
dlopen_self=$enable_dlopen_self
 
16929
 
 
16930
# Whether dlopen of statically linked programs is supported.
 
16931
dlopen_self_static=$enable_dlopen_self_static
 
16932
 
 
16933
# Compiler flag to prevent dynamic linking.
 
16934
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16935
 
 
16936
# Compiler flag to turn off builtin functions.
 
16937
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16938
 
 
16939
# Compiler flag to allow reflexive dlopens.
 
16940
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16941
 
 
16942
# Compiler flag to generate shared objects directly from archives.
 
16943
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16944
 
 
16945
# Compiler flag to generate thread-safe objects.
 
16946
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16947
 
 
16948
# Library versioning type.
 
16949
version_type=$version_type
 
16950
 
 
16951
# Format of library name prefix.
 
16952
libname_spec=$lt_libname_spec
 
16953
 
 
16954
# List of archive names.  First name is the real one, the rest are links.
 
16955
# The last name is the one that the linker finds with -lNAME.
 
16956
library_names_spec=$lt_library_names_spec
 
16957
 
 
16958
# The coded name of the library, if different from the real name.
 
16959
soname_spec=$lt_soname_spec
 
16960
 
 
16961
# Commands used to build and install an old-style archive.
 
16962
RANLIB=$lt_RANLIB
 
16963
old_archive_cmds=$lt_old_archive_cmds_F77
 
16964
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16965
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16966
 
 
16967
# Create an old-style archive from a shared archive.
 
16968
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16969
 
 
16970
# Create a temporary old-style archive to link instead of a shared archive.
 
16971
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16972
 
 
16973
# Commands used to build and install a shared archive.
 
16974
archive_cmds=$lt_archive_cmds_F77
 
16975
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16976
postinstall_cmds=$lt_postinstall_cmds
 
16977
postuninstall_cmds=$lt_postuninstall_cmds
 
16978
 
 
16979
# Commands used to build a loadable module (assumed same as above if empty)
 
16980
module_cmds=$lt_module_cmds_F77
 
16981
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16982
 
 
16983
# Commands to strip libraries.
 
16984
old_striplib=$lt_old_striplib
 
16985
striplib=$lt_striplib
 
16986
 
 
16987
# Dependencies to place before the objects being linked to create a
 
16988
# shared library.
 
16989
predep_objects=$lt_predep_objects_F77
 
16990
 
 
16991
# Dependencies to place after the objects being linked to create a
 
16992
# shared library.
 
16993
postdep_objects=$lt_postdep_objects_F77
 
16994
 
 
16995
# Dependencies to place before the objects being linked to create a
 
16996
# shared library.
 
16997
predeps=$lt_predeps_F77
 
16998
 
 
16999
# Dependencies to place after the objects being linked to create a
 
17000
# shared library.
 
17001
postdeps=$lt_postdeps_F77
 
17002
 
 
17003
# The library search path used internally by the compiler when linking
 
17004
# a shared library.
 
17005
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17006
 
 
17007
# Method to check whether dependent libraries are shared objects.
 
17008
deplibs_check_method=$lt_deplibs_check_method
 
17009
 
 
17010
# Command to use when deplibs_check_method == file_magic.
 
17011
file_magic_cmd=$lt_file_magic_cmd
 
17012
 
 
17013
# Flag that allows shared libraries with undefined symbols to be built.
 
17014
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17015
 
 
17016
# Flag that forces no undefined symbols.
 
17017
no_undefined_flag=$lt_no_undefined_flag_F77
 
17018
 
 
17019
# Commands used to finish a libtool library installation in a directory.
 
17020
finish_cmds=$lt_finish_cmds
 
17021
 
 
17022
# Same as above, but a single script fragment to be evaled but not shown.
 
17023
finish_eval=$lt_finish_eval
 
17024
 
 
17025
# Take the output of nm and produce a listing of raw symbols and C names.
 
17026
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17027
 
 
17028
# Transform the output of nm in a proper C declaration
 
17029
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17030
 
 
17031
# Transform the output of nm in a C name address pair
 
17032
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17033
 
 
17034
# This is the shared library runtime path variable.
 
17035
runpath_var=$runpath_var
 
17036
 
 
17037
# This is the shared library path variable.
 
17038
shlibpath_var=$shlibpath_var
 
17039
 
 
17040
# Is shlibpath searched before the hard-coded library search path?
 
17041
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17042
 
 
17043
# How to hardcode a shared library path into an executable.
 
17044
hardcode_action=$hardcode_action_F77
 
17045
 
 
17046
# Whether we should hardcode library paths into libraries.
 
17047
hardcode_into_libs=$hardcode_into_libs
 
17048
 
 
17049
# Flag to hardcode \$libdir into a binary during linking.
 
17050
# This must work even if \$libdir does not exist.
 
17051
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17052
 
 
17053
# If ld is used when linking, flag to hardcode \$libdir into
 
17054
# a binary during linking. This must work even if \$libdir does
 
17055
# not exist.
 
17056
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17057
 
 
17058
# Whether we need a single -rpath flag with a separated argument.
 
17059
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17060
 
 
17061
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17062
# resulting binary.
 
17063
hardcode_direct=$hardcode_direct_F77
 
17064
 
 
17065
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17066
# resulting binary.
 
17067
hardcode_minus_L=$hardcode_minus_L_F77
 
17068
 
 
17069
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17070
# the resulting binary.
 
17071
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17072
 
 
17073
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17074
# and all subsequent libraries and executables linked against it.
 
17075
hardcode_automatic=$hardcode_automatic_F77
 
17076
 
 
17077
# Variables whose values should be saved in libtool wrapper scripts and
 
17078
# restored at relink time.
 
17079
variables_saved_for_relink="$variables_saved_for_relink"
 
17080
 
 
17081
# Whether libtool must link a program against all its dependency libraries.
 
17082
link_all_deplibs=$link_all_deplibs_F77
 
17083
 
 
17084
# Compile-time system search path for libraries
 
17085
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17086
 
 
17087
# Run-time system search path for libraries
 
17088
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17089
 
 
17090
# Fix the shell variable \$srcfile for the compiler.
 
17091
fix_srcfile_path=$lt_fix_srcfile_path
 
17092
 
 
17093
# Set to yes if exported symbols are required.
 
17094
always_export_symbols=$always_export_symbols_F77
 
17095
 
 
17096
# The commands to list exported symbols.
 
17097
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17098
 
 
17099
# The commands to extract the exported symbol list from a shared archive.
 
17100
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17101
 
 
17102
# Symbols that should not be listed in the preloaded symbols.
 
17103
exclude_expsyms=$lt_exclude_expsyms_F77
 
17104
 
 
17105
# Symbols that must always be exported.
 
17106
include_expsyms=$lt_include_expsyms_F77
 
17107
 
 
17108
# ### END LIBTOOL TAG CONFIG: $tagname
 
17109
 
 
17110
__EOF__
 
17111
 
 
17112
 
 
17113
else
 
17114
  # If there is no Makefile yet, we rely on a make rule to execute
 
17115
  # `config.status --recheck' to rerun these tests and create the
 
17116
  # libtool script then.
 
17117
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17118
  if test -f "$ltmain_in"; then
 
17119
    test -f Makefile && make "$ltmain"
 
17120
  fi
 
17121
fi
 
17122
 
 
17123
 
 
17124
ac_ext=c
 
17125
ac_cpp='$CPP $CPPFLAGS'
 
17126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17129
 
 
17130
CC="$lt_save_CC"
 
17131
 
 
17132
        else
 
17133
          tagname=""
 
17134
        fi
 
17135
        ;;
 
17136
 
 
17137
      GCJ)
 
17138
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17139
 
 
17140
 
 
17141
# Source file extension for Java test sources.
 
17142
ac_ext=java
 
17143
 
 
17144
# Object file extension for compiled Java test sources.
 
17145
objext=o
 
17146
objext_GCJ=$objext
 
17147
 
 
17148
# Code to be used in simple compile tests
 
17149
lt_simple_compile_test_code="class foo {}"
 
17150
 
 
17151
# Code to be used in simple link tests
 
17152
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
17153
 
 
17154
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17155
 
 
17156
# If no C compiler was specified, use CC.
 
17157
LTCC=${LTCC-"$CC"}
 
17158
 
 
17159
# If no C compiler flags were specified, use CFLAGS.
 
17160
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
17161
 
 
17162
# Allow CC to be a program name with arguments.
 
17163
compiler=$CC
 
17164
 
 
17165
 
 
17166
# save warnings/boilerplate of simple test code
 
17167
ac_outfile=conftest.$ac_objext
 
17168
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17169
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17170
_lt_compiler_boilerplate=`cat conftest.err`
 
17171
$rm conftest*
 
17172
 
 
17173
ac_outfile=conftest.$ac_objext
 
17174
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
17175
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17176
_lt_linker_boilerplate=`cat conftest.err`
 
17177
$rm conftest*
 
17178
 
 
17179
 
 
17180
# Allow CC to be a program name with arguments.
 
17181
lt_save_CC="$CC"
 
17182
CC=${GCJ-"gcj"}
 
17183
compiler=$CC
 
17184
compiler_GCJ=$CC
 
17185
for cc_temp in $compiler""; do
 
17186
  case $cc_temp in
 
17187
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17188
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17189
    \-*) ;;
 
17190
    *) break;;
 
17191
  esac
 
17192
done
 
17193
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17194
 
 
17195
 
 
17196
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17197
archive_cmds_need_lc_GCJ=no
 
17198
 
 
17199
old_archive_cmds_GCJ=$old_archive_cmds
 
17200
 
 
17201
 
 
17202
lt_prog_compiler_no_builtin_flag_GCJ=
 
17203
 
 
17204
if test "$GCC" = yes; then
 
17205
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17206
 
 
17207
 
 
17208
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17209
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
17210
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17212
else
 
17213
  lt_cv_prog_compiler_rtti_exceptions=no
 
17214
  ac_outfile=conftest.$ac_objext
 
17215
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17216
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17217
   # Insert the option either (1) after the last *FLAGS variable, or
 
17218
   # (2) before a word containing "conftest.", or (3) at the end.
 
17219
   # Note that $ac_compile itself does not contain backslashes and begins
 
17220
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17221
   # The option is referenced via a variable to avoid confusing sed.
 
17222
   lt_compile=`echo "$ac_compile" | $SED \
 
17223
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17224
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17225
   -e 's:$: $lt_compiler_flag:'`
 
17226
   (eval echo "\"\$as_me:17226: $lt_compile\"" >&5)
 
17227
   (eval "$lt_compile" 2>conftest.err)
 
17228
   ac_status=$?
 
17229
   cat conftest.err >&5
 
17230
   echo "$as_me:17230: \$? = $ac_status" >&5
 
17231
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17232
     # The compiler can only warn and ignore the option if not recognized
 
17233
     # So say no if there are warnings other than the usual output.
 
17234
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17235
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17236
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17237
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17238
     fi
 
17239
   fi
 
17240
   $rm conftest*
 
17241
 
 
17242
fi
 
17243
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17244
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
17245
 
 
17246
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17247
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17248
else
 
17249
    :
 
17250
fi
 
17251
 
 
17252
fi
 
17253
 
 
17254
lt_prog_compiler_wl_GCJ=
 
17255
lt_prog_compiler_pic_GCJ=
 
17256
lt_prog_compiler_static_GCJ=
 
17257
 
 
17258
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17259
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
17260
 
 
17261
  if test "$GCC" = yes; then
 
17262
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17263
    lt_prog_compiler_static_GCJ='-static'
 
17264
 
 
17265
    case $host_os in
 
17266
      aix*)
 
17267
      # All AIX code is PIC.
 
17268
      if test "$host_cpu" = ia64; then
 
17269
        # AIX 5 now supports IA64 processor
 
17270
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17271
      fi
 
17272
      ;;
 
17273
 
 
17274
    amigaos*)
 
17275
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17276
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17277
      # like `-m68040'.
 
17278
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17279
      ;;
 
17280
 
 
17281
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17282
      # PIC is the default for these OSes.
 
17283
      ;;
 
17284
 
 
17285
    mingw* | cygwin* | pw32* | os2*)
 
17286
      # This hack is so that the source file can tell whether it is being
 
17287
      # built for inclusion in a dll (and should export symbols for example).
 
17288
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17289
      # (--disable-auto-import) libraries
 
17290
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17291
      ;;
 
17292
 
 
17293
    darwin* | rhapsody*)
 
17294
      # PIC is the default on this platform
 
17295
      # Common symbols not allowed in MH_DYLIB files
 
17296
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17297
      ;;
 
17298
 
 
17299
    interix[3-9]*)
 
17300
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17301
      # Instead, we relocate shared libraries at runtime.
 
17302
      ;;
 
17303
 
 
17304
    msdosdjgpp*)
 
17305
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17306
      # on systems that don't support them.
 
17307
      lt_prog_compiler_can_build_shared_GCJ=no
 
17308
      enable_shared=no
 
17309
      ;;
 
17310
 
 
17311
    sysv4*MP*)
 
17312
      if test -d /usr/nec; then
 
17313
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17314
      fi
 
17315
      ;;
 
17316
 
 
17317
    hpux*)
 
17318
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17319
      # not for PA HP-UX.
 
17320
      case $host_cpu in
 
17321
      hppa*64*|ia64*)
 
17322
        # +Z the default
 
17323
        ;;
 
17324
      *)
 
17325
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17326
        ;;
 
17327
      esac
 
17328
      ;;
 
17329
 
 
17330
    *)
 
17331
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17332
      ;;
 
17333
    esac
 
17334
  else
 
17335
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17336
    case $host_os in
 
17337
    aix*)
 
17338
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17339
      if test "$host_cpu" = ia64; then
 
17340
        # AIX 5 now supports IA64 processor
 
17341
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17342
      else
 
17343
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17344
      fi
 
17345
      ;;
 
17346
      darwin*)
 
17347
        # PIC is the default on this platform
 
17348
        # Common symbols not allowed in MH_DYLIB files
 
17349
       case $cc_basename in
 
17350
         xlc*)
 
17351
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17352
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17353
         ;;
 
17354
       esac
 
17355
       ;;
 
17356
 
 
17357
    mingw* | cygwin* | pw32* | os2*)
 
17358
      # This hack is so that the source file can tell whether it is being
 
17359
      # built for inclusion in a dll (and should export symbols for example).
 
17360
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17361
      ;;
 
17362
 
 
17363
    hpux9* | hpux10* | hpux11*)
 
17364
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17365
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17366
      # not for PA HP-UX.
 
17367
      case $host_cpu in
 
17368
      hppa*64*|ia64*)
 
17369
        # +Z the default
 
17370
        ;;
 
17371
      *)
 
17372
        lt_prog_compiler_pic_GCJ='+Z'
 
17373
        ;;
 
17374
      esac
 
17375
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17376
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17377
      ;;
 
17378
 
 
17379
    irix5* | irix6* | nonstopux*)
 
17380
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17381
      # PIC (with -KPIC) is the default.
 
17382
      lt_prog_compiler_static_GCJ='-non_shared'
 
17383
      ;;
 
17384
 
 
17385
    newsos6)
 
17386
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17387
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17388
      ;;
 
17389
 
 
17390
    linux* | k*bsd*-gnu)
 
17391
      case $cc_basename in
 
17392
      icc* | ecc*)
 
17393
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17394
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17395
        lt_prog_compiler_static_GCJ='-static'
 
17396
        ;;
 
17397
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17398
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17399
        # which looks to be a dead project)
 
17400
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17401
        lt_prog_compiler_pic_GCJ='-fpic'
 
17402
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17403
        ;;
 
17404
      ccc*)
 
17405
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17406
        # All Alpha code is PIC.
 
17407
        lt_prog_compiler_static_GCJ='-non_shared'
 
17408
        ;;
 
17409
      *)
 
17410
        case `$CC -V 2>&1 | sed 5q` in
 
17411
        *Sun\ C*)
 
17412
          # Sun C 5.9
 
17413
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17414
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17415
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17416
          ;;
 
17417
        *Sun\ F*)
 
17418
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17419
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17420
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17421
          lt_prog_compiler_wl_GCJ=''
 
17422
          ;;
 
17423
        esac
 
17424
        ;;
 
17425
      esac
 
17426
      ;;
 
17427
 
 
17428
    osf3* | osf4* | osf5*)
 
17429
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17430
      # All OSF/1 code is PIC.
 
17431
      lt_prog_compiler_static_GCJ='-non_shared'
 
17432
      ;;
 
17433
 
 
17434
    rdos*)
 
17435
      lt_prog_compiler_static_GCJ='-non_shared'
 
17436
      ;;
 
17437
 
 
17438
    solaris*)
 
17439
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17440
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17441
      case $cc_basename in
 
17442
      f77* | f90* | f95*)
 
17443
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17444
      *)
 
17445
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17446
      esac
 
17447
      ;;
 
17448
 
 
17449
    sunos4*)
 
17450
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17451
      lt_prog_compiler_pic_GCJ='-PIC'
 
17452
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17453
      ;;
 
17454
 
 
17455
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17456
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17457
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17458
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17459
      ;;
 
17460
 
 
17461
    sysv4*MP*)
 
17462
      if test -d /usr/nec ;then
 
17463
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17464
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17465
      fi
 
17466
      ;;
 
17467
 
 
17468
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17469
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17470
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17471
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17472
      ;;
 
17473
 
 
17474
    unicos*)
 
17475
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17476
      lt_prog_compiler_can_build_shared_GCJ=no
 
17477
      ;;
 
17478
 
 
17479
    uts4*)
 
17480
      lt_prog_compiler_pic_GCJ='-pic'
 
17481
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17482
      ;;
 
17483
 
 
17484
    *)
 
17485
      lt_prog_compiler_can_build_shared_GCJ=no
 
17486
      ;;
 
17487
    esac
 
17488
  fi
 
17489
 
 
17490
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17491
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
17492
 
 
17493
#
 
17494
# Check to make sure the PIC flag actually works.
 
17495
#
 
17496
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17497
 
 
17498
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17499
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
17500
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17502
else
 
17503
  lt_prog_compiler_pic_works_GCJ=no
 
17504
  ac_outfile=conftest.$ac_objext
 
17505
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17506
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17507
   # Insert the option either (1) after the last *FLAGS variable, or
 
17508
   # (2) before a word containing "conftest.", or (3) at the end.
 
17509
   # Note that $ac_compile itself does not contain backslashes and begins
 
17510
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17511
   # The option is referenced via a variable to avoid confusing sed.
 
17512
   lt_compile=`echo "$ac_compile" | $SED \
 
17513
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17514
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17515
   -e 's:$: $lt_compiler_flag:'`
 
17516
   (eval echo "\"\$as_me:17516: $lt_compile\"" >&5)
 
17517
   (eval "$lt_compile" 2>conftest.err)
 
17518
   ac_status=$?
 
17519
   cat conftest.err >&5
 
17520
   echo "$as_me:17520: \$? = $ac_status" >&5
 
17521
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17522
     # The compiler can only warn and ignore the option if not recognized
 
17523
     # So say no if there are warnings other than the usual output.
 
17524
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17525
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17526
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17527
       lt_prog_compiler_pic_works_GCJ=yes
 
17528
     fi
 
17529
   fi
 
17530
   $rm conftest*
 
17531
 
 
17532
fi
 
17533
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
17534
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
17535
 
 
17536
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17537
    case $lt_prog_compiler_pic_GCJ in
 
17538
     "" | " "*) ;;
 
17539
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17540
     esac
 
17541
else
 
17542
    lt_prog_compiler_pic_GCJ=
 
17543
     lt_prog_compiler_can_build_shared_GCJ=no
 
17544
fi
 
17545
 
 
17546
fi
 
17547
case $host_os in
 
17548
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17549
  *djgpp*)
 
17550
    lt_prog_compiler_pic_GCJ=
 
17551
    ;;
 
17552
  *)
 
17553
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17554
    ;;
 
17555
esac
 
17556
 
 
17557
#
 
17558
# Check to make sure the static flag actually works.
 
17559
#
 
17560
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17561
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17562
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17563
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17565
else
 
17566
  lt_prog_compiler_static_works_GCJ=no
 
17567
   save_LDFLAGS="$LDFLAGS"
 
17568
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17569
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17570
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17571
     # The linker can only warn and ignore the option if not recognized
 
17572
     # So say no if there are warnings
 
17573
     if test -s conftest.err; then
 
17574
       # Append any errors to the config.log.
 
17575
       cat conftest.err 1>&5
 
17576
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17577
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17578
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17579
         lt_prog_compiler_static_works_GCJ=yes
 
17580
       fi
 
17581
     else
 
17582
       lt_prog_compiler_static_works_GCJ=yes
 
17583
     fi
 
17584
   fi
 
17585
   $rm conftest*
 
17586
   LDFLAGS="$save_LDFLAGS"
 
17587
 
 
17588
fi
 
17589
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
17590
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
17591
 
 
17592
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17593
    :
 
17594
else
 
17595
    lt_prog_compiler_static_GCJ=
 
17596
fi
 
17597
 
 
17598
 
 
17599
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17600
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
17601
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17603
else
 
17604
  lt_cv_prog_compiler_c_o_GCJ=no
 
17605
   $rm -r conftest 2>/dev/null
 
17606
   mkdir conftest
 
17607
   cd conftest
 
17608
   mkdir out
 
17609
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17610
 
 
17611
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17612
   # Insert the option either (1) after the last *FLAGS variable, or
 
17613
   # (2) before a word containing "conftest.", or (3) at the end.
 
17614
   # Note that $ac_compile itself does not contain backslashes and begins
 
17615
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17616
   lt_compile=`echo "$ac_compile" | $SED \
 
17617
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17618
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17619
   -e 's:$: $lt_compiler_flag:'`
 
17620
   (eval echo "\"\$as_me:17620: $lt_compile\"" >&5)
 
17621
   (eval "$lt_compile" 2>out/conftest.err)
 
17622
   ac_status=$?
 
17623
   cat out/conftest.err >&5
 
17624
   echo "$as_me:17624: \$? = $ac_status" >&5
 
17625
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17626
   then
 
17627
     # The compiler can only warn and ignore the option if not recognized
 
17628
     # So say no if there are warnings
 
17629
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17630
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17631
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17632
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17633
     fi
 
17634
   fi
 
17635
   chmod u+w . 2>&5
 
17636
   $rm conftest*
 
17637
   # SGI C++ compiler will create directory out/ii_files/ for
 
17638
   # template instantiation
 
17639
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17640
   $rm out/* && rmdir out
 
17641
   cd ..
 
17642
   rmdir conftest
 
17643
   $rm conftest*
 
17644
 
 
17645
fi
 
17646
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17647
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17648
 
 
17649
 
 
17650
hard_links="nottested"
 
17651
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17652
  # do not overwrite the value of need_locks provided by the user
 
17653
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17654
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17655
  hard_links=yes
 
17656
  $rm conftest*
 
17657
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17658
  touch conftest.a
 
17659
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17660
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17661
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17662
echo "${ECHO_T}$hard_links" >&6; }
 
17663
  if test "$hard_links" = no; then
 
17664
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17665
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17666
    need_locks=warn
 
17667
  fi
 
17668
else
 
17669
  need_locks=no
 
17670
fi
 
17671
 
 
17672
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17673
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17674
 
 
17675
  runpath_var=
 
17676
  allow_undefined_flag_GCJ=
 
17677
  enable_shared_with_static_runtimes_GCJ=no
 
17678
  archive_cmds_GCJ=
 
17679
  archive_expsym_cmds_GCJ=
 
17680
  old_archive_From_new_cmds_GCJ=
 
17681
  old_archive_from_expsyms_cmds_GCJ=
 
17682
  export_dynamic_flag_spec_GCJ=
 
17683
  whole_archive_flag_spec_GCJ=
 
17684
  thread_safe_flag_spec_GCJ=
 
17685
  hardcode_libdir_flag_spec_GCJ=
 
17686
  hardcode_libdir_flag_spec_ld_GCJ=
 
17687
  hardcode_libdir_separator_GCJ=
 
17688
  hardcode_direct_GCJ=no
 
17689
  hardcode_minus_L_GCJ=no
 
17690
  hardcode_shlibpath_var_GCJ=unsupported
 
17691
  link_all_deplibs_GCJ=unknown
 
17692
  hardcode_automatic_GCJ=no
 
17693
  module_cmds_GCJ=
 
17694
  module_expsym_cmds_GCJ=
 
17695
  always_export_symbols_GCJ=no
 
17696
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17697
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17698
  # included in the symbol list
 
17699
  include_expsyms_GCJ=
 
17700
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17701
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17702
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17703
  # as well as any symbol that contains `d'.
 
17704
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17705
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17706
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17707
  # the symbol is explicitly referenced.  Since portable code cannot
 
17708
  # rely on this symbol name, it's probably fine to never include it in
 
17709
  # preloaded symbol tables.
 
17710
  extract_expsyms_cmds=
 
17711
  # Just being paranoid about ensuring that cc_basename is set.
 
17712
  for cc_temp in $compiler""; do
 
17713
  case $cc_temp in
 
17714
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17715
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17716
    \-*) ;;
 
17717
    *) break;;
 
17718
  esac
 
17719
done
 
17720
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17721
 
 
17722
  case $host_os in
 
17723
  cygwin* | mingw* | pw32*)
 
17724
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17725
    # When not using gcc, we currently assume that we are using
 
17726
    # Microsoft Visual C++.
 
17727
    if test "$GCC" != yes; then
 
17728
      with_gnu_ld=no
 
17729
    fi
 
17730
    ;;
 
17731
  interix*)
 
17732
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17733
    with_gnu_ld=yes
 
17734
    ;;
 
17735
  openbsd*)
 
17736
    with_gnu_ld=no
 
17737
    ;;
 
17738
  esac
 
17739
 
 
17740
  ld_shlibs_GCJ=yes
 
17741
  if test "$with_gnu_ld" = yes; then
 
17742
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17743
    wlarc='${wl}'
 
17744
 
 
17745
    # Set some defaults for GNU ld with shared library support. These
 
17746
    # are reset later if shared libraries are not supported. Putting them
 
17747
    # here allows them to be overridden if necessary.
 
17748
    runpath_var=LD_RUN_PATH
 
17749
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17750
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17751
    # ancient GNU ld didn't support --whole-archive et. al.
 
17752
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17753
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17754
      else
 
17755
        whole_archive_flag_spec_GCJ=
 
17756
    fi
 
17757
    supports_anon_versioning=no
 
17758
    case `$LD -v 2>/dev/null` in
 
17759
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17760
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17761
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17762
      *\ 2.11.*) ;; # other 2.11 versions
 
17763
      *) supports_anon_versioning=yes ;;
 
17764
    esac
 
17765
 
 
17766
    # See if GNU ld supports shared libraries.
 
17767
    case $host_os in
 
17768
    aix3* | aix4* | aix5*)
 
17769
      # On AIX/PPC, the GNU linker is very broken
 
17770
      if test "$host_cpu" != ia64; then
 
17771
        ld_shlibs_GCJ=no
 
17772
        cat <<EOF 1>&2
 
17773
 
 
17774
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17775
*** to be unable to reliably create shared libraries on AIX.
 
17776
*** Therefore, libtool is disabling shared libraries support.  If you
 
17777
*** really care for shared libraries, you may want to modify your PATH
 
17778
*** so that a non-GNU linker is found, and then restart.
 
17779
 
 
17780
EOF
 
17781
      fi
 
17782
      ;;
 
17783
 
 
17784
    amigaos*)
 
17785
      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)'
 
17786
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17787
      hardcode_minus_L_GCJ=yes
 
17788
 
 
17789
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17790
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17791
      # to version 4, is to share data among multiple programs linked
 
17792
      # with the same dynamic library.  Since this doesn't match the
 
17793
      # behavior of shared libraries on other platforms, we can't use
 
17794
      # them.
 
17795
      ld_shlibs_GCJ=no
 
17796
      ;;
 
17797
 
 
17798
    beos*)
 
17799
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17800
        allow_undefined_flag_GCJ=unsupported
 
17801
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17802
        # support --undefined.  This deserves some investigation.  FIXME
 
17803
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17804
      else
 
17805
        ld_shlibs_GCJ=no
 
17806
      fi
 
17807
      ;;
 
17808
 
 
17809
    cygwin* | mingw* | pw32*)
 
17810
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17811
      # as there is no search path for DLLs.
 
17812
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17813
      allow_undefined_flag_GCJ=unsupported
 
17814
      always_export_symbols_GCJ=no
 
17815
      enable_shared_with_static_runtimes_GCJ=yes
 
17816
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17817
 
 
17818
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17819
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17820
        # If the export-symbols file already is a .def file (1st line
 
17821
        # is EXPORTS), use it as is; otherwise, prepend...
 
17822
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17823
          cp $export_symbols $output_objdir/$soname.def;
 
17824
        else
 
17825
          echo EXPORTS > $output_objdir/$soname.def;
 
17826
          cat $export_symbols >> $output_objdir/$soname.def;
 
17827
        fi~
 
17828
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17829
      else
 
17830
        ld_shlibs_GCJ=no
 
17831
      fi
 
17832
      ;;
 
17833
 
 
17834
    interix[3-9]*)
 
17835
      hardcode_direct_GCJ=no
 
17836
      hardcode_shlibpath_var_GCJ=no
 
17837
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17838
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17839
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17840
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17841
      # default) and relocated if they conflict, which is a slow very memory
 
17842
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17843
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17844
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17845
      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'
 
17846
      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'
 
17847
      ;;
 
17848
 
 
17849
    gnu* | linux* | k*bsd*-gnu)
 
17850
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17851
        tmp_addflag=
 
17852
        case $cc_basename,$host_cpu in
 
17853
        pgcc*)                          # Portland Group C compiler
 
17854
          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'
 
17855
          tmp_addflag=' $pic_flag'
 
17856
          ;;
 
17857
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17858
          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'
 
17859
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17860
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17861
          tmp_addflag=' -i_dynamic' ;;
 
17862
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17863
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17864
        ifc* | ifort*)                  # Intel Fortran compiler
 
17865
          tmp_addflag=' -nofor_main' ;;
 
17866
        esac
 
17867
        case `$CC -V 2>&1 | sed 5q` in
 
17868
        *Sun\ C*)                       # Sun C 5.9
 
17869
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17870
          tmp_sharedflag='-G' ;;
 
17871
        *Sun\ F*)                       # Sun Fortran 8.3
 
17872
          tmp_sharedflag='-G' ;;
 
17873
        *)
 
17874
          tmp_sharedflag='-shared' ;;
 
17875
        esac
 
17876
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17877
 
 
17878
        if test $supports_anon_versioning = yes; then
 
17879
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17880
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17881
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17882
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17883
        fi
 
17884
      else
 
17885
        ld_shlibs_GCJ=no
 
17886
      fi
 
17887
      ;;
 
17888
 
 
17889
    netbsd*)
 
17890
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17891
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17892
        wlarc=
 
17893
      else
 
17894
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17895
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17896
      fi
 
17897
      ;;
 
17898
 
 
17899
    solaris*)
 
17900
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17901
        ld_shlibs_GCJ=no
 
17902
        cat <<EOF 1>&2
 
17903
 
 
17904
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17905
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17906
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17907
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17908
*** your PATH or compiler configuration so that the native linker is
 
17909
*** used, and then restart.
 
17910
 
 
17911
EOF
 
17912
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17913
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17914
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17915
      else
 
17916
        ld_shlibs_GCJ=no
 
17917
      fi
 
17918
      ;;
 
17919
 
 
17920
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17921
      case `$LD -v 2>&1` in
 
17922
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17923
        ld_shlibs_GCJ=no
 
17924
        cat <<_LT_EOF 1>&2
 
17925
 
 
17926
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17927
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17928
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17929
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17930
*** your PATH or compiler configuration so that the native linker is
 
17931
*** used, and then restart.
 
17932
 
 
17933
_LT_EOF
 
17934
        ;;
 
17935
        *)
 
17936
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17937
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17938
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17939
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17940
          else
 
17941
            ld_shlibs_GCJ=no
 
17942
          fi
 
17943
        ;;
 
17944
      esac
 
17945
      ;;
 
17946
 
 
17947
    sunos4*)
 
17948
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17949
      wlarc=
 
17950
      hardcode_direct_GCJ=yes
 
17951
      hardcode_shlibpath_var_GCJ=no
 
17952
      ;;
 
17953
 
 
17954
    *)
 
17955
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17956
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17957
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17958
      else
 
17959
        ld_shlibs_GCJ=no
 
17960
      fi
 
17961
      ;;
 
17962
    esac
 
17963
 
 
17964
    if test "$ld_shlibs_GCJ" = no; then
 
17965
      runpath_var=
 
17966
      hardcode_libdir_flag_spec_GCJ=
 
17967
      export_dynamic_flag_spec_GCJ=
 
17968
      whole_archive_flag_spec_GCJ=
 
17969
    fi
 
17970
  else
 
17971
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17972
    case $host_os in
 
17973
    aix3*)
 
17974
      allow_undefined_flag_GCJ=unsupported
 
17975
      always_export_symbols_GCJ=yes
 
17976
      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'
 
17977
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17978
      # are no directories specified by -L.
 
17979
      hardcode_minus_L_GCJ=yes
 
17980
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17981
        # Neither direct hardcoding nor static linking is supported with a
 
17982
        # broken collect2.
 
17983
        hardcode_direct_GCJ=unsupported
 
17984
      fi
 
17985
      ;;
 
17986
 
 
17987
    aix4* | aix5*)
 
17988
      if test "$host_cpu" = ia64; then
 
17989
        # On IA64, the linker does run time linking by default, so we don't
 
17990
        # have to do anything special.
 
17991
        aix_use_runtimelinking=no
 
17992
        exp_sym_flag='-Bexport'
 
17993
        no_entry_flag=""
 
17994
      else
 
17995
        # If we're using GNU nm, then we don't want the "-C" option.
 
17996
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17997
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17998
          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'
 
17999
        else
 
18000
          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'
 
18001
        fi
 
18002
        aix_use_runtimelinking=no
 
18003
 
 
18004
        # Test if we are trying to use run time linking or normal
 
18005
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18006
        # need to do runtime linking.
 
18007
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
18008
          for ld_flag in $LDFLAGS; do
 
18009
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18010
            aix_use_runtimelinking=yes
 
18011
            break
 
18012
          fi
 
18013
          done
 
18014
          ;;
 
18015
        esac
 
18016
 
 
18017
        exp_sym_flag='-bexport'
 
18018
        no_entry_flag='-bnoentry'
 
18019
      fi
 
18020
 
 
18021
      # When large executables or shared objects are built, AIX ld can
 
18022
      # have problems creating the table of contents.  If linking a library
 
18023
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18024
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18025
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18026
 
 
18027
      archive_cmds_GCJ=''
 
18028
      hardcode_direct_GCJ=yes
 
18029
      hardcode_libdir_separator_GCJ=':'
 
18030
      link_all_deplibs_GCJ=yes
 
18031
 
 
18032
      if test "$GCC" = yes; then
 
18033
        case $host_os in aix4.[012]|aix4.[012].*)
 
18034
        # We only want to do this on AIX 4.2 and lower, the check
 
18035
        # below for broken collect2 doesn't work under 4.3+
 
18036
          collect2name=`${CC} -print-prog-name=collect2`
 
18037
          if test -f "$collect2name" && \
 
18038
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18039
          then
 
18040
          # We have reworked collect2
 
18041
          :
 
18042
          else
 
18043
          # We have old collect2
 
18044
          hardcode_direct_GCJ=unsupported
 
18045
          # It fails to find uninstalled libraries when the uninstalled
 
18046
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18047
          # to unsupported forces relinking
 
18048
          hardcode_minus_L_GCJ=yes
 
18049
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18050
          hardcode_libdir_separator_GCJ=
 
18051
          fi
 
18052
          ;;
 
18053
        esac
 
18054
        shared_flag='-shared'
 
18055
        if test "$aix_use_runtimelinking" = yes; then
 
18056
          shared_flag="$shared_flag "'${wl}-G'
 
18057
        fi
 
18058
      else
 
18059
        # not using gcc
 
18060
        if test "$host_cpu" = ia64; then
 
18061
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18062
        # chokes on -Wl,-G. The following line is correct:
 
18063
          shared_flag='-G'
 
18064
        else
 
18065
          if test "$aix_use_runtimelinking" = yes; then
 
18066
            shared_flag='${wl}-G'
 
18067
          else
 
18068
            shared_flag='${wl}-bM:SRE'
 
18069
          fi
 
18070
        fi
 
18071
      fi
 
18072
 
 
18073
      # It seems that -bexpall does not export symbols beginning with
 
18074
      # underscore (_), so it is better to generate a list of symbols to export.
 
18075
      always_export_symbols_GCJ=yes
 
18076
      if test "$aix_use_runtimelinking" = yes; then
 
18077
        # Warning - without using the other runtime loading flags (-brtl),
 
18078
        # -berok will link without error, but may produce a broken library.
 
18079
        allow_undefined_flag_GCJ='-berok'
 
18080
       # Determine the default libpath from the value encoded in an empty executable.
 
18081
       cat >conftest.$ac_ext <<_ACEOF
 
18082
/* confdefs.h.  */
 
18083
_ACEOF
 
18084
cat confdefs.h >>conftest.$ac_ext
 
18085
cat >>conftest.$ac_ext <<_ACEOF
 
18086
/* end confdefs.h.  */
 
18087
 
 
18088
int
 
18089
main ()
 
18090
{
 
18091
 
 
18092
  ;
 
18093
  return 0;
 
18094
}
 
18095
_ACEOF
 
18096
rm -f conftest.$ac_objext conftest$ac_exeext
 
18097
if { (ac_try="$ac_link"
 
18098
case "(($ac_try" in
 
18099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18100
  *) ac_try_echo=$ac_try;;
 
18101
esac
 
18102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18103
  (eval "$ac_link") 2>conftest.er1
 
18104
  ac_status=$?
 
18105
  grep -v '^ *+' conftest.er1 >conftest.err
 
18106
  rm -f conftest.er1
 
18107
  cat conftest.err >&5
 
18108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18109
  (exit $ac_status); } && {
 
18110
         test -z "$ac_c_werror_flag" ||
 
18111
         test ! -s conftest.err
 
18112
       } && test -s conftest$ac_exeext &&
 
18113
       $as_test_x conftest$ac_exeext; then
 
18114
 
 
18115
lt_aix_libpath_sed='
 
18116
    /Import File Strings/,/^$/ {
 
18117
        /^0/ {
 
18118
            s/^0  *\(.*\)$/\1/
 
18119
            p
 
18120
        }
 
18121
    }'
 
18122
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18123
# Check for a 64-bit object if we didn't find anything.
 
18124
if test -z "$aix_libpath"; then
 
18125
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18126
fi
 
18127
else
 
18128
  echo "$as_me: failed program was:" >&5
 
18129
sed 's/^/| /' conftest.$ac_ext >&5
 
18130
 
 
18131
 
 
18132
fi
 
18133
 
 
18134
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18135
      conftest$ac_exeext conftest.$ac_ext
 
18136
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18137
 
 
18138
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18139
        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"
 
18140
       else
 
18141
        if test "$host_cpu" = ia64; then
 
18142
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18143
          allow_undefined_flag_GCJ="-z nodefs"
 
18144
          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"
 
18145
        else
 
18146
         # Determine the default libpath from the value encoded in an empty executable.
 
18147
         cat >conftest.$ac_ext <<_ACEOF
 
18148
/* confdefs.h.  */
 
18149
_ACEOF
 
18150
cat confdefs.h >>conftest.$ac_ext
 
18151
cat >>conftest.$ac_ext <<_ACEOF
 
18152
/* end confdefs.h.  */
 
18153
 
 
18154
int
 
18155
main ()
 
18156
{
 
18157
 
 
18158
  ;
 
18159
  return 0;
 
18160
}
 
18161
_ACEOF
 
18162
rm -f conftest.$ac_objext conftest$ac_exeext
 
18163
if { (ac_try="$ac_link"
 
18164
case "(($ac_try" in
 
18165
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18166
  *) ac_try_echo=$ac_try;;
 
18167
esac
 
18168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18169
  (eval "$ac_link") 2>conftest.er1
 
18170
  ac_status=$?
 
18171
  grep -v '^ *+' conftest.er1 >conftest.err
 
18172
  rm -f conftest.er1
 
18173
  cat conftest.err >&5
 
18174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18175
  (exit $ac_status); } && {
 
18176
         test -z "$ac_c_werror_flag" ||
 
18177
         test ! -s conftest.err
 
18178
       } && test -s conftest$ac_exeext &&
 
18179
       $as_test_x conftest$ac_exeext; then
 
18180
 
 
18181
lt_aix_libpath_sed='
 
18182
    /Import File Strings/,/^$/ {
 
18183
        /^0/ {
 
18184
            s/^0  *\(.*\)$/\1/
 
18185
            p
 
18186
        }
 
18187
    }'
 
18188
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18189
# Check for a 64-bit object if we didn't find anything.
 
18190
if test -z "$aix_libpath"; then
 
18191
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18192
fi
 
18193
else
 
18194
  echo "$as_me: failed program was:" >&5
 
18195
sed 's/^/| /' conftest.$ac_ext >&5
 
18196
 
 
18197
 
 
18198
fi
 
18199
 
 
18200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18201
      conftest$ac_exeext conftest.$ac_ext
 
18202
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18203
 
 
18204
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18205
          # Warning - without using the other run time loading flags,
 
18206
          # -berok will link without error, but may produce a broken library.
 
18207
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18208
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18209
          # Exported symbols can be pulled into shared objects from archives
 
18210
          whole_archive_flag_spec_GCJ='$convenience'
 
18211
          archive_cmds_need_lc_GCJ=yes
 
18212
          # This is similar to how AIX traditionally builds its shared libraries.
 
18213
          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'
 
18214
        fi
 
18215
      fi
 
18216
      ;;
 
18217
 
 
18218
    amigaos*)
 
18219
      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)'
 
18220
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18221
      hardcode_minus_L_GCJ=yes
 
18222
      # see comment about different semantics on the GNU ld section
 
18223
      ld_shlibs_GCJ=no
 
18224
      ;;
 
18225
 
 
18226
    bsdi[45]*)
 
18227
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18228
      ;;
 
18229
 
 
18230
    cygwin* | mingw* | pw32*)
 
18231
      # When not using gcc, we currently assume that we are using
 
18232
      # Microsoft Visual C++.
 
18233
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18234
      # no search path for DLLs.
 
18235
      hardcode_libdir_flag_spec_GCJ=' '
 
18236
      allow_undefined_flag_GCJ=unsupported
 
18237
      # Tell ltmain to make .lib files, not .a files.
 
18238
      libext=lib
 
18239
      # Tell ltmain to make .dll files, not .so files.
 
18240
      shrext_cmds=".dll"
 
18241
      # FIXME: Setting linknames here is a bad hack.
 
18242
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18243
      # The linker will automatically build a .lib file if we build a DLL.
 
18244
      old_archive_From_new_cmds_GCJ='true'
 
18245
      # FIXME: Should let the user specify the lib program.
 
18246
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18247
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18248
      enable_shared_with_static_runtimes_GCJ=yes
 
18249
      ;;
 
18250
 
 
18251
    darwin* | rhapsody*)
 
18252
      case $host_os in
 
18253
        rhapsody* | darwin1.[012])
 
18254
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18255
         ;;
 
18256
       *) # Darwin 1.3 on
 
18257
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18258
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18259
         else
 
18260
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18261
             10.[012])
 
18262
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18263
               ;;
 
18264
             10.*)
 
18265
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18266
               ;;
 
18267
           esac
 
18268
         fi
 
18269
         ;;
 
18270
      esac
 
18271
      archive_cmds_need_lc_GCJ=no
 
18272
      hardcode_direct_GCJ=no
 
18273
      hardcode_automatic_GCJ=yes
 
18274
      hardcode_shlibpath_var_GCJ=unsupported
 
18275
      whole_archive_flag_spec_GCJ=''
 
18276
      link_all_deplibs_GCJ=yes
 
18277
    if test "$GCC" = yes ; then
 
18278
        output_verbose_link_cmd='echo'
 
18279
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18280
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18281
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18282
      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}'
 
18283
      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}'
 
18284
    else
 
18285
      case $cc_basename in
 
18286
        xlc*)
 
18287
         output_verbose_link_cmd='echo'
 
18288
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18289
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18290
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18291
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18292
          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}'
 
18293
          ;;
 
18294
       *)
 
18295
         ld_shlibs_GCJ=no
 
18296
          ;;
 
18297
      esac
 
18298
    fi
 
18299
      ;;
 
18300
 
 
18301
    dgux*)
 
18302
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18303
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18304
      hardcode_shlibpath_var_GCJ=no
 
18305
      ;;
 
18306
 
 
18307
    freebsd1*)
 
18308
      ld_shlibs_GCJ=no
 
18309
      ;;
 
18310
 
 
18311
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18312
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18313
    # does not break anything, and helps significantly (at the cost of a little
 
18314
    # extra space).
 
18315
    freebsd2.2*)
 
18316
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18317
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18318
      hardcode_direct_GCJ=yes
 
18319
      hardcode_shlibpath_var_GCJ=no
 
18320
      ;;
 
18321
 
 
18322
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18323
    freebsd2*)
 
18324
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18325
      hardcode_direct_GCJ=yes
 
18326
      hardcode_minus_L_GCJ=yes
 
18327
      hardcode_shlibpath_var_GCJ=no
 
18328
      ;;
 
18329
 
 
18330
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18331
    freebsd* | dragonfly*)
 
18332
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18333
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18334
      hardcode_direct_GCJ=yes
 
18335
      hardcode_shlibpath_var_GCJ=no
 
18336
      ;;
 
18337
 
 
18338
    hpux9*)
 
18339
      if test "$GCC" = yes; then
 
18340
        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'
 
18341
      else
 
18342
        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'
 
18343
      fi
 
18344
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18345
      hardcode_libdir_separator_GCJ=:
 
18346
      hardcode_direct_GCJ=yes
 
18347
 
 
18348
      # hardcode_minus_L: Not really in the search PATH,
 
18349
      # but as the default location of the library.
 
18350
      hardcode_minus_L_GCJ=yes
 
18351
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18352
      ;;
 
18353
 
 
18354
    hpux10*)
 
18355
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18356
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18357
      else
 
18358
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18359
      fi
 
18360
      if test "$with_gnu_ld" = no; then
 
18361
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18362
        hardcode_libdir_separator_GCJ=:
 
18363
 
 
18364
        hardcode_direct_GCJ=yes
 
18365
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18366
 
 
18367
        # hardcode_minus_L: Not really in the search PATH,
 
18368
        # but as the default location of the library.
 
18369
        hardcode_minus_L_GCJ=yes
 
18370
      fi
 
18371
      ;;
 
18372
 
 
18373
    hpux11*)
 
18374
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18375
        case $host_cpu in
 
18376
        hppa*64*)
 
18377
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18378
          ;;
 
18379
        ia64*)
 
18380
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18381
          ;;
 
18382
        *)
 
18383
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18384
          ;;
 
18385
        esac
 
18386
      else
 
18387
        case $host_cpu in
 
18388
        hppa*64*)
 
18389
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18390
          ;;
 
18391
        ia64*)
 
18392
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18393
          ;;
 
18394
        *)
 
18395
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18396
          ;;
 
18397
        esac
 
18398
      fi
 
18399
      if test "$with_gnu_ld" = no; then
 
18400
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18401
        hardcode_libdir_separator_GCJ=:
 
18402
 
 
18403
        case $host_cpu in
 
18404
        hppa*64*|ia64*)
 
18405
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18406
          hardcode_direct_GCJ=no
 
18407
          hardcode_shlibpath_var_GCJ=no
 
18408
          ;;
 
18409
        *)
 
18410
          hardcode_direct_GCJ=yes
 
18411
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18412
 
 
18413
          # hardcode_minus_L: Not really in the search PATH,
 
18414
          # but as the default location of the library.
 
18415
          hardcode_minus_L_GCJ=yes
 
18416
          ;;
 
18417
        esac
 
18418
      fi
 
18419
      ;;
 
18420
 
 
18421
    irix5* | irix6* | nonstopux*)
 
18422
      if test "$GCC" = yes; then
 
18423
        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'
 
18424
      else
 
18425
        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'
 
18426
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18427
      fi
 
18428
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18429
      hardcode_libdir_separator_GCJ=:
 
18430
      link_all_deplibs_GCJ=yes
 
18431
      ;;
 
18432
 
 
18433
    netbsd*)
 
18434
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18435
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18436
      else
 
18437
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18438
      fi
 
18439
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18440
      hardcode_direct_GCJ=yes
 
18441
      hardcode_shlibpath_var_GCJ=no
 
18442
      ;;
 
18443
 
 
18444
    newsos6)
 
18445
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18446
      hardcode_direct_GCJ=yes
 
18447
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18448
      hardcode_libdir_separator_GCJ=:
 
18449
      hardcode_shlibpath_var_GCJ=no
 
18450
      ;;
 
18451
 
 
18452
    openbsd*)
 
18453
      if test -f /usr/libexec/ld.so; then
 
18454
        hardcode_direct_GCJ=yes
 
18455
        hardcode_shlibpath_var_GCJ=no
 
18456
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18457
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18458
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18459
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18460
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18461
        else
 
18462
          case $host_os in
 
18463
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18464
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18465
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18466
             ;;
 
18467
           *)
 
18468
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18469
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18470
             ;;
 
18471
          esac
 
18472
        fi
 
18473
      else
 
18474
        ld_shlibs_GCJ=no
 
18475
      fi
 
18476
      ;;
 
18477
 
 
18478
    os2*)
 
18479
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18480
      hardcode_minus_L_GCJ=yes
 
18481
      allow_undefined_flag_GCJ=unsupported
 
18482
      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'
 
18483
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18484
      ;;
 
18485
 
 
18486
    osf3*)
 
18487
      if test "$GCC" = yes; then
 
18488
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18489
        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'
 
18490
      else
 
18491
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18492
        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'
 
18493
      fi
 
18494
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18495
      hardcode_libdir_separator_GCJ=:
 
18496
      ;;
 
18497
 
 
18498
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18499
      if test "$GCC" = yes; then
 
18500
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18501
        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'
 
18502
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18503
      else
 
18504
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18505
        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'
 
18506
        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~
 
18507
        $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'
 
18508
 
 
18509
        # Both c and cxx compiler support -rpath directly
 
18510
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18511
      fi
 
18512
      hardcode_libdir_separator_GCJ=:
 
18513
      ;;
 
18514
 
 
18515
    solaris*)
 
18516
      no_undefined_flag_GCJ=' -z text'
 
18517
      if test "$GCC" = yes; then
 
18518
        wlarc='${wl}'
 
18519
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18520
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18521
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18522
      else
 
18523
        wlarc=''
 
18524
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18525
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18526
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18527
      fi
 
18528
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18529
      hardcode_shlibpath_var_GCJ=no
 
18530
      case $host_os in
 
18531
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18532
      *)
 
18533
        # The compiler driver will combine and reorder linker options,
 
18534
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18535
        # but is careful enough not to reorder.
 
18536
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18537
        if test "$GCC" = yes; then
 
18538
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18539
        else
 
18540
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18541
        fi
 
18542
        ;;
 
18543
      esac
 
18544
      link_all_deplibs_GCJ=yes
 
18545
      ;;
 
18546
 
 
18547
    sunos4*)
 
18548
      if test "x$host_vendor" = xsequent; then
 
18549
        # Use $CC to link under sequent, because it throws in some extra .o
 
18550
        # files that make .init and .fini sections work.
 
18551
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18552
      else
 
18553
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18554
      fi
 
18555
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18556
      hardcode_direct_GCJ=yes
 
18557
      hardcode_minus_L_GCJ=yes
 
18558
      hardcode_shlibpath_var_GCJ=no
 
18559
      ;;
 
18560
 
 
18561
    sysv4)
 
18562
      case $host_vendor in
 
18563
        sni)
 
18564
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18565
          hardcode_direct_GCJ=yes # is this really true???
 
18566
        ;;
 
18567
        siemens)
 
18568
          ## LD is ld it makes a PLAMLIB
 
18569
          ## CC just makes a GrossModule.
 
18570
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18571
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18572
          hardcode_direct_GCJ=no
 
18573
        ;;
 
18574
        motorola)
 
18575
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18576
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18577
        ;;
 
18578
      esac
 
18579
      runpath_var='LD_RUN_PATH'
 
18580
      hardcode_shlibpath_var_GCJ=no
 
18581
      ;;
 
18582
 
 
18583
    sysv4.3*)
 
18584
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18585
      hardcode_shlibpath_var_GCJ=no
 
18586
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18587
      ;;
 
18588
 
 
18589
    sysv4*MP*)
 
18590
      if test -d /usr/nec; then
 
18591
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18592
        hardcode_shlibpath_var_GCJ=no
 
18593
        runpath_var=LD_RUN_PATH
 
18594
        hardcode_runpath_var=yes
 
18595
        ld_shlibs_GCJ=yes
 
18596
      fi
 
18597
      ;;
 
18598
 
 
18599
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18600
      no_undefined_flag_GCJ='${wl}-z,text'
 
18601
      archive_cmds_need_lc_GCJ=no
 
18602
      hardcode_shlibpath_var_GCJ=no
 
18603
      runpath_var='LD_RUN_PATH'
 
18604
 
 
18605
      if test "$GCC" = yes; then
 
18606
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18607
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18608
      else
 
18609
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18610
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18611
      fi
 
18612
      ;;
 
18613
 
 
18614
    sysv5* | sco3.2v5* | sco5v6*)
 
18615
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18616
      # link with -lc, and that would cause any symbols used from libc to
 
18617
      # always be unresolved, which means just about no library would
 
18618
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18619
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18620
      # as -z defs.
 
18621
      no_undefined_flag_GCJ='${wl}-z,text'
 
18622
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18623
      archive_cmds_need_lc_GCJ=no
 
18624
      hardcode_shlibpath_var_GCJ=no
 
18625
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18626
      hardcode_libdir_separator_GCJ=':'
 
18627
      link_all_deplibs_GCJ=yes
 
18628
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18629
      runpath_var='LD_RUN_PATH'
 
18630
 
 
18631
      if test "$GCC" = yes; then
 
18632
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18633
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18634
      else
 
18635
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18636
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18637
      fi
 
18638
      ;;
 
18639
 
 
18640
    uts4*)
 
18641
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18642
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18643
      hardcode_shlibpath_var_GCJ=no
 
18644
      ;;
 
18645
 
 
18646
    *)
 
18647
      ld_shlibs_GCJ=no
 
18648
      ;;
 
18649
    esac
 
18650
  fi
 
18651
 
 
18652
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18653
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18654
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18655
 
 
18656
#
 
18657
# Do we need to explicitly link libc?
 
18658
#
 
18659
case "x$archive_cmds_need_lc_GCJ" in
 
18660
x|xyes)
 
18661
  # Assume -lc should be added
 
18662
  archive_cmds_need_lc_GCJ=yes
 
18663
 
 
18664
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18665
    case $archive_cmds_GCJ in
 
18666
    *'~'*)
 
18667
      # FIXME: we may have to deal with multi-command sequences.
 
18668
      ;;
 
18669
    '$CC '*)
 
18670
      # Test whether the compiler implicitly links with -lc since on some
 
18671
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18672
      # to ld, don't add -lc before -lgcc.
 
18673
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18674
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18675
      $rm conftest*
 
18676
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18677
 
 
18678
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18679
  (eval $ac_compile) 2>&5
 
18680
  ac_status=$?
 
18681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18682
  (exit $ac_status); } 2>conftest.err; then
 
18683
        soname=conftest
 
18684
        lib=conftest
 
18685
        libobjs=conftest.$ac_objext
 
18686
        deplibs=
 
18687
        wl=$lt_prog_compiler_wl_GCJ
 
18688
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18689
        compiler_flags=-v
 
18690
        linker_flags=-v
 
18691
        verstring=
 
18692
        output_objdir=.
 
18693
        libname=conftest
 
18694
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18695
        allow_undefined_flag_GCJ=
 
18696
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18697
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18698
  ac_status=$?
 
18699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18700
  (exit $ac_status); }
 
18701
        then
 
18702
          archive_cmds_need_lc_GCJ=no
 
18703
        else
 
18704
          archive_cmds_need_lc_GCJ=yes
 
18705
        fi
 
18706
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18707
      else
 
18708
        cat conftest.err 1>&5
 
18709
      fi
 
18710
      $rm conftest*
 
18711
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18712
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18713
      ;;
 
18714
    esac
 
18715
  fi
 
18716
  ;;
 
18717
esac
 
18718
 
 
18719
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18720
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18721
library_names_spec=
 
18722
libname_spec='lib$name'
 
18723
soname_spec=
 
18724
shrext_cmds=".so"
 
18725
postinstall_cmds=
 
18726
postuninstall_cmds=
 
18727
finish_cmds=
 
18728
finish_eval=
 
18729
shlibpath_var=
 
18730
shlibpath_overrides_runpath=unknown
 
18731
version_type=none
 
18732
dynamic_linker="$host_os ld.so"
 
18733
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18734
 
 
18735
need_lib_prefix=unknown
 
18736
hardcode_into_libs=no
 
18737
 
 
18738
# when you set need_version to no, make sure it does not cause -set_version
 
18739
# flags to be left without arguments
 
18740
need_version=unknown
 
18741
 
 
18742
case $host_os in
 
18743
aix3*)
 
18744
  version_type=linux
 
18745
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18746
  shlibpath_var=LIBPATH
 
18747
 
 
18748
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18749
  soname_spec='${libname}${release}${shared_ext}$major'
 
18750
  ;;
 
18751
 
 
18752
aix4* | aix5*)
 
18753
  version_type=linux
 
18754
  need_lib_prefix=no
 
18755
  need_version=no
 
18756
  hardcode_into_libs=yes
 
18757
  if test "$host_cpu" = ia64; then
 
18758
    # AIX 5 supports IA64
 
18759
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18760
    shlibpath_var=LD_LIBRARY_PATH
 
18761
  else
 
18762
    # With GCC up to 2.95.x, collect2 would create an import file
 
18763
    # for dependence libraries.  The import file would start with
 
18764
    # the line `#! .'.  This would cause the generated library to
 
18765
    # depend on `.', always an invalid library.  This was fixed in
 
18766
    # development snapshots of GCC prior to 3.0.
 
18767
    case $host_os in
 
18768
      aix4 | aix4.[01] | aix4.[01].*)
 
18769
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18770
           echo ' yes '
 
18771
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18772
        :
 
18773
      else
 
18774
        can_build_shared=no
 
18775
      fi
 
18776
      ;;
 
18777
    esac
 
18778
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18779
    # soname into executable. Probably we can add versioning support to
 
18780
    # collect2, so additional links can be useful in future.
 
18781
    if test "$aix_use_runtimelinking" = yes; then
 
18782
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18783
      # instead of lib<name>.a to let people know that these are not
 
18784
      # typical AIX shared libraries.
 
18785
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18786
    else
 
18787
      # We preserve .a as extension for shared libraries through AIX4.2
 
18788
      # and later when we are not doing run time linking.
 
18789
      library_names_spec='${libname}${release}.a $libname.a'
 
18790
      soname_spec='${libname}${release}${shared_ext}$major'
 
18791
    fi
 
18792
    shlibpath_var=LIBPATH
 
18793
  fi
 
18794
  ;;
 
18795
 
 
18796
amigaos*)
 
18797
  library_names_spec='$libname.ixlibrary $libname.a'
 
18798
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18799
  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'
 
18800
  ;;
 
18801
 
 
18802
beos*)
 
18803
  library_names_spec='${libname}${shared_ext}'
 
18804
  dynamic_linker="$host_os ld.so"
 
18805
  shlibpath_var=LIBRARY_PATH
 
18806
  ;;
 
18807
 
 
18808
bsdi[45]*)
 
18809
  version_type=linux
 
18810
  need_version=no
 
18811
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18812
  soname_spec='${libname}${release}${shared_ext}$major'
 
18813
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18814
  shlibpath_var=LD_LIBRARY_PATH
 
18815
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18816
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18817
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18818
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18819
  # libtool to hard-code these into programs
 
18820
  ;;
 
18821
 
 
18822
cygwin* | mingw* | pw32*)
 
18823
  version_type=windows
 
18824
  shrext_cmds=".dll"
 
18825
  need_version=no
 
18826
  need_lib_prefix=no
 
18827
 
 
18828
  case $GCC,$host_os in
 
18829
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18830
    library_names_spec='$libname.dll.a'
 
18831
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18832
    postinstall_cmds='base_file=`basename \${file}`~
 
18833
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18834
      dldir=$destdir/`dirname \$dlpath`~
 
18835
      test -d \$dldir || mkdir -p \$dldir~
 
18836
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18837
      chmod a+x \$dldir/$dlname'
 
18838
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18839
      dlpath=$dir/\$dldll~
 
18840
       $rm \$dlpath'
 
18841
    shlibpath_overrides_runpath=yes
 
18842
 
 
18843
    case $host_os in
 
18844
    cygwin*)
 
18845
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18846
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18847
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18848
      ;;
 
18849
    mingw*)
 
18850
      # MinGW DLLs use traditional 'lib' prefix
 
18851
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18852
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18853
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18854
        # It is most probably a Windows format PATH printed by
 
18855
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18856
        # path with ; separators, and with drive letters. We can handle the
 
18857
        # drive letters (cygwin fileutils understands them), so leave them,
 
18858
        # especially as we might pass files found there to a mingw objdump,
 
18859
        # which wouldn't understand a cygwinified path. Ahh.
 
18860
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18861
      else
 
18862
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18863
      fi
 
18864
      ;;
 
18865
    pw32*)
 
18866
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18867
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18868
      ;;
 
18869
    esac
 
18870
    ;;
 
18871
 
 
18872
  *)
 
18873
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18874
    ;;
 
18875
  esac
 
18876
  dynamic_linker='Win32 ld.exe'
 
18877
  # FIXME: first we should search . and the directory the executable is in
 
18878
  shlibpath_var=PATH
 
18879
  ;;
 
18880
 
 
18881
darwin* | rhapsody*)
 
18882
  dynamic_linker="$host_os dyld"
 
18883
  version_type=darwin
 
18884
  need_lib_prefix=no
 
18885
  need_version=no
 
18886
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18887
  soname_spec='${libname}${release}${major}$shared_ext'
 
18888
  shlibpath_overrides_runpath=yes
 
18889
  shlibpath_var=DYLD_LIBRARY_PATH
 
18890
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18891
 
 
18892
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18893
  ;;
 
18894
 
 
18895
dgux*)
 
18896
  version_type=linux
 
18897
  need_lib_prefix=no
 
18898
  need_version=no
 
18899
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18900
  soname_spec='${libname}${release}${shared_ext}$major'
 
18901
  shlibpath_var=LD_LIBRARY_PATH
 
18902
  ;;
 
18903
 
 
18904
freebsd1*)
 
18905
  dynamic_linker=no
 
18906
  ;;
 
18907
 
 
18908
freebsd* | dragonfly*)
 
18909
  # DragonFly does not have aout.  When/if they implement a new
 
18910
  # versioning mechanism, adjust this.
 
18911
  if test -x /usr/bin/objformat; then
 
18912
    objformat=`/usr/bin/objformat`
 
18913
  else
 
18914
    case $host_os in
 
18915
    freebsd[123]*) objformat=aout ;;
 
18916
    *) objformat=elf ;;
 
18917
    esac
 
18918
  fi
 
18919
  version_type=freebsd-$objformat
 
18920
  case $version_type in
 
18921
    freebsd-elf*)
 
18922
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18923
      need_version=no
 
18924
      need_lib_prefix=no
 
18925
      ;;
 
18926
    freebsd-*)
 
18927
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18928
      need_version=yes
 
18929
      ;;
 
18930
  esac
 
18931
  shlibpath_var=LD_LIBRARY_PATH
 
18932
  case $host_os in
 
18933
  freebsd2*)
 
18934
    shlibpath_overrides_runpath=yes
 
18935
    ;;
 
18936
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18937
    shlibpath_overrides_runpath=yes
 
18938
    hardcode_into_libs=yes
 
18939
    ;;
 
18940
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18941
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18942
    shlibpath_overrides_runpath=no
 
18943
    hardcode_into_libs=yes
 
18944
    ;;
 
18945
  *) # from 4.6 on, and DragonFly
 
18946
    shlibpath_overrides_runpath=yes
 
18947
    hardcode_into_libs=yes
 
18948
    ;;
 
18949
  esac
 
18950
  ;;
 
18951
 
 
18952
gnu*)
 
18953
  version_type=linux
 
18954
  need_lib_prefix=no
 
18955
  need_version=no
 
18956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18957
  soname_spec='${libname}${release}${shared_ext}$major'
 
18958
  shlibpath_var=LD_LIBRARY_PATH
 
18959
  hardcode_into_libs=yes
 
18960
  ;;
 
18961
 
 
18962
hpux9* | hpux10* | hpux11*)
 
18963
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18964
  # link against other versions.
 
18965
  version_type=sunos
 
18966
  need_lib_prefix=no
 
18967
  need_version=no
 
18968
  case $host_cpu in
 
18969
  ia64*)
 
18970
    shrext_cmds='.so'
 
18971
    hardcode_into_libs=yes
 
18972
    dynamic_linker="$host_os dld.so"
 
18973
    shlibpath_var=LD_LIBRARY_PATH
 
18974
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18975
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18976
    soname_spec='${libname}${release}${shared_ext}$major'
 
18977
    if test "X$HPUX_IA64_MODE" = X32; then
 
18978
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18979
    else
 
18980
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18981
    fi
 
18982
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18983
    ;;
 
18984
   hppa*64*)
 
18985
     shrext_cmds='.sl'
 
18986
     hardcode_into_libs=yes
 
18987
     dynamic_linker="$host_os dld.sl"
 
18988
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18989
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18990
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18991
     soname_spec='${libname}${release}${shared_ext}$major'
 
18992
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18993
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18994
     ;;
 
18995
   *)
 
18996
    shrext_cmds='.sl'
 
18997
    dynamic_linker="$host_os dld.sl"
 
18998
    shlibpath_var=SHLIB_PATH
 
18999
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19000
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19001
    soname_spec='${libname}${release}${shared_ext}$major'
 
19002
    ;;
 
19003
  esac
 
19004
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19005
  postinstall_cmds='chmod 555 $lib'
 
19006
  ;;
 
19007
 
 
19008
interix[3-9]*)
 
19009
  version_type=linux
 
19010
  need_lib_prefix=no
 
19011
  need_version=no
 
19012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19013
  soname_spec='${libname}${release}${shared_ext}$major'
 
19014
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
19015
  shlibpath_var=LD_LIBRARY_PATH
 
19016
  shlibpath_overrides_runpath=no
 
19017
  hardcode_into_libs=yes
 
19018
  ;;
 
19019
 
 
19020
irix5* | irix6* | nonstopux*)
 
19021
  case $host_os in
 
19022
    nonstopux*) version_type=nonstopux ;;
 
19023
    *)
 
19024
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19025
                version_type=linux
 
19026
        else
 
19027
                version_type=irix
 
19028
        fi ;;
 
19029
  esac
 
19030
  need_lib_prefix=no
 
19031
  need_version=no
 
19032
  soname_spec='${libname}${release}${shared_ext}$major'
 
19033
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19034
  case $host_os in
 
19035
  irix5* | nonstopux*)
 
19036
    libsuff= shlibsuff=
 
19037
    ;;
 
19038
  *)
 
19039
    case $LD in # libtool.m4 will add one of these switches to LD
 
19040
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19041
      libsuff= shlibsuff= libmagic=32-bit;;
 
19042
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19043
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19044
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19045
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19046
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19047
    esac
 
19048
    ;;
 
19049
  esac
 
19050
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19051
  shlibpath_overrides_runpath=no
 
19052
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19053
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19054
  hardcode_into_libs=yes
 
19055
  ;;
 
19056
 
 
19057
# No shared lib support for Linux oldld, aout, or coff.
 
19058
linux*oldld* | linux*aout* | linux*coff*)
 
19059
  dynamic_linker=no
 
19060
  ;;
 
19061
 
 
19062
# This must be Linux ELF.
 
19063
linux* | k*bsd*-gnu)
 
19064
  version_type=linux
 
19065
  need_lib_prefix=no
 
19066
  need_version=no
 
19067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19068
  soname_spec='${libname}${release}${shared_ext}$major'
 
19069
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19070
  shlibpath_var=LD_LIBRARY_PATH
 
19071
  shlibpath_overrides_runpath=no
 
19072
  # This implies no fast_install, which is unacceptable.
 
19073
  # Some rework will be needed to allow for fast_install
 
19074
  # before this can be enabled.
 
19075
  hardcode_into_libs=yes
 
19076
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19077
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19078
 
 
19079
  # Append ld.so.conf contents to the search path
 
19080
  if test -f /etc/ld.so.conf; then
 
19081
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
19082
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
19083
  fi
 
19084
 
 
19085
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19086
  # powerpc, because MkLinux only supported shared libraries with the
 
19087
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19088
  # most powerpc-linux boxes support dynamic linking these days and
 
19089
  # people can always --disable-shared, the test was removed, and we
 
19090
  # assume the GNU/Linux dynamic linker is in use.
 
19091
  dynamic_linker='GNU/Linux ld.so'
 
19092
  ;;
 
19093
 
 
19094
netbsd*)
 
19095
  version_type=sunos
 
19096
  need_lib_prefix=no
 
19097
  need_version=no
 
19098
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19099
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19100
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19101
    dynamic_linker='NetBSD (a.out) ld.so'
 
19102
  else
 
19103
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19104
    soname_spec='${libname}${release}${shared_ext}$major'
 
19105
    dynamic_linker='NetBSD ld.elf_so'
 
19106
  fi
 
19107
  shlibpath_var=LD_LIBRARY_PATH
 
19108
  shlibpath_overrides_runpath=yes
 
19109
  hardcode_into_libs=yes
 
19110
  ;;
 
19111
 
 
19112
newsos6)
 
19113
  version_type=linux
 
19114
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19115
  shlibpath_var=LD_LIBRARY_PATH
 
19116
  shlibpath_overrides_runpath=yes
 
19117
  ;;
 
19118
 
 
19119
nto-qnx*)
 
19120
  version_type=linux
 
19121
  need_lib_prefix=no
 
19122
  need_version=no
 
19123
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19124
  soname_spec='${libname}${release}${shared_ext}$major'
 
19125
  shlibpath_var=LD_LIBRARY_PATH
 
19126
  shlibpath_overrides_runpath=yes
 
19127
  ;;
 
19128
 
 
19129
openbsd*)
 
19130
  version_type=sunos
 
19131
  sys_lib_dlsearch_path_spec="/usr/lib"
 
19132
  need_lib_prefix=no
 
19133
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19134
  case $host_os in
 
19135
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19136
    *)                         need_version=no  ;;
 
19137
  esac
 
19138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19139
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19140
  shlibpath_var=LD_LIBRARY_PATH
 
19141
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19142
    case $host_os in
 
19143
      openbsd2.[89] | openbsd2.[89].*)
 
19144
        shlibpath_overrides_runpath=no
 
19145
        ;;
 
19146
      *)
 
19147
        shlibpath_overrides_runpath=yes
 
19148
        ;;
 
19149
      esac
 
19150
  else
 
19151
    shlibpath_overrides_runpath=yes
 
19152
  fi
 
19153
  ;;
 
19154
 
 
19155
os2*)
 
19156
  libname_spec='$name'
 
19157
  shrext_cmds=".dll"
 
19158
  need_lib_prefix=no
 
19159
  library_names_spec='$libname${shared_ext} $libname.a'
 
19160
  dynamic_linker='OS/2 ld.exe'
 
19161
  shlibpath_var=LIBPATH
 
19162
  ;;
 
19163
 
 
19164
osf3* | osf4* | osf5*)
 
19165
  version_type=osf
 
19166
  need_lib_prefix=no
 
19167
  need_version=no
 
19168
  soname_spec='${libname}${release}${shared_ext}$major'
 
19169
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19170
  shlibpath_var=LD_LIBRARY_PATH
 
19171
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19172
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19173
  ;;
 
19174
 
 
19175
rdos*)
 
19176
  dynamic_linker=no
 
19177
  ;;
 
19178
 
 
19179
solaris*)
 
19180
  version_type=linux
 
19181
  need_lib_prefix=no
 
19182
  need_version=no
 
19183
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19184
  soname_spec='${libname}${release}${shared_ext}$major'
 
19185
  shlibpath_var=LD_LIBRARY_PATH
 
19186
  shlibpath_overrides_runpath=yes
 
19187
  hardcode_into_libs=yes
 
19188
  # ldd complains unless libraries are executable
 
19189
  postinstall_cmds='chmod +x $lib'
 
19190
  ;;
 
19191
 
 
19192
sunos4*)
 
19193
  version_type=sunos
 
19194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19195
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19196
  shlibpath_var=LD_LIBRARY_PATH
 
19197
  shlibpath_overrides_runpath=yes
 
19198
  if test "$with_gnu_ld" = yes; then
 
19199
    need_lib_prefix=no
 
19200
  fi
 
19201
  need_version=yes
 
19202
  ;;
 
19203
 
 
19204
sysv4 | sysv4.3*)
 
19205
  version_type=linux
 
19206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19207
  soname_spec='${libname}${release}${shared_ext}$major'
 
19208
  shlibpath_var=LD_LIBRARY_PATH
 
19209
  case $host_vendor in
 
19210
    sni)
 
19211
      shlibpath_overrides_runpath=no
 
19212
      need_lib_prefix=no
 
19213
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19214
      runpath_var=LD_RUN_PATH
 
19215
      ;;
 
19216
    siemens)
 
19217
      need_lib_prefix=no
 
19218
      ;;
 
19219
    motorola)
 
19220
      need_lib_prefix=no
 
19221
      need_version=no
 
19222
      shlibpath_overrides_runpath=no
 
19223
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19224
      ;;
 
19225
  esac
 
19226
  ;;
 
19227
 
 
19228
sysv4*MP*)
 
19229
  if test -d /usr/nec ;then
 
19230
    version_type=linux
 
19231
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19232
    soname_spec='$libname${shared_ext}.$major'
 
19233
    shlibpath_var=LD_LIBRARY_PATH
 
19234
  fi
 
19235
  ;;
 
19236
 
 
19237
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19238
  version_type=freebsd-elf
 
19239
  need_lib_prefix=no
 
19240
  need_version=no
 
19241
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19242
  soname_spec='${libname}${release}${shared_ext}$major'
 
19243
  shlibpath_var=LD_LIBRARY_PATH
 
19244
  hardcode_into_libs=yes
 
19245
  if test "$with_gnu_ld" = yes; then
 
19246
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19247
    shlibpath_overrides_runpath=no
 
19248
  else
 
19249
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19250
    shlibpath_overrides_runpath=yes
 
19251
    case $host_os in
 
19252
      sco3.2v5*)
 
19253
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19254
        ;;
 
19255
    esac
 
19256
  fi
 
19257
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19258
  ;;
 
19259
 
 
19260
uts4*)
 
19261
  version_type=linux
 
19262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19263
  soname_spec='${libname}${release}${shared_ext}$major'
 
19264
  shlibpath_var=LD_LIBRARY_PATH
 
19265
  ;;
 
19266
 
 
19267
*)
 
19268
  dynamic_linker=no
 
19269
  ;;
 
19270
esac
 
19271
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19272
echo "${ECHO_T}$dynamic_linker" >&6; }
 
19273
test "$dynamic_linker" = no && can_build_shared=no
 
19274
 
 
19275
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19276
if test "$GCC" = yes; then
 
19277
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19278
fi
 
19279
 
 
19280
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19281
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
19282
hardcode_action_GCJ=
 
19283
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19284
   test -n "$runpath_var_GCJ" || \
 
19285
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19286
 
 
19287
  # We can hardcode non-existant directories.
 
19288
  if test "$hardcode_direct_GCJ" != no &&
 
19289
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19290
     # have to relink, otherwise we might link with an installed library
 
19291
     # when we should be linking with a yet-to-be-installed one
 
19292
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19293
     test "$hardcode_minus_L_GCJ" != no; then
 
19294
    # Linking always hardcodes the temporary library directory.
 
19295
    hardcode_action_GCJ=relink
 
19296
  else
 
19297
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19298
    hardcode_action_GCJ=immediate
 
19299
  fi
 
19300
else
 
19301
  # We cannot hardcode anything, or else we can only hardcode existing
 
19302
  # directories.
 
19303
  hardcode_action_GCJ=unsupported
 
19304
fi
 
19305
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19306
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
19307
 
 
19308
if test "$hardcode_action_GCJ" = relink; then
 
19309
  # Fast installation is not supported
 
19310
  enable_fast_install=no
 
19311
elif test "$shlibpath_overrides_runpath" = yes ||
 
19312
     test "$enable_shared" = no; then
 
19313
  # Fast installation is not necessary
 
19314
  enable_fast_install=needless
 
19315
fi
 
19316
 
 
19317
 
 
19318
# The else clause should only fire when bootstrapping the
 
19319
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19320
# with your package, and you will get complaints that there are
 
19321
# no rules to generate ltmain.sh.
 
19322
if test -f "$ltmain"; then
 
19323
  # See if we are running on zsh, and set the options which allow our commands through
 
19324
  # without removal of \ escapes.
 
19325
  if test -n "${ZSH_VERSION+set}" ; then
 
19326
    setopt NO_GLOB_SUBST
 
19327
  fi
 
19328
  # Now quote all the things that may contain metacharacters while being
 
19329
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19330
  # variables and quote the copies for generation of the libtool script.
 
19331
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19332
    SED SHELL STRIP \
 
19333
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19334
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19335
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19336
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19337
    lt_cv_sys_global_symbol_to_c_name_address \
 
19338
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19339
    old_postinstall_cmds old_postuninstall_cmds \
 
19340
    compiler_GCJ \
 
19341
    CC_GCJ \
 
19342
    LD_GCJ \
 
19343
    lt_prog_compiler_wl_GCJ \
 
19344
    lt_prog_compiler_pic_GCJ \
 
19345
    lt_prog_compiler_static_GCJ \
 
19346
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19347
    export_dynamic_flag_spec_GCJ \
 
19348
    thread_safe_flag_spec_GCJ \
 
19349
    whole_archive_flag_spec_GCJ \
 
19350
    enable_shared_with_static_runtimes_GCJ \
 
19351
    old_archive_cmds_GCJ \
 
19352
    old_archive_from_new_cmds_GCJ \
 
19353
    predep_objects_GCJ \
 
19354
    postdep_objects_GCJ \
 
19355
    predeps_GCJ \
 
19356
    postdeps_GCJ \
 
19357
    compiler_lib_search_path_GCJ \
 
19358
    archive_cmds_GCJ \
 
19359
    archive_expsym_cmds_GCJ \
 
19360
    postinstall_cmds_GCJ \
 
19361
    postuninstall_cmds_GCJ \
 
19362
    old_archive_from_expsyms_cmds_GCJ \
 
19363
    allow_undefined_flag_GCJ \
 
19364
    no_undefined_flag_GCJ \
 
19365
    export_symbols_cmds_GCJ \
 
19366
    hardcode_libdir_flag_spec_GCJ \
 
19367
    hardcode_libdir_flag_spec_ld_GCJ \
 
19368
    hardcode_libdir_separator_GCJ \
 
19369
    hardcode_automatic_GCJ \
 
19370
    module_cmds_GCJ \
 
19371
    module_expsym_cmds_GCJ \
 
19372
    lt_cv_prog_compiler_c_o_GCJ \
 
19373
    fix_srcfile_path_GCJ \
 
19374
    exclude_expsyms_GCJ \
 
19375
    include_expsyms_GCJ; do
 
19376
 
 
19377
    case $var in
 
19378
    old_archive_cmds_GCJ | \
 
19379
    old_archive_from_new_cmds_GCJ | \
 
19380
    archive_cmds_GCJ | \
 
19381
    archive_expsym_cmds_GCJ | \
 
19382
    module_cmds_GCJ | \
 
19383
    module_expsym_cmds_GCJ | \
 
19384
    old_archive_from_expsyms_cmds_GCJ | \
 
19385
    export_symbols_cmds_GCJ | \
 
19386
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19387
    postinstall_cmds | postuninstall_cmds | \
 
19388
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19389
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19390
      # Double-quote double-evaled strings.
 
19391
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19392
      ;;
 
19393
    *)
 
19394
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19395
      ;;
 
19396
    esac
 
19397
  done
 
19398
 
 
19399
  case $lt_echo in
 
19400
  *'\$0 --fallback-echo"')
 
19401
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19402
    ;;
 
19403
  esac
 
19404
 
 
19405
cfgfile="$ofile"
 
19406
 
 
19407
  cat <<__EOF__ >> "$cfgfile"
 
19408
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19409
 
 
19410
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19411
 
 
19412
# Shell to use when invoking shell scripts.
 
19413
SHELL=$lt_SHELL
 
19414
 
 
19415
# Whether or not to build shared libraries.
 
19416
build_libtool_libs=$enable_shared
 
19417
 
 
19418
# Whether or not to build static libraries.
 
19419
build_old_libs=$enable_static
 
19420
 
 
19421
# Whether or not to add -lc for building shared libraries.
 
19422
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19423
 
 
19424
# Whether or not to disallow shared libs when runtime libs are static
 
19425
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19426
 
 
19427
# Whether or not to optimize for fast installation.
 
19428
fast_install=$enable_fast_install
 
19429
 
 
19430
# The host system.
 
19431
host_alias=$host_alias
 
19432
host=$host
 
19433
host_os=$host_os
 
19434
 
 
19435
# The build system.
 
19436
build_alias=$build_alias
 
19437
build=$build
 
19438
build_os=$build_os
 
19439
 
 
19440
# An echo program that does not interpret backslashes.
 
19441
echo=$lt_echo
 
19442
 
 
19443
# The archiver.
 
19444
AR=$lt_AR
 
19445
AR_FLAGS=$lt_AR_FLAGS
 
19446
 
 
19447
# A C compiler.
 
19448
LTCC=$lt_LTCC
 
19449
 
 
19450
# LTCC compiler flags.
 
19451
LTCFLAGS=$lt_LTCFLAGS
 
19452
 
 
19453
# A language-specific compiler.
 
19454
CC=$lt_compiler_GCJ
 
19455
 
 
19456
# Is the compiler the GNU C compiler?
 
19457
with_gcc=$GCC_GCJ
 
19458
 
 
19459
# An ERE matcher.
 
19460
EGREP=$lt_EGREP
 
19461
 
 
19462
# The linker used to build libraries.
 
19463
LD=$lt_LD_GCJ
 
19464
 
 
19465
# Whether we need hard or soft links.
 
19466
LN_S=$lt_LN_S
 
19467
 
 
19468
# A BSD-compatible nm program.
 
19469
NM=$lt_NM
 
19470
 
 
19471
# A symbol stripping program
 
19472
STRIP=$lt_STRIP
 
19473
 
 
19474
# Used to examine libraries when file_magic_cmd begins "file"
 
19475
MAGIC_CMD=$MAGIC_CMD
 
19476
 
 
19477
# Used on cygwin: DLL creation program.
 
19478
DLLTOOL="$DLLTOOL"
 
19479
 
 
19480
# Used on cygwin: object dumper.
 
19481
OBJDUMP="$OBJDUMP"
 
19482
 
 
19483
# Used on cygwin: assembler.
 
19484
AS="$AS"
 
19485
 
 
19486
# The name of the directory that contains temporary libtool files.
 
19487
objdir=$objdir
 
19488
 
 
19489
# How to create reloadable object files.
 
19490
reload_flag=$lt_reload_flag
 
19491
reload_cmds=$lt_reload_cmds
 
19492
 
 
19493
# How to pass a linker flag through the compiler.
 
19494
wl=$lt_lt_prog_compiler_wl_GCJ
 
19495
 
 
19496
# Object file suffix (normally "o").
 
19497
objext="$ac_objext"
 
19498
 
 
19499
# Old archive suffix (normally "a").
 
19500
libext="$libext"
 
19501
 
 
19502
# Shared library suffix (normally ".so").
 
19503
shrext_cmds='$shrext_cmds'
 
19504
 
 
19505
# Executable file suffix (normally "").
 
19506
exeext="$exeext"
 
19507
 
 
19508
# Additional compiler flags for building library objects.
 
19509
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19510
pic_mode=$pic_mode
 
19511
 
 
19512
# What is the maximum length of a command?
 
19513
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19514
 
 
19515
# Does compiler simultaneously support -c and -o options?
 
19516
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19517
 
 
19518
# Must we lock files when doing compilation?
 
19519
need_locks=$lt_need_locks
 
19520
 
 
19521
# Do we need the lib prefix for modules?
 
19522
need_lib_prefix=$need_lib_prefix
 
19523
 
 
19524
# Do we need a version for libraries?
 
19525
need_version=$need_version
 
19526
 
 
19527
# Whether dlopen is supported.
 
19528
dlopen_support=$enable_dlopen
 
19529
 
 
19530
# Whether dlopen of programs is supported.
 
19531
dlopen_self=$enable_dlopen_self
 
19532
 
 
19533
# Whether dlopen of statically linked programs is supported.
 
19534
dlopen_self_static=$enable_dlopen_self_static
 
19535
 
 
19536
# Compiler flag to prevent dynamic linking.
 
19537
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19538
 
 
19539
# Compiler flag to turn off builtin functions.
 
19540
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19541
 
 
19542
# Compiler flag to allow reflexive dlopens.
 
19543
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19544
 
 
19545
# Compiler flag to generate shared objects directly from archives.
 
19546
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19547
 
 
19548
# Compiler flag to generate thread-safe objects.
 
19549
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19550
 
 
19551
# Library versioning type.
 
19552
version_type=$version_type
 
19553
 
 
19554
# Format of library name prefix.
 
19555
libname_spec=$lt_libname_spec
 
19556
 
 
19557
# List of archive names.  First name is the real one, the rest are links.
 
19558
# The last name is the one that the linker finds with -lNAME.
 
19559
library_names_spec=$lt_library_names_spec
 
19560
 
 
19561
# The coded name of the library, if different from the real name.
 
19562
soname_spec=$lt_soname_spec
 
19563
 
 
19564
# Commands used to build and install an old-style archive.
 
19565
RANLIB=$lt_RANLIB
 
19566
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19567
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19568
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19569
 
 
19570
# Create an old-style archive from a shared archive.
 
19571
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19572
 
 
19573
# Create a temporary old-style archive to link instead of a shared archive.
 
19574
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19575
 
 
19576
# Commands used to build and install a shared archive.
 
19577
archive_cmds=$lt_archive_cmds_GCJ
 
19578
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19579
postinstall_cmds=$lt_postinstall_cmds
 
19580
postuninstall_cmds=$lt_postuninstall_cmds
 
19581
 
 
19582
# Commands used to build a loadable module (assumed same as above if empty)
 
19583
module_cmds=$lt_module_cmds_GCJ
 
19584
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19585
 
 
19586
# Commands to strip libraries.
 
19587
old_striplib=$lt_old_striplib
 
19588
striplib=$lt_striplib
 
19589
 
 
19590
# Dependencies to place before the objects being linked to create a
 
19591
# shared library.
 
19592
predep_objects=$lt_predep_objects_GCJ
 
19593
 
 
19594
# Dependencies to place after the objects being linked to create a
 
19595
# shared library.
 
19596
postdep_objects=$lt_postdep_objects_GCJ
 
19597
 
 
19598
# Dependencies to place before the objects being linked to create a
 
19599
# shared library.
 
19600
predeps=$lt_predeps_GCJ
 
19601
 
 
19602
# Dependencies to place after the objects being linked to create a
 
19603
# shared library.
 
19604
postdeps=$lt_postdeps_GCJ
 
19605
 
 
19606
# The library search path used internally by the compiler when linking
 
19607
# a shared library.
 
19608
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19609
 
 
19610
# Method to check whether dependent libraries are shared objects.
 
19611
deplibs_check_method=$lt_deplibs_check_method
 
19612
 
 
19613
# Command to use when deplibs_check_method == file_magic.
 
19614
file_magic_cmd=$lt_file_magic_cmd
 
19615
 
 
19616
# Flag that allows shared libraries with undefined symbols to be built.
 
19617
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19618
 
 
19619
# Flag that forces no undefined symbols.
 
19620
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19621
 
 
19622
# Commands used to finish a libtool library installation in a directory.
 
19623
finish_cmds=$lt_finish_cmds
 
19624
 
 
19625
# Same as above, but a single script fragment to be evaled but not shown.
 
19626
finish_eval=$lt_finish_eval
 
19627
 
 
19628
# Take the output of nm and produce a listing of raw symbols and C names.
 
19629
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19630
 
 
19631
# Transform the output of nm in a proper C declaration
 
19632
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19633
 
 
19634
# Transform the output of nm in a C name address pair
 
19635
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19636
 
 
19637
# This is the shared library runtime path variable.
 
19638
runpath_var=$runpath_var
 
19639
 
 
19640
# This is the shared library path variable.
 
19641
shlibpath_var=$shlibpath_var
 
19642
 
 
19643
# Is shlibpath searched before the hard-coded library search path?
 
19644
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19645
 
 
19646
# How to hardcode a shared library path into an executable.
 
19647
hardcode_action=$hardcode_action_GCJ
 
19648
 
 
19649
# Whether we should hardcode library paths into libraries.
 
19650
hardcode_into_libs=$hardcode_into_libs
 
19651
 
 
19652
# Flag to hardcode \$libdir into a binary during linking.
 
19653
# This must work even if \$libdir does not exist.
 
19654
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19655
 
 
19656
# If ld is used when linking, flag to hardcode \$libdir into
 
19657
# a binary during linking. This must work even if \$libdir does
 
19658
# not exist.
 
19659
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19660
 
 
19661
# Whether we need a single -rpath flag with a separated argument.
 
19662
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19663
 
 
19664
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19665
# resulting binary.
 
19666
hardcode_direct=$hardcode_direct_GCJ
 
19667
 
 
19668
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19669
# resulting binary.
 
19670
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19671
 
 
19672
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19673
# the resulting binary.
 
19674
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19675
 
 
19676
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19677
# and all subsequent libraries and executables linked against it.
 
19678
hardcode_automatic=$hardcode_automatic_GCJ
 
19679
 
 
19680
# Variables whose values should be saved in libtool wrapper scripts and
 
19681
# restored at relink time.
 
19682
variables_saved_for_relink="$variables_saved_for_relink"
 
19683
 
 
19684
# Whether libtool must link a program against all its dependency libraries.
 
19685
link_all_deplibs=$link_all_deplibs_GCJ
 
19686
 
 
19687
# Compile-time system search path for libraries
 
19688
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19689
 
 
19690
# Run-time system search path for libraries
 
19691
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19692
 
 
19693
# Fix the shell variable \$srcfile for the compiler.
 
19694
fix_srcfile_path=$lt_fix_srcfile_path
 
19695
 
 
19696
# Set to yes if exported symbols are required.
 
19697
always_export_symbols=$always_export_symbols_GCJ
 
19698
 
 
19699
# The commands to list exported symbols.
 
19700
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19701
 
 
19702
# The commands to extract the exported symbol list from a shared archive.
 
19703
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19704
 
 
19705
# Symbols that should not be listed in the preloaded symbols.
 
19706
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19707
 
 
19708
# Symbols that must always be exported.
 
19709
include_expsyms=$lt_include_expsyms_GCJ
 
19710
 
 
19711
# ### END LIBTOOL TAG CONFIG: $tagname
 
19712
 
 
19713
__EOF__
 
19714
 
 
19715
 
 
19716
else
 
19717
  # If there is no Makefile yet, we rely on a make rule to execute
 
19718
  # `config.status --recheck' to rerun these tests and create the
 
19719
  # libtool script then.
 
19720
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19721
  if test -f "$ltmain_in"; then
 
19722
    test -f Makefile && make "$ltmain"
 
19723
  fi
 
19724
fi
 
19725
 
 
19726
 
 
19727
ac_ext=c
 
19728
ac_cpp='$CPP $CPPFLAGS'
 
19729
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19730
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19731
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19732
 
 
19733
CC="$lt_save_CC"
 
19734
 
 
19735
        else
 
19736
          tagname=""
 
19737
        fi
 
19738
        ;;
 
19739
 
 
19740
      RC)
 
19741
 
 
19742
 
 
19743
# Source file extension for RC test sources.
 
19744
ac_ext=rc
 
19745
 
 
19746
# Object file extension for compiled RC test sources.
 
19747
objext=o
 
19748
objext_RC=$objext
 
19749
 
 
19750
# Code to be used in simple compile tests
 
19751
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19752
 
 
19753
# Code to be used in simple link tests
 
19754
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19755
 
 
19756
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19757
 
 
19758
# If no C compiler was specified, use CC.
 
19759
LTCC=${LTCC-"$CC"}
 
19760
 
 
19761
# If no C compiler flags were specified, use CFLAGS.
 
19762
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19763
 
 
19764
# Allow CC to be a program name with arguments.
 
19765
compiler=$CC
 
19766
 
 
19767
 
 
19768
# save warnings/boilerplate of simple test code
 
19769
ac_outfile=conftest.$ac_objext
 
19770
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19771
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19772
_lt_compiler_boilerplate=`cat conftest.err`
 
19773
$rm conftest*
 
19774
 
 
19775
ac_outfile=conftest.$ac_objext
 
19776
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19777
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19778
_lt_linker_boilerplate=`cat conftest.err`
 
19779
$rm conftest*
 
19780
 
 
19781
 
 
19782
# Allow CC to be a program name with arguments.
 
19783
lt_save_CC="$CC"
 
19784
CC=${RC-"windres"}
 
19785
compiler=$CC
 
19786
compiler_RC=$CC
 
19787
for cc_temp in $compiler""; do
 
19788
  case $cc_temp in
 
19789
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19790
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19791
    \-*) ;;
 
19792
    *) break;;
 
19793
  esac
 
19794
done
 
19795
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19796
 
 
19797
lt_cv_prog_compiler_c_o_RC=yes
 
19798
 
 
19799
# The else clause should only fire when bootstrapping the
 
19800
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19801
# with your package, and you will get complaints that there are
 
19802
# no rules to generate ltmain.sh.
 
19803
if test -f "$ltmain"; then
 
19804
  # See if we are running on zsh, and set the options which allow our commands through
 
19805
  # without removal of \ escapes.
 
19806
  if test -n "${ZSH_VERSION+set}" ; then
 
19807
    setopt NO_GLOB_SUBST
 
19808
  fi
 
19809
  # Now quote all the things that may contain metacharacters while being
 
19810
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19811
  # variables and quote the copies for generation of the libtool script.
 
19812
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19813
    SED SHELL STRIP \
 
19814
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19815
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19816
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19817
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19818
    lt_cv_sys_global_symbol_to_c_name_address \
 
19819
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19820
    old_postinstall_cmds old_postuninstall_cmds \
 
19821
    compiler_RC \
 
19822
    CC_RC \
 
19823
    LD_RC \
 
19824
    lt_prog_compiler_wl_RC \
 
19825
    lt_prog_compiler_pic_RC \
 
19826
    lt_prog_compiler_static_RC \
 
19827
    lt_prog_compiler_no_builtin_flag_RC \
 
19828
    export_dynamic_flag_spec_RC \
 
19829
    thread_safe_flag_spec_RC \
 
19830
    whole_archive_flag_spec_RC \
 
19831
    enable_shared_with_static_runtimes_RC \
 
19832
    old_archive_cmds_RC \
 
19833
    old_archive_from_new_cmds_RC \
 
19834
    predep_objects_RC \
 
19835
    postdep_objects_RC \
 
19836
    predeps_RC \
 
19837
    postdeps_RC \
 
19838
    compiler_lib_search_path_RC \
 
19839
    archive_cmds_RC \
 
19840
    archive_expsym_cmds_RC \
 
19841
    postinstall_cmds_RC \
 
19842
    postuninstall_cmds_RC \
 
19843
    old_archive_from_expsyms_cmds_RC \
 
19844
    allow_undefined_flag_RC \
 
19845
    no_undefined_flag_RC \
 
19846
    export_symbols_cmds_RC \
 
19847
    hardcode_libdir_flag_spec_RC \
 
19848
    hardcode_libdir_flag_spec_ld_RC \
 
19849
    hardcode_libdir_separator_RC \
 
19850
    hardcode_automatic_RC \
 
19851
    module_cmds_RC \
 
19852
    module_expsym_cmds_RC \
 
19853
    lt_cv_prog_compiler_c_o_RC \
 
19854
    fix_srcfile_path_RC \
 
19855
    exclude_expsyms_RC \
 
19856
    include_expsyms_RC; do
 
19857
 
 
19858
    case $var in
 
19859
    old_archive_cmds_RC | \
 
19860
    old_archive_from_new_cmds_RC | \
 
19861
    archive_cmds_RC | \
 
19862
    archive_expsym_cmds_RC | \
 
19863
    module_cmds_RC | \
 
19864
    module_expsym_cmds_RC | \
 
19865
    old_archive_from_expsyms_cmds_RC | \
 
19866
    export_symbols_cmds_RC | \
 
19867
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19868
    postinstall_cmds | postuninstall_cmds | \
 
19869
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19870
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19871
      # Double-quote double-evaled strings.
 
19872
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19873
      ;;
 
19874
    *)
 
19875
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19876
      ;;
 
19877
    esac
 
19878
  done
 
19879
 
 
19880
  case $lt_echo in
 
19881
  *'\$0 --fallback-echo"')
 
19882
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19883
    ;;
 
19884
  esac
 
19885
 
 
19886
cfgfile="$ofile"
 
19887
 
 
19888
  cat <<__EOF__ >> "$cfgfile"
 
19889
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19890
 
 
19891
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19892
 
 
19893
# Shell to use when invoking shell scripts.
 
19894
SHELL=$lt_SHELL
 
19895
 
 
19896
# Whether or not to build shared libraries.
 
19897
build_libtool_libs=$enable_shared
 
19898
 
 
19899
# Whether or not to build static libraries.
 
19900
build_old_libs=$enable_static
 
19901
 
 
19902
# Whether or not to add -lc for building shared libraries.
 
19903
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19904
 
 
19905
# Whether or not to disallow shared libs when runtime libs are static
 
19906
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19907
 
 
19908
# Whether or not to optimize for fast installation.
 
19909
fast_install=$enable_fast_install
 
19910
 
 
19911
# The host system.
 
19912
host_alias=$host_alias
 
19913
host=$host
 
19914
host_os=$host_os
 
19915
 
 
19916
# The build system.
 
19917
build_alias=$build_alias
 
19918
build=$build
 
19919
build_os=$build_os
 
19920
 
 
19921
# An echo program that does not interpret backslashes.
 
19922
echo=$lt_echo
 
19923
 
 
19924
# The archiver.
 
19925
AR=$lt_AR
 
19926
AR_FLAGS=$lt_AR_FLAGS
 
19927
 
 
19928
# A C compiler.
 
19929
LTCC=$lt_LTCC
 
19930
 
 
19931
# LTCC compiler flags.
 
19932
LTCFLAGS=$lt_LTCFLAGS
 
19933
 
 
19934
# A language-specific compiler.
 
19935
CC=$lt_compiler_RC
 
19936
 
 
19937
# Is the compiler the GNU C compiler?
 
19938
with_gcc=$GCC_RC
 
19939
 
 
19940
# An ERE matcher.
 
19941
EGREP=$lt_EGREP
 
19942
 
 
19943
# The linker used to build libraries.
 
19944
LD=$lt_LD_RC
 
19945
 
 
19946
# Whether we need hard or soft links.
 
19947
LN_S=$lt_LN_S
 
19948
 
 
19949
# A BSD-compatible nm program.
 
19950
NM=$lt_NM
 
19951
 
 
19952
# A symbol stripping program
 
19953
STRIP=$lt_STRIP
 
19954
 
 
19955
# Used to examine libraries when file_magic_cmd begins "file"
 
19956
MAGIC_CMD=$MAGIC_CMD
 
19957
 
 
19958
# Used on cygwin: DLL creation program.
 
19959
DLLTOOL="$DLLTOOL"
 
19960
 
 
19961
# Used on cygwin: object dumper.
 
19962
OBJDUMP="$OBJDUMP"
 
19963
 
 
19964
# Used on cygwin: assembler.
 
19965
AS="$AS"
 
19966
 
 
19967
# The name of the directory that contains temporary libtool files.
 
19968
objdir=$objdir
 
19969
 
 
19970
# How to create reloadable object files.
 
19971
reload_flag=$lt_reload_flag
 
19972
reload_cmds=$lt_reload_cmds
 
19973
 
 
19974
# How to pass a linker flag through the compiler.
 
19975
wl=$lt_lt_prog_compiler_wl_RC
 
19976
 
 
19977
# Object file suffix (normally "o").
 
19978
objext="$ac_objext"
 
19979
 
 
19980
# Old archive suffix (normally "a").
 
19981
libext="$libext"
 
19982
 
 
19983
# Shared library suffix (normally ".so").
 
19984
shrext_cmds='$shrext_cmds'
 
19985
 
 
19986
# Executable file suffix (normally "").
 
19987
exeext="$exeext"
 
19988
 
 
19989
# Additional compiler flags for building library objects.
 
19990
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19991
pic_mode=$pic_mode
 
19992
 
 
19993
# What is the maximum length of a command?
 
19994
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19995
 
 
19996
# Does compiler simultaneously support -c and -o options?
 
19997
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19998
 
 
19999
# Must we lock files when doing compilation?
 
20000
need_locks=$lt_need_locks
 
20001
 
 
20002
# Do we need the lib prefix for modules?
 
20003
need_lib_prefix=$need_lib_prefix
 
20004
 
 
20005
# Do we need a version for libraries?
 
20006
need_version=$need_version
 
20007
 
 
20008
# Whether dlopen is supported.
 
20009
dlopen_support=$enable_dlopen
 
20010
 
 
20011
# Whether dlopen of programs is supported.
 
20012
dlopen_self=$enable_dlopen_self
 
20013
 
 
20014
# Whether dlopen of statically linked programs is supported.
 
20015
dlopen_self_static=$enable_dlopen_self_static
 
20016
 
 
20017
# Compiler flag to prevent dynamic linking.
 
20018
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20019
 
 
20020
# Compiler flag to turn off builtin functions.
 
20021
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20022
 
 
20023
# Compiler flag to allow reflexive dlopens.
 
20024
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20025
 
 
20026
# Compiler flag to generate shared objects directly from archives.
 
20027
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20028
 
 
20029
# Compiler flag to generate thread-safe objects.
 
20030
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20031
 
 
20032
# Library versioning type.
 
20033
version_type=$version_type
 
20034
 
 
20035
# Format of library name prefix.
 
20036
libname_spec=$lt_libname_spec
 
20037
 
 
20038
# List of archive names.  First name is the real one, the rest are links.
 
20039
# The last name is the one that the linker finds with -lNAME.
 
20040
library_names_spec=$lt_library_names_spec
 
20041
 
 
20042
# The coded name of the library, if different from the real name.
 
20043
soname_spec=$lt_soname_spec
 
20044
 
 
20045
# Commands used to build and install an old-style archive.
 
20046
RANLIB=$lt_RANLIB
 
20047
old_archive_cmds=$lt_old_archive_cmds_RC
 
20048
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20049
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20050
 
 
20051
# Create an old-style archive from a shared archive.
 
20052
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20053
 
 
20054
# Create a temporary old-style archive to link instead of a shared archive.
 
20055
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20056
 
 
20057
# Commands used to build and install a shared archive.
 
20058
archive_cmds=$lt_archive_cmds_RC
 
20059
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20060
postinstall_cmds=$lt_postinstall_cmds
 
20061
postuninstall_cmds=$lt_postuninstall_cmds
 
20062
 
 
20063
# Commands used to build a loadable module (assumed same as above if empty)
 
20064
module_cmds=$lt_module_cmds_RC
 
20065
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20066
 
 
20067
# Commands to strip libraries.
 
20068
old_striplib=$lt_old_striplib
 
20069
striplib=$lt_striplib
 
20070
 
 
20071
# Dependencies to place before the objects being linked to create a
 
20072
# shared library.
 
20073
predep_objects=$lt_predep_objects_RC
 
20074
 
 
20075
# Dependencies to place after the objects being linked to create a
 
20076
# shared library.
 
20077
postdep_objects=$lt_postdep_objects_RC
 
20078
 
 
20079
# Dependencies to place before the objects being linked to create a
 
20080
# shared library.
 
20081
predeps=$lt_predeps_RC
 
20082
 
 
20083
# Dependencies to place after the objects being linked to create a
 
20084
# shared library.
 
20085
postdeps=$lt_postdeps_RC
 
20086
 
 
20087
# The library search path used internally by the compiler when linking
 
20088
# a shared library.
 
20089
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20090
 
 
20091
# Method to check whether dependent libraries are shared objects.
 
20092
deplibs_check_method=$lt_deplibs_check_method
 
20093
 
 
20094
# Command to use when deplibs_check_method == file_magic.
 
20095
file_magic_cmd=$lt_file_magic_cmd
 
20096
 
 
20097
# Flag that allows shared libraries with undefined symbols to be built.
 
20098
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20099
 
 
20100
# Flag that forces no undefined symbols.
 
20101
no_undefined_flag=$lt_no_undefined_flag_RC
 
20102
 
 
20103
# Commands used to finish a libtool library installation in a directory.
 
20104
finish_cmds=$lt_finish_cmds
 
20105
 
 
20106
# Same as above, but a single script fragment to be evaled but not shown.
 
20107
finish_eval=$lt_finish_eval
 
20108
 
 
20109
# Take the output of nm and produce a listing of raw symbols and C names.
 
20110
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20111
 
 
20112
# Transform the output of nm in a proper C declaration
 
20113
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20114
 
 
20115
# Transform the output of nm in a C name address pair
 
20116
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20117
 
 
20118
# This is the shared library runtime path variable.
 
20119
runpath_var=$runpath_var
 
20120
 
 
20121
# This is the shared library path variable.
 
20122
shlibpath_var=$shlibpath_var
 
20123
 
 
20124
# Is shlibpath searched before the hard-coded library search path?
 
20125
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20126
 
 
20127
# How to hardcode a shared library path into an executable.
 
20128
hardcode_action=$hardcode_action_RC
 
20129
 
 
20130
# Whether we should hardcode library paths into libraries.
 
20131
hardcode_into_libs=$hardcode_into_libs
 
20132
 
 
20133
# Flag to hardcode \$libdir into a binary during linking.
 
20134
# This must work even if \$libdir does not exist.
 
20135
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20136
 
 
20137
# If ld is used when linking, flag to hardcode \$libdir into
 
20138
# a binary during linking. This must work even if \$libdir does
 
20139
# not exist.
 
20140
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20141
 
 
20142
# Whether we need a single -rpath flag with a separated argument.
 
20143
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20144
 
 
20145
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20146
# resulting binary.
 
20147
hardcode_direct=$hardcode_direct_RC
 
20148
 
 
20149
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20150
# resulting binary.
 
20151
hardcode_minus_L=$hardcode_minus_L_RC
 
20152
 
 
20153
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20154
# the resulting binary.
 
20155
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20156
 
 
20157
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20158
# and all subsequent libraries and executables linked against it.
 
20159
hardcode_automatic=$hardcode_automatic_RC
 
20160
 
 
20161
# Variables whose values should be saved in libtool wrapper scripts and
 
20162
# restored at relink time.
 
20163
variables_saved_for_relink="$variables_saved_for_relink"
 
20164
 
 
20165
# Whether libtool must link a program against all its dependency libraries.
 
20166
link_all_deplibs=$link_all_deplibs_RC
 
20167
 
 
20168
# Compile-time system search path for libraries
 
20169
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20170
 
 
20171
# Run-time system search path for libraries
 
20172
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20173
 
 
20174
# Fix the shell variable \$srcfile for the compiler.
 
20175
fix_srcfile_path=$lt_fix_srcfile_path
 
20176
 
 
20177
# Set to yes if exported symbols are required.
 
20178
always_export_symbols=$always_export_symbols_RC
 
20179
 
 
20180
# The commands to list exported symbols.
 
20181
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20182
 
 
20183
# The commands to extract the exported symbol list from a shared archive.
 
20184
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20185
 
 
20186
# Symbols that should not be listed in the preloaded symbols.
 
20187
exclude_expsyms=$lt_exclude_expsyms_RC
 
20188
 
 
20189
# Symbols that must always be exported.
 
20190
include_expsyms=$lt_include_expsyms_RC
 
20191
 
 
20192
# ### END LIBTOOL TAG CONFIG: $tagname
 
20193
 
 
20194
__EOF__
 
20195
 
 
20196
 
 
20197
else
 
20198
  # If there is no Makefile yet, we rely on a make rule to execute
 
20199
  # `config.status --recheck' to rerun these tests and create the
 
20200
  # libtool script then.
 
20201
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20202
  if test -f "$ltmain_in"; then
 
20203
    test -f Makefile && make "$ltmain"
 
20204
  fi
 
20205
fi
 
20206
 
 
20207
 
 
20208
ac_ext=c
 
20209
ac_cpp='$CPP $CPPFLAGS'
 
20210
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20211
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20212
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20213
 
 
20214
CC="$lt_save_CC"
 
20215
 
 
20216
        ;;
 
20217
 
 
20218
      *)
 
20219
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20220
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20221
   { (exit 1); exit 1; }; }
 
20222
        ;;
 
20223
      esac
 
20224
 
 
20225
      # Append the new tag name to the list of available tags.
 
20226
      if test -n "$tagname" ; then
 
20227
      available_tags="$available_tags $tagname"
 
20228
    fi
 
20229
    fi
 
20230
  done
 
20231
  IFS="$lt_save_ifs"
 
20232
 
 
20233
  # Now substitute the updated list of available tags.
 
20234
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20235
    mv "${ofile}T" "$ofile"
 
20236
    chmod +x "$ofile"
 
20237
  else
 
20238
    rm -f "${ofile}T"
 
20239
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20240
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20241
   { (exit 1); exit 1; }; }
 
20242
  fi
 
20243
fi
 
20244
 
 
20245
 
 
20246
 
 
20247
# This can be used to rebuild libtool when needed
 
20248
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20249
 
 
20250
# Always use our own libtool.
 
20251
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20252
 
 
20253
# Prevent multiple expansion
 
20254
 
 
20255
 
 
20256
 
 
20257
 
 
20258
 
 
20259
 
 
20260
 
 
20261
 
 
20262
 
 
20263
 
 
20264
 
 
20265
 
 
20266
 
 
20267
 
 
20268
 
 
20269
 
 
20270
 
 
20271
 
 
20272
 
 
20273
 
 
20274
 
 
20275
# Extract the first word of "bison", so it can be a program name with args.
 
20276
set dummy bison; ac_word=$2
 
20277
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20279
if test "${ac_cv_prog_YACC+set}" = set; then
 
20280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20281
else
 
20282
  if test -n "$YACC"; then
 
20283
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
20284
else
 
20285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20286
for as_dir in $PATH
 
20287
do
 
20288
  IFS=$as_save_IFS
 
20289
  test -z "$as_dir" && as_dir=.
 
20290
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20291
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20292
    ac_cv_prog_YACC="bison"
 
20293
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20294
    break 2
 
20295
  fi
 
20296
done
 
20297
done
 
20298
IFS=$as_save_IFS
 
20299
 
 
20300
fi
 
20301
fi
 
20302
YACC=$ac_cv_prog_YACC
 
20303
if test -n "$YACC"; then
 
20304
  { echo "$as_me:$LINENO: result: $YACC" >&5
 
20305
echo "${ECHO_T}$YACC" >&6; }
 
20306
else
 
20307
  { echo "$as_me:$LINENO: result: no" >&5
 
20308
echo "${ECHO_T}no" >&6; }
 
20309
fi
 
20310
 
 
20311
 
 
20312
 
 
20313
 
 
20314
 
 
20315
 
 
20316
 
 
20317
 
 
20318
ac_header_dirent=no
 
20319
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
20320
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
20321
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
20322
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
 
20323
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20324
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20325
else
 
20326
  cat >conftest.$ac_ext <<_ACEOF
 
20327
/* confdefs.h.  */
 
20328
_ACEOF
 
20329
cat confdefs.h >>conftest.$ac_ext
 
20330
cat >>conftest.$ac_ext <<_ACEOF
 
20331
/* end confdefs.h.  */
 
20332
#include <sys/types.h>
 
20333
#include <$ac_hdr>
 
20334
 
 
20335
int
 
20336
main ()
 
20337
{
 
20338
if ((DIR *) 0)
 
20339
return 0;
 
20340
  ;
 
20341
  return 0;
 
20342
}
 
20343
_ACEOF
 
20344
rm -f conftest.$ac_objext
 
20345
if { (ac_try="$ac_compile"
 
20346
case "(($ac_try" in
 
20347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20348
  *) ac_try_echo=$ac_try;;
 
20349
esac
 
20350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20351
  (eval "$ac_compile") 2>conftest.er1
 
20352
  ac_status=$?
 
20353
  grep -v '^ *+' conftest.er1 >conftest.err
 
20354
  rm -f conftest.er1
 
20355
  cat conftest.err >&5
 
20356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20357
  (exit $ac_status); } && {
 
20358
         test -z "$ac_c_werror_flag" ||
 
20359
         test ! -s conftest.err
 
20360
       } && test -s conftest.$ac_objext; then
 
20361
  eval "$as_ac_Header=yes"
 
20362
else
 
20363
  echo "$as_me: failed program was:" >&5
 
20364
sed 's/^/| /' conftest.$ac_ext >&5
 
20365
 
 
20366
        eval "$as_ac_Header=no"
 
20367
fi
 
20368
 
 
20369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20370
fi
 
20371
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20372
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20373
echo "${ECHO_T}$ac_res" >&6; }
 
20374
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20375
  cat >>confdefs.h <<_ACEOF
 
20376
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
20377
_ACEOF
 
20378
 
 
20379
ac_header_dirent=$ac_hdr; break
 
20380
fi
 
20381
 
 
20382
done
 
20383
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
20384
if test $ac_header_dirent = dirent.h; then
 
20385
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
20386
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
20387
if test "${ac_cv_search_opendir+set}" = set; then
 
20388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20389
else
 
20390
  ac_func_search_save_LIBS=$LIBS
 
20391
cat >conftest.$ac_ext <<_ACEOF
 
20392
/* confdefs.h.  */
 
20393
_ACEOF
 
20394
cat confdefs.h >>conftest.$ac_ext
 
20395
cat >>conftest.$ac_ext <<_ACEOF
 
20396
/* end confdefs.h.  */
 
20397
 
 
20398
/* Override any GCC internal prototype to avoid an error.
 
20399
   Use char because int might match the return type of a GCC
 
20400
   builtin and then its argument prototype would still apply.  */
 
20401
#ifdef __cplusplus
 
20402
extern "C"
 
20403
#endif
 
20404
char opendir ();
 
20405
int
 
20406
main ()
 
20407
{
 
20408
return opendir ();
 
20409
  ;
 
20410
  return 0;
 
20411
}
 
20412
_ACEOF
 
20413
for ac_lib in '' dir; do
 
20414
  if test -z "$ac_lib"; then
 
20415
    ac_res="none required"
 
20416
  else
 
20417
    ac_res=-l$ac_lib
 
20418
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20419
  fi
 
20420
  rm -f conftest.$ac_objext conftest$ac_exeext
 
20421
if { (ac_try="$ac_link"
 
20422
case "(($ac_try" in
 
20423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20424
  *) ac_try_echo=$ac_try;;
 
20425
esac
 
20426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20427
  (eval "$ac_link") 2>conftest.er1
 
20428
  ac_status=$?
 
20429
  grep -v '^ *+' conftest.er1 >conftest.err
 
20430
  rm -f conftest.er1
 
20431
  cat conftest.err >&5
 
20432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20433
  (exit $ac_status); } && {
 
20434
         test -z "$ac_c_werror_flag" ||
 
20435
         test ! -s conftest.err
 
20436
       } && test -s conftest$ac_exeext &&
 
20437
       $as_test_x conftest$ac_exeext; then
 
20438
  ac_cv_search_opendir=$ac_res
 
20439
else
 
20440
  echo "$as_me: failed program was:" >&5
 
20441
sed 's/^/| /' conftest.$ac_ext >&5
 
20442
 
 
20443
 
 
20444
fi
 
20445
 
 
20446
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20447
      conftest$ac_exeext
 
20448
  if test "${ac_cv_search_opendir+set}" = set; then
 
20449
  break
 
20450
fi
 
20451
done
 
20452
if test "${ac_cv_search_opendir+set}" = set; then
 
20453
  :
 
20454
else
 
20455
  ac_cv_search_opendir=no
 
20456
fi
 
20457
rm conftest.$ac_ext
 
20458
LIBS=$ac_func_search_save_LIBS
 
20459
fi
 
20460
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
20461
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
20462
ac_res=$ac_cv_search_opendir
 
20463
if test "$ac_res" != no; then
 
20464
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
20465
 
 
20466
fi
 
20467
 
 
20468
else
 
20469
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
20470
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
20471
if test "${ac_cv_search_opendir+set}" = set; then
 
20472
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20473
else
 
20474
  ac_func_search_save_LIBS=$LIBS
 
20475
cat >conftest.$ac_ext <<_ACEOF
 
20476
/* confdefs.h.  */
 
20477
_ACEOF
 
20478
cat confdefs.h >>conftest.$ac_ext
 
20479
cat >>conftest.$ac_ext <<_ACEOF
 
20480
/* end confdefs.h.  */
 
20481
 
 
20482
/* Override any GCC internal prototype to avoid an error.
 
20483
   Use char because int might match the return type of a GCC
 
20484
   builtin and then its argument prototype would still apply.  */
 
20485
#ifdef __cplusplus
 
20486
extern "C"
 
20487
#endif
 
20488
char opendir ();
 
20489
int
 
20490
main ()
 
20491
{
 
20492
return opendir ();
 
20493
  ;
 
20494
  return 0;
 
20495
}
 
20496
_ACEOF
 
20497
for ac_lib in '' x; do
 
20498
  if test -z "$ac_lib"; then
 
20499
    ac_res="none required"
 
20500
  else
 
20501
    ac_res=-l$ac_lib
 
20502
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20503
  fi
 
20504
  rm -f conftest.$ac_objext conftest$ac_exeext
 
20505
if { (ac_try="$ac_link"
 
20506
case "(($ac_try" in
 
20507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20508
  *) ac_try_echo=$ac_try;;
 
20509
esac
 
20510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20511
  (eval "$ac_link") 2>conftest.er1
 
20512
  ac_status=$?
 
20513
  grep -v '^ *+' conftest.er1 >conftest.err
 
20514
  rm -f conftest.er1
 
20515
  cat conftest.err >&5
 
20516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20517
  (exit $ac_status); } && {
 
20518
         test -z "$ac_c_werror_flag" ||
 
20519
         test ! -s conftest.err
 
20520
       } && test -s conftest$ac_exeext &&
 
20521
       $as_test_x conftest$ac_exeext; then
 
20522
  ac_cv_search_opendir=$ac_res
 
20523
else
 
20524
  echo "$as_me: failed program was:" >&5
 
20525
sed 's/^/| /' conftest.$ac_ext >&5
 
20526
 
 
20527
 
 
20528
fi
 
20529
 
 
20530
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20531
      conftest$ac_exeext
 
20532
  if test "${ac_cv_search_opendir+set}" = set; then
 
20533
  break
 
20534
fi
 
20535
done
 
20536
if test "${ac_cv_search_opendir+set}" = set; then
 
20537
  :
 
20538
else
 
20539
  ac_cv_search_opendir=no
 
20540
fi
 
20541
rm conftest.$ac_ext
 
20542
LIBS=$ac_func_search_save_LIBS
 
20543
fi
 
20544
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
20545
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
20546
ac_res=$ac_cv_search_opendir
 
20547
if test "$ac_res" != no; then
 
20548
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
20549
 
 
20550
fi
 
20551
 
 
20552
fi
 
20553
 
 
20554
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20555
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
20556
if test "${ac_cv_header_stdc+set}" = set; then
 
20557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20558
else
 
20559
  cat >conftest.$ac_ext <<_ACEOF
 
20560
/* confdefs.h.  */
 
20561
_ACEOF
 
20562
cat confdefs.h >>conftest.$ac_ext
 
20563
cat >>conftest.$ac_ext <<_ACEOF
 
20564
/* end confdefs.h.  */
 
20565
#include <stdlib.h>
 
20566
#include <stdarg.h>
 
20567
#include <string.h>
 
20568
#include <float.h>
 
20569
 
 
20570
int
 
20571
main ()
 
20572
{
 
20573
 
 
20574
  ;
 
20575
  return 0;
 
20576
}
 
20577
_ACEOF
 
20578
rm -f conftest.$ac_objext
 
20579
if { (ac_try="$ac_compile"
 
20580
case "(($ac_try" in
 
20581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20582
  *) ac_try_echo=$ac_try;;
 
20583
esac
 
20584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20585
  (eval "$ac_compile") 2>conftest.er1
 
20586
  ac_status=$?
 
20587
  grep -v '^ *+' conftest.er1 >conftest.err
 
20588
  rm -f conftest.er1
 
20589
  cat conftest.err >&5
 
20590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20591
  (exit $ac_status); } && {
 
20592
         test -z "$ac_c_werror_flag" ||
 
20593
         test ! -s conftest.err
 
20594
       } && test -s conftest.$ac_objext; then
 
20595
  ac_cv_header_stdc=yes
 
20596
else
 
20597
  echo "$as_me: failed program was:" >&5
 
20598
sed 's/^/| /' conftest.$ac_ext >&5
 
20599
 
 
20600
        ac_cv_header_stdc=no
 
20601
fi
 
20602
 
 
20603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20604
 
 
20605
if test $ac_cv_header_stdc = yes; then
 
20606
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20607
  cat >conftest.$ac_ext <<_ACEOF
 
20608
/* confdefs.h.  */
 
20609
_ACEOF
 
20610
cat confdefs.h >>conftest.$ac_ext
 
20611
cat >>conftest.$ac_ext <<_ACEOF
 
20612
/* end confdefs.h.  */
 
20613
#include <string.h>
 
20614
 
 
20615
_ACEOF
 
20616
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20617
  $EGREP "memchr" >/dev/null 2>&1; then
 
20618
  :
 
20619
else
 
20620
  ac_cv_header_stdc=no
 
20621
fi
 
20622
rm -f conftest*
 
20623
 
 
20624
fi
 
20625
 
 
20626
if test $ac_cv_header_stdc = yes; then
 
20627
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20628
  cat >conftest.$ac_ext <<_ACEOF
 
20629
/* confdefs.h.  */
 
20630
_ACEOF
 
20631
cat confdefs.h >>conftest.$ac_ext
 
20632
cat >>conftest.$ac_ext <<_ACEOF
 
20633
/* end confdefs.h.  */
 
20634
#include <stdlib.h>
 
20635
 
 
20636
_ACEOF
 
20637
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20638
  $EGREP "free" >/dev/null 2>&1; then
 
20639
  :
 
20640
else
 
20641
  ac_cv_header_stdc=no
 
20642
fi
 
20643
rm -f conftest*
 
20644
 
 
20645
fi
 
20646
 
 
20647
if test $ac_cv_header_stdc = yes; then
 
20648
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20649
  if test "$cross_compiling" = yes; then
 
20650
  :
 
20651
else
 
20652
  cat >conftest.$ac_ext <<_ACEOF
 
20653
/* confdefs.h.  */
 
20654
_ACEOF
 
20655
cat confdefs.h >>conftest.$ac_ext
 
20656
cat >>conftest.$ac_ext <<_ACEOF
 
20657
/* end confdefs.h.  */
 
20658
#include <ctype.h>
 
20659
#include <stdlib.h>
 
20660
#if ((' ' & 0x0FF) == 0x020)
 
20661
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20662
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20663
#else
 
20664
# define ISLOWER(c) \
 
20665
                   (('a' <= (c) && (c) <= 'i') \
 
20666
                     || ('j' <= (c) && (c) <= 'r') \
 
20667
                     || ('s' <= (c) && (c) <= 'z'))
 
20668
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20669
#endif
 
20670
 
 
20671
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20672
int
 
20673
main ()
 
20674
{
 
20675
  int i;
 
20676
  for (i = 0; i < 256; i++)
 
20677
    if (XOR (islower (i), ISLOWER (i))
 
20678
        || toupper (i) != TOUPPER (i))
 
20679
      return 2;
 
20680
  return 0;
 
20681
}
 
20682
_ACEOF
 
20683
rm -f conftest$ac_exeext
 
20684
if { (ac_try="$ac_link"
 
20685
case "(($ac_try" in
 
20686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20687
  *) ac_try_echo=$ac_try;;
 
20688
esac
 
20689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20690
  (eval "$ac_link") 2>&5
 
20691
  ac_status=$?
 
20692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20693
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20694
  { (case "(($ac_try" in
 
20695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20696
  *) ac_try_echo=$ac_try;;
 
20697
esac
 
20698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20699
  (eval "$ac_try") 2>&5
 
20700
  ac_status=$?
 
20701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20702
  (exit $ac_status); }; }; then
 
20703
  :
 
20704
else
 
20705
  echo "$as_me: program exited with status $ac_status" >&5
 
20706
echo "$as_me: failed program was:" >&5
 
20707
sed 's/^/| /' conftest.$ac_ext >&5
 
20708
 
 
20709
( exit $ac_status )
 
20710
ac_cv_header_stdc=no
 
20711
fi
 
20712
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20713
fi
 
20714
 
 
20715
 
 
20716
fi
 
20717
fi
 
20718
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20719
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
20720
if test $ac_cv_header_stdc = yes; then
 
20721
 
 
20722
cat >>confdefs.h <<\_ACEOF
 
20723
#define STDC_HEADERS 1
 
20724
_ACEOF
 
20725
 
 
20726
fi
 
20727
 
 
20728
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
20729
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
 
20730
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
20731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20732
else
 
20733
  cat >conftest.$ac_ext <<_ACEOF
 
20734
/* confdefs.h.  */
 
20735
_ACEOF
 
20736
cat confdefs.h >>conftest.$ac_ext
 
20737
cat >>conftest.$ac_ext <<_ACEOF
 
20738
/* end confdefs.h.  */
 
20739
#include <sys/types.h>
 
20740
#include <sys/wait.h>
 
20741
#ifndef WEXITSTATUS
 
20742
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
20743
#endif
 
20744
#ifndef WIFEXITED
 
20745
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
20746
#endif
 
20747
 
 
20748
int
 
20749
main ()
 
20750
{
 
20751
  int s;
 
20752
  wait (&s);
 
20753
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
20754
  ;
 
20755
  return 0;
 
20756
}
 
20757
_ACEOF
 
20758
rm -f conftest.$ac_objext
 
20759
if { (ac_try="$ac_compile"
 
20760
case "(($ac_try" in
 
20761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20762
  *) ac_try_echo=$ac_try;;
 
20763
esac
 
20764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20765
  (eval "$ac_compile") 2>conftest.er1
 
20766
  ac_status=$?
 
20767
  grep -v '^ *+' conftest.er1 >conftest.err
 
20768
  rm -f conftest.er1
 
20769
  cat conftest.err >&5
 
20770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20771
  (exit $ac_status); } && {
 
20772
         test -z "$ac_c_werror_flag" ||
 
20773
         test ! -s conftest.err
 
20774
       } && test -s conftest.$ac_objext; then
 
20775
  ac_cv_header_sys_wait_h=yes
 
20776
else
 
20777
  echo "$as_me: failed program was:" >&5
 
20778
sed 's/^/| /' conftest.$ac_ext >&5
 
20779
 
 
20780
        ac_cv_header_sys_wait_h=no
 
20781
fi
 
20782
 
 
20783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20784
fi
 
20785
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
20786
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
 
20787
if test $ac_cv_header_sys_wait_h = yes; then
 
20788
 
 
20789
cat >>confdefs.h <<\_ACEOF
 
20790
#define HAVE_SYS_WAIT_H 1
 
20791
_ACEOF
 
20792
 
 
20793
fi
 
20794
 
 
20795
 
 
20796
 
 
20797
 
 
20798
 
 
20799
 
 
20800
 
 
20801
 
 
20802
 
 
20803
 
 
20804
 
 
20805
 
 
20806
for ac_header in fcntl.h malloc.h memory.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
 
20807
do
 
20808
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20809
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20810
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20811
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20812
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20814
fi
 
20815
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20816
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20817
echo "${ECHO_T}$ac_res" >&6; }
 
20818
else
 
20819
  # Is the header compilable?
 
20820
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20821
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20822
cat >conftest.$ac_ext <<_ACEOF
 
20823
/* confdefs.h.  */
 
20824
_ACEOF
 
20825
cat confdefs.h >>conftest.$ac_ext
 
20826
cat >>conftest.$ac_ext <<_ACEOF
 
20827
/* end confdefs.h.  */
 
20828
$ac_includes_default
 
20829
#include <$ac_header>
 
20830
_ACEOF
 
20831
rm -f conftest.$ac_objext
 
20832
if { (ac_try="$ac_compile"
 
20833
case "(($ac_try" in
 
20834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20835
  *) ac_try_echo=$ac_try;;
 
20836
esac
 
20837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20838
  (eval "$ac_compile") 2>conftest.er1
 
20839
  ac_status=$?
 
20840
  grep -v '^ *+' conftest.er1 >conftest.err
 
20841
  rm -f conftest.er1
 
20842
  cat conftest.err >&5
 
20843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20844
  (exit $ac_status); } && {
 
20845
         test -z "$ac_c_werror_flag" ||
 
20846
         test ! -s conftest.err
 
20847
       } && test -s conftest.$ac_objext; then
 
20848
  ac_header_compiler=yes
 
20849
else
 
20850
  echo "$as_me: failed program was:" >&5
 
20851
sed 's/^/| /' conftest.$ac_ext >&5
 
20852
 
 
20853
        ac_header_compiler=no
 
20854
fi
 
20855
 
 
20856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20857
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20858
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20859
 
 
20860
# Is the header present?
 
20861
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20862
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20863
cat >conftest.$ac_ext <<_ACEOF
 
20864
/* confdefs.h.  */
 
20865
_ACEOF
 
20866
cat confdefs.h >>conftest.$ac_ext
 
20867
cat >>conftest.$ac_ext <<_ACEOF
 
20868
/* end confdefs.h.  */
 
20869
#include <$ac_header>
 
20870
_ACEOF
 
20871
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20872
case "(($ac_try" in
 
20873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20874
  *) ac_try_echo=$ac_try;;
 
20875
esac
 
20876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20877
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20878
  ac_status=$?
 
20879
  grep -v '^ *+' conftest.er1 >conftest.err
 
20880
  rm -f conftest.er1
 
20881
  cat conftest.err >&5
 
20882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20883
  (exit $ac_status); } >/dev/null && {
 
20884
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20885
         test ! -s conftest.err
 
20886
       }; then
 
20887
  ac_header_preproc=yes
 
20888
else
 
20889
  echo "$as_me: failed program was:" >&5
 
20890
sed 's/^/| /' conftest.$ac_ext >&5
 
20891
 
 
20892
  ac_header_preproc=no
 
20893
fi
 
20894
 
 
20895
rm -f conftest.err conftest.$ac_ext
 
20896
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20897
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20898
 
 
20899
# So?  What about this header?
 
20900
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20901
  yes:no: )
 
20902
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20903
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20904
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20905
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20906
    ac_header_preproc=yes
 
20907
    ;;
 
20908
  no:yes:* )
 
20909
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20910
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20911
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20912
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20913
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20914
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20915
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20916
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20917
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20918
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20919
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20920
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20921
    ( cat <<\_ASBOX
 
20922
## --------------------------------------- ##
 
20923
## Report this to opendap-tech@opendap.org ##
 
20924
## --------------------------------------- ##
 
20925
_ASBOX
 
20926
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20927
    ;;
 
20928
esac
 
20929
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20930
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20931
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20933
else
 
20934
  eval "$as_ac_Header=\$ac_header_preproc"
 
20935
fi
 
20936
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20937
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20938
echo "${ECHO_T}$ac_res" >&6; }
 
20939
 
 
20940
fi
 
20941
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20942
  cat >>confdefs.h <<_ACEOF
 
20943
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20944
_ACEOF
 
20945
 
 
20946
fi
 
20947
 
 
20948
done
 
20949
 
 
20950
 
 
20951
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20952
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
20953
if test "${ac_cv_c_const+set}" = set; then
 
20954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20955
else
 
20956
  cat >conftest.$ac_ext <<_ACEOF
 
20957
/* confdefs.h.  */
 
20958
_ACEOF
 
20959
cat confdefs.h >>conftest.$ac_ext
 
20960
cat >>conftest.$ac_ext <<_ACEOF
 
20961
/* end confdefs.h.  */
 
20962
 
 
20963
int
 
20964
main ()
 
20965
{
 
20966
/* FIXME: Include the comments suggested by Paul. */
 
20967
#ifndef __cplusplus
 
20968
  /* Ultrix mips cc rejects this.  */
 
20969
  typedef int charset[2];
 
20970
  const charset cs;
 
20971
  /* SunOS 4.1.1 cc rejects this.  */
 
20972
  char const *const *pcpcc;
 
20973
  char **ppc;
 
20974
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
20975
  struct point {int x, y;};
 
20976
  static struct point const zero = {0,0};
 
20977
  /* AIX XL C 1.02.0.0 rejects this.
 
20978
     It does not let you subtract one const X* pointer from another in
 
20979
     an arm of an if-expression whose if-part is not a constant
 
20980
     expression */
 
20981
  const char *g = "string";
 
20982
  pcpcc = &g + (g ? g-g : 0);
 
20983
  /* HPUX 7.0 cc rejects these. */
 
20984
  ++pcpcc;
 
20985
  ppc = (char**) pcpcc;
 
20986
  pcpcc = (char const *const *) ppc;
 
20987
  { /* SCO 3.2v4 cc rejects this.  */
 
20988
    char *t;
 
20989
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
20990
 
 
20991
    *t++ = 0;
 
20992
    if (s) return 0;
 
20993
  }
 
20994
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
20995
    int x[] = {25, 17};
 
20996
    const int *foo = &x[0];
 
20997
    ++foo;
 
20998
  }
 
20999
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
21000
    typedef const int *iptr;
 
21001
    iptr p = 0;
 
21002
    ++p;
 
21003
  }
 
21004
  { /* AIX XL C 1.02.0.0 rejects this saying
 
21005
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
21006
    struct s { int j; const int *ap[3]; };
 
21007
    struct s *b; b->j = 5;
 
21008
  }
 
21009
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
21010
    const int foo = 10;
 
21011
    if (!foo) return 0;
 
21012
  }
 
21013
  return !cs[0] && !zero.x;
 
21014
#endif
 
21015
 
 
21016
  ;
 
21017
  return 0;
 
21018
}
 
21019
_ACEOF
 
21020
rm -f conftest.$ac_objext
 
21021
if { (ac_try="$ac_compile"
 
21022
case "(($ac_try" in
 
21023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21024
  *) ac_try_echo=$ac_try;;
 
21025
esac
 
21026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21027
  (eval "$ac_compile") 2>conftest.er1
 
21028
  ac_status=$?
 
21029
  grep -v '^ *+' conftest.er1 >conftest.err
 
21030
  rm -f conftest.er1
 
21031
  cat conftest.err >&5
 
21032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21033
  (exit $ac_status); } && {
 
21034
         test -z "$ac_c_werror_flag" ||
 
21035
         test ! -s conftest.err
 
21036
       } && test -s conftest.$ac_objext; then
 
21037
  ac_cv_c_const=yes
 
21038
else
 
21039
  echo "$as_me: failed program was:" >&5
 
21040
sed 's/^/| /' conftest.$ac_ext >&5
 
21041
 
 
21042
        ac_cv_c_const=no
 
21043
fi
 
21044
 
 
21045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21046
fi
 
21047
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
21048
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
21049
if test $ac_cv_c_const = no; then
 
21050
 
 
21051
cat >>confdefs.h <<\_ACEOF
 
21052
#define const
 
21053
_ACEOF
 
21054
 
 
21055
fi
 
21056
 
 
21057
{ echo "$as_me:$LINENO: checking for inline" >&5
 
21058
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
21059
if test "${ac_cv_c_inline+set}" = set; then
 
21060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21061
else
 
21062
  ac_cv_c_inline=no
 
21063
for ac_kw in inline __inline__ __inline; do
 
21064
  cat >conftest.$ac_ext <<_ACEOF
 
21065
/* confdefs.h.  */
 
21066
_ACEOF
 
21067
cat confdefs.h >>conftest.$ac_ext
 
21068
cat >>conftest.$ac_ext <<_ACEOF
 
21069
/* end confdefs.h.  */
 
21070
#ifndef __cplusplus
 
21071
typedef int foo_t;
 
21072
static $ac_kw foo_t static_foo () {return 0; }
 
21073
$ac_kw foo_t foo () {return 0; }
 
21074
#endif
 
21075
 
 
21076
_ACEOF
 
21077
rm -f conftest.$ac_objext
 
21078
if { (ac_try="$ac_compile"
 
21079
case "(($ac_try" in
 
21080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21081
  *) ac_try_echo=$ac_try;;
 
21082
esac
 
21083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21084
  (eval "$ac_compile") 2>conftest.er1
 
21085
  ac_status=$?
 
21086
  grep -v '^ *+' conftest.er1 >conftest.err
 
21087
  rm -f conftest.er1
 
21088
  cat conftest.err >&5
 
21089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21090
  (exit $ac_status); } && {
 
21091
         test -z "$ac_c_werror_flag" ||
 
21092
         test ! -s conftest.err
 
21093
       } && test -s conftest.$ac_objext; then
 
21094
  ac_cv_c_inline=$ac_kw
 
21095
else
 
21096
  echo "$as_me: failed program was:" >&5
 
21097
sed 's/^/| /' conftest.$ac_ext >&5
 
21098
 
 
21099
 
 
21100
fi
 
21101
 
 
21102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21103
  test "$ac_cv_c_inline" != no && break
 
21104
done
 
21105
 
 
21106
fi
 
21107
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
21108
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
21109
 
 
21110
 
 
21111
case $ac_cv_c_inline in
 
21112
  inline | yes) ;;
 
21113
  *)
 
21114
    case $ac_cv_c_inline in
 
21115
      no) ac_val=;;
 
21116
      *) ac_val=$ac_cv_c_inline;;
 
21117
    esac
 
21118
    cat >>confdefs.h <<_ACEOF
 
21119
#ifndef __cplusplus
 
21120
#define inline $ac_val
 
21121
#endif
 
21122
_ACEOF
 
21123
    ;;
 
21124
esac
 
21125
 
 
21126
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
21127
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
21128
if test "${ac_cv_type_size_t+set}" = set; then
 
21129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21130
else
 
21131
  cat >conftest.$ac_ext <<_ACEOF
 
21132
/* confdefs.h.  */
 
21133
_ACEOF
 
21134
cat confdefs.h >>conftest.$ac_ext
 
21135
cat >>conftest.$ac_ext <<_ACEOF
 
21136
/* end confdefs.h.  */
 
21137
$ac_includes_default
 
21138
typedef size_t ac__type_new_;
 
21139
int
 
21140
main ()
 
21141
{
 
21142
if ((ac__type_new_ *) 0)
 
21143
  return 0;
 
21144
if (sizeof (ac__type_new_))
 
21145
  return 0;
 
21146
  ;
 
21147
  return 0;
 
21148
}
 
21149
_ACEOF
 
21150
rm -f conftest.$ac_objext
 
21151
if { (ac_try="$ac_compile"
 
21152
case "(($ac_try" in
 
21153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21154
  *) ac_try_echo=$ac_try;;
 
21155
esac
 
21156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21157
  (eval "$ac_compile") 2>conftest.er1
 
21158
  ac_status=$?
 
21159
  grep -v '^ *+' conftest.er1 >conftest.err
 
21160
  rm -f conftest.er1
 
21161
  cat conftest.err >&5
 
21162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21163
  (exit $ac_status); } && {
 
21164
         test -z "$ac_c_werror_flag" ||
 
21165
         test ! -s conftest.err
 
21166
       } && test -s conftest.$ac_objext; then
 
21167
  ac_cv_type_size_t=yes
 
21168
else
 
21169
  echo "$as_me: failed program was:" >&5
 
21170
sed 's/^/| /' conftest.$ac_ext >&5
 
21171
 
 
21172
        ac_cv_type_size_t=no
 
21173
fi
 
21174
 
 
21175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21176
fi
 
21177
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
21178
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
21179
if test $ac_cv_type_size_t = yes; then
 
21180
  :
 
21181
else
 
21182
 
 
21183
cat >>confdefs.h <<_ACEOF
 
21184
#define size_t unsigned int
 
21185
_ACEOF
 
21186
 
 
21187
fi
 
21188
 
 
21189
{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
 
21190
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
 
21191
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
 
21192
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21193
else
 
21194
  cat >conftest.$ac_ext <<_ACEOF
 
21195
/* confdefs.h.  */
 
21196
_ACEOF
 
21197
cat confdefs.h >>conftest.$ac_ext
 
21198
cat >>conftest.$ac_ext <<_ACEOF
 
21199
/* end confdefs.h.  */
 
21200
$ac_includes_default
 
21201
int
 
21202
main ()
 
21203
{
 
21204
static struct stat ac_aggr;
 
21205
if (ac_aggr.st_blksize)
 
21206
return 0;
 
21207
  ;
 
21208
  return 0;
 
21209
}
 
21210
_ACEOF
 
21211
rm -f conftest.$ac_objext
 
21212
if { (ac_try="$ac_compile"
 
21213
case "(($ac_try" in
 
21214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21215
  *) ac_try_echo=$ac_try;;
 
21216
esac
 
21217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21218
  (eval "$ac_compile") 2>conftest.er1
 
21219
  ac_status=$?
 
21220
  grep -v '^ *+' conftest.er1 >conftest.err
 
21221
  rm -f conftest.er1
 
21222
  cat conftest.err >&5
 
21223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21224
  (exit $ac_status); } && {
 
21225
         test -z "$ac_c_werror_flag" ||
 
21226
         test ! -s conftest.err
 
21227
       } && test -s conftest.$ac_objext; then
 
21228
  ac_cv_member_struct_stat_st_blksize=yes
 
21229
else
 
21230
  echo "$as_me: failed program was:" >&5
 
21231
sed 's/^/| /' conftest.$ac_ext >&5
 
21232
 
 
21233
        cat >conftest.$ac_ext <<_ACEOF
 
21234
/* confdefs.h.  */
 
21235
_ACEOF
 
21236
cat confdefs.h >>conftest.$ac_ext
 
21237
cat >>conftest.$ac_ext <<_ACEOF
 
21238
/* end confdefs.h.  */
 
21239
$ac_includes_default
 
21240
int
 
21241
main ()
 
21242
{
 
21243
static struct stat ac_aggr;
 
21244
if (sizeof ac_aggr.st_blksize)
 
21245
return 0;
 
21246
  ;
 
21247
  return 0;
 
21248
}
 
21249
_ACEOF
 
21250
rm -f conftest.$ac_objext
 
21251
if { (ac_try="$ac_compile"
 
21252
case "(($ac_try" in
 
21253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21254
  *) ac_try_echo=$ac_try;;
 
21255
esac
 
21256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21257
  (eval "$ac_compile") 2>conftest.er1
 
21258
  ac_status=$?
 
21259
  grep -v '^ *+' conftest.er1 >conftest.err
 
21260
  rm -f conftest.er1
 
21261
  cat conftest.err >&5
 
21262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21263
  (exit $ac_status); } && {
 
21264
         test -z "$ac_c_werror_flag" ||
 
21265
         test ! -s conftest.err
 
21266
       } && test -s conftest.$ac_objext; then
 
21267
  ac_cv_member_struct_stat_st_blksize=yes
 
21268
else
 
21269
  echo "$as_me: failed program was:" >&5
 
21270
sed 's/^/| /' conftest.$ac_ext >&5
 
21271
 
 
21272
        ac_cv_member_struct_stat_st_blksize=no
 
21273
fi
 
21274
 
 
21275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21276
fi
 
21277
 
 
21278
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21279
fi
 
21280
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
 
21281
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
 
21282
if test $ac_cv_member_struct_stat_st_blksize = yes; then
 
21283
 
 
21284
cat >>confdefs.h <<_ACEOF
 
21285
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
 
21286
_ACEOF
 
21287
 
 
21288
 
 
21289
fi
 
21290
 
 
21291
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
21292
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
21293
if test "${ac_cv_header_time+set}" = set; then
 
21294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21295
else
 
21296
  cat >conftest.$ac_ext <<_ACEOF
 
21297
/* confdefs.h.  */
 
21298
_ACEOF
 
21299
cat confdefs.h >>conftest.$ac_ext
 
21300
cat >>conftest.$ac_ext <<_ACEOF
 
21301
/* end confdefs.h.  */
 
21302
#include <sys/types.h>
 
21303
#include <sys/time.h>
 
21304
#include <time.h>
 
21305
 
 
21306
int
 
21307
main ()
 
21308
{
 
21309
if ((struct tm *) 0)
 
21310
return 0;
 
21311
  ;
 
21312
  return 0;
 
21313
}
 
21314
_ACEOF
 
21315
rm -f conftest.$ac_objext
 
21316
if { (ac_try="$ac_compile"
 
21317
case "(($ac_try" in
 
21318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21319
  *) ac_try_echo=$ac_try;;
 
21320
esac
 
21321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21322
  (eval "$ac_compile") 2>conftest.er1
 
21323
  ac_status=$?
 
21324
  grep -v '^ *+' conftest.er1 >conftest.err
 
21325
  rm -f conftest.er1
 
21326
  cat conftest.err >&5
 
21327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21328
  (exit $ac_status); } && {
 
21329
         test -z "$ac_c_werror_flag" ||
 
21330
         test ! -s conftest.err
 
21331
       } && test -s conftest.$ac_objext; then
 
21332
  ac_cv_header_time=yes
 
21333
else
 
21334
  echo "$as_me: failed program was:" >&5
 
21335
sed 's/^/| /' conftest.$ac_ext >&5
 
21336
 
 
21337
        ac_cv_header_time=no
 
21338
fi
 
21339
 
 
21340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21341
fi
 
21342
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
21343
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
21344
if test $ac_cv_header_time = yes; then
 
21345
 
 
21346
cat >>confdefs.h <<\_ACEOF
 
21347
#define TIME_WITH_SYS_TIME 1
 
21348
_ACEOF
 
21349
 
 
21350
fi
 
21351
 
 
21352
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
21353
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
21354
if test "${ac_cv_struct_tm+set}" = set; then
 
21355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21356
else
 
21357
  cat >conftest.$ac_ext <<_ACEOF
 
21358
/* confdefs.h.  */
 
21359
_ACEOF
 
21360
cat confdefs.h >>conftest.$ac_ext
 
21361
cat >>conftest.$ac_ext <<_ACEOF
 
21362
/* end confdefs.h.  */
 
21363
#include <sys/types.h>
 
21364
#include <time.h>
 
21365
 
 
21366
int
 
21367
main ()
 
21368
{
 
21369
struct tm tm;
 
21370
                                     int *p = &tm.tm_sec;
 
21371
                                     return !p;
 
21372
  ;
 
21373
  return 0;
 
21374
}
 
21375
_ACEOF
 
21376
rm -f conftest.$ac_objext
 
21377
if { (ac_try="$ac_compile"
 
21378
case "(($ac_try" in
 
21379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21380
  *) ac_try_echo=$ac_try;;
 
21381
esac
 
21382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21383
  (eval "$ac_compile") 2>conftest.er1
 
21384
  ac_status=$?
 
21385
  grep -v '^ *+' conftest.er1 >conftest.err
 
21386
  rm -f conftest.er1
 
21387
  cat conftest.err >&5
 
21388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21389
  (exit $ac_status); } && {
 
21390
         test -z "$ac_c_werror_flag" ||
 
21391
         test ! -s conftest.err
 
21392
       } && test -s conftest.$ac_objext; then
 
21393
  ac_cv_struct_tm=time.h
 
21394
else
 
21395
  echo "$as_me: failed program was:" >&5
 
21396
sed 's/^/| /' conftest.$ac_ext >&5
 
21397
 
 
21398
        ac_cv_struct_tm=sys/time.h
 
21399
fi
 
21400
 
 
21401
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21402
fi
 
21403
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
21404
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
21405
if test $ac_cv_struct_tm = sys/time.h; then
 
21406
 
 
21407
cat >>confdefs.h <<\_ACEOF
 
21408
#define TM_IN_SYS_TIME 1
 
21409
_ACEOF
 
21410
 
 
21411
fi
 
21412
 
 
21413
{ echo "$as_me:$LINENO: checking for working volatile" >&5
 
21414
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
 
21415
if test "${ac_cv_c_volatile+set}" = set; then
 
21416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21417
else
 
21418
  cat >conftest.$ac_ext <<_ACEOF
 
21419
/* confdefs.h.  */
 
21420
_ACEOF
 
21421
cat confdefs.h >>conftest.$ac_ext
 
21422
cat >>conftest.$ac_ext <<_ACEOF
 
21423
/* end confdefs.h.  */
 
21424
 
 
21425
int
 
21426
main ()
 
21427
{
 
21428
 
 
21429
volatile int x;
 
21430
int * volatile y = (int *) 0;
 
21431
return !x && !y;
 
21432
  ;
 
21433
  return 0;
 
21434
}
 
21435
_ACEOF
 
21436
rm -f conftest.$ac_objext
 
21437
if { (ac_try="$ac_compile"
 
21438
case "(($ac_try" in
 
21439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21440
  *) ac_try_echo=$ac_try;;
 
21441
esac
 
21442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21443
  (eval "$ac_compile") 2>conftest.er1
 
21444
  ac_status=$?
 
21445
  grep -v '^ *+' conftest.er1 >conftest.err
 
21446
  rm -f conftest.er1
 
21447
  cat conftest.err >&5
 
21448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21449
  (exit $ac_status); } && {
 
21450
         test -z "$ac_c_werror_flag" ||
 
21451
         test ! -s conftest.err
 
21452
       } && test -s conftest.$ac_objext; then
 
21453
  ac_cv_c_volatile=yes
 
21454
else
 
21455
  echo "$as_me: failed program was:" >&5
 
21456
sed 's/^/| /' conftest.$ac_ext >&5
 
21457
 
 
21458
        ac_cv_c_volatile=no
 
21459
fi
 
21460
 
 
21461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21462
fi
 
21463
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
21464
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
 
21465
if test $ac_cv_c_volatile = no; then
 
21466
 
 
21467
cat >>confdefs.h <<\_ACEOF
 
21468
#define volatile
 
21469
_ACEOF
 
21470
 
 
21471
fi
 
21472
 
 
21473
    # Ignore the errors about AC_TRY_RUN missing an argument. jhrg 5/2/95
 
21474
 
 
21475
 
 
21476
 
 
21477
    { echo "$as_me:$LINENO: checking for int" >&5
 
21478
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
 
21479
if test "${ac_cv_type_int+set}" = set; then
 
21480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21481
else
 
21482
  cat >conftest.$ac_ext <<_ACEOF
 
21483
/* confdefs.h.  */
 
21484
_ACEOF
 
21485
cat confdefs.h >>conftest.$ac_ext
 
21486
cat >>conftest.$ac_ext <<_ACEOF
 
21487
/* end confdefs.h.  */
 
21488
$ac_includes_default
 
21489
typedef int ac__type_new_;
 
21490
int
 
21491
main ()
 
21492
{
 
21493
if ((ac__type_new_ *) 0)
 
21494
  return 0;
 
21495
if (sizeof (ac__type_new_))
 
21496
  return 0;
 
21497
  ;
 
21498
  return 0;
 
21499
}
 
21500
_ACEOF
 
21501
rm -f conftest.$ac_objext
 
21502
if { (ac_try="$ac_compile"
 
21503
case "(($ac_try" in
 
21504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21505
  *) ac_try_echo=$ac_try;;
 
21506
esac
 
21507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21508
  (eval "$ac_compile") 2>conftest.er1
 
21509
  ac_status=$?
 
21510
  grep -v '^ *+' conftest.er1 >conftest.err
 
21511
  rm -f conftest.er1
 
21512
  cat conftest.err >&5
 
21513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21514
  (exit $ac_status); } && {
 
21515
         test -z "$ac_c_werror_flag" ||
 
21516
         test ! -s conftest.err
 
21517
       } && test -s conftest.$ac_objext; then
 
21518
  ac_cv_type_int=yes
 
21519
else
 
21520
  echo "$as_me: failed program was:" >&5
 
21521
sed 's/^/| /' conftest.$ac_ext >&5
 
21522
 
 
21523
        ac_cv_type_int=no
 
21524
fi
 
21525
 
 
21526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21527
fi
 
21528
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
21529
echo "${ECHO_T}$ac_cv_type_int" >&6; }
 
21530
 
 
21531
# The cast to long int works around a bug in the HP C Compiler
 
21532
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21533
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21534
# This bug is HP SR number 8606223364.
 
21535
{ echo "$as_me:$LINENO: checking size of int" >&5
 
21536
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
 
21537
if test "${ac_cv_sizeof_int+set}" = set; then
 
21538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21539
else
 
21540
  if test "$cross_compiling" = yes; then
 
21541
  # Depending upon the size, compute the lo and hi bounds.
 
21542
cat >conftest.$ac_ext <<_ACEOF
 
21543
/* confdefs.h.  */
 
21544
_ACEOF
 
21545
cat confdefs.h >>conftest.$ac_ext
 
21546
cat >>conftest.$ac_ext <<_ACEOF
 
21547
/* end confdefs.h.  */
 
21548
$ac_includes_default
 
21549
   typedef int ac__type_sizeof_;
 
21550
int
 
21551
main ()
 
21552
{
 
21553
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
21554
test_array [0] = 0
 
21555
 
 
21556
  ;
 
21557
  return 0;
 
21558
}
 
21559
_ACEOF
 
21560
rm -f conftest.$ac_objext
 
21561
if { (ac_try="$ac_compile"
 
21562
case "(($ac_try" in
 
21563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21564
  *) ac_try_echo=$ac_try;;
 
21565
esac
 
21566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21567
  (eval "$ac_compile") 2>conftest.er1
 
21568
  ac_status=$?
 
21569
  grep -v '^ *+' conftest.er1 >conftest.err
 
21570
  rm -f conftest.er1
 
21571
  cat conftest.err >&5
 
21572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21573
  (exit $ac_status); } && {
 
21574
         test -z "$ac_c_werror_flag" ||
 
21575
         test ! -s conftest.err
 
21576
       } && test -s conftest.$ac_objext; then
 
21577
  ac_lo=0 ac_mid=0
 
21578
  while :; do
 
21579
    cat >conftest.$ac_ext <<_ACEOF
 
21580
/* confdefs.h.  */
 
21581
_ACEOF
 
21582
cat confdefs.h >>conftest.$ac_ext
 
21583
cat >>conftest.$ac_ext <<_ACEOF
 
21584
/* end confdefs.h.  */
 
21585
$ac_includes_default
 
21586
   typedef int ac__type_sizeof_;
 
21587
int
 
21588
main ()
 
21589
{
 
21590
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21591
test_array [0] = 0
 
21592
 
 
21593
  ;
 
21594
  return 0;
 
21595
}
 
21596
_ACEOF
 
21597
rm -f conftest.$ac_objext
 
21598
if { (ac_try="$ac_compile"
 
21599
case "(($ac_try" in
 
21600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21601
  *) ac_try_echo=$ac_try;;
 
21602
esac
 
21603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21604
  (eval "$ac_compile") 2>conftest.er1
 
21605
  ac_status=$?
 
21606
  grep -v '^ *+' conftest.er1 >conftest.err
 
21607
  rm -f conftest.er1
 
21608
  cat conftest.err >&5
 
21609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21610
  (exit $ac_status); } && {
 
21611
         test -z "$ac_c_werror_flag" ||
 
21612
         test ! -s conftest.err
 
21613
       } && test -s conftest.$ac_objext; then
 
21614
  ac_hi=$ac_mid; break
 
21615
else
 
21616
  echo "$as_me: failed program was:" >&5
 
21617
sed 's/^/| /' conftest.$ac_ext >&5
 
21618
 
 
21619
        ac_lo=`expr $ac_mid + 1`
 
21620
                        if test $ac_lo -le $ac_mid; then
 
21621
                          ac_lo= ac_hi=
 
21622
                          break
 
21623
                        fi
 
21624
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
21625
fi
 
21626
 
 
21627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21628
  done
 
21629
else
 
21630
  echo "$as_me: failed program was:" >&5
 
21631
sed 's/^/| /' conftest.$ac_ext >&5
 
21632
 
 
21633
        cat >conftest.$ac_ext <<_ACEOF
 
21634
/* confdefs.h.  */
 
21635
_ACEOF
 
21636
cat confdefs.h >>conftest.$ac_ext
 
21637
cat >>conftest.$ac_ext <<_ACEOF
 
21638
/* end confdefs.h.  */
 
21639
$ac_includes_default
 
21640
   typedef int ac__type_sizeof_;
 
21641
int
 
21642
main ()
 
21643
{
 
21644
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
21645
test_array [0] = 0
 
21646
 
 
21647
  ;
 
21648
  return 0;
 
21649
}
 
21650
_ACEOF
 
21651
rm -f conftest.$ac_objext
 
21652
if { (ac_try="$ac_compile"
 
21653
case "(($ac_try" in
 
21654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21655
  *) ac_try_echo=$ac_try;;
 
21656
esac
 
21657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21658
  (eval "$ac_compile") 2>conftest.er1
 
21659
  ac_status=$?
 
21660
  grep -v '^ *+' conftest.er1 >conftest.err
 
21661
  rm -f conftest.er1
 
21662
  cat conftest.err >&5
 
21663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21664
  (exit $ac_status); } && {
 
21665
         test -z "$ac_c_werror_flag" ||
 
21666
         test ! -s conftest.err
 
21667
       } && test -s conftest.$ac_objext; then
 
21668
  ac_hi=-1 ac_mid=-1
 
21669
  while :; do
 
21670
    cat >conftest.$ac_ext <<_ACEOF
 
21671
/* confdefs.h.  */
 
21672
_ACEOF
 
21673
cat confdefs.h >>conftest.$ac_ext
 
21674
cat >>conftest.$ac_ext <<_ACEOF
 
21675
/* end confdefs.h.  */
 
21676
$ac_includes_default
 
21677
   typedef int ac__type_sizeof_;
 
21678
int
 
21679
main ()
 
21680
{
 
21681
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
21682
test_array [0] = 0
 
21683
 
 
21684
  ;
 
21685
  return 0;
 
21686
}
 
21687
_ACEOF
 
21688
rm -f conftest.$ac_objext
 
21689
if { (ac_try="$ac_compile"
 
21690
case "(($ac_try" in
 
21691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21692
  *) ac_try_echo=$ac_try;;
 
21693
esac
 
21694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21695
  (eval "$ac_compile") 2>conftest.er1
 
21696
  ac_status=$?
 
21697
  grep -v '^ *+' conftest.er1 >conftest.err
 
21698
  rm -f conftest.er1
 
21699
  cat conftest.err >&5
 
21700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21701
  (exit $ac_status); } && {
 
21702
         test -z "$ac_c_werror_flag" ||
 
21703
         test ! -s conftest.err
 
21704
       } && test -s conftest.$ac_objext; then
 
21705
  ac_lo=$ac_mid; break
 
21706
else
 
21707
  echo "$as_me: failed program was:" >&5
 
21708
sed 's/^/| /' conftest.$ac_ext >&5
 
21709
 
 
21710
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
21711
                        if test $ac_mid -le $ac_hi; then
 
21712
                          ac_lo= ac_hi=
 
21713
                          break
 
21714
                        fi
 
21715
                        ac_mid=`expr 2 '*' $ac_mid`
 
21716
fi
 
21717
 
 
21718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21719
  done
 
21720
else
 
21721
  echo "$as_me: failed program was:" >&5
 
21722
sed 's/^/| /' conftest.$ac_ext >&5
 
21723
 
 
21724
        ac_lo= ac_hi=
 
21725
fi
 
21726
 
 
21727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21728
fi
 
21729
 
 
21730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21731
# Binary search between lo and hi bounds.
 
21732
while test "x$ac_lo" != "x$ac_hi"; do
 
21733
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21734
  cat >conftest.$ac_ext <<_ACEOF
 
21735
/* confdefs.h.  */
 
21736
_ACEOF
 
21737
cat confdefs.h >>conftest.$ac_ext
 
21738
cat >>conftest.$ac_ext <<_ACEOF
 
21739
/* end confdefs.h.  */
 
21740
$ac_includes_default
 
21741
   typedef int ac__type_sizeof_;
 
21742
int
 
21743
main ()
 
21744
{
 
21745
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21746
test_array [0] = 0
 
21747
 
 
21748
  ;
 
21749
  return 0;
 
21750
}
 
21751
_ACEOF
 
21752
rm -f conftest.$ac_objext
 
21753
if { (ac_try="$ac_compile"
 
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_compile") 2>conftest.er1
 
21760
  ac_status=$?
 
21761
  grep -v '^ *+' conftest.er1 >conftest.err
 
21762
  rm -f conftest.er1
 
21763
  cat conftest.err >&5
 
21764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21765
  (exit $ac_status); } && {
 
21766
         test -z "$ac_c_werror_flag" ||
 
21767
         test ! -s conftest.err
 
21768
       } && test -s conftest.$ac_objext; then
 
21769
  ac_hi=$ac_mid
 
21770
else
 
21771
  echo "$as_me: failed program was:" >&5
 
21772
sed 's/^/| /' conftest.$ac_ext >&5
 
21773
 
 
21774
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
21775
fi
 
21776
 
 
21777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21778
done
 
21779
case $ac_lo in
 
21780
?*) ac_cv_sizeof_int=$ac_lo;;
 
21781
'') if test "$ac_cv_type_int" = yes; then
 
21782
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
21783
See \`config.log' for more details." >&5
 
21784
echo "$as_me: error: cannot compute sizeof (int)
 
21785
See \`config.log' for more details." >&2;}
 
21786
   { (exit 77); exit 77; }; }
 
21787
   else
 
21788
     ac_cv_sizeof_int=0
 
21789
   fi ;;
 
21790
esac
 
21791
else
 
21792
  cat >conftest.$ac_ext <<_ACEOF
 
21793
/* confdefs.h.  */
 
21794
_ACEOF
 
21795
cat confdefs.h >>conftest.$ac_ext
 
21796
cat >>conftest.$ac_ext <<_ACEOF
 
21797
/* end confdefs.h.  */
 
21798
$ac_includes_default
 
21799
   typedef int ac__type_sizeof_;
 
21800
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21801
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21802
#include <stdio.h>
 
21803
#include <stdlib.h>
 
21804
int
 
21805
main ()
 
21806
{
 
21807
 
 
21808
  FILE *f = fopen ("conftest.val", "w");
 
21809
  if (! f)
 
21810
    return 1;
 
21811
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
21812
    {
 
21813
      long int i = longval ();
 
21814
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21815
        return 1;
 
21816
      fprintf (f, "%ld\n", i);
 
21817
    }
 
21818
  else
 
21819
    {
 
21820
      unsigned long int i = ulongval ();
 
21821
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21822
        return 1;
 
21823
      fprintf (f, "%lu\n", i);
 
21824
    }
 
21825
  return ferror (f) || fclose (f) != 0;
 
21826
 
 
21827
  ;
 
21828
  return 0;
 
21829
}
 
21830
_ACEOF
 
21831
rm -f conftest$ac_exeext
 
21832
if { (ac_try="$ac_link"
 
21833
case "(($ac_try" in
 
21834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21835
  *) ac_try_echo=$ac_try;;
 
21836
esac
 
21837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21838
  (eval "$ac_link") 2>&5
 
21839
  ac_status=$?
 
21840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21841
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21842
  { (case "(($ac_try" in
 
21843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21844
  *) ac_try_echo=$ac_try;;
 
21845
esac
 
21846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21847
  (eval "$ac_try") 2>&5
 
21848
  ac_status=$?
 
21849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21850
  (exit $ac_status); }; }; then
 
21851
  ac_cv_sizeof_int=`cat conftest.val`
 
21852
else
 
21853
  echo "$as_me: program exited with status $ac_status" >&5
 
21854
echo "$as_me: failed program was:" >&5
 
21855
sed 's/^/| /' conftest.$ac_ext >&5
 
21856
 
 
21857
( exit $ac_status )
 
21858
if test "$ac_cv_type_int" = yes; then
 
21859
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
21860
See \`config.log' for more details." >&5
 
21861
echo "$as_me: error: cannot compute sizeof (int)
 
21862
See \`config.log' for more details." >&2;}
 
21863
   { (exit 77); exit 77; }; }
 
21864
   else
 
21865
     ac_cv_sizeof_int=0
 
21866
   fi
 
21867
fi
 
21868
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21869
fi
 
21870
rm -f conftest.val
 
21871
fi
 
21872
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
21873
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
21874
 
 
21875
 
 
21876
 
 
21877
cat >>confdefs.h <<_ACEOF
 
21878
#define SIZEOF_INT $ac_cv_sizeof_int
 
21879
_ACEOF
 
21880
 
 
21881
 
 
21882
    { echo "$as_me:$LINENO: checking for long" >&5
 
21883
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
 
21884
if test "${ac_cv_type_long+set}" = set; then
 
21885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21886
else
 
21887
  cat >conftest.$ac_ext <<_ACEOF
 
21888
/* confdefs.h.  */
 
21889
_ACEOF
 
21890
cat confdefs.h >>conftest.$ac_ext
 
21891
cat >>conftest.$ac_ext <<_ACEOF
 
21892
/* end confdefs.h.  */
 
21893
$ac_includes_default
 
21894
typedef long ac__type_new_;
 
21895
int
 
21896
main ()
 
21897
{
 
21898
if ((ac__type_new_ *) 0)
 
21899
  return 0;
 
21900
if (sizeof (ac__type_new_))
 
21901
  return 0;
 
21902
  ;
 
21903
  return 0;
 
21904
}
 
21905
_ACEOF
 
21906
rm -f conftest.$ac_objext
 
21907
if { (ac_try="$ac_compile"
 
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_compile") 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
         test -z "$ac_c_werror_flag" ||
 
21921
         test ! -s conftest.err
 
21922
       } && test -s conftest.$ac_objext; then
 
21923
  ac_cv_type_long=yes
 
21924
else
 
21925
  echo "$as_me: failed program was:" >&5
 
21926
sed 's/^/| /' conftest.$ac_ext >&5
 
21927
 
 
21928
        ac_cv_type_long=no
 
21929
fi
 
21930
 
 
21931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21932
fi
 
21933
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
21934
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
21935
 
 
21936
# The cast to long int works around a bug in the HP C Compiler
 
21937
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21938
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21939
# This bug is HP SR number 8606223364.
 
21940
{ echo "$as_me:$LINENO: checking size of long" >&5
 
21941
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
 
21942
if test "${ac_cv_sizeof_long+set}" = set; then
 
21943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21944
else
 
21945
  if test "$cross_compiling" = yes; then
 
21946
  # Depending upon the size, compute the lo and hi bounds.
 
21947
cat >conftest.$ac_ext <<_ACEOF
 
21948
/* confdefs.h.  */
 
21949
_ACEOF
 
21950
cat confdefs.h >>conftest.$ac_ext
 
21951
cat >>conftest.$ac_ext <<_ACEOF
 
21952
/* end confdefs.h.  */
 
21953
$ac_includes_default
 
21954
   typedef long ac__type_sizeof_;
 
21955
int
 
21956
main ()
 
21957
{
 
21958
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
21959
test_array [0] = 0
 
21960
 
 
21961
  ;
 
21962
  return 0;
 
21963
}
 
21964
_ACEOF
 
21965
rm -f conftest.$ac_objext
 
21966
if { (ac_try="$ac_compile"
 
21967
case "(($ac_try" in
 
21968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21969
  *) ac_try_echo=$ac_try;;
 
21970
esac
 
21971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21972
  (eval "$ac_compile") 2>conftest.er1
 
21973
  ac_status=$?
 
21974
  grep -v '^ *+' conftest.er1 >conftest.err
 
21975
  rm -f conftest.er1
 
21976
  cat conftest.err >&5
 
21977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21978
  (exit $ac_status); } && {
 
21979
         test -z "$ac_c_werror_flag" ||
 
21980
         test ! -s conftest.err
 
21981
       } && test -s conftest.$ac_objext; then
 
21982
  ac_lo=0 ac_mid=0
 
21983
  while :; do
 
21984
    cat >conftest.$ac_ext <<_ACEOF
 
21985
/* confdefs.h.  */
 
21986
_ACEOF
 
21987
cat confdefs.h >>conftest.$ac_ext
 
21988
cat >>conftest.$ac_ext <<_ACEOF
 
21989
/* end confdefs.h.  */
 
21990
$ac_includes_default
 
21991
   typedef long ac__type_sizeof_;
 
21992
int
 
21993
main ()
 
21994
{
 
21995
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21996
test_array [0] = 0
 
21997
 
 
21998
  ;
 
21999
  return 0;
 
22000
}
 
22001
_ACEOF
 
22002
rm -f conftest.$ac_objext
 
22003
if { (ac_try="$ac_compile"
 
22004
case "(($ac_try" in
 
22005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22006
  *) ac_try_echo=$ac_try;;
 
22007
esac
 
22008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22009
  (eval "$ac_compile") 2>conftest.er1
 
22010
  ac_status=$?
 
22011
  grep -v '^ *+' conftest.er1 >conftest.err
 
22012
  rm -f conftest.er1
 
22013
  cat conftest.err >&5
 
22014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22015
  (exit $ac_status); } && {
 
22016
         test -z "$ac_c_werror_flag" ||
 
22017
         test ! -s conftest.err
 
22018
       } && test -s conftest.$ac_objext; then
 
22019
  ac_hi=$ac_mid; break
 
22020
else
 
22021
  echo "$as_me: failed program was:" >&5
 
22022
sed 's/^/| /' conftest.$ac_ext >&5
 
22023
 
 
22024
        ac_lo=`expr $ac_mid + 1`
 
22025
                        if test $ac_lo -le $ac_mid; then
 
22026
                          ac_lo= ac_hi=
 
22027
                          break
 
22028
                        fi
 
22029
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22030
fi
 
22031
 
 
22032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22033
  done
 
22034
else
 
22035
  echo "$as_me: failed program was:" >&5
 
22036
sed 's/^/| /' conftest.$ac_ext >&5
 
22037
 
 
22038
        cat >conftest.$ac_ext <<_ACEOF
 
22039
/* confdefs.h.  */
 
22040
_ACEOF
 
22041
cat confdefs.h >>conftest.$ac_ext
 
22042
cat >>conftest.$ac_ext <<_ACEOF
 
22043
/* end confdefs.h.  */
 
22044
$ac_includes_default
 
22045
   typedef long ac__type_sizeof_;
 
22046
int
 
22047
main ()
 
22048
{
 
22049
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
22050
test_array [0] = 0
 
22051
 
 
22052
  ;
 
22053
  return 0;
 
22054
}
 
22055
_ACEOF
 
22056
rm -f conftest.$ac_objext
 
22057
if { (ac_try="$ac_compile"
 
22058
case "(($ac_try" in
 
22059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22060
  *) ac_try_echo=$ac_try;;
 
22061
esac
 
22062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22063
  (eval "$ac_compile") 2>conftest.er1
 
22064
  ac_status=$?
 
22065
  grep -v '^ *+' conftest.er1 >conftest.err
 
22066
  rm -f conftest.er1
 
22067
  cat conftest.err >&5
 
22068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22069
  (exit $ac_status); } && {
 
22070
         test -z "$ac_c_werror_flag" ||
 
22071
         test ! -s conftest.err
 
22072
       } && test -s conftest.$ac_objext; then
 
22073
  ac_hi=-1 ac_mid=-1
 
22074
  while :; do
 
22075
    cat >conftest.$ac_ext <<_ACEOF
 
22076
/* confdefs.h.  */
 
22077
_ACEOF
 
22078
cat confdefs.h >>conftest.$ac_ext
 
22079
cat >>conftest.$ac_ext <<_ACEOF
 
22080
/* end confdefs.h.  */
 
22081
$ac_includes_default
 
22082
   typedef long ac__type_sizeof_;
 
22083
int
 
22084
main ()
 
22085
{
 
22086
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
22087
test_array [0] = 0
 
22088
 
 
22089
  ;
 
22090
  return 0;
 
22091
}
 
22092
_ACEOF
 
22093
rm -f conftest.$ac_objext
 
22094
if { (ac_try="$ac_compile"
 
22095
case "(($ac_try" in
 
22096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22097
  *) ac_try_echo=$ac_try;;
 
22098
esac
 
22099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22100
  (eval "$ac_compile") 2>conftest.er1
 
22101
  ac_status=$?
 
22102
  grep -v '^ *+' conftest.er1 >conftest.err
 
22103
  rm -f conftest.er1
 
22104
  cat conftest.err >&5
 
22105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22106
  (exit $ac_status); } && {
 
22107
         test -z "$ac_c_werror_flag" ||
 
22108
         test ! -s conftest.err
 
22109
       } && test -s conftest.$ac_objext; then
 
22110
  ac_lo=$ac_mid; break
 
22111
else
 
22112
  echo "$as_me: failed program was:" >&5
 
22113
sed 's/^/| /' conftest.$ac_ext >&5
 
22114
 
 
22115
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22116
                        if test $ac_mid -le $ac_hi; then
 
22117
                          ac_lo= ac_hi=
 
22118
                          break
 
22119
                        fi
 
22120
                        ac_mid=`expr 2 '*' $ac_mid`
 
22121
fi
 
22122
 
 
22123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22124
  done
 
22125
else
 
22126
  echo "$as_me: failed program was:" >&5
 
22127
sed 's/^/| /' conftest.$ac_ext >&5
 
22128
 
 
22129
        ac_lo= ac_hi=
 
22130
fi
 
22131
 
 
22132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22133
fi
 
22134
 
 
22135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22136
# Binary search between lo and hi bounds.
 
22137
while test "x$ac_lo" != "x$ac_hi"; do
 
22138
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22139
  cat >conftest.$ac_ext <<_ACEOF
 
22140
/* confdefs.h.  */
 
22141
_ACEOF
 
22142
cat confdefs.h >>conftest.$ac_ext
 
22143
cat >>conftest.$ac_ext <<_ACEOF
 
22144
/* end confdefs.h.  */
 
22145
$ac_includes_default
 
22146
   typedef long ac__type_sizeof_;
 
22147
int
 
22148
main ()
 
22149
{
 
22150
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22151
test_array [0] = 0
 
22152
 
 
22153
  ;
 
22154
  return 0;
 
22155
}
 
22156
_ACEOF
 
22157
rm -f conftest.$ac_objext
 
22158
if { (ac_try="$ac_compile"
 
22159
case "(($ac_try" in
 
22160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22161
  *) ac_try_echo=$ac_try;;
 
22162
esac
 
22163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22164
  (eval "$ac_compile") 2>conftest.er1
 
22165
  ac_status=$?
 
22166
  grep -v '^ *+' conftest.er1 >conftest.err
 
22167
  rm -f conftest.er1
 
22168
  cat conftest.err >&5
 
22169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22170
  (exit $ac_status); } && {
 
22171
         test -z "$ac_c_werror_flag" ||
 
22172
         test ! -s conftest.err
 
22173
       } && test -s conftest.$ac_objext; then
 
22174
  ac_hi=$ac_mid
 
22175
else
 
22176
  echo "$as_me: failed program was:" >&5
 
22177
sed 's/^/| /' conftest.$ac_ext >&5
 
22178
 
 
22179
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22180
fi
 
22181
 
 
22182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22183
done
 
22184
case $ac_lo in
 
22185
?*) ac_cv_sizeof_long=$ac_lo;;
 
22186
'') if test "$ac_cv_type_long" = yes; then
 
22187
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
22188
See \`config.log' for more details." >&5
 
22189
echo "$as_me: error: cannot compute sizeof (long)
 
22190
See \`config.log' for more details." >&2;}
 
22191
   { (exit 77); exit 77; }; }
 
22192
   else
 
22193
     ac_cv_sizeof_long=0
 
22194
   fi ;;
 
22195
esac
 
22196
else
 
22197
  cat >conftest.$ac_ext <<_ACEOF
 
22198
/* confdefs.h.  */
 
22199
_ACEOF
 
22200
cat confdefs.h >>conftest.$ac_ext
 
22201
cat >>conftest.$ac_ext <<_ACEOF
 
22202
/* end confdefs.h.  */
 
22203
$ac_includes_default
 
22204
   typedef long ac__type_sizeof_;
 
22205
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22206
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22207
#include <stdio.h>
 
22208
#include <stdlib.h>
 
22209
int
 
22210
main ()
 
22211
{
 
22212
 
 
22213
  FILE *f = fopen ("conftest.val", "w");
 
22214
  if (! f)
 
22215
    return 1;
 
22216
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
22217
    {
 
22218
      long int i = longval ();
 
22219
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22220
        return 1;
 
22221
      fprintf (f, "%ld\n", i);
 
22222
    }
 
22223
  else
 
22224
    {
 
22225
      unsigned long int i = ulongval ();
 
22226
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22227
        return 1;
 
22228
      fprintf (f, "%lu\n", i);
 
22229
    }
 
22230
  return ferror (f) || fclose (f) != 0;
 
22231
 
 
22232
  ;
 
22233
  return 0;
 
22234
}
 
22235
_ACEOF
 
22236
rm -f conftest$ac_exeext
 
22237
if { (ac_try="$ac_link"
 
22238
case "(($ac_try" in
 
22239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22240
  *) ac_try_echo=$ac_try;;
 
22241
esac
 
22242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22243
  (eval "$ac_link") 2>&5
 
22244
  ac_status=$?
 
22245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22246
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22247
  { (case "(($ac_try" in
 
22248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22249
  *) ac_try_echo=$ac_try;;
 
22250
esac
 
22251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22252
  (eval "$ac_try") 2>&5
 
22253
  ac_status=$?
 
22254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22255
  (exit $ac_status); }; }; then
 
22256
  ac_cv_sizeof_long=`cat conftest.val`
 
22257
else
 
22258
  echo "$as_me: program exited with status $ac_status" >&5
 
22259
echo "$as_me: failed program was:" >&5
 
22260
sed 's/^/| /' conftest.$ac_ext >&5
 
22261
 
 
22262
( exit $ac_status )
 
22263
if test "$ac_cv_type_long" = yes; then
 
22264
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
22265
See \`config.log' for more details." >&5
 
22266
echo "$as_me: error: cannot compute sizeof (long)
 
22267
See \`config.log' for more details." >&2;}
 
22268
   { (exit 77); exit 77; }; }
 
22269
   else
 
22270
     ac_cv_sizeof_long=0
 
22271
   fi
 
22272
fi
 
22273
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22274
fi
 
22275
rm -f conftest.val
 
22276
fi
 
22277
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
22278
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
22279
 
 
22280
 
 
22281
 
 
22282
cat >>confdefs.h <<_ACEOF
 
22283
#define SIZEOF_LONG $ac_cv_sizeof_long
 
22284
_ACEOF
 
22285
 
 
22286
 
 
22287
    { echo "$as_me:$LINENO: checking for char" >&5
 
22288
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
 
22289
if test "${ac_cv_type_char+set}" = set; then
 
22290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22291
else
 
22292
  cat >conftest.$ac_ext <<_ACEOF
 
22293
/* confdefs.h.  */
 
22294
_ACEOF
 
22295
cat confdefs.h >>conftest.$ac_ext
 
22296
cat >>conftest.$ac_ext <<_ACEOF
 
22297
/* end confdefs.h.  */
 
22298
$ac_includes_default
 
22299
typedef char ac__type_new_;
 
22300
int
 
22301
main ()
 
22302
{
 
22303
if ((ac__type_new_ *) 0)
 
22304
  return 0;
 
22305
if (sizeof (ac__type_new_))
 
22306
  return 0;
 
22307
  ;
 
22308
  return 0;
 
22309
}
 
22310
_ACEOF
 
22311
rm -f conftest.$ac_objext
 
22312
if { (ac_try="$ac_compile"
 
22313
case "(($ac_try" in
 
22314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22315
  *) ac_try_echo=$ac_try;;
 
22316
esac
 
22317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22318
  (eval "$ac_compile") 2>conftest.er1
 
22319
  ac_status=$?
 
22320
  grep -v '^ *+' conftest.er1 >conftest.err
 
22321
  rm -f conftest.er1
 
22322
  cat conftest.err >&5
 
22323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22324
  (exit $ac_status); } && {
 
22325
         test -z "$ac_c_werror_flag" ||
 
22326
         test ! -s conftest.err
 
22327
       } && test -s conftest.$ac_objext; then
 
22328
  ac_cv_type_char=yes
 
22329
else
 
22330
  echo "$as_me: failed program was:" >&5
 
22331
sed 's/^/| /' conftest.$ac_ext >&5
 
22332
 
 
22333
        ac_cv_type_char=no
 
22334
fi
 
22335
 
 
22336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22337
fi
 
22338
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
 
22339
echo "${ECHO_T}$ac_cv_type_char" >&6; }
 
22340
 
 
22341
# The cast to long int works around a bug in the HP C Compiler
 
22342
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22343
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22344
# This bug is HP SR number 8606223364.
 
22345
{ echo "$as_me:$LINENO: checking size of char" >&5
 
22346
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
 
22347
if test "${ac_cv_sizeof_char+set}" = set; then
 
22348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22349
else
 
22350
  if test "$cross_compiling" = yes; then
 
22351
  # Depending upon the size, compute the lo and hi bounds.
 
22352
cat >conftest.$ac_ext <<_ACEOF
 
22353
/* confdefs.h.  */
 
22354
_ACEOF
 
22355
cat confdefs.h >>conftest.$ac_ext
 
22356
cat >>conftest.$ac_ext <<_ACEOF
 
22357
/* end confdefs.h.  */
 
22358
$ac_includes_default
 
22359
   typedef char ac__type_sizeof_;
 
22360
int
 
22361
main ()
 
22362
{
 
22363
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
22364
test_array [0] = 0
 
22365
 
 
22366
  ;
 
22367
  return 0;
 
22368
}
 
22369
_ACEOF
 
22370
rm -f conftest.$ac_objext
 
22371
if { (ac_try="$ac_compile"
 
22372
case "(($ac_try" in
 
22373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22374
  *) ac_try_echo=$ac_try;;
 
22375
esac
 
22376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22377
  (eval "$ac_compile") 2>conftest.er1
 
22378
  ac_status=$?
 
22379
  grep -v '^ *+' conftest.er1 >conftest.err
 
22380
  rm -f conftest.er1
 
22381
  cat conftest.err >&5
 
22382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22383
  (exit $ac_status); } && {
 
22384
         test -z "$ac_c_werror_flag" ||
 
22385
         test ! -s conftest.err
 
22386
       } && test -s conftest.$ac_objext; then
 
22387
  ac_lo=0 ac_mid=0
 
22388
  while :; do
 
22389
    cat >conftest.$ac_ext <<_ACEOF
 
22390
/* confdefs.h.  */
 
22391
_ACEOF
 
22392
cat confdefs.h >>conftest.$ac_ext
 
22393
cat >>conftest.$ac_ext <<_ACEOF
 
22394
/* end confdefs.h.  */
 
22395
$ac_includes_default
 
22396
   typedef char ac__type_sizeof_;
 
22397
int
 
22398
main ()
 
22399
{
 
22400
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22401
test_array [0] = 0
 
22402
 
 
22403
  ;
 
22404
  return 0;
 
22405
}
 
22406
_ACEOF
 
22407
rm -f conftest.$ac_objext
 
22408
if { (ac_try="$ac_compile"
 
22409
case "(($ac_try" in
 
22410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22411
  *) ac_try_echo=$ac_try;;
 
22412
esac
 
22413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22414
  (eval "$ac_compile") 2>conftest.er1
 
22415
  ac_status=$?
 
22416
  grep -v '^ *+' conftest.er1 >conftest.err
 
22417
  rm -f conftest.er1
 
22418
  cat conftest.err >&5
 
22419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22420
  (exit $ac_status); } && {
 
22421
         test -z "$ac_c_werror_flag" ||
 
22422
         test ! -s conftest.err
 
22423
       } && test -s conftest.$ac_objext; then
 
22424
  ac_hi=$ac_mid; break
 
22425
else
 
22426
  echo "$as_me: failed program was:" >&5
 
22427
sed 's/^/| /' conftest.$ac_ext >&5
 
22428
 
 
22429
        ac_lo=`expr $ac_mid + 1`
 
22430
                        if test $ac_lo -le $ac_mid; then
 
22431
                          ac_lo= ac_hi=
 
22432
                          break
 
22433
                        fi
 
22434
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22435
fi
 
22436
 
 
22437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22438
  done
 
22439
else
 
22440
  echo "$as_me: failed program was:" >&5
 
22441
sed 's/^/| /' conftest.$ac_ext >&5
 
22442
 
 
22443
        cat >conftest.$ac_ext <<_ACEOF
 
22444
/* confdefs.h.  */
 
22445
_ACEOF
 
22446
cat confdefs.h >>conftest.$ac_ext
 
22447
cat >>conftest.$ac_ext <<_ACEOF
 
22448
/* end confdefs.h.  */
 
22449
$ac_includes_default
 
22450
   typedef char ac__type_sizeof_;
 
22451
int
 
22452
main ()
 
22453
{
 
22454
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
22455
test_array [0] = 0
 
22456
 
 
22457
  ;
 
22458
  return 0;
 
22459
}
 
22460
_ACEOF
 
22461
rm -f conftest.$ac_objext
 
22462
if { (ac_try="$ac_compile"
 
22463
case "(($ac_try" in
 
22464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22465
  *) ac_try_echo=$ac_try;;
 
22466
esac
 
22467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22468
  (eval "$ac_compile") 2>conftest.er1
 
22469
  ac_status=$?
 
22470
  grep -v '^ *+' conftest.er1 >conftest.err
 
22471
  rm -f conftest.er1
 
22472
  cat conftest.err >&5
 
22473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22474
  (exit $ac_status); } && {
 
22475
         test -z "$ac_c_werror_flag" ||
 
22476
         test ! -s conftest.err
 
22477
       } && test -s conftest.$ac_objext; then
 
22478
  ac_hi=-1 ac_mid=-1
 
22479
  while :; do
 
22480
    cat >conftest.$ac_ext <<_ACEOF
 
22481
/* confdefs.h.  */
 
22482
_ACEOF
 
22483
cat confdefs.h >>conftest.$ac_ext
 
22484
cat >>conftest.$ac_ext <<_ACEOF
 
22485
/* end confdefs.h.  */
 
22486
$ac_includes_default
 
22487
   typedef char ac__type_sizeof_;
 
22488
int
 
22489
main ()
 
22490
{
 
22491
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
22492
test_array [0] = 0
 
22493
 
 
22494
  ;
 
22495
  return 0;
 
22496
}
 
22497
_ACEOF
 
22498
rm -f conftest.$ac_objext
 
22499
if { (ac_try="$ac_compile"
 
22500
case "(($ac_try" in
 
22501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22502
  *) ac_try_echo=$ac_try;;
 
22503
esac
 
22504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22505
  (eval "$ac_compile") 2>conftest.er1
 
22506
  ac_status=$?
 
22507
  grep -v '^ *+' conftest.er1 >conftest.err
 
22508
  rm -f conftest.er1
 
22509
  cat conftest.err >&5
 
22510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22511
  (exit $ac_status); } && {
 
22512
         test -z "$ac_c_werror_flag" ||
 
22513
         test ! -s conftest.err
 
22514
       } && test -s conftest.$ac_objext; then
 
22515
  ac_lo=$ac_mid; break
 
22516
else
 
22517
  echo "$as_me: failed program was:" >&5
 
22518
sed 's/^/| /' conftest.$ac_ext >&5
 
22519
 
 
22520
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22521
                        if test $ac_mid -le $ac_hi; then
 
22522
                          ac_lo= ac_hi=
 
22523
                          break
 
22524
                        fi
 
22525
                        ac_mid=`expr 2 '*' $ac_mid`
 
22526
fi
 
22527
 
 
22528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22529
  done
 
22530
else
 
22531
  echo "$as_me: failed program was:" >&5
 
22532
sed 's/^/| /' conftest.$ac_ext >&5
 
22533
 
 
22534
        ac_lo= ac_hi=
 
22535
fi
 
22536
 
 
22537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22538
fi
 
22539
 
 
22540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22541
# Binary search between lo and hi bounds.
 
22542
while test "x$ac_lo" != "x$ac_hi"; do
 
22543
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22544
  cat >conftest.$ac_ext <<_ACEOF
 
22545
/* confdefs.h.  */
 
22546
_ACEOF
 
22547
cat confdefs.h >>conftest.$ac_ext
 
22548
cat >>conftest.$ac_ext <<_ACEOF
 
22549
/* end confdefs.h.  */
 
22550
$ac_includes_default
 
22551
   typedef char ac__type_sizeof_;
 
22552
int
 
22553
main ()
 
22554
{
 
22555
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22556
test_array [0] = 0
 
22557
 
 
22558
  ;
 
22559
  return 0;
 
22560
}
 
22561
_ACEOF
 
22562
rm -f conftest.$ac_objext
 
22563
if { (ac_try="$ac_compile"
 
22564
case "(($ac_try" in
 
22565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22566
  *) ac_try_echo=$ac_try;;
 
22567
esac
 
22568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22569
  (eval "$ac_compile") 2>conftest.er1
 
22570
  ac_status=$?
 
22571
  grep -v '^ *+' conftest.er1 >conftest.err
 
22572
  rm -f conftest.er1
 
22573
  cat conftest.err >&5
 
22574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22575
  (exit $ac_status); } && {
 
22576
         test -z "$ac_c_werror_flag" ||
 
22577
         test ! -s conftest.err
 
22578
       } && test -s conftest.$ac_objext; then
 
22579
  ac_hi=$ac_mid
 
22580
else
 
22581
  echo "$as_me: failed program was:" >&5
 
22582
sed 's/^/| /' conftest.$ac_ext >&5
 
22583
 
 
22584
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22585
fi
 
22586
 
 
22587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22588
done
 
22589
case $ac_lo in
 
22590
?*) ac_cv_sizeof_char=$ac_lo;;
 
22591
'') if test "$ac_cv_type_char" = yes; then
 
22592
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
 
22593
See \`config.log' for more details." >&5
 
22594
echo "$as_me: error: cannot compute sizeof (char)
 
22595
See \`config.log' for more details." >&2;}
 
22596
   { (exit 77); exit 77; }; }
 
22597
   else
 
22598
     ac_cv_sizeof_char=0
 
22599
   fi ;;
 
22600
esac
 
22601
else
 
22602
  cat >conftest.$ac_ext <<_ACEOF
 
22603
/* confdefs.h.  */
 
22604
_ACEOF
 
22605
cat confdefs.h >>conftest.$ac_ext
 
22606
cat >>conftest.$ac_ext <<_ACEOF
 
22607
/* end confdefs.h.  */
 
22608
$ac_includes_default
 
22609
   typedef char ac__type_sizeof_;
 
22610
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22611
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22612
#include <stdio.h>
 
22613
#include <stdlib.h>
 
22614
int
 
22615
main ()
 
22616
{
 
22617
 
 
22618
  FILE *f = fopen ("conftest.val", "w");
 
22619
  if (! f)
 
22620
    return 1;
 
22621
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
22622
    {
 
22623
      long int i = longval ();
 
22624
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22625
        return 1;
 
22626
      fprintf (f, "%ld\n", i);
 
22627
    }
 
22628
  else
 
22629
    {
 
22630
      unsigned long int i = ulongval ();
 
22631
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22632
        return 1;
 
22633
      fprintf (f, "%lu\n", i);
 
22634
    }
 
22635
  return ferror (f) || fclose (f) != 0;
 
22636
 
 
22637
  ;
 
22638
  return 0;
 
22639
}
 
22640
_ACEOF
 
22641
rm -f conftest$ac_exeext
 
22642
if { (ac_try="$ac_link"
 
22643
case "(($ac_try" in
 
22644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22645
  *) ac_try_echo=$ac_try;;
 
22646
esac
 
22647
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22648
  (eval "$ac_link") 2>&5
 
22649
  ac_status=$?
 
22650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22651
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22652
  { (case "(($ac_try" in
 
22653
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22654
  *) ac_try_echo=$ac_try;;
 
22655
esac
 
22656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22657
  (eval "$ac_try") 2>&5
 
22658
  ac_status=$?
 
22659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22660
  (exit $ac_status); }; }; then
 
22661
  ac_cv_sizeof_char=`cat conftest.val`
 
22662
else
 
22663
  echo "$as_me: program exited with status $ac_status" >&5
 
22664
echo "$as_me: failed program was:" >&5
 
22665
sed 's/^/| /' conftest.$ac_ext >&5
 
22666
 
 
22667
( exit $ac_status )
 
22668
if test "$ac_cv_type_char" = yes; then
 
22669
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
 
22670
See \`config.log' for more details." >&5
 
22671
echo "$as_me: error: cannot compute sizeof (char)
 
22672
See \`config.log' for more details." >&2;}
 
22673
   { (exit 77); exit 77; }; }
 
22674
   else
 
22675
     ac_cv_sizeof_char=0
 
22676
   fi
 
22677
fi
 
22678
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22679
fi
 
22680
rm -f conftest.val
 
22681
fi
 
22682
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
 
22683
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
 
22684
 
 
22685
 
 
22686
 
 
22687
cat >>confdefs.h <<_ACEOF
 
22688
#define SIZEOF_CHAR $ac_cv_sizeof_char
 
22689
_ACEOF
 
22690
 
 
22691
 
 
22692
    { echo "$as_me:$LINENO: checking for double" >&5
 
22693
echo $ECHO_N "checking for double... $ECHO_C" >&6; }
 
22694
if test "${ac_cv_type_double+set}" = set; then
 
22695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22696
else
 
22697
  cat >conftest.$ac_ext <<_ACEOF
 
22698
/* confdefs.h.  */
 
22699
_ACEOF
 
22700
cat confdefs.h >>conftest.$ac_ext
 
22701
cat >>conftest.$ac_ext <<_ACEOF
 
22702
/* end confdefs.h.  */
 
22703
$ac_includes_default
 
22704
typedef double ac__type_new_;
 
22705
int
 
22706
main ()
 
22707
{
 
22708
if ((ac__type_new_ *) 0)
 
22709
  return 0;
 
22710
if (sizeof (ac__type_new_))
 
22711
  return 0;
 
22712
  ;
 
22713
  return 0;
 
22714
}
 
22715
_ACEOF
 
22716
rm -f conftest.$ac_objext
 
22717
if { (ac_try="$ac_compile"
 
22718
case "(($ac_try" in
 
22719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22720
  *) ac_try_echo=$ac_try;;
 
22721
esac
 
22722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22723
  (eval "$ac_compile") 2>conftest.er1
 
22724
  ac_status=$?
 
22725
  grep -v '^ *+' conftest.er1 >conftest.err
 
22726
  rm -f conftest.er1
 
22727
  cat conftest.err >&5
 
22728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22729
  (exit $ac_status); } && {
 
22730
         test -z "$ac_c_werror_flag" ||
 
22731
         test ! -s conftest.err
 
22732
       } && test -s conftest.$ac_objext; then
 
22733
  ac_cv_type_double=yes
 
22734
else
 
22735
  echo "$as_me: failed program was:" >&5
 
22736
sed 's/^/| /' conftest.$ac_ext >&5
 
22737
 
 
22738
        ac_cv_type_double=no
 
22739
fi
 
22740
 
 
22741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22742
fi
 
22743
{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
 
22744
echo "${ECHO_T}$ac_cv_type_double" >&6; }
 
22745
 
 
22746
# The cast to long int works around a bug in the HP C Compiler
 
22747
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22748
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22749
# This bug is HP SR number 8606223364.
 
22750
{ echo "$as_me:$LINENO: checking size of double" >&5
 
22751
echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
 
22752
if test "${ac_cv_sizeof_double+set}" = set; then
 
22753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22754
else
 
22755
  if test "$cross_compiling" = yes; then
 
22756
  # Depending upon the size, compute the lo and hi bounds.
 
22757
cat >conftest.$ac_ext <<_ACEOF
 
22758
/* confdefs.h.  */
 
22759
_ACEOF
 
22760
cat confdefs.h >>conftest.$ac_ext
 
22761
cat >>conftest.$ac_ext <<_ACEOF
 
22762
/* end confdefs.h.  */
 
22763
$ac_includes_default
 
22764
   typedef double ac__type_sizeof_;
 
22765
int
 
22766
main ()
 
22767
{
 
22768
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
22769
test_array [0] = 0
 
22770
 
 
22771
  ;
 
22772
  return 0;
 
22773
}
 
22774
_ACEOF
 
22775
rm -f conftest.$ac_objext
 
22776
if { (ac_try="$ac_compile"
 
22777
case "(($ac_try" in
 
22778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22779
  *) ac_try_echo=$ac_try;;
 
22780
esac
 
22781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22782
  (eval "$ac_compile") 2>conftest.er1
 
22783
  ac_status=$?
 
22784
  grep -v '^ *+' conftest.er1 >conftest.err
 
22785
  rm -f conftest.er1
 
22786
  cat conftest.err >&5
 
22787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22788
  (exit $ac_status); } && {
 
22789
         test -z "$ac_c_werror_flag" ||
 
22790
         test ! -s conftest.err
 
22791
       } && test -s conftest.$ac_objext; then
 
22792
  ac_lo=0 ac_mid=0
 
22793
  while :; do
 
22794
    cat >conftest.$ac_ext <<_ACEOF
 
22795
/* confdefs.h.  */
 
22796
_ACEOF
 
22797
cat confdefs.h >>conftest.$ac_ext
 
22798
cat >>conftest.$ac_ext <<_ACEOF
 
22799
/* end confdefs.h.  */
 
22800
$ac_includes_default
 
22801
   typedef double ac__type_sizeof_;
 
22802
int
 
22803
main ()
 
22804
{
 
22805
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22806
test_array [0] = 0
 
22807
 
 
22808
  ;
 
22809
  return 0;
 
22810
}
 
22811
_ACEOF
 
22812
rm -f conftest.$ac_objext
 
22813
if { (ac_try="$ac_compile"
 
22814
case "(($ac_try" in
 
22815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22816
  *) ac_try_echo=$ac_try;;
 
22817
esac
 
22818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22819
  (eval "$ac_compile") 2>conftest.er1
 
22820
  ac_status=$?
 
22821
  grep -v '^ *+' conftest.er1 >conftest.err
 
22822
  rm -f conftest.er1
 
22823
  cat conftest.err >&5
 
22824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22825
  (exit $ac_status); } && {
 
22826
         test -z "$ac_c_werror_flag" ||
 
22827
         test ! -s conftest.err
 
22828
       } && test -s conftest.$ac_objext; then
 
22829
  ac_hi=$ac_mid; break
 
22830
else
 
22831
  echo "$as_me: failed program was:" >&5
 
22832
sed 's/^/| /' conftest.$ac_ext >&5
 
22833
 
 
22834
        ac_lo=`expr $ac_mid + 1`
 
22835
                        if test $ac_lo -le $ac_mid; then
 
22836
                          ac_lo= ac_hi=
 
22837
                          break
 
22838
                        fi
 
22839
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22840
fi
 
22841
 
 
22842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22843
  done
 
22844
else
 
22845
  echo "$as_me: failed program was:" >&5
 
22846
sed 's/^/| /' conftest.$ac_ext >&5
 
22847
 
 
22848
        cat >conftest.$ac_ext <<_ACEOF
 
22849
/* confdefs.h.  */
 
22850
_ACEOF
 
22851
cat confdefs.h >>conftest.$ac_ext
 
22852
cat >>conftest.$ac_ext <<_ACEOF
 
22853
/* end confdefs.h.  */
 
22854
$ac_includes_default
 
22855
   typedef double ac__type_sizeof_;
 
22856
int
 
22857
main ()
 
22858
{
 
22859
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
22860
test_array [0] = 0
 
22861
 
 
22862
  ;
 
22863
  return 0;
 
22864
}
 
22865
_ACEOF
 
22866
rm -f conftest.$ac_objext
 
22867
if { (ac_try="$ac_compile"
 
22868
case "(($ac_try" in
 
22869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22870
  *) ac_try_echo=$ac_try;;
 
22871
esac
 
22872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22873
  (eval "$ac_compile") 2>conftest.er1
 
22874
  ac_status=$?
 
22875
  grep -v '^ *+' conftest.er1 >conftest.err
 
22876
  rm -f conftest.er1
 
22877
  cat conftest.err >&5
 
22878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22879
  (exit $ac_status); } && {
 
22880
         test -z "$ac_c_werror_flag" ||
 
22881
         test ! -s conftest.err
 
22882
       } && test -s conftest.$ac_objext; then
 
22883
  ac_hi=-1 ac_mid=-1
 
22884
  while :; do
 
22885
    cat >conftest.$ac_ext <<_ACEOF
 
22886
/* confdefs.h.  */
 
22887
_ACEOF
 
22888
cat confdefs.h >>conftest.$ac_ext
 
22889
cat >>conftest.$ac_ext <<_ACEOF
 
22890
/* end confdefs.h.  */
 
22891
$ac_includes_default
 
22892
   typedef double ac__type_sizeof_;
 
22893
int
 
22894
main ()
 
22895
{
 
22896
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
22897
test_array [0] = 0
 
22898
 
 
22899
  ;
 
22900
  return 0;
 
22901
}
 
22902
_ACEOF
 
22903
rm -f conftest.$ac_objext
 
22904
if { (ac_try="$ac_compile"
 
22905
case "(($ac_try" in
 
22906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22907
  *) ac_try_echo=$ac_try;;
 
22908
esac
 
22909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22910
  (eval "$ac_compile") 2>conftest.er1
 
22911
  ac_status=$?
 
22912
  grep -v '^ *+' conftest.er1 >conftest.err
 
22913
  rm -f conftest.er1
 
22914
  cat conftest.err >&5
 
22915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22916
  (exit $ac_status); } && {
 
22917
         test -z "$ac_c_werror_flag" ||
 
22918
         test ! -s conftest.err
 
22919
       } && test -s conftest.$ac_objext; then
 
22920
  ac_lo=$ac_mid; break
 
22921
else
 
22922
  echo "$as_me: failed program was:" >&5
 
22923
sed 's/^/| /' conftest.$ac_ext >&5
 
22924
 
 
22925
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22926
                        if test $ac_mid -le $ac_hi; then
 
22927
                          ac_lo= ac_hi=
 
22928
                          break
 
22929
                        fi
 
22930
                        ac_mid=`expr 2 '*' $ac_mid`
 
22931
fi
 
22932
 
 
22933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22934
  done
 
22935
else
 
22936
  echo "$as_me: failed program was:" >&5
 
22937
sed 's/^/| /' conftest.$ac_ext >&5
 
22938
 
 
22939
        ac_lo= ac_hi=
 
22940
fi
 
22941
 
 
22942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22943
fi
 
22944
 
 
22945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22946
# Binary search between lo and hi bounds.
 
22947
while test "x$ac_lo" != "x$ac_hi"; do
 
22948
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22949
  cat >conftest.$ac_ext <<_ACEOF
 
22950
/* confdefs.h.  */
 
22951
_ACEOF
 
22952
cat confdefs.h >>conftest.$ac_ext
 
22953
cat >>conftest.$ac_ext <<_ACEOF
 
22954
/* end confdefs.h.  */
 
22955
$ac_includes_default
 
22956
   typedef double ac__type_sizeof_;
 
22957
int
 
22958
main ()
 
22959
{
 
22960
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22961
test_array [0] = 0
 
22962
 
 
22963
  ;
 
22964
  return 0;
 
22965
}
 
22966
_ACEOF
 
22967
rm -f conftest.$ac_objext
 
22968
if { (ac_try="$ac_compile"
 
22969
case "(($ac_try" in
 
22970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22971
  *) ac_try_echo=$ac_try;;
 
22972
esac
 
22973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22974
  (eval "$ac_compile") 2>conftest.er1
 
22975
  ac_status=$?
 
22976
  grep -v '^ *+' conftest.er1 >conftest.err
 
22977
  rm -f conftest.er1
 
22978
  cat conftest.err >&5
 
22979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22980
  (exit $ac_status); } && {
 
22981
         test -z "$ac_c_werror_flag" ||
 
22982
         test ! -s conftest.err
 
22983
       } && test -s conftest.$ac_objext; then
 
22984
  ac_hi=$ac_mid
 
22985
else
 
22986
  echo "$as_me: failed program was:" >&5
 
22987
sed 's/^/| /' conftest.$ac_ext >&5
 
22988
 
 
22989
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22990
fi
 
22991
 
 
22992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22993
done
 
22994
case $ac_lo in
 
22995
?*) ac_cv_sizeof_double=$ac_lo;;
 
22996
'') if test "$ac_cv_type_double" = yes; then
 
22997
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
 
22998
See \`config.log' for more details." >&5
 
22999
echo "$as_me: error: cannot compute sizeof (double)
 
23000
See \`config.log' for more details." >&2;}
 
23001
   { (exit 77); exit 77; }; }
 
23002
   else
 
23003
     ac_cv_sizeof_double=0
 
23004
   fi ;;
 
23005
esac
 
23006
else
 
23007
  cat >conftest.$ac_ext <<_ACEOF
 
23008
/* confdefs.h.  */
 
23009
_ACEOF
 
23010
cat confdefs.h >>conftest.$ac_ext
 
23011
cat >>conftest.$ac_ext <<_ACEOF
 
23012
/* end confdefs.h.  */
 
23013
$ac_includes_default
 
23014
   typedef double ac__type_sizeof_;
 
23015
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
23016
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
23017
#include <stdio.h>
 
23018
#include <stdlib.h>
 
23019
int
 
23020
main ()
 
23021
{
 
23022
 
 
23023
  FILE *f = fopen ("conftest.val", "w");
 
23024
  if (! f)
 
23025
    return 1;
 
23026
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
23027
    {
 
23028
      long int i = longval ();
 
23029
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23030
        return 1;
 
23031
      fprintf (f, "%ld\n", i);
 
23032
    }
 
23033
  else
 
23034
    {
 
23035
      unsigned long int i = ulongval ();
 
23036
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23037
        return 1;
 
23038
      fprintf (f, "%lu\n", i);
 
23039
    }
 
23040
  return ferror (f) || fclose (f) != 0;
 
23041
 
 
23042
  ;
 
23043
  return 0;
 
23044
}
 
23045
_ACEOF
 
23046
rm -f conftest$ac_exeext
 
23047
if { (ac_try="$ac_link"
 
23048
case "(($ac_try" in
 
23049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23050
  *) ac_try_echo=$ac_try;;
 
23051
esac
 
23052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23053
  (eval "$ac_link") 2>&5
 
23054
  ac_status=$?
 
23055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23056
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23057
  { (case "(($ac_try" in
 
23058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23059
  *) ac_try_echo=$ac_try;;
 
23060
esac
 
23061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23062
  (eval "$ac_try") 2>&5
 
23063
  ac_status=$?
 
23064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23065
  (exit $ac_status); }; }; then
 
23066
  ac_cv_sizeof_double=`cat conftest.val`
 
23067
else
 
23068
  echo "$as_me: program exited with status $ac_status" >&5
 
23069
echo "$as_me: failed program was:" >&5
 
23070
sed 's/^/| /' conftest.$ac_ext >&5
 
23071
 
 
23072
( exit $ac_status )
 
23073
if test "$ac_cv_type_double" = yes; then
 
23074
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
 
23075
See \`config.log' for more details." >&5
 
23076
echo "$as_me: error: cannot compute sizeof (double)
 
23077
See \`config.log' for more details." >&2;}
 
23078
   { (exit 77); exit 77; }; }
 
23079
   else
 
23080
     ac_cv_sizeof_double=0
 
23081
   fi
 
23082
fi
 
23083
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23084
fi
 
23085
rm -f conftest.val
 
23086
fi
 
23087
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
 
23088
echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
 
23089
 
 
23090
 
 
23091
 
 
23092
cat >>confdefs.h <<_ACEOF
 
23093
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
 
23094
_ACEOF
 
23095
 
 
23096
 
 
23097
    { echo "$as_me:$LINENO: checking for float" >&5
 
23098
echo $ECHO_N "checking for float... $ECHO_C" >&6; }
 
23099
if test "${ac_cv_type_float+set}" = set; then
 
23100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23101
else
 
23102
  cat >conftest.$ac_ext <<_ACEOF
 
23103
/* confdefs.h.  */
 
23104
_ACEOF
 
23105
cat confdefs.h >>conftest.$ac_ext
 
23106
cat >>conftest.$ac_ext <<_ACEOF
 
23107
/* end confdefs.h.  */
 
23108
$ac_includes_default
 
23109
typedef float ac__type_new_;
 
23110
int
 
23111
main ()
 
23112
{
 
23113
if ((ac__type_new_ *) 0)
 
23114
  return 0;
 
23115
if (sizeof (ac__type_new_))
 
23116
  return 0;
 
23117
  ;
 
23118
  return 0;
 
23119
}
 
23120
_ACEOF
 
23121
rm -f conftest.$ac_objext
 
23122
if { (ac_try="$ac_compile"
 
23123
case "(($ac_try" in
 
23124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23125
  *) ac_try_echo=$ac_try;;
 
23126
esac
 
23127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23128
  (eval "$ac_compile") 2>conftest.er1
 
23129
  ac_status=$?
 
23130
  grep -v '^ *+' conftest.er1 >conftest.err
 
23131
  rm -f conftest.er1
 
23132
  cat conftest.err >&5
 
23133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23134
  (exit $ac_status); } && {
 
23135
         test -z "$ac_c_werror_flag" ||
 
23136
         test ! -s conftest.err
 
23137
       } && test -s conftest.$ac_objext; then
 
23138
  ac_cv_type_float=yes
 
23139
else
 
23140
  echo "$as_me: failed program was:" >&5
 
23141
sed 's/^/| /' conftest.$ac_ext >&5
 
23142
 
 
23143
        ac_cv_type_float=no
 
23144
fi
 
23145
 
 
23146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23147
fi
 
23148
{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
 
23149
echo "${ECHO_T}$ac_cv_type_float" >&6; }
 
23150
 
 
23151
# The cast to long int works around a bug in the HP C Compiler
 
23152
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
23153
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
23154
# This bug is HP SR number 8606223364.
 
23155
{ echo "$as_me:$LINENO: checking size of float" >&5
 
23156
echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
 
23157
if test "${ac_cv_sizeof_float+set}" = set; then
 
23158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23159
else
 
23160
  if test "$cross_compiling" = yes; then
 
23161
  # Depending upon the size, compute the lo and hi bounds.
 
23162
cat >conftest.$ac_ext <<_ACEOF
 
23163
/* confdefs.h.  */
 
23164
_ACEOF
 
23165
cat confdefs.h >>conftest.$ac_ext
 
23166
cat >>conftest.$ac_ext <<_ACEOF
 
23167
/* end confdefs.h.  */
 
23168
$ac_includes_default
 
23169
   typedef float ac__type_sizeof_;
 
23170
int
 
23171
main ()
 
23172
{
 
23173
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
23174
test_array [0] = 0
 
23175
 
 
23176
  ;
 
23177
  return 0;
 
23178
}
 
23179
_ACEOF
 
23180
rm -f conftest.$ac_objext
 
23181
if { (ac_try="$ac_compile"
 
23182
case "(($ac_try" in
 
23183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23184
  *) ac_try_echo=$ac_try;;
 
23185
esac
 
23186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23187
  (eval "$ac_compile") 2>conftest.er1
 
23188
  ac_status=$?
 
23189
  grep -v '^ *+' conftest.er1 >conftest.err
 
23190
  rm -f conftest.er1
 
23191
  cat conftest.err >&5
 
23192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23193
  (exit $ac_status); } && {
 
23194
         test -z "$ac_c_werror_flag" ||
 
23195
         test ! -s conftest.err
 
23196
       } && test -s conftest.$ac_objext; then
 
23197
  ac_lo=0 ac_mid=0
 
23198
  while :; do
 
23199
    cat >conftest.$ac_ext <<_ACEOF
 
23200
/* confdefs.h.  */
 
23201
_ACEOF
 
23202
cat confdefs.h >>conftest.$ac_ext
 
23203
cat >>conftest.$ac_ext <<_ACEOF
 
23204
/* end confdefs.h.  */
 
23205
$ac_includes_default
 
23206
   typedef float ac__type_sizeof_;
 
23207
int
 
23208
main ()
 
23209
{
 
23210
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
23211
test_array [0] = 0
 
23212
 
 
23213
  ;
 
23214
  return 0;
 
23215
}
 
23216
_ACEOF
 
23217
rm -f conftest.$ac_objext
 
23218
if { (ac_try="$ac_compile"
 
23219
case "(($ac_try" in
 
23220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23221
  *) ac_try_echo=$ac_try;;
 
23222
esac
 
23223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23224
  (eval "$ac_compile") 2>conftest.er1
 
23225
  ac_status=$?
 
23226
  grep -v '^ *+' conftest.er1 >conftest.err
 
23227
  rm -f conftest.er1
 
23228
  cat conftest.err >&5
 
23229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23230
  (exit $ac_status); } && {
 
23231
         test -z "$ac_c_werror_flag" ||
 
23232
         test ! -s conftest.err
 
23233
       } && test -s conftest.$ac_objext; then
 
23234
  ac_hi=$ac_mid; break
 
23235
else
 
23236
  echo "$as_me: failed program was:" >&5
 
23237
sed 's/^/| /' conftest.$ac_ext >&5
 
23238
 
 
23239
        ac_lo=`expr $ac_mid + 1`
 
23240
                        if test $ac_lo -le $ac_mid; then
 
23241
                          ac_lo= ac_hi=
 
23242
                          break
 
23243
                        fi
 
23244
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
23245
fi
 
23246
 
 
23247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23248
  done
 
23249
else
 
23250
  echo "$as_me: failed program was:" >&5
 
23251
sed 's/^/| /' conftest.$ac_ext >&5
 
23252
 
 
23253
        cat >conftest.$ac_ext <<_ACEOF
 
23254
/* confdefs.h.  */
 
23255
_ACEOF
 
23256
cat confdefs.h >>conftest.$ac_ext
 
23257
cat >>conftest.$ac_ext <<_ACEOF
 
23258
/* end confdefs.h.  */
 
23259
$ac_includes_default
 
23260
   typedef float ac__type_sizeof_;
 
23261
int
 
23262
main ()
 
23263
{
 
23264
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
23265
test_array [0] = 0
 
23266
 
 
23267
  ;
 
23268
  return 0;
 
23269
}
 
23270
_ACEOF
 
23271
rm -f conftest.$ac_objext
 
23272
if { (ac_try="$ac_compile"
 
23273
case "(($ac_try" in
 
23274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23275
  *) ac_try_echo=$ac_try;;
 
23276
esac
 
23277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23278
  (eval "$ac_compile") 2>conftest.er1
 
23279
  ac_status=$?
 
23280
  grep -v '^ *+' conftest.er1 >conftest.err
 
23281
  rm -f conftest.er1
 
23282
  cat conftest.err >&5
 
23283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23284
  (exit $ac_status); } && {
 
23285
         test -z "$ac_c_werror_flag" ||
 
23286
         test ! -s conftest.err
 
23287
       } && test -s conftest.$ac_objext; then
 
23288
  ac_hi=-1 ac_mid=-1
 
23289
  while :; do
 
23290
    cat >conftest.$ac_ext <<_ACEOF
 
23291
/* confdefs.h.  */
 
23292
_ACEOF
 
23293
cat confdefs.h >>conftest.$ac_ext
 
23294
cat >>conftest.$ac_ext <<_ACEOF
 
23295
/* end confdefs.h.  */
 
23296
$ac_includes_default
 
23297
   typedef float ac__type_sizeof_;
 
23298
int
 
23299
main ()
 
23300
{
 
23301
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
23302
test_array [0] = 0
 
23303
 
 
23304
  ;
 
23305
  return 0;
 
23306
}
 
23307
_ACEOF
 
23308
rm -f conftest.$ac_objext
 
23309
if { (ac_try="$ac_compile"
 
23310
case "(($ac_try" in
 
23311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23312
  *) ac_try_echo=$ac_try;;
 
23313
esac
 
23314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23315
  (eval "$ac_compile") 2>conftest.er1
 
23316
  ac_status=$?
 
23317
  grep -v '^ *+' conftest.er1 >conftest.err
 
23318
  rm -f conftest.er1
 
23319
  cat conftest.err >&5
 
23320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23321
  (exit $ac_status); } && {
 
23322
         test -z "$ac_c_werror_flag" ||
 
23323
         test ! -s conftest.err
 
23324
       } && test -s conftest.$ac_objext; then
 
23325
  ac_lo=$ac_mid; break
 
23326
else
 
23327
  echo "$as_me: failed program was:" >&5
 
23328
sed 's/^/| /' conftest.$ac_ext >&5
 
23329
 
 
23330
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
23331
                        if test $ac_mid -le $ac_hi; then
 
23332
                          ac_lo= ac_hi=
 
23333
                          break
 
23334
                        fi
 
23335
                        ac_mid=`expr 2 '*' $ac_mid`
 
23336
fi
 
23337
 
 
23338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23339
  done
 
23340
else
 
23341
  echo "$as_me: failed program was:" >&5
 
23342
sed 's/^/| /' conftest.$ac_ext >&5
 
23343
 
 
23344
        ac_lo= ac_hi=
 
23345
fi
 
23346
 
 
23347
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23348
fi
 
23349
 
 
23350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23351
# Binary search between lo and hi bounds.
 
23352
while test "x$ac_lo" != "x$ac_hi"; do
 
23353
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
23354
  cat >conftest.$ac_ext <<_ACEOF
 
23355
/* confdefs.h.  */
 
23356
_ACEOF
 
23357
cat confdefs.h >>conftest.$ac_ext
 
23358
cat >>conftest.$ac_ext <<_ACEOF
 
23359
/* end confdefs.h.  */
 
23360
$ac_includes_default
 
23361
   typedef float ac__type_sizeof_;
 
23362
int
 
23363
main ()
 
23364
{
 
23365
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
23366
test_array [0] = 0
 
23367
 
 
23368
  ;
 
23369
  return 0;
 
23370
}
 
23371
_ACEOF
 
23372
rm -f conftest.$ac_objext
 
23373
if { (ac_try="$ac_compile"
 
23374
case "(($ac_try" in
 
23375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23376
  *) ac_try_echo=$ac_try;;
 
23377
esac
 
23378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23379
  (eval "$ac_compile") 2>conftest.er1
 
23380
  ac_status=$?
 
23381
  grep -v '^ *+' conftest.er1 >conftest.err
 
23382
  rm -f conftest.er1
 
23383
  cat conftest.err >&5
 
23384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23385
  (exit $ac_status); } && {
 
23386
         test -z "$ac_c_werror_flag" ||
 
23387
         test ! -s conftest.err
 
23388
       } && test -s conftest.$ac_objext; then
 
23389
  ac_hi=$ac_mid
 
23390
else
 
23391
  echo "$as_me: failed program was:" >&5
 
23392
sed 's/^/| /' conftest.$ac_ext >&5
 
23393
 
 
23394
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
23395
fi
 
23396
 
 
23397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23398
done
 
23399
case $ac_lo in
 
23400
?*) ac_cv_sizeof_float=$ac_lo;;
 
23401
'') if test "$ac_cv_type_float" = yes; then
 
23402
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
 
23403
See \`config.log' for more details." >&5
 
23404
echo "$as_me: error: cannot compute sizeof (float)
 
23405
See \`config.log' for more details." >&2;}
 
23406
   { (exit 77); exit 77; }; }
 
23407
   else
 
23408
     ac_cv_sizeof_float=0
 
23409
   fi ;;
 
23410
esac
 
23411
else
 
23412
  cat >conftest.$ac_ext <<_ACEOF
 
23413
/* confdefs.h.  */
 
23414
_ACEOF
 
23415
cat confdefs.h >>conftest.$ac_ext
 
23416
cat >>conftest.$ac_ext <<_ACEOF
 
23417
/* end confdefs.h.  */
 
23418
$ac_includes_default
 
23419
   typedef float ac__type_sizeof_;
 
23420
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
23421
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
23422
#include <stdio.h>
 
23423
#include <stdlib.h>
 
23424
int
 
23425
main ()
 
23426
{
 
23427
 
 
23428
  FILE *f = fopen ("conftest.val", "w");
 
23429
  if (! f)
 
23430
    return 1;
 
23431
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
23432
    {
 
23433
      long int i = longval ();
 
23434
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23435
        return 1;
 
23436
      fprintf (f, "%ld\n", i);
 
23437
    }
 
23438
  else
 
23439
    {
 
23440
      unsigned long int i = ulongval ();
 
23441
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23442
        return 1;
 
23443
      fprintf (f, "%lu\n", i);
 
23444
    }
 
23445
  return ferror (f) || fclose (f) != 0;
 
23446
 
 
23447
  ;
 
23448
  return 0;
 
23449
}
 
23450
_ACEOF
 
23451
rm -f conftest$ac_exeext
 
23452
if { (ac_try="$ac_link"
 
23453
case "(($ac_try" in
 
23454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23455
  *) ac_try_echo=$ac_try;;
 
23456
esac
 
23457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23458
  (eval "$ac_link") 2>&5
 
23459
  ac_status=$?
 
23460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23461
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23462
  { (case "(($ac_try" in
 
23463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23464
  *) ac_try_echo=$ac_try;;
 
23465
esac
 
23466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23467
  (eval "$ac_try") 2>&5
 
23468
  ac_status=$?
 
23469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23470
  (exit $ac_status); }; }; then
 
23471
  ac_cv_sizeof_float=`cat conftest.val`
 
23472
else
 
23473
  echo "$as_me: program exited with status $ac_status" >&5
 
23474
echo "$as_me: failed program was:" >&5
 
23475
sed 's/^/| /' conftest.$ac_ext >&5
 
23476
 
 
23477
( exit $ac_status )
 
23478
if test "$ac_cv_type_float" = yes; then
 
23479
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
 
23480
See \`config.log' for more details." >&5
 
23481
echo "$as_me: error: cannot compute sizeof (float)
 
23482
See \`config.log' for more details." >&2;}
 
23483
   { (exit 77); exit 77; }; }
 
23484
   else
 
23485
     ac_cv_sizeof_float=0
 
23486
   fi
 
23487
fi
 
23488
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23489
fi
 
23490
rm -f conftest.val
 
23491
fi
 
23492
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
 
23493
echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
 
23494
 
 
23495
 
 
23496
 
 
23497
cat >>confdefs.h <<_ACEOF
 
23498
#define SIZEOF_FLOAT $ac_cv_sizeof_float
 
23499
_ACEOF
 
23500
 
 
23501
 
 
23502
 
 
23503
    # check for C99 types, headers and functions
 
23504
    if test "${ac_cv_header_inttypes_h+set}" = set; then
 
23505
  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
23506
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
 
23507
if test "${ac_cv_header_inttypes_h+set}" = set; then
 
23508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23509
fi
 
23510
{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
 
23511
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
 
23512
else
 
23513
  # Is the header compilable?
 
23514
{ echo "$as_me:$LINENO: checking inttypes.h usability" >&5
 
23515
echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
 
23516
cat >conftest.$ac_ext <<_ACEOF
 
23517
/* confdefs.h.  */
 
23518
_ACEOF
 
23519
cat confdefs.h >>conftest.$ac_ext
 
23520
cat >>conftest.$ac_ext <<_ACEOF
 
23521
/* end confdefs.h.  */
 
23522
$ac_includes_default
 
23523
#include <inttypes.h>
 
23524
_ACEOF
 
23525
rm -f conftest.$ac_objext
 
23526
if { (ac_try="$ac_compile"
 
23527
case "(($ac_try" in
 
23528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23529
  *) ac_try_echo=$ac_try;;
 
23530
esac
 
23531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23532
  (eval "$ac_compile") 2>conftest.er1
 
23533
  ac_status=$?
 
23534
  grep -v '^ *+' conftest.er1 >conftest.err
 
23535
  rm -f conftest.er1
 
23536
  cat conftest.err >&5
 
23537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23538
  (exit $ac_status); } && {
 
23539
         test -z "$ac_c_werror_flag" ||
 
23540
         test ! -s conftest.err
 
23541
       } && test -s conftest.$ac_objext; then
 
23542
  ac_header_compiler=yes
 
23543
else
 
23544
  echo "$as_me: failed program was:" >&5
 
23545
sed 's/^/| /' conftest.$ac_ext >&5
 
23546
 
 
23547
        ac_header_compiler=no
 
23548
fi
 
23549
 
 
23550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23551
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23552
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
23553
 
 
23554
# Is the header present?
 
23555
{ echo "$as_me:$LINENO: checking inttypes.h presence" >&5
 
23556
echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
 
23557
cat >conftest.$ac_ext <<_ACEOF
 
23558
/* confdefs.h.  */
 
23559
_ACEOF
 
23560
cat confdefs.h >>conftest.$ac_ext
 
23561
cat >>conftest.$ac_ext <<_ACEOF
 
23562
/* end confdefs.h.  */
 
23563
#include <inttypes.h>
 
23564
_ACEOF
 
23565
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23566
case "(($ac_try" in
 
23567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23568
  *) ac_try_echo=$ac_try;;
 
23569
esac
 
23570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23571
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23572
  ac_status=$?
 
23573
  grep -v '^ *+' conftest.er1 >conftest.err
 
23574
  rm -f conftest.er1
 
23575
  cat conftest.err >&5
 
23576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23577
  (exit $ac_status); } >/dev/null && {
 
23578
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23579
         test ! -s conftest.err
 
23580
       }; then
 
23581
  ac_header_preproc=yes
 
23582
else
 
23583
  echo "$as_me: failed program was:" >&5
 
23584
sed 's/^/| /' conftest.$ac_ext >&5
 
23585
 
 
23586
  ac_header_preproc=no
 
23587
fi
 
23588
 
 
23589
rm -f conftest.err conftest.$ac_ext
 
23590
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23591
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
23592
 
 
23593
# So?  What about this header?
 
23594
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23595
  yes:no: )
 
23596
    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
23597
echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23598
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
 
23599
echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
 
23600
    ac_header_preproc=yes
 
23601
    ;;
 
23602
  no:yes:* )
 
23603
    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
 
23604
echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
 
23605
    { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
 
23606
echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
 
23607
    { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
 
23608
echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
 
23609
    { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
 
23610
echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23611
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
 
23612
echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
 
23613
    { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
 
23614
echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
 
23615
    ( cat <<\_ASBOX
 
23616
## --------------------------------------- ##
 
23617
## Report this to opendap-tech@opendap.org ##
 
23618
## --------------------------------------- ##
 
23619
_ASBOX
 
23620
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
23621
    ;;
 
23622
esac
 
23623
{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
23624
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
 
23625
if test "${ac_cv_header_inttypes_h+set}" = set; then
 
23626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23627
else
 
23628
  ac_cv_header_inttypes_h=$ac_header_preproc
 
23629
fi
 
23630
{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
 
23631
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
 
23632
 
 
23633
fi
 
23634
if test $ac_cv_header_inttypes_h = yes; then
 
23635
  dap_inttypes_header=yes
 
23636
fi
 
23637
 
 
23638
 
 
23639
    # DINT32 4
 
23640
    { echo "$as_me:$LINENO: checking for int32_t" >&5
 
23641
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
 
23642
if test "${ac_cv_type_int32_t+set}" = set; then
 
23643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23644
else
 
23645
  cat >conftest.$ac_ext <<_ACEOF
 
23646
/* confdefs.h.  */
 
23647
_ACEOF
 
23648
cat confdefs.h >>conftest.$ac_ext
 
23649
cat >>conftest.$ac_ext <<_ACEOF
 
23650
/* end confdefs.h.  */
 
23651
$ac_includes_default
 
23652
typedef int32_t ac__type_new_;
 
23653
int
 
23654
main ()
 
23655
{
 
23656
if ((ac__type_new_ *) 0)
 
23657
  return 0;
 
23658
if (sizeof (ac__type_new_))
 
23659
  return 0;
 
23660
  ;
 
23661
  return 0;
 
23662
}
 
23663
_ACEOF
 
23664
rm -f conftest.$ac_objext
 
23665
if { (ac_try="$ac_compile"
 
23666
case "(($ac_try" in
 
23667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23668
  *) ac_try_echo=$ac_try;;
 
23669
esac
 
23670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23671
  (eval "$ac_compile") 2>conftest.er1
 
23672
  ac_status=$?
 
23673
  grep -v '^ *+' conftest.er1 >conftest.err
 
23674
  rm -f conftest.er1
 
23675
  cat conftest.err >&5
 
23676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23677
  (exit $ac_status); } && {
 
23678
         test -z "$ac_c_werror_flag" ||
 
23679
         test ! -s conftest.err
 
23680
       } && test -s conftest.$ac_objext; then
 
23681
  ac_cv_type_int32_t=yes
 
23682
else
 
23683
  echo "$as_me: failed program was:" >&5
 
23684
sed 's/^/| /' conftest.$ac_ext >&5
 
23685
 
 
23686
        ac_cv_type_int32_t=no
 
23687
fi
 
23688
 
 
23689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23690
fi
 
23691
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
 
23692
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
 
23693
 
 
23694
# The cast to long int works around a bug in the HP C Compiler
 
23695
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
23696
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
23697
# This bug is HP SR number 8606223364.
 
23698
{ echo "$as_me:$LINENO: checking size of int32_t" >&5
 
23699
echo $ECHO_N "checking size of int32_t... $ECHO_C" >&6; }
 
23700
if test "${ac_cv_sizeof_int32_t+set}" = set; then
 
23701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23702
else
 
23703
  if test "$cross_compiling" = yes; then
 
23704
  # Depending upon the size, compute the lo and hi bounds.
 
23705
cat >conftest.$ac_ext <<_ACEOF
 
23706
/* confdefs.h.  */
 
23707
_ACEOF
 
23708
cat confdefs.h >>conftest.$ac_ext
 
23709
cat >>conftest.$ac_ext <<_ACEOF
 
23710
/* end confdefs.h.  */
 
23711
$ac_includes_default
 
23712
   typedef int32_t ac__type_sizeof_;
 
23713
int
 
23714
main ()
 
23715
{
 
23716
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
23717
test_array [0] = 0
 
23718
 
 
23719
  ;
 
23720
  return 0;
 
23721
}
 
23722
_ACEOF
 
23723
rm -f conftest.$ac_objext
 
23724
if { (ac_try="$ac_compile"
 
23725
case "(($ac_try" in
 
23726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23727
  *) ac_try_echo=$ac_try;;
 
23728
esac
 
23729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23730
  (eval "$ac_compile") 2>conftest.er1
 
23731
  ac_status=$?
 
23732
  grep -v '^ *+' conftest.er1 >conftest.err
 
23733
  rm -f conftest.er1
 
23734
  cat conftest.err >&5
 
23735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23736
  (exit $ac_status); } && {
 
23737
         test -z "$ac_c_werror_flag" ||
 
23738
         test ! -s conftest.err
 
23739
       } && test -s conftest.$ac_objext; then
 
23740
  ac_lo=0 ac_mid=0
 
23741
  while :; do
 
23742
    cat >conftest.$ac_ext <<_ACEOF
 
23743
/* confdefs.h.  */
 
23744
_ACEOF
 
23745
cat confdefs.h >>conftest.$ac_ext
 
23746
cat >>conftest.$ac_ext <<_ACEOF
 
23747
/* end confdefs.h.  */
 
23748
$ac_includes_default
 
23749
   typedef int32_t ac__type_sizeof_;
 
23750
int
 
23751
main ()
 
23752
{
 
23753
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
23754
test_array [0] = 0
 
23755
 
 
23756
  ;
 
23757
  return 0;
 
23758
}
 
23759
_ACEOF
 
23760
rm -f conftest.$ac_objext
 
23761
if { (ac_try="$ac_compile"
 
23762
case "(($ac_try" in
 
23763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23764
  *) ac_try_echo=$ac_try;;
 
23765
esac
 
23766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23767
  (eval "$ac_compile") 2>conftest.er1
 
23768
  ac_status=$?
 
23769
  grep -v '^ *+' conftest.er1 >conftest.err
 
23770
  rm -f conftest.er1
 
23771
  cat conftest.err >&5
 
23772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23773
  (exit $ac_status); } && {
 
23774
         test -z "$ac_c_werror_flag" ||
 
23775
         test ! -s conftest.err
 
23776
       } && test -s conftest.$ac_objext; then
 
23777
  ac_hi=$ac_mid; break
 
23778
else
 
23779
  echo "$as_me: failed program was:" >&5
 
23780
sed 's/^/| /' conftest.$ac_ext >&5
 
23781
 
 
23782
        ac_lo=`expr $ac_mid + 1`
 
23783
                        if test $ac_lo -le $ac_mid; then
 
23784
                          ac_lo= ac_hi=
 
23785
                          break
 
23786
                        fi
 
23787
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
23788
fi
 
23789
 
 
23790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23791
  done
 
23792
else
 
23793
  echo "$as_me: failed program was:" >&5
 
23794
sed 's/^/| /' conftest.$ac_ext >&5
 
23795
 
 
23796
        cat >conftest.$ac_ext <<_ACEOF
 
23797
/* confdefs.h.  */
 
23798
_ACEOF
 
23799
cat confdefs.h >>conftest.$ac_ext
 
23800
cat >>conftest.$ac_ext <<_ACEOF
 
23801
/* end confdefs.h.  */
 
23802
$ac_includes_default
 
23803
   typedef int32_t ac__type_sizeof_;
 
23804
int
 
23805
main ()
 
23806
{
 
23807
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
23808
test_array [0] = 0
 
23809
 
 
23810
  ;
 
23811
  return 0;
 
23812
}
 
23813
_ACEOF
 
23814
rm -f conftest.$ac_objext
 
23815
if { (ac_try="$ac_compile"
 
23816
case "(($ac_try" in
 
23817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23818
  *) ac_try_echo=$ac_try;;
 
23819
esac
 
23820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23821
  (eval "$ac_compile") 2>conftest.er1
 
23822
  ac_status=$?
 
23823
  grep -v '^ *+' conftest.er1 >conftest.err
 
23824
  rm -f conftest.er1
 
23825
  cat conftest.err >&5
 
23826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23827
  (exit $ac_status); } && {
 
23828
         test -z "$ac_c_werror_flag" ||
 
23829
         test ! -s conftest.err
 
23830
       } && test -s conftest.$ac_objext; then
 
23831
  ac_hi=-1 ac_mid=-1
 
23832
  while :; do
 
23833
    cat >conftest.$ac_ext <<_ACEOF
 
23834
/* confdefs.h.  */
 
23835
_ACEOF
 
23836
cat confdefs.h >>conftest.$ac_ext
 
23837
cat >>conftest.$ac_ext <<_ACEOF
 
23838
/* end confdefs.h.  */
 
23839
$ac_includes_default
 
23840
   typedef int32_t ac__type_sizeof_;
 
23841
int
 
23842
main ()
 
23843
{
 
23844
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
23845
test_array [0] = 0
 
23846
 
 
23847
  ;
 
23848
  return 0;
 
23849
}
 
23850
_ACEOF
 
23851
rm -f conftest.$ac_objext
 
23852
if { (ac_try="$ac_compile"
 
23853
case "(($ac_try" in
 
23854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23855
  *) ac_try_echo=$ac_try;;
 
23856
esac
 
23857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23858
  (eval "$ac_compile") 2>conftest.er1
 
23859
  ac_status=$?
 
23860
  grep -v '^ *+' conftest.er1 >conftest.err
 
23861
  rm -f conftest.er1
 
23862
  cat conftest.err >&5
 
23863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23864
  (exit $ac_status); } && {
 
23865
         test -z "$ac_c_werror_flag" ||
 
23866
         test ! -s conftest.err
 
23867
       } && test -s conftest.$ac_objext; then
 
23868
  ac_lo=$ac_mid; break
 
23869
else
 
23870
  echo "$as_me: failed program was:" >&5
 
23871
sed 's/^/| /' conftest.$ac_ext >&5
 
23872
 
 
23873
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
23874
                        if test $ac_mid -le $ac_hi; then
 
23875
                          ac_lo= ac_hi=
 
23876
                          break
 
23877
                        fi
 
23878
                        ac_mid=`expr 2 '*' $ac_mid`
 
23879
fi
 
23880
 
 
23881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23882
  done
 
23883
else
 
23884
  echo "$as_me: failed program was:" >&5
 
23885
sed 's/^/| /' conftest.$ac_ext >&5
 
23886
 
 
23887
        ac_lo= ac_hi=
 
23888
fi
 
23889
 
 
23890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23891
fi
 
23892
 
 
23893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23894
# Binary search between lo and hi bounds.
 
23895
while test "x$ac_lo" != "x$ac_hi"; do
 
23896
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
23897
  cat >conftest.$ac_ext <<_ACEOF
 
23898
/* confdefs.h.  */
 
23899
_ACEOF
 
23900
cat confdefs.h >>conftest.$ac_ext
 
23901
cat >>conftest.$ac_ext <<_ACEOF
 
23902
/* end confdefs.h.  */
 
23903
$ac_includes_default
 
23904
   typedef int32_t ac__type_sizeof_;
 
23905
int
 
23906
main ()
 
23907
{
 
23908
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
23909
test_array [0] = 0
 
23910
 
 
23911
  ;
 
23912
  return 0;
 
23913
}
 
23914
_ACEOF
 
23915
rm -f conftest.$ac_objext
 
23916
if { (ac_try="$ac_compile"
 
23917
case "(($ac_try" in
 
23918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23919
  *) ac_try_echo=$ac_try;;
 
23920
esac
 
23921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23922
  (eval "$ac_compile") 2>conftest.er1
 
23923
  ac_status=$?
 
23924
  grep -v '^ *+' conftest.er1 >conftest.err
 
23925
  rm -f conftest.er1
 
23926
  cat conftest.err >&5
 
23927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23928
  (exit $ac_status); } && {
 
23929
         test -z "$ac_c_werror_flag" ||
 
23930
         test ! -s conftest.err
 
23931
       } && test -s conftest.$ac_objext; then
 
23932
  ac_hi=$ac_mid
 
23933
else
 
23934
  echo "$as_me: failed program was:" >&5
 
23935
sed 's/^/| /' conftest.$ac_ext >&5
 
23936
 
 
23937
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
23938
fi
 
23939
 
 
23940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23941
done
 
23942
case $ac_lo in
 
23943
?*) ac_cv_sizeof_int32_t=$ac_lo;;
 
23944
'') if test "$ac_cv_type_int32_t" = yes; then
 
23945
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t)
 
23946
See \`config.log' for more details." >&5
 
23947
echo "$as_me: error: cannot compute sizeof (int32_t)
 
23948
See \`config.log' for more details." >&2;}
 
23949
   { (exit 77); exit 77; }; }
 
23950
   else
 
23951
     ac_cv_sizeof_int32_t=0
 
23952
   fi ;;
 
23953
esac
 
23954
else
 
23955
  cat >conftest.$ac_ext <<_ACEOF
 
23956
/* confdefs.h.  */
 
23957
_ACEOF
 
23958
cat confdefs.h >>conftest.$ac_ext
 
23959
cat >>conftest.$ac_ext <<_ACEOF
 
23960
/* end confdefs.h.  */
 
23961
$ac_includes_default
 
23962
   typedef int32_t ac__type_sizeof_;
 
23963
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
23964
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
23965
#include <stdio.h>
 
23966
#include <stdlib.h>
 
23967
int
 
23968
main ()
 
23969
{
 
23970
 
 
23971
  FILE *f = fopen ("conftest.val", "w");
 
23972
  if (! f)
 
23973
    return 1;
 
23974
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
23975
    {
 
23976
      long int i = longval ();
 
23977
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23978
        return 1;
 
23979
      fprintf (f, "%ld\n", i);
 
23980
    }
 
23981
  else
 
23982
    {
 
23983
      unsigned long int i = ulongval ();
 
23984
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23985
        return 1;
 
23986
      fprintf (f, "%lu\n", i);
 
23987
    }
 
23988
  return ferror (f) || fclose (f) != 0;
 
23989
 
 
23990
  ;
 
23991
  return 0;
 
23992
}
 
23993
_ACEOF
 
23994
rm -f conftest$ac_exeext
 
23995
if { (ac_try="$ac_link"
 
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_link") 2>&5
 
24002
  ac_status=$?
 
24003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24004
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24005
  { (case "(($ac_try" in
 
24006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24007
  *) ac_try_echo=$ac_try;;
 
24008
esac
 
24009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24010
  (eval "$ac_try") 2>&5
 
24011
  ac_status=$?
 
24012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24013
  (exit $ac_status); }; }; then
 
24014
  ac_cv_sizeof_int32_t=`cat conftest.val`
 
24015
else
 
24016
  echo "$as_me: program exited with status $ac_status" >&5
 
24017
echo "$as_me: failed program was:" >&5
 
24018
sed 's/^/| /' conftest.$ac_ext >&5
 
24019
 
 
24020
( exit $ac_status )
 
24021
if test "$ac_cv_type_int32_t" = yes; then
 
24022
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t)
 
24023
See \`config.log' for more details." >&5
 
24024
echo "$as_me: error: cannot compute sizeof (int32_t)
 
24025
See \`config.log' for more details." >&2;}
 
24026
   { (exit 77); exit 77; }; }
 
24027
   else
 
24028
     ac_cv_sizeof_int32_t=0
 
24029
   fi
 
24030
fi
 
24031
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24032
fi
 
24033
rm -f conftest.val
 
24034
fi
 
24035
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5
 
24036
echo "${ECHO_T}$ac_cv_sizeof_int32_t" >&6; }
 
24037
 
 
24038
 
 
24039
 
 
24040
cat >>confdefs.h <<_ACEOF
 
24041
#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
 
24042
_ACEOF
 
24043
 
 
24044
 
 
24045
    # DUINT32
 
24046
    { echo "$as_me:$LINENO: checking for uint32_t" >&5
 
24047
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
 
24048
if test "${ac_cv_type_uint32_t+set}" = set; then
 
24049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24050
else
 
24051
  cat >conftest.$ac_ext <<_ACEOF
 
24052
/* confdefs.h.  */
 
24053
_ACEOF
 
24054
cat confdefs.h >>conftest.$ac_ext
 
24055
cat >>conftest.$ac_ext <<_ACEOF
 
24056
/* end confdefs.h.  */
 
24057
$ac_includes_default
 
24058
typedef uint32_t ac__type_new_;
 
24059
int
 
24060
main ()
 
24061
{
 
24062
if ((ac__type_new_ *) 0)
 
24063
  return 0;
 
24064
if (sizeof (ac__type_new_))
 
24065
  return 0;
 
24066
  ;
 
24067
  return 0;
 
24068
}
 
24069
_ACEOF
 
24070
rm -f conftest.$ac_objext
 
24071
if { (ac_try="$ac_compile"
 
24072
case "(($ac_try" in
 
24073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24074
  *) ac_try_echo=$ac_try;;
 
24075
esac
 
24076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24077
  (eval "$ac_compile") 2>conftest.er1
 
24078
  ac_status=$?
 
24079
  grep -v '^ *+' conftest.er1 >conftest.err
 
24080
  rm -f conftest.er1
 
24081
  cat conftest.err >&5
 
24082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24083
  (exit $ac_status); } && {
 
24084
         test -z "$ac_c_werror_flag" ||
 
24085
         test ! -s conftest.err
 
24086
       } && test -s conftest.$ac_objext; then
 
24087
  ac_cv_type_uint32_t=yes
 
24088
else
 
24089
  echo "$as_me: failed program was:" >&5
 
24090
sed 's/^/| /' conftest.$ac_ext >&5
 
24091
 
 
24092
        ac_cv_type_uint32_t=no
 
24093
fi
 
24094
 
 
24095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24096
fi
 
24097
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
 
24098
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
 
24099
 
 
24100
# The cast to long int works around a bug in the HP C Compiler
 
24101
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24102
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24103
# This bug is HP SR number 8606223364.
 
24104
{ echo "$as_me:$LINENO: checking size of uint32_t" >&5
 
24105
echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6; }
 
24106
if test "${ac_cv_sizeof_uint32_t+set}" = set; then
 
24107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24108
else
 
24109
  if test "$cross_compiling" = yes; then
 
24110
  # Depending upon the size, compute the lo and hi bounds.
 
24111
cat >conftest.$ac_ext <<_ACEOF
 
24112
/* confdefs.h.  */
 
24113
_ACEOF
 
24114
cat confdefs.h >>conftest.$ac_ext
 
24115
cat >>conftest.$ac_ext <<_ACEOF
 
24116
/* end confdefs.h.  */
 
24117
$ac_includes_default
 
24118
   typedef uint32_t ac__type_sizeof_;
 
24119
int
 
24120
main ()
 
24121
{
 
24122
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
24123
test_array [0] = 0
 
24124
 
 
24125
  ;
 
24126
  return 0;
 
24127
}
 
24128
_ACEOF
 
24129
rm -f conftest.$ac_objext
 
24130
if { (ac_try="$ac_compile"
 
24131
case "(($ac_try" in
 
24132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24133
  *) ac_try_echo=$ac_try;;
 
24134
esac
 
24135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24136
  (eval "$ac_compile") 2>conftest.er1
 
24137
  ac_status=$?
 
24138
  grep -v '^ *+' conftest.er1 >conftest.err
 
24139
  rm -f conftest.er1
 
24140
  cat conftest.err >&5
 
24141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24142
  (exit $ac_status); } && {
 
24143
         test -z "$ac_c_werror_flag" ||
 
24144
         test ! -s conftest.err
 
24145
       } && test -s conftest.$ac_objext; then
 
24146
  ac_lo=0 ac_mid=0
 
24147
  while :; do
 
24148
    cat >conftest.$ac_ext <<_ACEOF
 
24149
/* confdefs.h.  */
 
24150
_ACEOF
 
24151
cat confdefs.h >>conftest.$ac_ext
 
24152
cat >>conftest.$ac_ext <<_ACEOF
 
24153
/* end confdefs.h.  */
 
24154
$ac_includes_default
 
24155
   typedef uint32_t ac__type_sizeof_;
 
24156
int
 
24157
main ()
 
24158
{
 
24159
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
24160
test_array [0] = 0
 
24161
 
 
24162
  ;
 
24163
  return 0;
 
24164
}
 
24165
_ACEOF
 
24166
rm -f conftest.$ac_objext
 
24167
if { (ac_try="$ac_compile"
 
24168
case "(($ac_try" in
 
24169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24170
  *) ac_try_echo=$ac_try;;
 
24171
esac
 
24172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24173
  (eval "$ac_compile") 2>conftest.er1
 
24174
  ac_status=$?
 
24175
  grep -v '^ *+' conftest.er1 >conftest.err
 
24176
  rm -f conftest.er1
 
24177
  cat conftest.err >&5
 
24178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24179
  (exit $ac_status); } && {
 
24180
         test -z "$ac_c_werror_flag" ||
 
24181
         test ! -s conftest.err
 
24182
       } && test -s conftest.$ac_objext; then
 
24183
  ac_hi=$ac_mid; break
 
24184
else
 
24185
  echo "$as_me: failed program was:" >&5
 
24186
sed 's/^/| /' conftest.$ac_ext >&5
 
24187
 
 
24188
        ac_lo=`expr $ac_mid + 1`
 
24189
                        if test $ac_lo -le $ac_mid; then
 
24190
                          ac_lo= ac_hi=
 
24191
                          break
 
24192
                        fi
 
24193
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
24194
fi
 
24195
 
 
24196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24197
  done
 
24198
else
 
24199
  echo "$as_me: failed program was:" >&5
 
24200
sed 's/^/| /' conftest.$ac_ext >&5
 
24201
 
 
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 uint32_t ac__type_sizeof_;
 
24210
int
 
24211
main ()
 
24212
{
 
24213
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
24214
test_array [0] = 0
 
24215
 
 
24216
  ;
 
24217
  return 0;
 
24218
}
 
24219
_ACEOF
 
24220
rm -f conftest.$ac_objext
 
24221
if { (ac_try="$ac_compile"
 
24222
case "(($ac_try" in
 
24223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24224
  *) ac_try_echo=$ac_try;;
 
24225
esac
 
24226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24227
  (eval "$ac_compile") 2>conftest.er1
 
24228
  ac_status=$?
 
24229
  grep -v '^ *+' conftest.er1 >conftest.err
 
24230
  rm -f conftest.er1
 
24231
  cat conftest.err >&5
 
24232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24233
  (exit $ac_status); } && {
 
24234
         test -z "$ac_c_werror_flag" ||
 
24235
         test ! -s conftest.err
 
24236
       } && test -s conftest.$ac_objext; then
 
24237
  ac_hi=-1 ac_mid=-1
 
24238
  while :; do
 
24239
    cat >conftest.$ac_ext <<_ACEOF
 
24240
/* confdefs.h.  */
 
24241
_ACEOF
 
24242
cat confdefs.h >>conftest.$ac_ext
 
24243
cat >>conftest.$ac_ext <<_ACEOF
 
24244
/* end confdefs.h.  */
 
24245
$ac_includes_default
 
24246
   typedef uint32_t ac__type_sizeof_;
 
24247
int
 
24248
main ()
 
24249
{
 
24250
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
24251
test_array [0] = 0
 
24252
 
 
24253
  ;
 
24254
  return 0;
 
24255
}
 
24256
_ACEOF
 
24257
rm -f conftest.$ac_objext
 
24258
if { (ac_try="$ac_compile"
 
24259
case "(($ac_try" in
 
24260
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24261
  *) ac_try_echo=$ac_try;;
 
24262
esac
 
24263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24264
  (eval "$ac_compile") 2>conftest.er1
 
24265
  ac_status=$?
 
24266
  grep -v '^ *+' conftest.er1 >conftest.err
 
24267
  rm -f conftest.er1
 
24268
  cat conftest.err >&5
 
24269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24270
  (exit $ac_status); } && {
 
24271
         test -z "$ac_c_werror_flag" ||
 
24272
         test ! -s conftest.err
 
24273
       } && test -s conftest.$ac_objext; then
 
24274
  ac_lo=$ac_mid; break
 
24275
else
 
24276
  echo "$as_me: failed program was:" >&5
 
24277
sed 's/^/| /' conftest.$ac_ext >&5
 
24278
 
 
24279
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
24280
                        if test $ac_mid -le $ac_hi; then
 
24281
                          ac_lo= ac_hi=
 
24282
                          break
 
24283
                        fi
 
24284
                        ac_mid=`expr 2 '*' $ac_mid`
 
24285
fi
 
24286
 
 
24287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24288
  done
 
24289
else
 
24290
  echo "$as_me: failed program was:" >&5
 
24291
sed 's/^/| /' conftest.$ac_ext >&5
 
24292
 
 
24293
        ac_lo= ac_hi=
 
24294
fi
 
24295
 
 
24296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24297
fi
 
24298
 
 
24299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24300
# Binary search between lo and hi bounds.
 
24301
while test "x$ac_lo" != "x$ac_hi"; do
 
24302
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24303
  cat >conftest.$ac_ext <<_ACEOF
 
24304
/* confdefs.h.  */
 
24305
_ACEOF
 
24306
cat confdefs.h >>conftest.$ac_ext
 
24307
cat >>conftest.$ac_ext <<_ACEOF
 
24308
/* end confdefs.h.  */
 
24309
$ac_includes_default
 
24310
   typedef uint32_t ac__type_sizeof_;
 
24311
int
 
24312
main ()
 
24313
{
 
24314
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
24315
test_array [0] = 0
 
24316
 
 
24317
  ;
 
24318
  return 0;
 
24319
}
 
24320
_ACEOF
 
24321
rm -f conftest.$ac_objext
 
24322
if { (ac_try="$ac_compile"
 
24323
case "(($ac_try" in
 
24324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24325
  *) ac_try_echo=$ac_try;;
 
24326
esac
 
24327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24328
  (eval "$ac_compile") 2>conftest.er1
 
24329
  ac_status=$?
 
24330
  grep -v '^ *+' conftest.er1 >conftest.err
 
24331
  rm -f conftest.er1
 
24332
  cat conftest.err >&5
 
24333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24334
  (exit $ac_status); } && {
 
24335
         test -z "$ac_c_werror_flag" ||
 
24336
         test ! -s conftest.err
 
24337
       } && test -s conftest.$ac_objext; then
 
24338
  ac_hi=$ac_mid
 
24339
else
 
24340
  echo "$as_me: failed program was:" >&5
 
24341
sed 's/^/| /' conftest.$ac_ext >&5
 
24342
 
 
24343
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
24344
fi
 
24345
 
 
24346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24347
done
 
24348
case $ac_lo in
 
24349
?*) ac_cv_sizeof_uint32_t=$ac_lo;;
 
24350
'') if test "$ac_cv_type_uint32_t" = yes; then
 
24351
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t)
 
24352
See \`config.log' for more details." >&5
 
24353
echo "$as_me: error: cannot compute sizeof (uint32_t)
 
24354
See \`config.log' for more details." >&2;}
 
24355
   { (exit 77); exit 77; }; }
 
24356
   else
 
24357
     ac_cv_sizeof_uint32_t=0
 
24358
   fi ;;
 
24359
esac
 
24360
else
 
24361
  cat >conftest.$ac_ext <<_ACEOF
 
24362
/* confdefs.h.  */
 
24363
_ACEOF
 
24364
cat confdefs.h >>conftest.$ac_ext
 
24365
cat >>conftest.$ac_ext <<_ACEOF
 
24366
/* end confdefs.h.  */
 
24367
$ac_includes_default
 
24368
   typedef uint32_t ac__type_sizeof_;
 
24369
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
24370
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
24371
#include <stdio.h>
 
24372
#include <stdlib.h>
 
24373
int
 
24374
main ()
 
24375
{
 
24376
 
 
24377
  FILE *f = fopen ("conftest.val", "w");
 
24378
  if (! f)
 
24379
    return 1;
 
24380
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
24381
    {
 
24382
      long int i = longval ();
 
24383
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
24384
        return 1;
 
24385
      fprintf (f, "%ld\n", i);
 
24386
    }
 
24387
  else
 
24388
    {
 
24389
      unsigned long int i = ulongval ();
 
24390
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
24391
        return 1;
 
24392
      fprintf (f, "%lu\n", i);
 
24393
    }
 
24394
  return ferror (f) || fclose (f) != 0;
 
24395
 
 
24396
  ;
 
24397
  return 0;
 
24398
}
 
24399
_ACEOF
 
24400
rm -f conftest$ac_exeext
 
24401
if { (ac_try="$ac_link"
 
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_link") 2>&5
 
24408
  ac_status=$?
 
24409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24410
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24411
  { (case "(($ac_try" in
 
24412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24413
  *) ac_try_echo=$ac_try;;
 
24414
esac
 
24415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24416
  (eval "$ac_try") 2>&5
 
24417
  ac_status=$?
 
24418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24419
  (exit $ac_status); }; }; then
 
24420
  ac_cv_sizeof_uint32_t=`cat conftest.val`
 
24421
else
 
24422
  echo "$as_me: program exited with status $ac_status" >&5
 
24423
echo "$as_me: failed program was:" >&5
 
24424
sed 's/^/| /' conftest.$ac_ext >&5
 
24425
 
 
24426
( exit $ac_status )
 
24427
if test "$ac_cv_type_uint32_t" = yes; then
 
24428
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t)
 
24429
See \`config.log' for more details." >&5
 
24430
echo "$as_me: error: cannot compute sizeof (uint32_t)
 
24431
See \`config.log' for more details." >&2;}
 
24432
   { (exit 77); exit 77; }; }
 
24433
   else
 
24434
     ac_cv_sizeof_uint32_t=0
 
24435
   fi
 
24436
fi
 
24437
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24438
fi
 
24439
rm -f conftest.val
 
24440
fi
 
24441
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
 
24442
echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6; }
 
24443
 
 
24444
 
 
24445
 
 
24446
cat >>confdefs.h <<_ACEOF
 
24447
#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
 
24448
_ACEOF
 
24449
 
 
24450
 
 
24451
    # DINT16 short
 
24452
    { echo "$as_me:$LINENO: checking for int16_t" >&5
 
24453
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
 
24454
if test "${ac_cv_type_int16_t+set}" = set; then
 
24455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24456
else
 
24457
  cat >conftest.$ac_ext <<_ACEOF
 
24458
/* confdefs.h.  */
 
24459
_ACEOF
 
24460
cat confdefs.h >>conftest.$ac_ext
 
24461
cat >>conftest.$ac_ext <<_ACEOF
 
24462
/* end confdefs.h.  */
 
24463
$ac_includes_default
 
24464
typedef int16_t ac__type_new_;
 
24465
int
 
24466
main ()
 
24467
{
 
24468
if ((ac__type_new_ *) 0)
 
24469
  return 0;
 
24470
if (sizeof (ac__type_new_))
 
24471
  return 0;
 
24472
  ;
 
24473
  return 0;
 
24474
}
 
24475
_ACEOF
 
24476
rm -f conftest.$ac_objext
 
24477
if { (ac_try="$ac_compile"
 
24478
case "(($ac_try" in
 
24479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24480
  *) ac_try_echo=$ac_try;;
 
24481
esac
 
24482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24483
  (eval "$ac_compile") 2>conftest.er1
 
24484
  ac_status=$?
 
24485
  grep -v '^ *+' conftest.er1 >conftest.err
 
24486
  rm -f conftest.er1
 
24487
  cat conftest.err >&5
 
24488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24489
  (exit $ac_status); } && {
 
24490
         test -z "$ac_c_werror_flag" ||
 
24491
         test ! -s conftest.err
 
24492
       } && test -s conftest.$ac_objext; then
 
24493
  ac_cv_type_int16_t=yes
 
24494
else
 
24495
  echo "$as_me: failed program was:" >&5
 
24496
sed 's/^/| /' conftest.$ac_ext >&5
 
24497
 
 
24498
        ac_cv_type_int16_t=no
 
24499
fi
 
24500
 
 
24501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24502
fi
 
24503
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
 
24504
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
 
24505
 
 
24506
# The cast to long int works around a bug in the HP C Compiler
 
24507
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24508
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24509
# This bug is HP SR number 8606223364.
 
24510
{ echo "$as_me:$LINENO: checking size of int16_t" >&5
 
24511
echo $ECHO_N "checking size of int16_t... $ECHO_C" >&6; }
 
24512
if test "${ac_cv_sizeof_int16_t+set}" = set; then
 
24513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24514
else
 
24515
  if test "$cross_compiling" = yes; then
 
24516
  # Depending upon the size, compute the lo and hi bounds.
 
24517
cat >conftest.$ac_ext <<_ACEOF
 
24518
/* confdefs.h.  */
 
24519
_ACEOF
 
24520
cat confdefs.h >>conftest.$ac_ext
 
24521
cat >>conftest.$ac_ext <<_ACEOF
 
24522
/* end confdefs.h.  */
 
24523
$ac_includes_default
 
24524
   typedef int16_t ac__type_sizeof_;
 
24525
int
 
24526
main ()
 
24527
{
 
24528
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
24529
test_array [0] = 0
 
24530
 
 
24531
  ;
 
24532
  return 0;
 
24533
}
 
24534
_ACEOF
 
24535
rm -f conftest.$ac_objext
 
24536
if { (ac_try="$ac_compile"
 
24537
case "(($ac_try" in
 
24538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24539
  *) ac_try_echo=$ac_try;;
 
24540
esac
 
24541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24542
  (eval "$ac_compile") 2>conftest.er1
 
24543
  ac_status=$?
 
24544
  grep -v '^ *+' conftest.er1 >conftest.err
 
24545
  rm -f conftest.er1
 
24546
  cat conftest.err >&5
 
24547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24548
  (exit $ac_status); } && {
 
24549
         test -z "$ac_c_werror_flag" ||
 
24550
         test ! -s conftest.err
 
24551
       } && test -s conftest.$ac_objext; then
 
24552
  ac_lo=0 ac_mid=0
 
24553
  while :; do
 
24554
    cat >conftest.$ac_ext <<_ACEOF
 
24555
/* confdefs.h.  */
 
24556
_ACEOF
 
24557
cat confdefs.h >>conftest.$ac_ext
 
24558
cat >>conftest.$ac_ext <<_ACEOF
 
24559
/* end confdefs.h.  */
 
24560
$ac_includes_default
 
24561
   typedef int16_t ac__type_sizeof_;
 
24562
int
 
24563
main ()
 
24564
{
 
24565
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
24566
test_array [0] = 0
 
24567
 
 
24568
  ;
 
24569
  return 0;
 
24570
}
 
24571
_ACEOF
 
24572
rm -f conftest.$ac_objext
 
24573
if { (ac_try="$ac_compile"
 
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_compile") 2>conftest.er1
 
24580
  ac_status=$?
 
24581
  grep -v '^ *+' conftest.er1 >conftest.err
 
24582
  rm -f conftest.er1
 
24583
  cat conftest.err >&5
 
24584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24585
  (exit $ac_status); } && {
 
24586
         test -z "$ac_c_werror_flag" ||
 
24587
         test ! -s conftest.err
 
24588
       } && test -s conftest.$ac_objext; then
 
24589
  ac_hi=$ac_mid; break
 
24590
else
 
24591
  echo "$as_me: failed program was:" >&5
 
24592
sed 's/^/| /' conftest.$ac_ext >&5
 
24593
 
 
24594
        ac_lo=`expr $ac_mid + 1`
 
24595
                        if test $ac_lo -le $ac_mid; then
 
24596
                          ac_lo= ac_hi=
 
24597
                          break
 
24598
                        fi
 
24599
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
24600
fi
 
24601
 
 
24602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24603
  done
 
24604
else
 
24605
  echo "$as_me: failed program was:" >&5
 
24606
sed 's/^/| /' conftest.$ac_ext >&5
 
24607
 
 
24608
        cat >conftest.$ac_ext <<_ACEOF
 
24609
/* confdefs.h.  */
 
24610
_ACEOF
 
24611
cat confdefs.h >>conftest.$ac_ext
 
24612
cat >>conftest.$ac_ext <<_ACEOF
 
24613
/* end confdefs.h.  */
 
24614
$ac_includes_default
 
24615
   typedef int16_t ac__type_sizeof_;
 
24616
int
 
24617
main ()
 
24618
{
 
24619
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
24620
test_array [0] = 0
 
24621
 
 
24622
  ;
 
24623
  return 0;
 
24624
}
 
24625
_ACEOF
 
24626
rm -f conftest.$ac_objext
 
24627
if { (ac_try="$ac_compile"
 
24628
case "(($ac_try" in
 
24629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24630
  *) ac_try_echo=$ac_try;;
 
24631
esac
 
24632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24633
  (eval "$ac_compile") 2>conftest.er1
 
24634
  ac_status=$?
 
24635
  grep -v '^ *+' conftest.er1 >conftest.err
 
24636
  rm -f conftest.er1
 
24637
  cat conftest.err >&5
 
24638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24639
  (exit $ac_status); } && {
 
24640
         test -z "$ac_c_werror_flag" ||
 
24641
         test ! -s conftest.err
 
24642
       } && test -s conftest.$ac_objext; then
 
24643
  ac_hi=-1 ac_mid=-1
 
24644
  while :; do
 
24645
    cat >conftest.$ac_ext <<_ACEOF
 
24646
/* confdefs.h.  */
 
24647
_ACEOF
 
24648
cat confdefs.h >>conftest.$ac_ext
 
24649
cat >>conftest.$ac_ext <<_ACEOF
 
24650
/* end confdefs.h.  */
 
24651
$ac_includes_default
 
24652
   typedef int16_t ac__type_sizeof_;
 
24653
int
 
24654
main ()
 
24655
{
 
24656
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
24657
test_array [0] = 0
 
24658
 
 
24659
  ;
 
24660
  return 0;
 
24661
}
 
24662
_ACEOF
 
24663
rm -f conftest.$ac_objext
 
24664
if { (ac_try="$ac_compile"
 
24665
case "(($ac_try" in
 
24666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24667
  *) ac_try_echo=$ac_try;;
 
24668
esac
 
24669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24670
  (eval "$ac_compile") 2>conftest.er1
 
24671
  ac_status=$?
 
24672
  grep -v '^ *+' conftest.er1 >conftest.err
 
24673
  rm -f conftest.er1
 
24674
  cat conftest.err >&5
 
24675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24676
  (exit $ac_status); } && {
 
24677
         test -z "$ac_c_werror_flag" ||
 
24678
         test ! -s conftest.err
 
24679
       } && test -s conftest.$ac_objext; then
 
24680
  ac_lo=$ac_mid; break
 
24681
else
 
24682
  echo "$as_me: failed program was:" >&5
 
24683
sed 's/^/| /' conftest.$ac_ext >&5
 
24684
 
 
24685
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
24686
                        if test $ac_mid -le $ac_hi; then
 
24687
                          ac_lo= ac_hi=
 
24688
                          break
 
24689
                        fi
 
24690
                        ac_mid=`expr 2 '*' $ac_mid`
 
24691
fi
 
24692
 
 
24693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24694
  done
 
24695
else
 
24696
  echo "$as_me: failed program was:" >&5
 
24697
sed 's/^/| /' conftest.$ac_ext >&5
 
24698
 
 
24699
        ac_lo= ac_hi=
 
24700
fi
 
24701
 
 
24702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24703
fi
 
24704
 
 
24705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24706
# Binary search between lo and hi bounds.
 
24707
while test "x$ac_lo" != "x$ac_hi"; do
 
24708
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24709
  cat >conftest.$ac_ext <<_ACEOF
 
24710
/* confdefs.h.  */
 
24711
_ACEOF
 
24712
cat confdefs.h >>conftest.$ac_ext
 
24713
cat >>conftest.$ac_ext <<_ACEOF
 
24714
/* end confdefs.h.  */
 
24715
$ac_includes_default
 
24716
   typedef int16_t ac__type_sizeof_;
 
24717
int
 
24718
main ()
 
24719
{
 
24720
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
24721
test_array [0] = 0
 
24722
 
 
24723
  ;
 
24724
  return 0;
 
24725
}
 
24726
_ACEOF
 
24727
rm -f conftest.$ac_objext
 
24728
if { (ac_try="$ac_compile"
 
24729
case "(($ac_try" in
 
24730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24731
  *) ac_try_echo=$ac_try;;
 
24732
esac
 
24733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24734
  (eval "$ac_compile") 2>conftest.er1
 
24735
  ac_status=$?
 
24736
  grep -v '^ *+' conftest.er1 >conftest.err
 
24737
  rm -f conftest.er1
 
24738
  cat conftest.err >&5
 
24739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24740
  (exit $ac_status); } && {
 
24741
         test -z "$ac_c_werror_flag" ||
 
24742
         test ! -s conftest.err
 
24743
       } && test -s conftest.$ac_objext; then
 
24744
  ac_hi=$ac_mid
 
24745
else
 
24746
  echo "$as_me: failed program was:" >&5
 
24747
sed 's/^/| /' conftest.$ac_ext >&5
 
24748
 
 
24749
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
24750
fi
 
24751
 
 
24752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24753
done
 
24754
case $ac_lo in
 
24755
?*) ac_cv_sizeof_int16_t=$ac_lo;;
 
24756
'') if test "$ac_cv_type_int16_t" = yes; then
 
24757
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t)
 
24758
See \`config.log' for more details." >&5
 
24759
echo "$as_me: error: cannot compute sizeof (int16_t)
 
24760
See \`config.log' for more details." >&2;}
 
24761
   { (exit 77); exit 77; }; }
 
24762
   else
 
24763
     ac_cv_sizeof_int16_t=0
 
24764
   fi ;;
 
24765
esac
 
24766
else
 
24767
  cat >conftest.$ac_ext <<_ACEOF
 
24768
/* confdefs.h.  */
 
24769
_ACEOF
 
24770
cat confdefs.h >>conftest.$ac_ext
 
24771
cat >>conftest.$ac_ext <<_ACEOF
 
24772
/* end confdefs.h.  */
 
24773
$ac_includes_default
 
24774
   typedef int16_t ac__type_sizeof_;
 
24775
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
24776
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
24777
#include <stdio.h>
 
24778
#include <stdlib.h>
 
24779
int
 
24780
main ()
 
24781
{
 
24782
 
 
24783
  FILE *f = fopen ("conftest.val", "w");
 
24784
  if (! f)
 
24785
    return 1;
 
24786
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
24787
    {
 
24788
      long int i = longval ();
 
24789
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
24790
        return 1;
 
24791
      fprintf (f, "%ld\n", i);
 
24792
    }
 
24793
  else
 
24794
    {
 
24795
      unsigned long int i = ulongval ();
 
24796
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
24797
        return 1;
 
24798
      fprintf (f, "%lu\n", i);
 
24799
    }
 
24800
  return ferror (f) || fclose (f) != 0;
 
24801
 
 
24802
  ;
 
24803
  return 0;
 
24804
}
 
24805
_ACEOF
 
24806
rm -f conftest$ac_exeext
 
24807
if { (ac_try="$ac_link"
 
24808
case "(($ac_try" in
 
24809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24810
  *) ac_try_echo=$ac_try;;
 
24811
esac
 
24812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24813
  (eval "$ac_link") 2>&5
 
24814
  ac_status=$?
 
24815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24816
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24817
  { (case "(($ac_try" in
 
24818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24819
  *) ac_try_echo=$ac_try;;
 
24820
esac
 
24821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24822
  (eval "$ac_try") 2>&5
 
24823
  ac_status=$?
 
24824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24825
  (exit $ac_status); }; }; then
 
24826
  ac_cv_sizeof_int16_t=`cat conftest.val`
 
24827
else
 
24828
  echo "$as_me: program exited with status $ac_status" >&5
 
24829
echo "$as_me: failed program was:" >&5
 
24830
sed 's/^/| /' conftest.$ac_ext >&5
 
24831
 
 
24832
( exit $ac_status )
 
24833
if test "$ac_cv_type_int16_t" = yes; then
 
24834
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t)
 
24835
See \`config.log' for more details." >&5
 
24836
echo "$as_me: error: cannot compute sizeof (int16_t)
 
24837
See \`config.log' for more details." >&2;}
 
24838
   { (exit 77); exit 77; }; }
 
24839
   else
 
24840
     ac_cv_sizeof_int16_t=0
 
24841
   fi
 
24842
fi
 
24843
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24844
fi
 
24845
rm -f conftest.val
 
24846
fi
 
24847
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int16_t" >&5
 
24848
echo "${ECHO_T}$ac_cv_sizeof_int16_t" >&6; }
 
24849
 
 
24850
 
 
24851
 
 
24852
cat >>confdefs.h <<_ACEOF
 
24853
#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
 
24854
_ACEOF
 
24855
 
 
24856
 
 
24857
    # DUINT16 unsigned short
 
24858
    { echo "$as_me:$LINENO: checking for uint16_t" >&5
 
24859
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
 
24860
if test "${ac_cv_type_uint16_t+set}" = set; then
 
24861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24862
else
 
24863
  cat >conftest.$ac_ext <<_ACEOF
 
24864
/* confdefs.h.  */
 
24865
_ACEOF
 
24866
cat confdefs.h >>conftest.$ac_ext
 
24867
cat >>conftest.$ac_ext <<_ACEOF
 
24868
/* end confdefs.h.  */
 
24869
$ac_includes_default
 
24870
typedef uint16_t ac__type_new_;
 
24871
int
 
24872
main ()
 
24873
{
 
24874
if ((ac__type_new_ *) 0)
 
24875
  return 0;
 
24876
if (sizeof (ac__type_new_))
 
24877
  return 0;
 
24878
  ;
 
24879
  return 0;
 
24880
}
 
24881
_ACEOF
 
24882
rm -f conftest.$ac_objext
 
24883
if { (ac_try="$ac_compile"
 
24884
case "(($ac_try" in
 
24885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24886
  *) ac_try_echo=$ac_try;;
 
24887
esac
 
24888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24889
  (eval "$ac_compile") 2>conftest.er1
 
24890
  ac_status=$?
 
24891
  grep -v '^ *+' conftest.er1 >conftest.err
 
24892
  rm -f conftest.er1
 
24893
  cat conftest.err >&5
 
24894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24895
  (exit $ac_status); } && {
 
24896
         test -z "$ac_c_werror_flag" ||
 
24897
         test ! -s conftest.err
 
24898
       } && test -s conftest.$ac_objext; then
 
24899
  ac_cv_type_uint16_t=yes
 
24900
else
 
24901
  echo "$as_me: failed program was:" >&5
 
24902
sed 's/^/| /' conftest.$ac_ext >&5
 
24903
 
 
24904
        ac_cv_type_uint16_t=no
 
24905
fi
 
24906
 
 
24907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24908
fi
 
24909
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
 
24910
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
 
24911
 
 
24912
# The cast to long int works around a bug in the HP C Compiler
 
24913
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24914
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24915
# This bug is HP SR number 8606223364.
 
24916
{ echo "$as_me:$LINENO: checking size of uint16_t" >&5
 
24917
echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6; }
 
24918
if test "${ac_cv_sizeof_uint16_t+set}" = set; then
 
24919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24920
else
 
24921
  if test "$cross_compiling" = yes; then
 
24922
  # Depending upon the size, compute the lo and hi bounds.
 
24923
cat >conftest.$ac_ext <<_ACEOF
 
24924
/* confdefs.h.  */
 
24925
_ACEOF
 
24926
cat confdefs.h >>conftest.$ac_ext
 
24927
cat >>conftest.$ac_ext <<_ACEOF
 
24928
/* end confdefs.h.  */
 
24929
$ac_includes_default
 
24930
   typedef uint16_t ac__type_sizeof_;
 
24931
int
 
24932
main ()
 
24933
{
 
24934
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
24935
test_array [0] = 0
 
24936
 
 
24937
  ;
 
24938
  return 0;
 
24939
}
 
24940
_ACEOF
 
24941
rm -f conftest.$ac_objext
 
24942
if { (ac_try="$ac_compile"
 
24943
case "(($ac_try" in
 
24944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24945
  *) ac_try_echo=$ac_try;;
 
24946
esac
 
24947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24948
  (eval "$ac_compile") 2>conftest.er1
 
24949
  ac_status=$?
 
24950
  grep -v '^ *+' conftest.er1 >conftest.err
 
24951
  rm -f conftest.er1
 
24952
  cat conftest.err >&5
 
24953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24954
  (exit $ac_status); } && {
 
24955
         test -z "$ac_c_werror_flag" ||
 
24956
         test ! -s conftest.err
 
24957
       } && test -s conftest.$ac_objext; then
 
24958
  ac_lo=0 ac_mid=0
 
24959
  while :; do
 
24960
    cat >conftest.$ac_ext <<_ACEOF
 
24961
/* confdefs.h.  */
 
24962
_ACEOF
 
24963
cat confdefs.h >>conftest.$ac_ext
 
24964
cat >>conftest.$ac_ext <<_ACEOF
 
24965
/* end confdefs.h.  */
 
24966
$ac_includes_default
 
24967
   typedef uint16_t ac__type_sizeof_;
 
24968
int
 
24969
main ()
 
24970
{
 
24971
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
24972
test_array [0] = 0
 
24973
 
 
24974
  ;
 
24975
  return 0;
 
24976
}
 
24977
_ACEOF
 
24978
rm -f conftest.$ac_objext
 
24979
if { (ac_try="$ac_compile"
 
24980
case "(($ac_try" in
 
24981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24982
  *) ac_try_echo=$ac_try;;
 
24983
esac
 
24984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24985
  (eval "$ac_compile") 2>conftest.er1
 
24986
  ac_status=$?
 
24987
  grep -v '^ *+' conftest.er1 >conftest.err
 
24988
  rm -f conftest.er1
 
24989
  cat conftest.err >&5
 
24990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24991
  (exit $ac_status); } && {
 
24992
         test -z "$ac_c_werror_flag" ||
 
24993
         test ! -s conftest.err
 
24994
       } && test -s conftest.$ac_objext; then
 
24995
  ac_hi=$ac_mid; break
 
24996
else
 
24997
  echo "$as_me: failed program was:" >&5
 
24998
sed 's/^/| /' conftest.$ac_ext >&5
 
24999
 
 
25000
        ac_lo=`expr $ac_mid + 1`
 
25001
                        if test $ac_lo -le $ac_mid; then
 
25002
                          ac_lo= ac_hi=
 
25003
                          break
 
25004
                        fi
 
25005
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
25006
fi
 
25007
 
 
25008
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25009
  done
 
25010
else
 
25011
  echo "$as_me: failed program was:" >&5
 
25012
sed 's/^/| /' conftest.$ac_ext >&5
 
25013
 
 
25014
        cat >conftest.$ac_ext <<_ACEOF
 
25015
/* confdefs.h.  */
 
25016
_ACEOF
 
25017
cat confdefs.h >>conftest.$ac_ext
 
25018
cat >>conftest.$ac_ext <<_ACEOF
 
25019
/* end confdefs.h.  */
 
25020
$ac_includes_default
 
25021
   typedef uint16_t ac__type_sizeof_;
 
25022
int
 
25023
main ()
 
25024
{
 
25025
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
25026
test_array [0] = 0
 
25027
 
 
25028
  ;
 
25029
  return 0;
 
25030
}
 
25031
_ACEOF
 
25032
rm -f conftest.$ac_objext
 
25033
if { (ac_try="$ac_compile"
 
25034
case "(($ac_try" in
 
25035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25036
  *) ac_try_echo=$ac_try;;
 
25037
esac
 
25038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25039
  (eval "$ac_compile") 2>conftest.er1
 
25040
  ac_status=$?
 
25041
  grep -v '^ *+' conftest.er1 >conftest.err
 
25042
  rm -f conftest.er1
 
25043
  cat conftest.err >&5
 
25044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25045
  (exit $ac_status); } && {
 
25046
         test -z "$ac_c_werror_flag" ||
 
25047
         test ! -s conftest.err
 
25048
       } && test -s conftest.$ac_objext; then
 
25049
  ac_hi=-1 ac_mid=-1
 
25050
  while :; do
 
25051
    cat >conftest.$ac_ext <<_ACEOF
 
25052
/* confdefs.h.  */
 
25053
_ACEOF
 
25054
cat confdefs.h >>conftest.$ac_ext
 
25055
cat >>conftest.$ac_ext <<_ACEOF
 
25056
/* end confdefs.h.  */
 
25057
$ac_includes_default
 
25058
   typedef uint16_t ac__type_sizeof_;
 
25059
int
 
25060
main ()
 
25061
{
 
25062
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
25063
test_array [0] = 0
 
25064
 
 
25065
  ;
 
25066
  return 0;
 
25067
}
 
25068
_ACEOF
 
25069
rm -f conftest.$ac_objext
 
25070
if { (ac_try="$ac_compile"
 
25071
case "(($ac_try" in
 
25072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25073
  *) ac_try_echo=$ac_try;;
 
25074
esac
 
25075
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25076
  (eval "$ac_compile") 2>conftest.er1
 
25077
  ac_status=$?
 
25078
  grep -v '^ *+' conftest.er1 >conftest.err
 
25079
  rm -f conftest.er1
 
25080
  cat conftest.err >&5
 
25081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25082
  (exit $ac_status); } && {
 
25083
         test -z "$ac_c_werror_flag" ||
 
25084
         test ! -s conftest.err
 
25085
       } && test -s conftest.$ac_objext; then
 
25086
  ac_lo=$ac_mid; break
 
25087
else
 
25088
  echo "$as_me: failed program was:" >&5
 
25089
sed 's/^/| /' conftest.$ac_ext >&5
 
25090
 
 
25091
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
25092
                        if test $ac_mid -le $ac_hi; then
 
25093
                          ac_lo= ac_hi=
 
25094
                          break
 
25095
                        fi
 
25096
                        ac_mid=`expr 2 '*' $ac_mid`
 
25097
fi
 
25098
 
 
25099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25100
  done
 
25101
else
 
25102
  echo "$as_me: failed program was:" >&5
 
25103
sed 's/^/| /' conftest.$ac_ext >&5
 
25104
 
 
25105
        ac_lo= ac_hi=
 
25106
fi
 
25107
 
 
25108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25109
fi
 
25110
 
 
25111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25112
# Binary search between lo and hi bounds.
 
25113
while test "x$ac_lo" != "x$ac_hi"; do
 
25114
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25115
  cat >conftest.$ac_ext <<_ACEOF
 
25116
/* confdefs.h.  */
 
25117
_ACEOF
 
25118
cat confdefs.h >>conftest.$ac_ext
 
25119
cat >>conftest.$ac_ext <<_ACEOF
 
25120
/* end confdefs.h.  */
 
25121
$ac_includes_default
 
25122
   typedef uint16_t ac__type_sizeof_;
 
25123
int
 
25124
main ()
 
25125
{
 
25126
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
25127
test_array [0] = 0
 
25128
 
 
25129
  ;
 
25130
  return 0;
 
25131
}
 
25132
_ACEOF
 
25133
rm -f conftest.$ac_objext
 
25134
if { (ac_try="$ac_compile"
 
25135
case "(($ac_try" in
 
25136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25137
  *) ac_try_echo=$ac_try;;
 
25138
esac
 
25139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25140
  (eval "$ac_compile") 2>conftest.er1
 
25141
  ac_status=$?
 
25142
  grep -v '^ *+' conftest.er1 >conftest.err
 
25143
  rm -f conftest.er1
 
25144
  cat conftest.err >&5
 
25145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25146
  (exit $ac_status); } && {
 
25147
         test -z "$ac_c_werror_flag" ||
 
25148
         test ! -s conftest.err
 
25149
       } && test -s conftest.$ac_objext; then
 
25150
  ac_hi=$ac_mid
 
25151
else
 
25152
  echo "$as_me: failed program was:" >&5
 
25153
sed 's/^/| /' conftest.$ac_ext >&5
 
25154
 
 
25155
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
25156
fi
 
25157
 
 
25158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25159
done
 
25160
case $ac_lo in
 
25161
?*) ac_cv_sizeof_uint16_t=$ac_lo;;
 
25162
'') if test "$ac_cv_type_uint16_t" = yes; then
 
25163
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t)
 
25164
See \`config.log' for more details." >&5
 
25165
echo "$as_me: error: cannot compute sizeof (uint16_t)
 
25166
See \`config.log' for more details." >&2;}
 
25167
   { (exit 77); exit 77; }; }
 
25168
   else
 
25169
     ac_cv_sizeof_uint16_t=0
 
25170
   fi ;;
 
25171
esac
 
25172
else
 
25173
  cat >conftest.$ac_ext <<_ACEOF
 
25174
/* confdefs.h.  */
 
25175
_ACEOF
 
25176
cat confdefs.h >>conftest.$ac_ext
 
25177
cat >>conftest.$ac_ext <<_ACEOF
 
25178
/* end confdefs.h.  */
 
25179
$ac_includes_default
 
25180
   typedef uint16_t ac__type_sizeof_;
 
25181
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
25182
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
25183
#include <stdio.h>
 
25184
#include <stdlib.h>
 
25185
int
 
25186
main ()
 
25187
{
 
25188
 
 
25189
  FILE *f = fopen ("conftest.val", "w");
 
25190
  if (! f)
 
25191
    return 1;
 
25192
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
25193
    {
 
25194
      long int i = longval ();
 
25195
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
25196
        return 1;
 
25197
      fprintf (f, "%ld\n", i);
 
25198
    }
 
25199
  else
 
25200
    {
 
25201
      unsigned long int i = ulongval ();
 
25202
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
25203
        return 1;
 
25204
      fprintf (f, "%lu\n", i);
 
25205
    }
 
25206
  return ferror (f) || fclose (f) != 0;
 
25207
 
 
25208
  ;
 
25209
  return 0;
 
25210
}
 
25211
_ACEOF
 
25212
rm -f conftest$ac_exeext
 
25213
if { (ac_try="$ac_link"
 
25214
case "(($ac_try" in
 
25215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25216
  *) ac_try_echo=$ac_try;;
 
25217
esac
 
25218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25219
  (eval "$ac_link") 2>&5
 
25220
  ac_status=$?
 
25221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25222
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25223
  { (case "(($ac_try" in
 
25224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25225
  *) ac_try_echo=$ac_try;;
 
25226
esac
 
25227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25228
  (eval "$ac_try") 2>&5
 
25229
  ac_status=$?
 
25230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25231
  (exit $ac_status); }; }; then
 
25232
  ac_cv_sizeof_uint16_t=`cat conftest.val`
 
25233
else
 
25234
  echo "$as_me: program exited with status $ac_status" >&5
 
25235
echo "$as_me: failed program was:" >&5
 
25236
sed 's/^/| /' conftest.$ac_ext >&5
 
25237
 
 
25238
( exit $ac_status )
 
25239
if test "$ac_cv_type_uint16_t" = yes; then
 
25240
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t)
 
25241
See \`config.log' for more details." >&5
 
25242
echo "$as_me: error: cannot compute sizeof (uint16_t)
 
25243
See \`config.log' for more details." >&2;}
 
25244
   { (exit 77); exit 77; }; }
 
25245
   else
 
25246
     ac_cv_sizeof_uint16_t=0
 
25247
   fi
 
25248
fi
 
25249
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25250
fi
 
25251
rm -f conftest.val
 
25252
fi
 
25253
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
 
25254
echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6; }
 
25255
 
 
25256
 
 
25257
 
 
25258
cat >>confdefs.h <<_ACEOF
 
25259
#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
 
25260
_ACEOF
 
25261
 
 
25262
 
 
25263
    # DBYTE 1
 
25264
    { echo "$as_me:$LINENO: checking for uint8_t" >&5
 
25265
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
 
25266
if test "${ac_cv_type_uint8_t+set}" = set; then
 
25267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25268
else
 
25269
  cat >conftest.$ac_ext <<_ACEOF
 
25270
/* confdefs.h.  */
 
25271
_ACEOF
 
25272
cat confdefs.h >>conftest.$ac_ext
 
25273
cat >>conftest.$ac_ext <<_ACEOF
 
25274
/* end confdefs.h.  */
 
25275
$ac_includes_default
 
25276
typedef uint8_t ac__type_new_;
 
25277
int
 
25278
main ()
 
25279
{
 
25280
if ((ac__type_new_ *) 0)
 
25281
  return 0;
 
25282
if (sizeof (ac__type_new_))
 
25283
  return 0;
 
25284
  ;
 
25285
  return 0;
 
25286
}
 
25287
_ACEOF
 
25288
rm -f conftest.$ac_objext
 
25289
if { (ac_try="$ac_compile"
 
25290
case "(($ac_try" in
 
25291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25292
  *) ac_try_echo=$ac_try;;
 
25293
esac
 
25294
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25295
  (eval "$ac_compile") 2>conftest.er1
 
25296
  ac_status=$?
 
25297
  grep -v '^ *+' conftest.er1 >conftest.err
 
25298
  rm -f conftest.er1
 
25299
  cat conftest.err >&5
 
25300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25301
  (exit $ac_status); } && {
 
25302
         test -z "$ac_c_werror_flag" ||
 
25303
         test ! -s conftest.err
 
25304
       } && test -s conftest.$ac_objext; then
 
25305
  ac_cv_type_uint8_t=yes
 
25306
else
 
25307
  echo "$as_me: failed program was:" >&5
 
25308
sed 's/^/| /' conftest.$ac_ext >&5
 
25309
 
 
25310
        ac_cv_type_uint8_t=no
 
25311
fi
 
25312
 
 
25313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25314
fi
 
25315
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
 
25316
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
 
25317
 
 
25318
# The cast to long int works around a bug in the HP C Compiler
 
25319
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25320
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25321
# This bug is HP SR number 8606223364.
 
25322
{ echo "$as_me:$LINENO: checking size of uint8_t" >&5
 
25323
echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6; }
 
25324
if test "${ac_cv_sizeof_uint8_t+set}" = set; then
 
25325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25326
else
 
25327
  if test "$cross_compiling" = yes; then
 
25328
  # Depending upon the size, compute the lo and hi bounds.
 
25329
cat >conftest.$ac_ext <<_ACEOF
 
25330
/* confdefs.h.  */
 
25331
_ACEOF
 
25332
cat confdefs.h >>conftest.$ac_ext
 
25333
cat >>conftest.$ac_ext <<_ACEOF
 
25334
/* end confdefs.h.  */
 
25335
$ac_includes_default
 
25336
   typedef uint8_t ac__type_sizeof_;
 
25337
int
 
25338
main ()
 
25339
{
 
25340
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
25341
test_array [0] = 0
 
25342
 
 
25343
  ;
 
25344
  return 0;
 
25345
}
 
25346
_ACEOF
 
25347
rm -f conftest.$ac_objext
 
25348
if { (ac_try="$ac_compile"
 
25349
case "(($ac_try" in
 
25350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25351
  *) ac_try_echo=$ac_try;;
 
25352
esac
 
25353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25354
  (eval "$ac_compile") 2>conftest.er1
 
25355
  ac_status=$?
 
25356
  grep -v '^ *+' conftest.er1 >conftest.err
 
25357
  rm -f conftest.er1
 
25358
  cat conftest.err >&5
 
25359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25360
  (exit $ac_status); } && {
 
25361
         test -z "$ac_c_werror_flag" ||
 
25362
         test ! -s conftest.err
 
25363
       } && test -s conftest.$ac_objext; then
 
25364
  ac_lo=0 ac_mid=0
 
25365
  while :; do
 
25366
    cat >conftest.$ac_ext <<_ACEOF
 
25367
/* confdefs.h.  */
 
25368
_ACEOF
 
25369
cat confdefs.h >>conftest.$ac_ext
 
25370
cat >>conftest.$ac_ext <<_ACEOF
 
25371
/* end confdefs.h.  */
 
25372
$ac_includes_default
 
25373
   typedef uint8_t ac__type_sizeof_;
 
25374
int
 
25375
main ()
 
25376
{
 
25377
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
25378
test_array [0] = 0
 
25379
 
 
25380
  ;
 
25381
  return 0;
 
25382
}
 
25383
_ACEOF
 
25384
rm -f conftest.$ac_objext
 
25385
if { (ac_try="$ac_compile"
 
25386
case "(($ac_try" in
 
25387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25388
  *) ac_try_echo=$ac_try;;
 
25389
esac
 
25390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25391
  (eval "$ac_compile") 2>conftest.er1
 
25392
  ac_status=$?
 
25393
  grep -v '^ *+' conftest.er1 >conftest.err
 
25394
  rm -f conftest.er1
 
25395
  cat conftest.err >&5
 
25396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25397
  (exit $ac_status); } && {
 
25398
         test -z "$ac_c_werror_flag" ||
 
25399
         test ! -s conftest.err
 
25400
       } && test -s conftest.$ac_objext; then
 
25401
  ac_hi=$ac_mid; break
 
25402
else
 
25403
  echo "$as_me: failed program was:" >&5
 
25404
sed 's/^/| /' conftest.$ac_ext >&5
 
25405
 
 
25406
        ac_lo=`expr $ac_mid + 1`
 
25407
                        if test $ac_lo -le $ac_mid; then
 
25408
                          ac_lo= ac_hi=
 
25409
                          break
 
25410
                        fi
 
25411
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
25412
fi
 
25413
 
 
25414
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25415
  done
 
25416
else
 
25417
  echo "$as_me: failed program was:" >&5
 
25418
sed 's/^/| /' conftest.$ac_ext >&5
 
25419
 
 
25420
        cat >conftest.$ac_ext <<_ACEOF
 
25421
/* confdefs.h.  */
 
25422
_ACEOF
 
25423
cat confdefs.h >>conftest.$ac_ext
 
25424
cat >>conftest.$ac_ext <<_ACEOF
 
25425
/* end confdefs.h.  */
 
25426
$ac_includes_default
 
25427
   typedef uint8_t ac__type_sizeof_;
 
25428
int
 
25429
main ()
 
25430
{
 
25431
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
25432
test_array [0] = 0
 
25433
 
 
25434
  ;
 
25435
  return 0;
 
25436
}
 
25437
_ACEOF
 
25438
rm -f conftest.$ac_objext
 
25439
if { (ac_try="$ac_compile"
 
25440
case "(($ac_try" in
 
25441
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25442
  *) ac_try_echo=$ac_try;;
 
25443
esac
 
25444
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25445
  (eval "$ac_compile") 2>conftest.er1
 
25446
  ac_status=$?
 
25447
  grep -v '^ *+' conftest.er1 >conftest.err
 
25448
  rm -f conftest.er1
 
25449
  cat conftest.err >&5
 
25450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25451
  (exit $ac_status); } && {
 
25452
         test -z "$ac_c_werror_flag" ||
 
25453
         test ! -s conftest.err
 
25454
       } && test -s conftest.$ac_objext; then
 
25455
  ac_hi=-1 ac_mid=-1
 
25456
  while :; do
 
25457
    cat >conftest.$ac_ext <<_ACEOF
 
25458
/* confdefs.h.  */
 
25459
_ACEOF
 
25460
cat confdefs.h >>conftest.$ac_ext
 
25461
cat >>conftest.$ac_ext <<_ACEOF
 
25462
/* end confdefs.h.  */
 
25463
$ac_includes_default
 
25464
   typedef uint8_t ac__type_sizeof_;
 
25465
int
 
25466
main ()
 
25467
{
 
25468
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
25469
test_array [0] = 0
 
25470
 
 
25471
  ;
 
25472
  return 0;
 
25473
}
 
25474
_ACEOF
 
25475
rm -f conftest.$ac_objext
 
25476
if { (ac_try="$ac_compile"
 
25477
case "(($ac_try" in
 
25478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25479
  *) ac_try_echo=$ac_try;;
 
25480
esac
 
25481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25482
  (eval "$ac_compile") 2>conftest.er1
 
25483
  ac_status=$?
 
25484
  grep -v '^ *+' conftest.er1 >conftest.err
 
25485
  rm -f conftest.er1
 
25486
  cat conftest.err >&5
 
25487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25488
  (exit $ac_status); } && {
 
25489
         test -z "$ac_c_werror_flag" ||
 
25490
         test ! -s conftest.err
 
25491
       } && test -s conftest.$ac_objext; then
 
25492
  ac_lo=$ac_mid; break
 
25493
else
 
25494
  echo "$as_me: failed program was:" >&5
 
25495
sed 's/^/| /' conftest.$ac_ext >&5
 
25496
 
 
25497
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
25498
                        if test $ac_mid -le $ac_hi; then
 
25499
                          ac_lo= ac_hi=
 
25500
                          break
 
25501
                        fi
 
25502
                        ac_mid=`expr 2 '*' $ac_mid`
 
25503
fi
 
25504
 
 
25505
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25506
  done
 
25507
else
 
25508
  echo "$as_me: failed program was:" >&5
 
25509
sed 's/^/| /' conftest.$ac_ext >&5
 
25510
 
 
25511
        ac_lo= ac_hi=
 
25512
fi
 
25513
 
 
25514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25515
fi
 
25516
 
 
25517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25518
# Binary search between lo and hi bounds.
 
25519
while test "x$ac_lo" != "x$ac_hi"; do
 
25520
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25521
  cat >conftest.$ac_ext <<_ACEOF
 
25522
/* confdefs.h.  */
 
25523
_ACEOF
 
25524
cat confdefs.h >>conftest.$ac_ext
 
25525
cat >>conftest.$ac_ext <<_ACEOF
 
25526
/* end confdefs.h.  */
 
25527
$ac_includes_default
 
25528
   typedef uint8_t ac__type_sizeof_;
 
25529
int
 
25530
main ()
 
25531
{
 
25532
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
25533
test_array [0] = 0
 
25534
 
 
25535
  ;
 
25536
  return 0;
 
25537
}
 
25538
_ACEOF
 
25539
rm -f conftest.$ac_objext
 
25540
if { (ac_try="$ac_compile"
 
25541
case "(($ac_try" in
 
25542
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25543
  *) ac_try_echo=$ac_try;;
 
25544
esac
 
25545
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25546
  (eval "$ac_compile") 2>conftest.er1
 
25547
  ac_status=$?
 
25548
  grep -v '^ *+' conftest.er1 >conftest.err
 
25549
  rm -f conftest.er1
 
25550
  cat conftest.err >&5
 
25551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25552
  (exit $ac_status); } && {
 
25553
         test -z "$ac_c_werror_flag" ||
 
25554
         test ! -s conftest.err
 
25555
       } && test -s conftest.$ac_objext; then
 
25556
  ac_hi=$ac_mid
 
25557
else
 
25558
  echo "$as_me: failed program was:" >&5
 
25559
sed 's/^/| /' conftest.$ac_ext >&5
 
25560
 
 
25561
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
25562
fi
 
25563
 
 
25564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25565
done
 
25566
case $ac_lo in
 
25567
?*) ac_cv_sizeof_uint8_t=$ac_lo;;
 
25568
'') if test "$ac_cv_type_uint8_t" = yes; then
 
25569
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t)
 
25570
See \`config.log' for more details." >&5
 
25571
echo "$as_me: error: cannot compute sizeof (uint8_t)
 
25572
See \`config.log' for more details." >&2;}
 
25573
   { (exit 77); exit 77; }; }
 
25574
   else
 
25575
     ac_cv_sizeof_uint8_t=0
 
25576
   fi ;;
 
25577
esac
 
25578
else
 
25579
  cat >conftest.$ac_ext <<_ACEOF
 
25580
/* confdefs.h.  */
 
25581
_ACEOF
 
25582
cat confdefs.h >>conftest.$ac_ext
 
25583
cat >>conftest.$ac_ext <<_ACEOF
 
25584
/* end confdefs.h.  */
 
25585
$ac_includes_default
 
25586
   typedef uint8_t ac__type_sizeof_;
 
25587
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
25588
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
25589
#include <stdio.h>
 
25590
#include <stdlib.h>
 
25591
int
 
25592
main ()
 
25593
{
 
25594
 
 
25595
  FILE *f = fopen ("conftest.val", "w");
 
25596
  if (! f)
 
25597
    return 1;
 
25598
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
25599
    {
 
25600
      long int i = longval ();
 
25601
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
25602
        return 1;
 
25603
      fprintf (f, "%ld\n", i);
 
25604
    }
 
25605
  else
 
25606
    {
 
25607
      unsigned long int i = ulongval ();
 
25608
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
25609
        return 1;
 
25610
      fprintf (f, "%lu\n", i);
 
25611
    }
 
25612
  return ferror (f) || fclose (f) != 0;
 
25613
 
 
25614
  ;
 
25615
  return 0;
 
25616
}
 
25617
_ACEOF
 
25618
rm -f conftest$ac_exeext
 
25619
if { (ac_try="$ac_link"
 
25620
case "(($ac_try" in
 
25621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25622
  *) ac_try_echo=$ac_try;;
 
25623
esac
 
25624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25625
  (eval "$ac_link") 2>&5
 
25626
  ac_status=$?
 
25627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25628
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25629
  { (case "(($ac_try" in
 
25630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25631
  *) ac_try_echo=$ac_try;;
 
25632
esac
 
25633
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25634
  (eval "$ac_try") 2>&5
 
25635
  ac_status=$?
 
25636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25637
  (exit $ac_status); }; }; then
 
25638
  ac_cv_sizeof_uint8_t=`cat conftest.val`
 
25639
else
 
25640
  echo "$as_me: program exited with status $ac_status" >&5
 
25641
echo "$as_me: failed program was:" >&5
 
25642
sed 's/^/| /' conftest.$ac_ext >&5
 
25643
 
 
25644
( exit $ac_status )
 
25645
if test "$ac_cv_type_uint8_t" = yes; then
 
25646
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t)
 
25647
See \`config.log' for more details." >&5
 
25648
echo "$as_me: error: cannot compute sizeof (uint8_t)
 
25649
See \`config.log' for more details." >&2;}
 
25650
   { (exit 77); exit 77; }; }
 
25651
   else
 
25652
     ac_cv_sizeof_uint8_t=0
 
25653
   fi
 
25654
fi
 
25655
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25656
fi
 
25657
rm -f conftest.val
 
25658
fi
 
25659
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
 
25660
echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6; }
 
25661
 
 
25662
 
 
25663
 
 
25664
cat >>confdefs.h <<_ACEOF
 
25665
#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
 
25666
_ACEOF
 
25667
 
 
25668
 
 
25669
    if test x"$dap_inttypes_header" = x'yes' -a $ac_cv_sizeof_int32_t -eq 4 -a $ac_cv_sizeof_int16_t -eq 2 -a $ac_cv_sizeof_uint8_t -eq 1 -a $ac_cv_sizeof_double -eq 8; then
 
25670
        dap_use_c99_types=yes
 
25671
    fi
 
25672
     if test x"$dap_use_c99_types" = 'xyes'; then
 
25673
  USE_C99_TYPES_TRUE=
 
25674
  USE_C99_TYPES_FALSE='#'
 
25675
else
 
25676
  USE_C99_TYPES_TRUE='#'
 
25677
  USE_C99_TYPES_FALSE=
 
25678
fi
 
25679
 
 
25680
 
 
25681
    # I've separated the typedefs from the config.h header because other
 
25682
    # projects which use the DAP were getting conflicts with their includes,
 
25683
    # or the includes of still other libraries, and config.h. The
 
25684
    # config.h header is now included only by .cc and .c files and headers
 
25685
    # that need the typedefs use dods-datatypes.h.
 
25686
    # there are 2 possibilities for the definition of dods_int32, ...,
 
25687
    # types. First possibility is that the C99 types are used and
 
25688
    # dods-datatypes-static.h is copied. In that case the following
 
25689
    # definitions are not really usefull. In case the C99 types are
 
25690
    # not available, dods-datatypes-config.h.in is used to generate
 
25691
    # dods-datatypes.h.
 
25692
    # The code below makes dods-datatypes-config.h stand on its own.
 
25693
    # 8/2/2000 jhrg
 
25694
 
 
25695
    # DMH: Divide into two sets of tests: one for DODS and one for XDR
 
25696
    if test x"$dap_use_c99_types" = 'xyes'; then
 
25697
        DODS_INT32=int32_t
 
25698
        DODS_UINT32=uint32_t
 
25699
        DODS_INT16=int16_t
 
25700
        DODS_UINT16=uint16_t
 
25701
        DODS_BYTE=uint8_t
 
25702
    else
 
25703
        DODS_INT16=short
 
25704
        DODS_UINT16="unsigned short"
 
25705
        DODS_INT32=int
 
25706
        DODS_UINT32="unsigned int"
 
25707
        DODS_BYTE="unsigned char"
 
25708
    fi
 
25709
    DODS_FLOAT64=double
 
25710
    DODS_FLOAT32=float
 
25711
 
 
25712
    # I'm using the three arg form of AC_DEFINE_UNQUOTED because autoheader
 
25713
    # needs the third argument (although I don't quite get the specifics...
 
25714
    # 2/15/2001 jhrg
 
25715
 
 
25716
cat >>confdefs.h <<_ACEOF
 
25717
#define DINT32 $DODS_INT32
 
25718
_ACEOF
 
25719
 
 
25720
 
 
25721
cat >>confdefs.h <<_ACEOF
 
25722
#define DUINT32 $DODS_UINT32
 
25723
_ACEOF
 
25724
 
 
25725
 
 
25726
cat >>confdefs.h <<_ACEOF
 
25727
#define DINT16 $DODS_INT16
 
25728
_ACEOF
 
25729
 
 
25730
 
 
25731
cat >>confdefs.h <<_ACEOF
 
25732
#define DUINT16 $DODS_UINT16
 
25733
_ACEOF
 
25734
 
 
25735
 
 
25736
cat >>confdefs.h <<_ACEOF
 
25737
#define DFLOAT64 $DODS_FLOAT64
 
25738
_ACEOF
 
25739
 
 
25740
 
 
25741
cat >>confdefs.h <<_ACEOF
 
25742
#define DFLOAT32 $DODS_FLOAT32
 
25743
_ACEOF
 
25744
 
 
25745
 
 
25746
cat >>confdefs.h <<_ACEOF
 
25747
#define DBYTE $DODS_BYTE
 
25748
_ACEOF
 
25749
 
 
25750
 
 
25751
    # XDR INTEGER TYPES
 
25752
    # Unfortunately, there is little commonality about xdr
 
25753
 
 
25754
    # First, we need to see if the xdr routines are in libc, librpc,
 
25755
    # or librpcsvc or libnsl
 
25756
    dap_xdrlib=
 
25757
    { echo "$as_me:$LINENO: checking for library containing xdr_void" >&5
 
25758
echo $ECHO_N "checking for library containing xdr_void... $ECHO_C" >&6; }
 
25759
if test "${ac_cv_search_xdr_void+set}" = set; then
 
25760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25761
else
 
25762
  ac_func_search_save_LIBS=$LIBS
 
25763
cat >conftest.$ac_ext <<_ACEOF
 
25764
/* confdefs.h.  */
 
25765
_ACEOF
 
25766
cat confdefs.h >>conftest.$ac_ext
 
25767
cat >>conftest.$ac_ext <<_ACEOF
 
25768
/* end confdefs.h.  */
 
25769
 
 
25770
/* Override any GCC internal prototype to avoid an error.
 
25771
   Use char because int might match the return type of a GCC
 
25772
   builtin and then its argument prototype would still apply.  */
 
25773
#ifdef __cplusplus
 
25774
extern "C"
 
25775
#endif
 
25776
char xdr_void ();
 
25777
int
 
25778
main ()
 
25779
{
 
25780
return xdr_void ();
 
25781
  ;
 
25782
  return 0;
 
25783
}
 
25784
_ACEOF
 
25785
for ac_lib in '' c rpc nsl rpcsvc; do
 
25786
  if test -z "$ac_lib"; then
 
25787
    ac_res="none required"
 
25788
  else
 
25789
    ac_res=-l$ac_lib
 
25790
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
25791
  fi
 
25792
  rm -f conftest.$ac_objext conftest$ac_exeext
 
25793
if { (ac_try="$ac_link"
 
25794
case "(($ac_try" in
 
25795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25796
  *) ac_try_echo=$ac_try;;
 
25797
esac
 
25798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25799
  (eval "$ac_link") 2>conftest.er1
 
25800
  ac_status=$?
 
25801
  grep -v '^ *+' conftest.er1 >conftest.err
 
25802
  rm -f conftest.er1
 
25803
  cat conftest.err >&5
 
25804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25805
  (exit $ac_status); } && {
 
25806
         test -z "$ac_c_werror_flag" ||
 
25807
         test ! -s conftest.err
 
25808
       } && test -s conftest$ac_exeext &&
 
25809
       $as_test_x conftest$ac_exeext; then
 
25810
  ac_cv_search_xdr_void=$ac_res
 
25811
else
 
25812
  echo "$as_me: failed program was:" >&5
 
25813
sed 's/^/| /' conftest.$ac_ext >&5
 
25814
 
 
25815
 
 
25816
fi
 
25817
 
 
25818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25819
      conftest$ac_exeext
 
25820
  if test "${ac_cv_search_xdr_void+set}" = set; then
 
25821
  break
 
25822
fi
 
25823
done
 
25824
if test "${ac_cv_search_xdr_void+set}" = set; then
 
25825
  :
 
25826
else
 
25827
  ac_cv_search_xdr_void=no
 
25828
fi
 
25829
rm conftest.$ac_ext
 
25830
LIBS=$ac_func_search_save_LIBS
 
25831
fi
 
25832
{ echo "$as_me:$LINENO: result: $ac_cv_search_xdr_void" >&5
 
25833
echo "${ECHO_T}$ac_cv_search_xdr_void" >&6; }
 
25834
ac_res=$ac_cv_search_xdr_void
 
25835
if test "$ac_res" != no; then
 
25836
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
25837
 
 
25838
      dap_xdrlib=`echo $ac_res|sed -e 's/^-l//'`
 
25839
else
 
25840
 
 
25841
      { echo "$as_me:$LINENO: WARNING: Cannot locate library containing xdr functions." >&5
 
25842
echo "$as_me: WARNING: Cannot locate library containing xdr functions." >&2;}
 
25843
fi
 
25844
 
 
25845
    # Added for autoconf 2.59 which appears to not use/set $ac_res. jhrg
 
25846
    if test -z "$dap_xdrlib" ; then dap_xdrlib=c; fi
 
25847
    if test "$dap_xdrlib" = "none required" ; then dap_xdrlib=c; fi
 
25848
    # I don't think this is needed for autoconf 2.61 but I have no idea about
 
25849
    # 2.59 - it doesn't seem to be hurting anything with 2.61. jhrg
 
25850
    if test "$dap_xdrlib" != "c" ; then
 
25851
       # Add to library list
 
25852
 
 
25853
as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_void" | $as_tr_sh`
 
25854
{ echo "$as_me:$LINENO: checking for xdr_void in -l$dap_xdrlib" >&5
 
25855
echo $ECHO_N "checking for xdr_void in -l$dap_xdrlib... $ECHO_C" >&6; }
 
25856
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
25857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25858
else
 
25859
  ac_check_lib_save_LIBS=$LIBS
 
25860
LIBS="-l$dap_xdrlib  $LIBS"
 
25861
cat >conftest.$ac_ext <<_ACEOF
 
25862
/* confdefs.h.  */
 
25863
_ACEOF
 
25864
cat confdefs.h >>conftest.$ac_ext
 
25865
cat >>conftest.$ac_ext <<_ACEOF
 
25866
/* end confdefs.h.  */
 
25867
 
 
25868
/* Override any GCC internal prototype to avoid an error.
 
25869
   Use char because int might match the return type of a GCC
 
25870
   builtin and then its argument prototype would still apply.  */
 
25871
#ifdef __cplusplus
 
25872
extern "C"
 
25873
#endif
 
25874
char xdr_void ();
 
25875
int
 
25876
main ()
 
25877
{
 
25878
return xdr_void ();
 
25879
  ;
 
25880
  return 0;
 
25881
}
 
25882
_ACEOF
 
25883
rm -f conftest.$ac_objext conftest$ac_exeext
 
25884
if { (ac_try="$ac_link"
 
25885
case "(($ac_try" in
 
25886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25887
  *) ac_try_echo=$ac_try;;
 
25888
esac
 
25889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25890
  (eval "$ac_link") 2>conftest.er1
 
25891
  ac_status=$?
 
25892
  grep -v '^ *+' conftest.er1 >conftest.err
 
25893
  rm -f conftest.er1
 
25894
  cat conftest.err >&5
 
25895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25896
  (exit $ac_status); } && {
 
25897
         test -z "$ac_c_werror_flag" ||
 
25898
         test ! -s conftest.err
 
25899
       } && test -s conftest$ac_exeext &&
 
25900
       $as_test_x conftest$ac_exeext; then
 
25901
  eval "$as_ac_Lib=yes"
 
25902
else
 
25903
  echo "$as_me: failed program was:" >&5
 
25904
sed 's/^/| /' conftest.$ac_ext >&5
 
25905
 
 
25906
        eval "$as_ac_Lib=no"
 
25907
fi
 
25908
 
 
25909
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25910
      conftest$ac_exeext conftest.$ac_ext
 
25911
LIBS=$ac_check_lib_save_LIBS
 
25912
fi
 
25913
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
25914
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25915
echo "${ECHO_T}$ac_res" >&6; }
 
25916
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
25917
  cat >>confdefs.h <<_ACEOF
 
25918
#define `echo "HAVE_LIB$dap_xdrlib" | $as_tr_cpp` 1
 
25919
_ACEOF
 
25920
 
 
25921
  LIBS="-l$dap_xdrlib $LIBS"
 
25922
 
 
25923
fi
 
25924
 
 
25925
    fi
 
25926
    # Now figure out what integer functions to use
 
25927
    dap_xdrint=0
 
25928
    as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_uint32_t" | $as_tr_sh`
 
25929
{ echo "$as_me:$LINENO: checking for xdr_uint32_t in -l$dap_xdrlib" >&5
 
25930
echo $ECHO_N "checking for xdr_uint32_t in -l$dap_xdrlib... $ECHO_C" >&6; }
 
25931
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
25932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25933
else
 
25934
  ac_check_lib_save_LIBS=$LIBS
 
25935
LIBS="-l$dap_xdrlib  $LIBS"
 
25936
cat >conftest.$ac_ext <<_ACEOF
 
25937
/* confdefs.h.  */
 
25938
_ACEOF
 
25939
cat confdefs.h >>conftest.$ac_ext
 
25940
cat >>conftest.$ac_ext <<_ACEOF
 
25941
/* end confdefs.h.  */
 
25942
 
 
25943
/* Override any GCC internal prototype to avoid an error.
 
25944
   Use char because int might match the return type of a GCC
 
25945
   builtin and then its argument prototype would still apply.  */
 
25946
#ifdef __cplusplus
 
25947
extern "C"
 
25948
#endif
 
25949
char xdr_uint32_t ();
 
25950
int
 
25951
main ()
 
25952
{
 
25953
return xdr_uint32_t ();
 
25954
  ;
 
25955
  return 0;
 
25956
}
 
25957
_ACEOF
 
25958
rm -f conftest.$ac_objext conftest$ac_exeext
 
25959
if { (ac_try="$ac_link"
 
25960
case "(($ac_try" in
 
25961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25962
  *) ac_try_echo=$ac_try;;
 
25963
esac
 
25964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25965
  (eval "$ac_link") 2>conftest.er1
 
25966
  ac_status=$?
 
25967
  grep -v '^ *+' conftest.er1 >conftest.err
 
25968
  rm -f conftest.er1
 
25969
  cat conftest.err >&5
 
25970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25971
  (exit $ac_status); } && {
 
25972
         test -z "$ac_c_werror_flag" ||
 
25973
         test ! -s conftest.err
 
25974
       } && test -s conftest$ac_exeext &&
 
25975
       $as_test_x conftest$ac_exeext; then
 
25976
  eval "$as_ac_Lib=yes"
 
25977
else
 
25978
  echo "$as_me: failed program was:" >&5
 
25979
sed 's/^/| /' conftest.$ac_ext >&5
 
25980
 
 
25981
        eval "$as_ac_Lib=no"
 
25982
fi
 
25983
 
 
25984
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25985
      conftest$ac_exeext conftest.$ac_ext
 
25986
LIBS=$ac_check_lib_save_LIBS
 
25987
fi
 
25988
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
25989
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25990
echo "${ECHO_T}$ac_res" >&6; }
 
25991
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
25992
  dap_xdrint=1
 
25993
else
 
25994
 
 
25995
      as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_u_int32_t" | $as_tr_sh`
 
25996
{ echo "$as_me:$LINENO: checking for xdr_u_int32_t in -l$dap_xdrlib" >&5
 
25997
echo $ECHO_N "checking for xdr_u_int32_t in -l$dap_xdrlib... $ECHO_C" >&6; }
 
25998
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
25999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26000
else
 
26001
  ac_check_lib_save_LIBS=$LIBS
 
26002
LIBS="-l$dap_xdrlib  $LIBS"
 
26003
cat >conftest.$ac_ext <<_ACEOF
 
26004
/* confdefs.h.  */
 
26005
_ACEOF
 
26006
cat confdefs.h >>conftest.$ac_ext
 
26007
cat >>conftest.$ac_ext <<_ACEOF
 
26008
/* end confdefs.h.  */
 
26009
 
 
26010
/* Override any GCC internal prototype to avoid an error.
 
26011
   Use char because int might match the return type of a GCC
 
26012
   builtin and then its argument prototype would still apply.  */
 
26013
#ifdef __cplusplus
 
26014
extern "C"
 
26015
#endif
 
26016
char xdr_u_int32_t ();
 
26017
int
 
26018
main ()
 
26019
{
 
26020
return xdr_u_int32_t ();
 
26021
  ;
 
26022
  return 0;
 
26023
}
 
26024
_ACEOF
 
26025
rm -f conftest.$ac_objext conftest$ac_exeext
 
26026
if { (ac_try="$ac_link"
 
26027
case "(($ac_try" in
 
26028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26029
  *) ac_try_echo=$ac_try;;
 
26030
esac
 
26031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26032
  (eval "$ac_link") 2>conftest.er1
 
26033
  ac_status=$?
 
26034
  grep -v '^ *+' conftest.er1 >conftest.err
 
26035
  rm -f conftest.er1
 
26036
  cat conftest.err >&5
 
26037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26038
  (exit $ac_status); } && {
 
26039
         test -z "$ac_c_werror_flag" ||
 
26040
         test ! -s conftest.err
 
26041
       } && test -s conftest$ac_exeext &&
 
26042
       $as_test_x conftest$ac_exeext; then
 
26043
  eval "$as_ac_Lib=yes"
 
26044
else
 
26045
  echo "$as_me: failed program was:" >&5
 
26046
sed 's/^/| /' conftest.$ac_ext >&5
 
26047
 
 
26048
        eval "$as_ac_Lib=no"
 
26049
fi
 
26050
 
 
26051
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26052
      conftest$ac_exeext conftest.$ac_ext
 
26053
LIBS=$ac_check_lib_save_LIBS
 
26054
fi
 
26055
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
26056
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
26057
echo "${ECHO_T}$ac_res" >&6; }
 
26058
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
26059
  dap_xdrint=2
 
26060
else
 
26061
 
 
26062
        as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_uint" | $as_tr_sh`
 
26063
{ echo "$as_me:$LINENO: checking for xdr_uint in -l$dap_xdrlib" >&5
 
26064
echo $ECHO_N "checking for xdr_uint in -l$dap_xdrlib... $ECHO_C" >&6; }
 
26065
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
26066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26067
else
 
26068
  ac_check_lib_save_LIBS=$LIBS
 
26069
LIBS="-l$dap_xdrlib  $LIBS"
 
26070
cat >conftest.$ac_ext <<_ACEOF
 
26071
/* confdefs.h.  */
 
26072
_ACEOF
 
26073
cat confdefs.h >>conftest.$ac_ext
 
26074
cat >>conftest.$ac_ext <<_ACEOF
 
26075
/* end confdefs.h.  */
 
26076
 
 
26077
/* Override any GCC internal prototype to avoid an error.
 
26078
   Use char because int might match the return type of a GCC
 
26079
   builtin and then its argument prototype would still apply.  */
 
26080
#ifdef __cplusplus
 
26081
extern "C"
 
26082
#endif
 
26083
char xdr_uint ();
 
26084
int
 
26085
main ()
 
26086
{
 
26087
return xdr_uint ();
 
26088
  ;
 
26089
  return 0;
 
26090
}
 
26091
_ACEOF
 
26092
rm -f conftest.$ac_objext conftest$ac_exeext
 
26093
if { (ac_try="$ac_link"
 
26094
case "(($ac_try" in
 
26095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26096
  *) ac_try_echo=$ac_try;;
 
26097
esac
 
26098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26099
  (eval "$ac_link") 2>conftest.er1
 
26100
  ac_status=$?
 
26101
  grep -v '^ *+' conftest.er1 >conftest.err
 
26102
  rm -f conftest.er1
 
26103
  cat conftest.err >&5
 
26104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26105
  (exit $ac_status); } && {
 
26106
         test -z "$ac_c_werror_flag" ||
 
26107
         test ! -s conftest.err
 
26108
       } && test -s conftest$ac_exeext &&
 
26109
       $as_test_x conftest$ac_exeext; then
 
26110
  eval "$as_ac_Lib=yes"
 
26111
else
 
26112
  echo "$as_me: failed program was:" >&5
 
26113
sed 's/^/| /' conftest.$ac_ext >&5
 
26114
 
 
26115
        eval "$as_ac_Lib=no"
 
26116
fi
 
26117
 
 
26118
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26119
      conftest$ac_exeext conftest.$ac_ext
 
26120
LIBS=$ac_check_lib_save_LIBS
 
26121
fi
 
26122
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
26123
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
26124
echo "${ECHO_T}$ac_res" >&6; }
 
26125
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
26126
  dap_xdrint=3
 
26127
else
 
26128
 
 
26129
          as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_u_int" | $as_tr_sh`
 
26130
{ echo "$as_me:$LINENO: checking for xdr_u_int in -l$dap_xdrlib" >&5
 
26131
echo $ECHO_N "checking for xdr_u_int in -l$dap_xdrlib... $ECHO_C" >&6; }
 
26132
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
26133
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26134
else
 
26135
  ac_check_lib_save_LIBS=$LIBS
 
26136
LIBS="-l$dap_xdrlib  $LIBS"
 
26137
cat >conftest.$ac_ext <<_ACEOF
 
26138
/* confdefs.h.  */
 
26139
_ACEOF
 
26140
cat confdefs.h >>conftest.$ac_ext
 
26141
cat >>conftest.$ac_ext <<_ACEOF
 
26142
/* end confdefs.h.  */
 
26143
 
 
26144
/* Override any GCC internal prototype to avoid an error.
 
26145
   Use char because int might match the return type of a GCC
 
26146
   builtin and then its argument prototype would still apply.  */
 
26147
#ifdef __cplusplus
 
26148
extern "C"
 
26149
#endif
 
26150
char xdr_u_int ();
 
26151
int
 
26152
main ()
 
26153
{
 
26154
return xdr_u_int ();
 
26155
  ;
 
26156
  return 0;
 
26157
}
 
26158
_ACEOF
 
26159
rm -f conftest.$ac_objext conftest$ac_exeext
 
26160
if { (ac_try="$ac_link"
 
26161
case "(($ac_try" in
 
26162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26163
  *) ac_try_echo=$ac_try;;
 
26164
esac
 
26165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26166
  (eval "$ac_link") 2>conftest.er1
 
26167
  ac_status=$?
 
26168
  grep -v '^ *+' conftest.er1 >conftest.err
 
26169
  rm -f conftest.er1
 
26170
  cat conftest.err >&5
 
26171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26172
  (exit $ac_status); } && {
 
26173
         test -z "$ac_c_werror_flag" ||
 
26174
         test ! -s conftest.err
 
26175
       } && test -s conftest$ac_exeext &&
 
26176
       $as_test_x conftest$ac_exeext; then
 
26177
  eval "$as_ac_Lib=yes"
 
26178
else
 
26179
  echo "$as_me: failed program was:" >&5
 
26180
sed 's/^/| /' conftest.$ac_ext >&5
 
26181
 
 
26182
        eval "$as_ac_Lib=no"
 
26183
fi
 
26184
 
 
26185
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26186
      conftest$ac_exeext conftest.$ac_ext
 
26187
LIBS=$ac_check_lib_save_LIBS
 
26188
fi
 
26189
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
26190
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
26191
echo "${ECHO_T}$ac_res" >&6; }
 
26192
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
26193
  dap_xdrint=4
 
26194
fi
 
26195
 
 
26196
fi
 
26197
 
 
26198
fi
 
26199
 
 
26200
fi
 
26201
 
 
26202
    case "$dap_xdrint" in
 
26203
    1) # uint32_t
 
26204
        XDR_INT32=xdr_int32_t
 
26205
        XDR_UINT32=xdr_uint32_t
 
26206
        XDR_INT16=xdr_int16_t
 
26207
        XDR_UINT16=xdr_uint16_t
 
26208
        ;;
 
26209
    2) # u_int32_t
 
26210
        XDR_INT32=xdr_int32_t
 
26211
        XDR_UINT32=xdr_u_int32_t
 
26212
        XDR_INT16=xdr_int16_t
 
26213
        XDR_UINT16=xdr_u_int16_t
 
26214
        ;;
 
26215
    3) # uint
 
26216
        XDR_INT32=xdr_int
 
26217
        XDR_UINT32=xdr_uint
 
26218
        XDR_INT16=xdr_short
 
26219
        XDR_UINT16=xdr_ushort
 
26220
        ;;
 
26221
    4) # u_int
 
26222
        XDR_INT32=xdr_int
 
26223
        XDR_UINT32=xdr_u_int
 
26224
        XDR_INT16=xdr_short
 
26225
        XDR_UINT16=xdr_u_short
 
26226
        ;;
 
26227
    *)
 
26228
        { { echo "$as_me:$LINENO: error: Cannot determine DODS XDR integer sizes" >&5
 
26229
echo "$as_me: error: Cannot determine DODS XDR integer sizes" >&2;}
 
26230
   { (exit 1); exit 1; }; }
 
26231
        ;;
 
26232
    esac
 
26233
    XDR_FLOAT64=xdr_double
 
26234
    XDR_FLOAT32=xdr_float
 
26235
 
 
26236
 
 
26237
cat >>confdefs.h <<_ACEOF
 
26238
#define XDR_INT16 $XDR_INT16
 
26239
_ACEOF
 
26240
 
 
26241
 
 
26242
cat >>confdefs.h <<_ACEOF
 
26243
#define XDR_UINT16 $XDR_UINT16
 
26244
_ACEOF
 
26245
 
 
26246
 
 
26247
cat >>confdefs.h <<_ACEOF
 
26248
#define XDR_INT32 $XDR_INT32
 
26249
_ACEOF
 
26250
 
 
26251
 
 
26252
cat >>confdefs.h <<_ACEOF
 
26253
#define XDR_UINT32 $XDR_UINT32
 
26254
_ACEOF
 
26255
 
 
26256
 
 
26257
cat >>confdefs.h <<_ACEOF
 
26258
#define XDR_FLOAT64 $XDR_FLOAT64
 
26259
_ACEOF
 
26260
 
 
26261
 
 
26262
cat >>confdefs.h <<_ACEOF
 
26263
#define XDR_FLOAT32 $XDR_FLOAT32
 
26264
_ACEOF
 
26265
 
 
26266
 
 
26267
if test "$CC" = "gcc"
 
26268
then
 
26269
     if true; then
 
26270
  COMPILER_IS_GCC_TRUE=
 
26271
  COMPILER_IS_GCC_FALSE='#'
 
26272
else
 
26273
  COMPILER_IS_GCC_TRUE='#'
 
26274
  COMPILER_IS_GCC_FALSE=
 
26275
fi
 
26276
 
 
26277
else
 
26278
     if false; then
 
26279
  COMPILER_IS_GCC_TRUE=
 
26280
  COMPILER_IS_GCC_FALSE='#'
 
26281
else
 
26282
  COMPILER_IS_GCC_TRUE='#'
 
26283
  COMPILER_IS_GCC_FALSE=
 
26284
fi
 
26285
 
 
26286
fi
 
26287
 
 
26288
# Checks for library functions.
 
26289
 
 
26290
# These, at least some of them, cannot be used along with gnulib without
 
26291
# breaking stuff. Since we are not bothering to handle the cases where these
 
26292
# functions break, there's not much point in testing for them. However, it
 
26293
# might be a good thing to use the gnulib versions since those fix various
 
26294
# common problems found in many distributions.
 
26295
 
 
26296
 
 
26297
 
 
26298
 
 
26299
 
 
26300
 
 
26301
 
 
26302
 
 
26303
 
 
26304
 
 
26305
 
 
26306
 
 
26307
 
 
26308
 
 
26309
 
 
26310
 
 
26311
 
 
26312
 
 
26313
 
 
26314
 
 
26315
for ac_func in alarm atexit bzero dup2 getcwd getpagesize localtime_r memmove memset pow putenv setenv strchr strerror strtol strtoul timegm mktime
 
26316
do
 
26317
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26318
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
26319
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
26320
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
26321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26322
else
 
26323
  cat >conftest.$ac_ext <<_ACEOF
 
26324
/* confdefs.h.  */
 
26325
_ACEOF
 
26326
cat confdefs.h >>conftest.$ac_ext
 
26327
cat >>conftest.$ac_ext <<_ACEOF
 
26328
/* end confdefs.h.  */
 
26329
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
26330
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26331
#define $ac_func innocuous_$ac_func
 
26332
 
 
26333
/* System header to define __stub macros and hopefully few prototypes,
 
26334
    which can conflict with char $ac_func (); below.
 
26335
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
26336
    <limits.h> exists even on freestanding compilers.  */
 
26337
 
 
26338
#ifdef __STDC__
 
26339
# include <limits.h>
 
26340
#else
 
26341
# include <assert.h>
 
26342
#endif
 
26343
 
 
26344
#undef $ac_func
 
26345
 
 
26346
/* Override any GCC internal prototype to avoid an error.
 
26347
   Use char because int might match the return type of a GCC
 
26348
   builtin and then its argument prototype would still apply.  */
 
26349
#ifdef __cplusplus
 
26350
extern "C"
 
26351
#endif
 
26352
char $ac_func ();
 
26353
/* The GNU C library defines this for functions which it implements
 
26354
    to always fail with ENOSYS.  Some functions are actually named
 
26355
    something starting with __ and the normal name is an alias.  */
 
26356
#if defined __stub_$ac_func || defined __stub___$ac_func
 
26357
choke me
 
26358
#endif
 
26359
 
 
26360
int
 
26361
main ()
 
26362
{
 
26363
return $ac_func ();
 
26364
  ;
 
26365
  return 0;
 
26366
}
 
26367
_ACEOF
 
26368
rm -f conftest.$ac_objext conftest$ac_exeext
 
26369
if { (ac_try="$ac_link"
 
26370
case "(($ac_try" in
 
26371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26372
  *) ac_try_echo=$ac_try;;
 
26373
esac
 
26374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26375
  (eval "$ac_link") 2>conftest.er1
 
26376
  ac_status=$?
 
26377
  grep -v '^ *+' conftest.er1 >conftest.err
 
26378
  rm -f conftest.er1
 
26379
  cat conftest.err >&5
 
26380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26381
  (exit $ac_status); } && {
 
26382
         test -z "$ac_c_werror_flag" ||
 
26383
         test ! -s conftest.err
 
26384
       } && test -s conftest$ac_exeext &&
 
26385
       $as_test_x conftest$ac_exeext; then
 
26386
  eval "$as_ac_var=yes"
 
26387
else
 
26388
  echo "$as_me: failed program was:" >&5
 
26389
sed 's/^/| /' conftest.$ac_ext >&5
 
26390
 
 
26391
        eval "$as_ac_var=no"
 
26392
fi
 
26393
 
 
26394
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26395
      conftest$ac_exeext conftest.$ac_ext
 
26396
fi
 
26397
ac_res=`eval echo '${'$as_ac_var'}'`
 
26398
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
26399
echo "${ECHO_T}$ac_res" >&6; }
 
26400
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
26401
  cat >>confdefs.h <<_ACEOF
 
26402
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26403
_ACEOF
 
26404
 
 
26405
fi
 
26406
done
 
26407
 
 
26408
 
 
26409
 
 
26410
 
 
26411
 
 
26412
 
 
26413
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
26414
# for constant arguments.  Useless!
 
26415
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
26416
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
 
26417
if test "${ac_cv_working_alloca_h+set}" = set; then
 
26418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26419
else
 
26420
  cat >conftest.$ac_ext <<_ACEOF
 
26421
/* confdefs.h.  */
 
26422
_ACEOF
 
26423
cat confdefs.h >>conftest.$ac_ext
 
26424
cat >>conftest.$ac_ext <<_ACEOF
 
26425
/* end confdefs.h.  */
 
26426
#include <alloca.h>
 
26427
int
 
26428
main ()
 
26429
{
 
26430
char *p = (char *) alloca (2 * sizeof (int));
 
26431
                          if (p) return 0;
 
26432
  ;
 
26433
  return 0;
 
26434
}
 
26435
_ACEOF
 
26436
rm -f conftest.$ac_objext conftest$ac_exeext
 
26437
if { (ac_try="$ac_link"
 
26438
case "(($ac_try" in
 
26439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26440
  *) ac_try_echo=$ac_try;;
 
26441
esac
 
26442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26443
  (eval "$ac_link") 2>conftest.er1
 
26444
  ac_status=$?
 
26445
  grep -v '^ *+' conftest.er1 >conftest.err
 
26446
  rm -f conftest.er1
 
26447
  cat conftest.err >&5
 
26448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26449
  (exit $ac_status); } && {
 
26450
         test -z "$ac_c_werror_flag" ||
 
26451
         test ! -s conftest.err
 
26452
       } && test -s conftest$ac_exeext &&
 
26453
       $as_test_x conftest$ac_exeext; then
 
26454
  ac_cv_working_alloca_h=yes
 
26455
else
 
26456
  echo "$as_me: failed program was:" >&5
 
26457
sed 's/^/| /' conftest.$ac_ext >&5
 
26458
 
 
26459
        ac_cv_working_alloca_h=no
 
26460
fi
 
26461
 
 
26462
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26463
      conftest$ac_exeext conftest.$ac_ext
 
26464
fi
 
26465
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
26466
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
26467
if test $ac_cv_working_alloca_h = yes; then
 
26468
 
 
26469
cat >>confdefs.h <<\_ACEOF
 
26470
#define HAVE_ALLOCA_H 1
 
26471
_ACEOF
 
26472
 
 
26473
fi
 
26474
 
 
26475
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
26476
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
 
26477
if test "${ac_cv_func_alloca_works+set}" = set; then
 
26478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26479
else
 
26480
  cat >conftest.$ac_ext <<_ACEOF
 
26481
/* confdefs.h.  */
 
26482
_ACEOF
 
26483
cat confdefs.h >>conftest.$ac_ext
 
26484
cat >>conftest.$ac_ext <<_ACEOF
 
26485
/* end confdefs.h.  */
 
26486
#ifdef __GNUC__
 
26487
# define alloca __builtin_alloca
 
26488
#else
 
26489
# ifdef _MSC_VER
 
26490
#  include <malloc.h>
 
26491
#  define alloca _alloca
 
26492
# else
 
26493
#  ifdef HAVE_ALLOCA_H
 
26494
#   include <alloca.h>
 
26495
#  else
 
26496
#   ifdef _AIX
 
26497
 #pragma alloca
 
26498
#   else
 
26499
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
26500
char *alloca ();
 
26501
#    endif
 
26502
#   endif
 
26503
#  endif
 
26504
# endif
 
26505
#endif
 
26506
 
 
26507
int
 
26508
main ()
 
26509
{
 
26510
char *p = (char *) alloca (1);
 
26511
                                    if (p) return 0;
 
26512
  ;
 
26513
  return 0;
 
26514
}
 
26515
_ACEOF
 
26516
rm -f conftest.$ac_objext conftest$ac_exeext
 
26517
if { (ac_try="$ac_link"
 
26518
case "(($ac_try" in
 
26519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26520
  *) ac_try_echo=$ac_try;;
 
26521
esac
 
26522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26523
  (eval "$ac_link") 2>conftest.er1
 
26524
  ac_status=$?
 
26525
  grep -v '^ *+' conftest.er1 >conftest.err
 
26526
  rm -f conftest.er1
 
26527
  cat conftest.err >&5
 
26528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26529
  (exit $ac_status); } && {
 
26530
         test -z "$ac_c_werror_flag" ||
 
26531
         test ! -s conftest.err
 
26532
       } && test -s conftest$ac_exeext &&
 
26533
       $as_test_x conftest$ac_exeext; then
 
26534
  ac_cv_func_alloca_works=yes
 
26535
else
 
26536
  echo "$as_me: failed program was:" >&5
 
26537
sed 's/^/| /' conftest.$ac_ext >&5
 
26538
 
 
26539
        ac_cv_func_alloca_works=no
 
26540
fi
 
26541
 
 
26542
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26543
      conftest$ac_exeext conftest.$ac_ext
 
26544
fi
 
26545
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
26546
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
26547
 
 
26548
if test $ac_cv_func_alloca_works = yes; then
 
26549
 
 
26550
cat >>confdefs.h <<\_ACEOF
 
26551
#define HAVE_ALLOCA 1
 
26552
_ACEOF
 
26553
 
 
26554
else
 
26555
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
26556
# that cause trouble.  Some versions do not even contain alloca or
 
26557
# contain a buggy version.  If you still want to use their alloca,
 
26558
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
26559
 
 
26560
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
26561
 
 
26562
cat >>confdefs.h <<\_ACEOF
 
26563
#define C_ALLOCA 1
 
26564
_ACEOF
 
26565
 
 
26566
 
 
26567
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
26568
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
 
26569
if test "${ac_cv_os_cray+set}" = set; then
 
26570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26571
else
 
26572
  cat >conftest.$ac_ext <<_ACEOF
 
26573
/* confdefs.h.  */
 
26574
_ACEOF
 
26575
cat confdefs.h >>conftest.$ac_ext
 
26576
cat >>conftest.$ac_ext <<_ACEOF
 
26577
/* end confdefs.h.  */
 
26578
#if defined CRAY && ! defined CRAY2
 
26579
webecray
 
26580
#else
 
26581
wenotbecray
 
26582
#endif
 
26583
 
 
26584
_ACEOF
 
26585
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
26586
  $EGREP "webecray" >/dev/null 2>&1; then
 
26587
  ac_cv_os_cray=yes
 
26588
else
 
26589
  ac_cv_os_cray=no
 
26590
fi
 
26591
rm -f conftest*
 
26592
 
 
26593
fi
 
26594
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
26595
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
 
26596
if test $ac_cv_os_cray = yes; then
 
26597
  for ac_func in _getb67 GETB67 getb67; do
 
26598
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26599
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
26600
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
26601
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
26602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26603
else
 
26604
  cat >conftest.$ac_ext <<_ACEOF
 
26605
/* confdefs.h.  */
 
26606
_ACEOF
 
26607
cat confdefs.h >>conftest.$ac_ext
 
26608
cat >>conftest.$ac_ext <<_ACEOF
 
26609
/* end confdefs.h.  */
 
26610
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
26611
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26612
#define $ac_func innocuous_$ac_func
 
26613
 
 
26614
/* System header to define __stub macros and hopefully few prototypes,
 
26615
    which can conflict with char $ac_func (); below.
 
26616
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
26617
    <limits.h> exists even on freestanding compilers.  */
 
26618
 
 
26619
#ifdef __STDC__
 
26620
# include <limits.h>
 
26621
#else
 
26622
# include <assert.h>
 
26623
#endif
 
26624
 
 
26625
#undef $ac_func
 
26626
 
 
26627
/* Override any GCC internal prototype to avoid an error.
 
26628
   Use char because int might match the return type of a GCC
 
26629
   builtin and then its argument prototype would still apply.  */
 
26630
#ifdef __cplusplus
 
26631
extern "C"
 
26632
#endif
 
26633
char $ac_func ();
 
26634
/* The GNU C library defines this for functions which it implements
 
26635
    to always fail with ENOSYS.  Some functions are actually named
 
26636
    something starting with __ and the normal name is an alias.  */
 
26637
#if defined __stub_$ac_func || defined __stub___$ac_func
 
26638
choke me
 
26639
#endif
 
26640
 
 
26641
int
 
26642
main ()
 
26643
{
 
26644
return $ac_func ();
 
26645
  ;
 
26646
  return 0;
 
26647
}
 
26648
_ACEOF
 
26649
rm -f conftest.$ac_objext conftest$ac_exeext
 
26650
if { (ac_try="$ac_link"
 
26651
case "(($ac_try" in
 
26652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26653
  *) ac_try_echo=$ac_try;;
 
26654
esac
 
26655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26656
  (eval "$ac_link") 2>conftest.er1
 
26657
  ac_status=$?
 
26658
  grep -v '^ *+' conftest.er1 >conftest.err
 
26659
  rm -f conftest.er1
 
26660
  cat conftest.err >&5
 
26661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26662
  (exit $ac_status); } && {
 
26663
         test -z "$ac_c_werror_flag" ||
 
26664
         test ! -s conftest.err
 
26665
       } && test -s conftest$ac_exeext &&
 
26666
       $as_test_x conftest$ac_exeext; then
 
26667
  eval "$as_ac_var=yes"
 
26668
else
 
26669
  echo "$as_me: failed program was:" >&5
 
26670
sed 's/^/| /' conftest.$ac_ext >&5
 
26671
 
 
26672
        eval "$as_ac_var=no"
 
26673
fi
 
26674
 
 
26675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26676
      conftest$ac_exeext conftest.$ac_ext
 
26677
fi
 
26678
ac_res=`eval echo '${'$as_ac_var'}'`
 
26679
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
26680
echo "${ECHO_T}$ac_res" >&6; }
 
26681
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
26682
 
 
26683
cat >>confdefs.h <<_ACEOF
 
26684
#define CRAY_STACKSEG_END $ac_func
 
26685
_ACEOF
 
26686
 
 
26687
    break
 
26688
fi
 
26689
 
 
26690
  done
 
26691
fi
 
26692
 
 
26693
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
26694
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
 
26695
if test "${ac_cv_c_stack_direction+set}" = set; then
 
26696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26697
else
 
26698
  if test "$cross_compiling" = yes; then
 
26699
  ac_cv_c_stack_direction=0
 
26700
else
 
26701
  cat >conftest.$ac_ext <<_ACEOF
 
26702
/* confdefs.h.  */
 
26703
_ACEOF
 
26704
cat confdefs.h >>conftest.$ac_ext
 
26705
cat >>conftest.$ac_ext <<_ACEOF
 
26706
/* end confdefs.h.  */
 
26707
$ac_includes_default
 
26708
int
 
26709
find_stack_direction ()
 
26710
{
 
26711
  static char *addr = 0;
 
26712
  auto char dummy;
 
26713
  if (addr == 0)
 
26714
    {
 
26715
      addr = &dummy;
 
26716
      return find_stack_direction ();
 
26717
    }
 
26718
  else
 
26719
    return (&dummy > addr) ? 1 : -1;
 
26720
}
 
26721
 
 
26722
int
 
26723
main ()
 
26724
{
 
26725
  return find_stack_direction () < 0;
 
26726
}
 
26727
_ACEOF
 
26728
rm -f conftest$ac_exeext
 
26729
if { (ac_try="$ac_link"
 
26730
case "(($ac_try" in
 
26731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26732
  *) ac_try_echo=$ac_try;;
 
26733
esac
 
26734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26735
  (eval "$ac_link") 2>&5
 
26736
  ac_status=$?
 
26737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26738
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26739
  { (case "(($ac_try" in
 
26740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26741
  *) ac_try_echo=$ac_try;;
 
26742
esac
 
26743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26744
  (eval "$ac_try") 2>&5
 
26745
  ac_status=$?
 
26746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26747
  (exit $ac_status); }; }; then
 
26748
  ac_cv_c_stack_direction=1
 
26749
else
 
26750
  echo "$as_me: program exited with status $ac_status" >&5
 
26751
echo "$as_me: failed program was:" >&5
 
26752
sed 's/^/| /' conftest.$ac_ext >&5
 
26753
 
 
26754
( exit $ac_status )
 
26755
ac_cv_c_stack_direction=-1
 
26756
fi
 
26757
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26758
fi
 
26759
 
 
26760
 
 
26761
fi
 
26762
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
26763
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
 
26764
 
 
26765
cat >>confdefs.h <<_ACEOF
 
26766
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
26767
_ACEOF
 
26768
 
 
26769
 
 
26770
fi
 
26771
 
 
26772
 
 
26773
  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
26774
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
 
26775
if test "${am_cv_langinfo_codeset+set}" = set; then
 
26776
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26777
else
 
26778
  cat >conftest.$ac_ext <<_ACEOF
 
26779
/* confdefs.h.  */
 
26780
_ACEOF
 
26781
cat confdefs.h >>conftest.$ac_ext
 
26782
cat >>conftest.$ac_ext <<_ACEOF
 
26783
/* end confdefs.h.  */
 
26784
#include <langinfo.h>
 
26785
int
 
26786
main ()
 
26787
{
 
26788
char* cs = nl_langinfo(CODESET); return !cs;
 
26789
  ;
 
26790
  return 0;
 
26791
}
 
26792
_ACEOF
 
26793
rm -f conftest.$ac_objext conftest$ac_exeext
 
26794
if { (ac_try="$ac_link"
 
26795
case "(($ac_try" in
 
26796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26797
  *) ac_try_echo=$ac_try;;
 
26798
esac
 
26799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26800
  (eval "$ac_link") 2>conftest.er1
 
26801
  ac_status=$?
 
26802
  grep -v '^ *+' conftest.er1 >conftest.err
 
26803
  rm -f conftest.er1
 
26804
  cat conftest.err >&5
 
26805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26806
  (exit $ac_status); } && {
 
26807
         test -z "$ac_c_werror_flag" ||
 
26808
         test ! -s conftest.err
 
26809
       } && test -s conftest$ac_exeext &&
 
26810
       $as_test_x conftest$ac_exeext; then
 
26811
  am_cv_langinfo_codeset=yes
 
26812
else
 
26813
  echo "$as_me: failed program was:" >&5
 
26814
sed 's/^/| /' conftest.$ac_ext >&5
 
26815
 
 
26816
        am_cv_langinfo_codeset=no
 
26817
fi
 
26818
 
 
26819
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26820
      conftest$ac_exeext conftest.$ac_ext
 
26821
 
 
26822
fi
 
26823
{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
26824
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
 
26825
  if test $am_cv_langinfo_codeset = yes; then
 
26826
 
 
26827
cat >>confdefs.h <<\_ACEOF
 
26828
#define HAVE_LANGINFO_CODESET 1
 
26829
_ACEOF
 
26830
 
 
26831
  fi
 
26832
 
 
26833
{ echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
26834
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
 
26835
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
26836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26837
else
 
26838
  cat >conftest.$ac_ext <<_ACEOF
 
26839
/* confdefs.h.  */
 
26840
_ACEOF
 
26841
cat confdefs.h >>conftest.$ac_ext
 
26842
cat >>conftest.$ac_ext <<_ACEOF
 
26843
/* end confdefs.h.  */
 
26844
$ac_includes_default
 
26845
int
 
26846
main ()
 
26847
{
 
26848
#ifndef getc_unlocked
 
26849
  (void) getc_unlocked;
 
26850
#endif
 
26851
 
 
26852
  ;
 
26853
  return 0;
 
26854
}
 
26855
_ACEOF
 
26856
rm -f conftest.$ac_objext
 
26857
if { (ac_try="$ac_compile"
 
26858
case "(($ac_try" in
 
26859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26860
  *) ac_try_echo=$ac_try;;
 
26861
esac
 
26862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26863
  (eval "$ac_compile") 2>conftest.er1
 
26864
  ac_status=$?
 
26865
  grep -v '^ *+' conftest.er1 >conftest.err
 
26866
  rm -f conftest.er1
 
26867
  cat conftest.err >&5
 
26868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26869
  (exit $ac_status); } && {
 
26870
         test -z "$ac_c_werror_flag" ||
 
26871
         test ! -s conftest.err
 
26872
       } && test -s conftest.$ac_objext; then
 
26873
  ac_cv_have_decl_getc_unlocked=yes
 
26874
else
 
26875
  echo "$as_me: failed program was:" >&5
 
26876
sed 's/^/| /' conftest.$ac_ext >&5
 
26877
 
 
26878
        ac_cv_have_decl_getc_unlocked=no
 
26879
fi
 
26880
 
 
26881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26882
fi
 
26883
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
26884
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
 
26885
if test $ac_cv_have_decl_getc_unlocked = yes; then
 
26886
 
 
26887
cat >>confdefs.h <<_ACEOF
 
26888
#define HAVE_DECL_GETC_UNLOCKED 1
 
26889
_ACEOF
 
26890
 
 
26891
 
 
26892
else
 
26893
  cat >>confdefs.h <<_ACEOF
 
26894
#define HAVE_DECL_GETC_UNLOCKED 0
 
26895
_ACEOF
 
26896
 
 
26897
 
 
26898
fi
 
26899
 
 
26900
 
 
26901
 
 
26902
    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
26903
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
 
26904
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
26905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26906
else
 
26907
  cat >conftest.$ac_ext <<_ACEOF
 
26908
/* confdefs.h.  */
 
26909
_ACEOF
 
26910
cat confdefs.h >>conftest.$ac_ext
 
26911
cat >>conftest.$ac_ext <<_ACEOF
 
26912
/* end confdefs.h.  */
 
26913
 
 
26914
#include <features.h>
 
26915
#ifdef __GNU_LIBRARY__
 
26916
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
26917
  Lucky GNU user
 
26918
 #endif
 
26919
#endif
 
26920
 
 
26921
_ACEOF
 
26922
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
26923
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
26924
  ac_cv_gnu_library_2_1=yes
 
26925
else
 
26926
  ac_cv_gnu_library_2_1=no
 
26927
fi
 
26928
rm -f conftest*
 
26929
 
 
26930
 
 
26931
 
 
26932
fi
 
26933
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
26934
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
 
26935
 
 
26936
    GLIBC21="$ac_cv_gnu_library_2_1"
 
26937
 
 
26938
 
 
26939
 
 
26940
  { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
 
26941
echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
 
26942
if test "${gl_cv_func_malloc_posix+set}" = set; then
 
26943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26944
else
 
26945
 
 
26946
                        cat >conftest.$ac_ext <<_ACEOF
 
26947
/* confdefs.h.  */
 
26948
_ACEOF
 
26949
cat confdefs.h >>conftest.$ac_ext
 
26950
cat >>conftest.$ac_ext <<_ACEOF
 
26951
/* end confdefs.h.  */
 
26952
 
 
26953
int
 
26954
main ()
 
26955
{
 
26956
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
26957
         choke me
 
26958
         #endif
 
26959
 
 
26960
  ;
 
26961
  return 0;
 
26962
}
 
26963
_ACEOF
 
26964
rm -f conftest.$ac_objext
 
26965
if { (ac_try="$ac_compile"
 
26966
case "(($ac_try" in
 
26967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26968
  *) ac_try_echo=$ac_try;;
 
26969
esac
 
26970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26971
  (eval "$ac_compile") 2>conftest.er1
 
26972
  ac_status=$?
 
26973
  grep -v '^ *+' conftest.er1 >conftest.err
 
26974
  rm -f conftest.er1
 
26975
  cat conftest.err >&5
 
26976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26977
  (exit $ac_status); } && {
 
26978
         test -z "$ac_c_werror_flag" ||
 
26979
         test ! -s conftest.err
 
26980
       } && test -s conftest.$ac_objext; then
 
26981
  gl_cv_func_malloc_posix=yes
 
26982
else
 
26983
  echo "$as_me: failed program was:" >&5
 
26984
sed 's/^/| /' conftest.$ac_ext >&5
 
26985
 
 
26986
        gl_cv_func_malloc_posix=no
 
26987
fi
 
26988
 
 
26989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26990
 
 
26991
fi
 
26992
{ echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
 
26993
echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
 
26994
 
 
26995
 
 
26996
  GNULIB_MALLOC_POSIX=0;
 
26997
  GNULIB_REALLOC_POSIX=0;
 
26998
  GNULIB_CALLOC_POSIX=0;
 
26999
  GNULIB_GETSUBOPT=0;
 
27000
  GNULIB_MKDTEMP=0;
 
27001
  GNULIB_MKSTEMP=0;
 
27002
    HAVE_CALLOC_POSIX=1;
 
27003
  HAVE_GETSUBOPT=1;
 
27004
  HAVE_MALLOC_POSIX=1;
 
27005
  HAVE_MKDTEMP=1;
 
27006
  HAVE_REALLOC_POSIX=1;
 
27007
  REPLACE_MKSTEMP=0;
 
27008
 
 
27009
 
 
27010
 
 
27011
 
 
27012
 
 
27013
for ac_header in $ac_header_list
 
27014
do
 
27015
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
27016
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
27017
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27018
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
27019
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
27020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27021
fi
 
27022
ac_res=`eval echo '${'$as_ac_Header'}'`
 
27023
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
27024
echo "${ECHO_T}$ac_res" >&6; }
 
27025
else
 
27026
  # Is the header compilable?
 
27027
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
27028
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
27029
cat >conftest.$ac_ext <<_ACEOF
 
27030
/* confdefs.h.  */
 
27031
_ACEOF
 
27032
cat confdefs.h >>conftest.$ac_ext
 
27033
cat >>conftest.$ac_ext <<_ACEOF
 
27034
/* end confdefs.h.  */
 
27035
$ac_includes_default
 
27036
#include <$ac_header>
 
27037
_ACEOF
 
27038
rm -f conftest.$ac_objext
 
27039
if { (ac_try="$ac_compile"
 
27040
case "(($ac_try" in
 
27041
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27042
  *) ac_try_echo=$ac_try;;
 
27043
esac
 
27044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27045
  (eval "$ac_compile") 2>conftest.er1
 
27046
  ac_status=$?
 
27047
  grep -v '^ *+' conftest.er1 >conftest.err
 
27048
  rm -f conftest.er1
 
27049
  cat conftest.err >&5
 
27050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27051
  (exit $ac_status); } && {
 
27052
         test -z "$ac_c_werror_flag" ||
 
27053
         test ! -s conftest.err
 
27054
       } && test -s conftest.$ac_objext; then
 
27055
  ac_header_compiler=yes
 
27056
else
 
27057
  echo "$as_me: failed program was:" >&5
 
27058
sed 's/^/| /' conftest.$ac_ext >&5
 
27059
 
 
27060
        ac_header_compiler=no
 
27061
fi
 
27062
 
 
27063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27064
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27065
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
27066
 
 
27067
# Is the header present?
 
27068
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
27069
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
27070
cat >conftest.$ac_ext <<_ACEOF
 
27071
/* confdefs.h.  */
 
27072
_ACEOF
 
27073
cat confdefs.h >>conftest.$ac_ext
 
27074
cat >>conftest.$ac_ext <<_ACEOF
 
27075
/* end confdefs.h.  */
 
27076
#include <$ac_header>
 
27077
_ACEOF
 
27078
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
27079
case "(($ac_try" in
 
27080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27081
  *) ac_try_echo=$ac_try;;
 
27082
esac
 
27083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27084
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
27085
  ac_status=$?
 
27086
  grep -v '^ *+' conftest.er1 >conftest.err
 
27087
  rm -f conftest.er1
 
27088
  cat conftest.err >&5
 
27089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27090
  (exit $ac_status); } >/dev/null && {
 
27091
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
27092
         test ! -s conftest.err
 
27093
       }; then
 
27094
  ac_header_preproc=yes
 
27095
else
 
27096
  echo "$as_me: failed program was:" >&5
 
27097
sed 's/^/| /' conftest.$ac_ext >&5
 
27098
 
 
27099
  ac_header_preproc=no
 
27100
fi
 
27101
 
 
27102
rm -f conftest.err conftest.$ac_ext
 
27103
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27104
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
27105
 
 
27106
# So?  What about this header?
 
27107
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27108
  yes:no: )
 
27109
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
27110
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27111
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
27112
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
27113
    ac_header_preproc=yes
 
27114
    ;;
 
27115
  no:yes:* )
 
27116
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
27117
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
27118
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
27119
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
27120
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
27121
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
27122
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
27123
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27124
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
27125
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
27126
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
27127
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
27128
    ( cat <<\_ASBOX
 
27129
## --------------------------------------- ##
 
27130
## Report this to opendap-tech@opendap.org ##
 
27131
## --------------------------------------- ##
 
27132
_ASBOX
 
27133
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
27134
    ;;
 
27135
esac
 
27136
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27137
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
27138
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
27139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27140
else
 
27141
  eval "$as_ac_Header=\$ac_header_preproc"
 
27142
fi
 
27143
ac_res=`eval echo '${'$as_ac_Header'}'`
 
27144
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
27145
echo "${ECHO_T}$ac_res" >&6; }
 
27146
 
 
27147
fi
 
27148
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
27149
  cat >>confdefs.h <<_ACEOF
 
27150
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
27151
_ACEOF
 
27152
 
 
27153
fi
 
27154
 
 
27155
done
 
27156
 
 
27157
 
 
27158
 
 
27159
{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
 
27160
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
 
27161
if test "${ac_cv_c_restrict+set}" = set; then
 
27162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27163
else
 
27164
  ac_cv_c_restrict=no
 
27165
   # Try the official restrict keyword, then gcc's __restrict, and
 
27166
   # the less common variants.
 
27167
   for ac_kw in restrict __restrict __restrict__ _Restrict; do
 
27168
     cat >conftest.$ac_ext <<_ACEOF
 
27169
/* confdefs.h.  */
 
27170
_ACEOF
 
27171
cat confdefs.h >>conftest.$ac_ext
 
27172
cat >>conftest.$ac_ext <<_ACEOF
 
27173
/* end confdefs.h.  */
 
27174
typedef int * int_ptr;
 
27175
        int foo (int_ptr $ac_kw ip) {
 
27176
        return ip[0];
 
27177
       }
 
27178
int
 
27179
main ()
 
27180
{
 
27181
int s[1];
 
27182
        int * $ac_kw t = s;
 
27183
        t[0] = 0;
 
27184
        return foo(t)
 
27185
  ;
 
27186
  return 0;
 
27187
}
 
27188
_ACEOF
 
27189
rm -f conftest.$ac_objext
 
27190
if { (ac_try="$ac_compile"
 
27191
case "(($ac_try" in
 
27192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27193
  *) ac_try_echo=$ac_try;;
 
27194
esac
 
27195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27196
  (eval "$ac_compile") 2>conftest.er1
 
27197
  ac_status=$?
 
27198
  grep -v '^ *+' conftest.er1 >conftest.err
 
27199
  rm -f conftest.er1
 
27200
  cat conftest.err >&5
 
27201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27202
  (exit $ac_status); } && {
 
27203
         test -z "$ac_c_werror_flag" ||
 
27204
         test ! -s conftest.err
 
27205
       } && test -s conftest.$ac_objext; then
 
27206
  ac_cv_c_restrict=$ac_kw
 
27207
else
 
27208
  echo "$as_me: failed program was:" >&5
 
27209
sed 's/^/| /' conftest.$ac_ext >&5
 
27210
 
 
27211
 
 
27212
fi
 
27213
 
 
27214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27215
     test "$ac_cv_c_restrict" != no && break
 
27216
   done
 
27217
 
 
27218
fi
 
27219
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
 
27220
echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
 
27221
 case $ac_cv_c_restrict in
 
27222
   restrict) ;;
 
27223
   no)
 
27224
cat >>confdefs.h <<\_ACEOF
 
27225
#define restrict
 
27226
_ACEOF
 
27227
 ;;
 
27228
   *)  cat >>confdefs.h <<_ACEOF
 
27229
#define restrict $ac_cv_c_restrict
 
27230
_ACEOF
 
27231
 ;;
 
27232
 esac
 
27233
 
 
27234
 
 
27235
 
 
27236
 
 
27237
 
 
27238
for ac_func in $ac_func_list
 
27239
do
 
27240
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27241
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27242
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
27243
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
27244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27245
else
 
27246
  cat >conftest.$ac_ext <<_ACEOF
 
27247
/* confdefs.h.  */
 
27248
_ACEOF
 
27249
cat confdefs.h >>conftest.$ac_ext
 
27250
cat >>conftest.$ac_ext <<_ACEOF
 
27251
/* end confdefs.h.  */
 
27252
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27253
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27254
#define $ac_func innocuous_$ac_func
 
27255
 
 
27256
/* System header to define __stub macros and hopefully few prototypes,
 
27257
    which can conflict with char $ac_func (); below.
 
27258
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27259
    <limits.h> exists even on freestanding compilers.  */
 
27260
 
 
27261
#ifdef __STDC__
 
27262
# include <limits.h>
 
27263
#else
 
27264
# include <assert.h>
 
27265
#endif
 
27266
 
 
27267
#undef $ac_func
 
27268
 
 
27269
/* Override any GCC internal prototype to avoid an error.
 
27270
   Use char because int might match the return type of a GCC
 
27271
   builtin and then its argument prototype would still apply.  */
 
27272
#ifdef __cplusplus
 
27273
extern "C"
 
27274
#endif
 
27275
char $ac_func ();
 
27276
/* The GNU C library defines this for functions which it implements
 
27277
    to always fail with ENOSYS.  Some functions are actually named
 
27278
    something starting with __ and the normal name is an alias.  */
 
27279
#if defined __stub_$ac_func || defined __stub___$ac_func
 
27280
choke me
 
27281
#endif
 
27282
 
 
27283
int
 
27284
main ()
 
27285
{
 
27286
return $ac_func ();
 
27287
  ;
 
27288
  return 0;
 
27289
}
 
27290
_ACEOF
 
27291
rm -f conftest.$ac_objext conftest$ac_exeext
 
27292
if { (ac_try="$ac_link"
 
27293
case "(($ac_try" in
 
27294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27295
  *) ac_try_echo=$ac_try;;
 
27296
esac
 
27297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27298
  (eval "$ac_link") 2>conftest.er1
 
27299
  ac_status=$?
 
27300
  grep -v '^ *+' conftest.er1 >conftest.err
 
27301
  rm -f conftest.er1
 
27302
  cat conftest.err >&5
 
27303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27304
  (exit $ac_status); } && {
 
27305
         test -z "$ac_c_werror_flag" ||
 
27306
         test ! -s conftest.err
 
27307
       } && test -s conftest$ac_exeext &&
 
27308
       $as_test_x conftest$ac_exeext; then
 
27309
  eval "$as_ac_var=yes"
 
27310
else
 
27311
  echo "$as_me: failed program was:" >&5
 
27312
sed 's/^/| /' conftest.$ac_ext >&5
 
27313
 
 
27314
        eval "$as_ac_var=no"
 
27315
fi
 
27316
 
 
27317
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
27318
      conftest$ac_exeext conftest.$ac_ext
 
27319
fi
 
27320
ac_res=`eval echo '${'$as_ac_var'}'`
 
27321
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
27322
echo "${ECHO_T}$ac_res" >&6; }
 
27323
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27324
  cat >>confdefs.h <<_ACEOF
 
27325
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27326
_ACEOF
 
27327
 
 
27328
fi
 
27329
done
 
27330
 
 
27331
 
 
27332
 
 
27333
 
 
27334
 
 
27335
 
 
27336
 
 
27337
 
 
27338
 
 
27339
 
 
27340
 
 
27341
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
27342
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
 
27343
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
27344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27345
else
 
27346
  cat >conftest.$ac_ext <<_ACEOF
 
27347
/* confdefs.h.  */
 
27348
_ACEOF
 
27349
cat confdefs.h >>conftest.$ac_ext
 
27350
cat >>conftest.$ac_ext <<_ACEOF
 
27351
/* end confdefs.h.  */
 
27352
 
 
27353
          #include <stdbool.h>
 
27354
          #ifndef bool
 
27355
           "error: bool is not defined"
 
27356
          #endif
 
27357
          #ifndef false
 
27358
           "error: false is not defined"
 
27359
          #endif
 
27360
          #if false
 
27361
           "error: false is not 0"
 
27362
          #endif
 
27363
          #ifndef true
 
27364
           "error: true is not defined"
 
27365
          #endif
 
27366
          #if true != 1
 
27367
           "error: true is not 1"
 
27368
          #endif
 
27369
          #ifndef __bool_true_false_are_defined
 
27370
           "error: __bool_true_false_are_defined is not defined"
 
27371
          #endif
 
27372
 
 
27373
          struct s { _Bool s: 1; _Bool t; } s;
 
27374
 
 
27375
          char a[true == 1 ? 1 : -1];
 
27376
          char b[false == 0 ? 1 : -1];
 
27377
          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
27378
          char d[(bool) 0.5 == true ? 1 : -1];
 
27379
          bool e = &s;
 
27380
          char f[(_Bool) 0.0 == false ? 1 : -1];
 
27381
          char g[true];
 
27382
          char h[sizeof (_Bool)];
 
27383
          char i[sizeof s.t];
 
27384
          enum { j = false, k = true, l = false * true, m = true * 256 };
 
27385
          _Bool n[m];
 
27386
          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
27387
          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
27388
          #if defined __xlc__ || defined __GNUC__
 
27389
           /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
27390
              reported by James Lemley on 2005-10-05; see
 
27391
              http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
27392
              This test is not quite right, since xlc is allowed to
 
27393
              reject this program, as the initializer for xlcbug is
 
27394
              not one of the forms that C requires support for.
 
27395
              However, doing the test right would require a run-time
 
27396
              test, and that would make cross-compilation harder.
 
27397
              Let us hope that IBM fixes the xlc bug, and also adds
 
27398
              support for this kind of constant expression.  In the
 
27399
              meantime, this test will reject xlc, which is OK, since
 
27400
              our stdbool.h substitute should suffice.  We also test
 
27401
              this with GCC, where it should work, to detect more
 
27402
              quickly whether someone messes up the test in the
 
27403
              future.  */
 
27404
           char digs[] = "0123456789";
 
27405
           int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
27406
          #endif
 
27407
          /* Catch a bug in an HP-UX C compiler.  See
 
27408
             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
27409
             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
27410
           */
 
27411
          _Bool q = true;
 
27412
          _Bool *pq = &q;
 
27413
 
 
27414
int
 
27415
main ()
 
27416
{
 
27417
 
 
27418
          *pq |= q;
 
27419
          *pq |= ! q;
 
27420
          /* Refer to every declared value, to avoid compiler optimizations.  */
 
27421
          return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
27422
                  + !m + !n + !o + !p + !q + !pq);
 
27423
 
 
27424
  ;
 
27425
  return 0;
 
27426
}
 
27427
_ACEOF
 
27428
rm -f conftest.$ac_objext
 
27429
if { (ac_try="$ac_compile"
 
27430
case "(($ac_try" in
 
27431
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27432
  *) ac_try_echo=$ac_try;;
 
27433
esac
 
27434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27435
  (eval "$ac_compile") 2>conftest.er1
 
27436
  ac_status=$?
 
27437
  grep -v '^ *+' conftest.er1 >conftest.err
 
27438
  rm -f conftest.er1
 
27439
  cat conftest.err >&5
 
27440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27441
  (exit $ac_status); } && {
 
27442
         test -z "$ac_c_werror_flag" ||
 
27443
         test ! -s conftest.err
 
27444
       } && test -s conftest.$ac_objext; then
 
27445
  ac_cv_header_stdbool_h=yes
 
27446
else
 
27447
  echo "$as_me: failed program was:" >&5
 
27448
sed 's/^/| /' conftest.$ac_ext >&5
 
27449
 
 
27450
        ac_cv_header_stdbool_h=no
 
27451
fi
 
27452
 
 
27453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27454
fi
 
27455
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
27456
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
 
27457
   { echo "$as_me:$LINENO: checking for _Bool" >&5
 
27458
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
 
27459
if test "${ac_cv_type__Bool+set}" = set; then
 
27460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27461
else
 
27462
  cat >conftest.$ac_ext <<_ACEOF
 
27463
/* confdefs.h.  */
 
27464
_ACEOF
 
27465
cat confdefs.h >>conftest.$ac_ext
 
27466
cat >>conftest.$ac_ext <<_ACEOF
 
27467
/* end confdefs.h.  */
 
27468
$ac_includes_default
 
27469
typedef _Bool ac__type_new_;
 
27470
int
 
27471
main ()
 
27472
{
 
27473
if ((ac__type_new_ *) 0)
 
27474
  return 0;
 
27475
if (sizeof (ac__type_new_))
 
27476
  return 0;
 
27477
  ;
 
27478
  return 0;
 
27479
}
 
27480
_ACEOF
 
27481
rm -f conftest.$ac_objext
 
27482
if { (ac_try="$ac_compile"
 
27483
case "(($ac_try" in
 
27484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27485
  *) ac_try_echo=$ac_try;;
 
27486
esac
 
27487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27488
  (eval "$ac_compile") 2>conftest.er1
 
27489
  ac_status=$?
 
27490
  grep -v '^ *+' conftest.er1 >conftest.err
 
27491
  rm -f conftest.er1
 
27492
  cat conftest.err >&5
 
27493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27494
  (exit $ac_status); } && {
 
27495
         test -z "$ac_c_werror_flag" ||
 
27496
         test ! -s conftest.err
 
27497
       } && test -s conftest.$ac_objext; then
 
27498
  ac_cv_type__Bool=yes
 
27499
else
 
27500
  echo "$as_me: failed program was:" >&5
 
27501
sed 's/^/| /' conftest.$ac_ext >&5
 
27502
 
 
27503
        ac_cv_type__Bool=no
 
27504
fi
 
27505
 
 
27506
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27507
fi
 
27508
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
27509
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
 
27510
if test $ac_cv_type__Bool = yes; then
 
27511
 
 
27512
cat >>confdefs.h <<_ACEOF
 
27513
#define HAVE__BOOL 1
 
27514
_ACEOF
 
27515
 
 
27516
 
 
27517
fi
 
27518
 
 
27519
   if test $ac_cv_header_stdbool_h = yes; then
 
27520
 
 
27521
cat >>confdefs.h <<\_ACEOF
 
27522
#define HAVE_STDBOOL_H 1
 
27523
_ACEOF
 
27524
 
 
27525
   fi
 
27526
 
 
27527
  { echo "$as_me:$LINENO: checking for long long int" >&5
 
27528
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
 
27529
if test "${ac_cv_type_long_long_int+set}" = set; then
 
27530
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27531
else
 
27532
  cat >conftest.$ac_ext <<_ACEOF
 
27533
/* confdefs.h.  */
 
27534
_ACEOF
 
27535
cat confdefs.h >>conftest.$ac_ext
 
27536
cat >>conftest.$ac_ext <<_ACEOF
 
27537
/* end confdefs.h.  */
 
27538
long long int ll = 9223372036854775807ll;
 
27539
            long long int nll = -9223372036854775807LL;
 
27540
            typedef int a[((-9223372036854775807LL < 0
 
27541
                            && 0 < 9223372036854775807ll)
 
27542
                           ? 1 : -1)];
 
27543
            int i = 63;
 
27544
int
 
27545
main ()
 
27546
{
 
27547
long long int llmax = 9223372036854775807ll;
 
27548
            return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
27549
                    | (llmax / ll) | (llmax % ll));
 
27550
  ;
 
27551
  return 0;
 
27552
}
 
27553
_ACEOF
 
27554
rm -f conftest.$ac_objext conftest$ac_exeext
 
27555
if { (ac_try="$ac_link"
 
27556
case "(($ac_try" in
 
27557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27558
  *) ac_try_echo=$ac_try;;
 
27559
esac
 
27560
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27561
  (eval "$ac_link") 2>conftest.er1
 
27562
  ac_status=$?
 
27563
  grep -v '^ *+' conftest.er1 >conftest.err
 
27564
  rm -f conftest.er1
 
27565
  cat conftest.err >&5
 
27566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27567
  (exit $ac_status); } && {
 
27568
         test -z "$ac_c_werror_flag" ||
 
27569
         test ! -s conftest.err
 
27570
       } && test -s conftest$ac_exeext &&
 
27571
       $as_test_x conftest$ac_exeext; then
 
27572
                        if test "$cross_compiling" = yes; then
 
27573
  ac_cv_type_long_long_int=yes
 
27574
else
 
27575
  cat >conftest.$ac_ext <<_ACEOF
 
27576
/* confdefs.h.  */
 
27577
_ACEOF
 
27578
cat confdefs.h >>conftest.$ac_ext
 
27579
cat >>conftest.$ac_ext <<_ACEOF
 
27580
/* end confdefs.h.  */
 
27581
#include <limits.h>
 
27582
               #ifndef LLONG_MAX
 
27583
               # define HALF \
 
27584
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
27585
               # define LLONG_MAX (HALF - 1 + HALF)
 
27586
               #endif
 
27587
int
 
27588
main ()
 
27589
{
 
27590
long long int n = 1;
 
27591
               int i;
 
27592
               for (i = 0; ; i++)
 
27593
                 {
 
27594
                   long long int m = n << i;
 
27595
                   if (m >> i != n)
 
27596
                     return 1;
 
27597
                   if (LLONG_MAX / 2 < m)
 
27598
                     break;
 
27599
                 }
 
27600
               return 0;
 
27601
  ;
 
27602
  return 0;
 
27603
}
 
27604
_ACEOF
 
27605
rm -f conftest$ac_exeext
 
27606
if { (ac_try="$ac_link"
 
27607
case "(($ac_try" in
 
27608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27609
  *) ac_try_echo=$ac_try;;
 
27610
esac
 
27611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27612
  (eval "$ac_link") 2>&5
 
27613
  ac_status=$?
 
27614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27615
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27616
  { (case "(($ac_try" in
 
27617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27618
  *) ac_try_echo=$ac_try;;
 
27619
esac
 
27620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27621
  (eval "$ac_try") 2>&5
 
27622
  ac_status=$?
 
27623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27624
  (exit $ac_status); }; }; then
 
27625
  ac_cv_type_long_long_int=yes
 
27626
else
 
27627
  echo "$as_me: program exited with status $ac_status" >&5
 
27628
echo "$as_me: failed program was:" >&5
 
27629
sed 's/^/| /' conftest.$ac_ext >&5
 
27630
 
 
27631
( exit $ac_status )
 
27632
ac_cv_type_long_long_int=no
 
27633
fi
 
27634
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27635
fi
 
27636
 
 
27637
 
 
27638
else
 
27639
  echo "$as_me: failed program was:" >&5
 
27640
sed 's/^/| /' conftest.$ac_ext >&5
 
27641
 
 
27642
        ac_cv_type_long_long_int=no
 
27643
fi
 
27644
 
 
27645
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
27646
      conftest$ac_exeext conftest.$ac_ext
 
27647
fi
 
27648
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
27649
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
 
27650
  if test $ac_cv_type_long_long_int = yes; then
 
27651
 
 
27652
cat >>confdefs.h <<\_ACEOF
 
27653
#define HAVE_LONG_LONG_INT 1
 
27654
_ACEOF
 
27655
 
 
27656
  fi
 
27657
 
 
27658
 
 
27659
  { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
 
27660
echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
 
27661
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
 
27662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27663
else
 
27664
  cat >conftest.$ac_ext <<_ACEOF
 
27665
/* confdefs.h.  */
 
27666
_ACEOF
 
27667
cat confdefs.h >>conftest.$ac_ext
 
27668
cat >>conftest.$ac_ext <<_ACEOF
 
27669
/* end confdefs.h.  */
 
27670
unsigned long long int ull = 18446744073709551615ULL;
 
27671
            typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
 
27672
                           ? 1 : -1)];
 
27673
           int i = 63;
 
27674
int
 
27675
main ()
 
27676
{
 
27677
unsigned long long int ullmax = 18446744073709551615ull;
 
27678
            return (ull << 63 | ull >> 63 | ull << i | ull >> i
 
27679
                    | ullmax / ull | ullmax % ull);
 
27680
  ;
 
27681
  return 0;
 
27682
}
 
27683
_ACEOF
 
27684
rm -f conftest.$ac_objext conftest$ac_exeext
 
27685
if { (ac_try="$ac_link"
 
27686
case "(($ac_try" in
 
27687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27688
  *) ac_try_echo=$ac_try;;
 
27689
esac
 
27690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27691
  (eval "$ac_link") 2>conftest.er1
 
27692
  ac_status=$?
 
27693
  grep -v '^ *+' conftest.er1 >conftest.err
 
27694
  rm -f conftest.er1
 
27695
  cat conftest.err >&5
 
27696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27697
  (exit $ac_status); } && {
 
27698
         test -z "$ac_c_werror_flag" ||
 
27699
         test ! -s conftest.err
 
27700
       } && test -s conftest$ac_exeext &&
 
27701
       $as_test_x conftest$ac_exeext; then
 
27702
  ac_cv_type_unsigned_long_long_int=yes
 
27703
else
 
27704
  echo "$as_me: failed program was:" >&5
 
27705
sed 's/^/| /' conftest.$ac_ext >&5
 
27706
 
 
27707
        ac_cv_type_unsigned_long_long_int=no
 
27708
fi
 
27709
 
 
27710
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
27711
      conftest$ac_exeext conftest.$ac_ext
 
27712
fi
 
27713
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
 
27714
echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
 
27715
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
27716
 
 
27717
cat >>confdefs.h <<\_ACEOF
 
27718
#define HAVE_UNSIGNED_LONG_LONG_INT 1
 
27719
_ACEOF
 
27720
 
 
27721
  fi
 
27722
 
 
27723
 
 
27724
 
 
27725
  { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
 
27726
echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
 
27727
if test "${gl_cv_have_include_next+set}" = set; then
 
27728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27729
else
 
27730
  rm -rf conftestd1 conftestd2
 
27731
     mkdir conftestd1 conftestd2
 
27732
     cat <<EOF > conftestd1/conftest.h
 
27733
#define DEFINED_IN_CONFTESTD1
 
27734
#include_next <conftest.h>
 
27735
#ifdef DEFINED_IN_CONFTESTD2
 
27736
int foo;
 
27737
#else
 
27738
#error "include_next doesn't work"
 
27739
#endif
 
27740
EOF
 
27741
     cat <<EOF > conftestd2/conftest.h
 
27742
#ifndef DEFINED_IN_CONFTESTD1
 
27743
#error "include_next test doesn't work"
 
27744
#endif
 
27745
#define DEFINED_IN_CONFTESTD2
 
27746
EOF
 
27747
     save_CPPFLAGS="$CPPFLAGS"
 
27748
     CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
 
27749
     cat >conftest.$ac_ext <<_ACEOF
 
27750
#include <conftest.h>
 
27751
_ACEOF
 
27752
rm -f conftest.$ac_objext
 
27753
if { (ac_try="$ac_compile"
 
27754
case "(($ac_try" in
 
27755
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27756
  *) ac_try_echo=$ac_try;;
 
27757
esac
 
27758
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27759
  (eval "$ac_compile") 2>conftest.er1
 
27760
  ac_status=$?
 
27761
  grep -v '^ *+' conftest.er1 >conftest.err
 
27762
  rm -f conftest.er1
 
27763
  cat conftest.err >&5
 
27764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27765
  (exit $ac_status); } && {
 
27766
         test -z "$ac_c_werror_flag" ||
 
27767
         test ! -s conftest.err
 
27768
       } && test -s conftest.$ac_objext; then
 
27769
  gl_cv_have_include_next=yes
 
27770
else
 
27771
  echo "$as_me: failed program was:" >&5
 
27772
sed 's/^/| /' conftest.$ac_ext >&5
 
27773
 
 
27774
        gl_cv_have_include_next=no
 
27775
fi
 
27776
 
 
27777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27778
     CPPFLAGS="$save_CPPFLAGS"
 
27779
     rm -rf conftestd1 conftestd2
 
27780
 
 
27781
fi
 
27782
{ echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
 
27783
echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
 
27784
  if test $gl_cv_have_include_next = yes; then
 
27785
 
 
27786
 
 
27787
cat >>confdefs.h <<\_ACEOF
 
27788
#define HAVE_INCLUDE_NEXT 1
 
27789
_ACEOF
 
27790
 
 
27791
 
 
27792
    INCLUDE_NEXT=include_next
 
27793
  else
 
27794
    INCLUDE_NEXT=include
 
27795
  fi
 
27796
 
 
27797
 
 
27798
 
 
27799
 
 
27800
 
 
27801
 
 
27802
 
 
27803
 
 
27804
 
 
27805
  GNULIB_CHOWN=0;
 
27806
  GNULIB_DUP2=0;
 
27807
  GNULIB_FCHDIR=0;
 
27808
  GNULIB_FTRUNCATE=0;
 
27809
  GNULIB_GETCWD=0;
 
27810
  GNULIB_GETLOGIN_R=0;
 
27811
  GNULIB_LCHOWN=0;
 
27812
  GNULIB_LSEEK=0;
 
27813
  GNULIB_READLINK=0;
 
27814
  GNULIB_SLEEP=0;
 
27815
    HAVE_DUP2=1;
 
27816
  HAVE_FTRUNCATE=1;
 
27817
  HAVE_READLINK=1;
 
27818
  HAVE_SLEEP=1;
 
27819
  HAVE_DECL_GETLOGIN_R=1;
 
27820
  REPLACE_CHOWN=0;
 
27821
  REPLACE_FCHDIR=0;
 
27822
  REPLACE_GETCWD=0;
 
27823
  REPLACE_LCHOWN=0;
 
27824
  REPLACE_LSEEK=0;
 
27825
 
 
27826
 
 
27827
 
 
27828
 
 
27829
  GNULIB_WCWIDTH=0;
 
27830
    HAVE_DECL_WCWIDTH=1;
 
27831
  REPLACE_WCWIDTH=0;
 
27832
  WCHAR_H=
 
27833
 
 
27834
 
 
27835
 
 
27836
 
 
27837
 
 
27838
 
 
27839
 
 
27840
  { echo "$as_me:$LINENO: checking for wint_t" >&5
 
27841
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
 
27842
if test "${gt_cv_c_wint_t+set}" = set; then
 
27843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27844
else
 
27845
  cat >conftest.$ac_ext <<_ACEOF
 
27846
/* confdefs.h.  */
 
27847
_ACEOF
 
27848
cat confdefs.h >>conftest.$ac_ext
 
27849
cat >>conftest.$ac_ext <<_ACEOF
 
27850
/* end confdefs.h.  */
 
27851
 
 
27852
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
27853
   <wchar.h>.
 
27854
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
27855
   before <wchar.h>.  */
 
27856
#include <stddef.h>
 
27857
#include <stdio.h>
 
27858
#include <time.h>
 
27859
#include <wchar.h>
 
27860
       wint_t foo = (wchar_t)'\0';
 
27861
int
 
27862
main ()
 
27863
{
 
27864
 
 
27865
  ;
 
27866
  return 0;
 
27867
}
 
27868
_ACEOF
 
27869
rm -f conftest.$ac_objext
 
27870
if { (ac_try="$ac_compile"
 
27871
case "(($ac_try" in
 
27872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27873
  *) ac_try_echo=$ac_try;;
 
27874
esac
 
27875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27876
  (eval "$ac_compile") 2>conftest.er1
 
27877
  ac_status=$?
 
27878
  grep -v '^ *+' conftest.er1 >conftest.err
 
27879
  rm -f conftest.er1
 
27880
  cat conftest.err >&5
 
27881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27882
  (exit $ac_status); } && {
 
27883
         test -z "$ac_c_werror_flag" ||
 
27884
         test ! -s conftest.err
 
27885
       } && test -s conftest.$ac_objext; then
 
27886
  gt_cv_c_wint_t=yes
 
27887
else
 
27888
  echo "$as_me: failed program was:" >&5
 
27889
sed 's/^/| /' conftest.$ac_ext >&5
 
27890
 
 
27891
        gt_cv_c_wint_t=no
 
27892
fi
 
27893
 
 
27894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27895
fi
 
27896
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
27897
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
 
27898
  if test $gt_cv_c_wint_t = yes; then
 
27899
 
 
27900
cat >>confdefs.h <<\_ACEOF
 
27901
#define HAVE_WINT_T 1
 
27902
_ACEOF
 
27903
 
 
27904
  fi
 
27905
 
 
27906
 
 
27907
 
 
27908
 
 
27909
 
 
27910
   if true; then
 
27911
  GL_COND_LIBTOOL_TRUE=
 
27912
  GL_COND_LIBTOOL_FALSE='#'
 
27913
else
 
27914
  GL_COND_LIBTOOL_TRUE='#'
 
27915
  GL_COND_LIBTOOL_FALSE=
 
27916
fi
 
27917
 
 
27918
  gl_cond_libtool=true
 
27919
  gl_source_base='gl'
 
27920
LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
 
27921
 
 
27922
 
 
27923
 
 
27924
 
 
27925
 
 
27926
 
 
27927
  if test $ac_cv_func_alloca_works = no; then
 
27928
    :
 
27929
  fi
 
27930
 
 
27931
  # Define an additional variable used in the Makefile substitution.
 
27932
  if test $ac_cv_working_alloca_h = yes; then
 
27933
    { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
 
27934
echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
 
27935
if test "${gl_cv_rpl_alloca+set}" = set; then
 
27936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27937
else
 
27938
 
 
27939
      cat >conftest.$ac_ext <<_ACEOF
 
27940
/* confdefs.h.  */
 
27941
_ACEOF
 
27942
cat confdefs.h >>conftest.$ac_ext
 
27943
cat >>conftest.$ac_ext <<_ACEOF
 
27944
/* end confdefs.h.  */
 
27945
 
 
27946
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
 
27947
        Need own alloca
 
27948
#endif
 
27949
 
 
27950
_ACEOF
 
27951
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
27952
  $EGREP "Need own alloca" >/dev/null 2>&1; then
 
27953
  gl_cv_rpl_alloca=yes
 
27954
else
 
27955
  gl_cv_rpl_alloca=no
 
27956
fi
 
27957
rm -f conftest*
 
27958
 
 
27959
 
 
27960
fi
 
27961
{ echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
 
27962
echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
 
27963
    if test $gl_cv_rpl_alloca = yes; then
 
27964
 
 
27965
cat >>confdefs.h <<\_ACEOF
 
27966
#define HAVE_ALLOCA 1
 
27967
_ACEOF
 
27968
 
 
27969
      ALLOCA_H=alloca.h
 
27970
    else
 
27971
                  ALLOCA_H=
 
27972
    fi
 
27973
  else
 
27974
    ALLOCA_H=alloca.h
 
27975
  fi
 
27976
 
 
27977
 
 
27978
 
 
27979
cat >>confdefs.h <<\_ACEOF
 
27980
#define HAVE_ALLOCA_H 1
 
27981
_ACEOF
 
27982
 
 
27983
 
 
27984
 
 
27985
 
 
27986
 
 
27987
 
 
27988
 
 
27989
 
 
27990
 
 
27991
 
 
27992
 
 
27993
 
 
27994
 
 
27995
 
 
27996
 
 
27997
for ac_header in stdlib.h
 
27998
do
 
27999
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
28000
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28001
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28002
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
28003
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28005
fi
 
28006
ac_res=`eval echo '${'$as_ac_Header'}'`
 
28007
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
28008
echo "${ECHO_T}$ac_res" >&6; }
 
28009
else
 
28010
  # Is the header compilable?
 
28011
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
28012
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
28013
cat >conftest.$ac_ext <<_ACEOF
 
28014
/* confdefs.h.  */
 
28015
_ACEOF
 
28016
cat confdefs.h >>conftest.$ac_ext
 
28017
cat >>conftest.$ac_ext <<_ACEOF
 
28018
/* end confdefs.h.  */
 
28019
$ac_includes_default
 
28020
#include <$ac_header>
 
28021
_ACEOF
 
28022
rm -f conftest.$ac_objext
 
28023
if { (ac_try="$ac_compile"
 
28024
case "(($ac_try" in
 
28025
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28026
  *) ac_try_echo=$ac_try;;
 
28027
esac
 
28028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28029
  (eval "$ac_compile") 2>conftest.er1
 
28030
  ac_status=$?
 
28031
  grep -v '^ *+' conftest.er1 >conftest.err
 
28032
  rm -f conftest.er1
 
28033
  cat conftest.err >&5
 
28034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28035
  (exit $ac_status); } && {
 
28036
         test -z "$ac_c_werror_flag" ||
 
28037
         test ! -s conftest.err
 
28038
       } && test -s conftest.$ac_objext; then
 
28039
  ac_header_compiler=yes
 
28040
else
 
28041
  echo "$as_me: failed program was:" >&5
 
28042
sed 's/^/| /' conftest.$ac_ext >&5
 
28043
 
 
28044
        ac_header_compiler=no
 
28045
fi
 
28046
 
 
28047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28048
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
28049
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
28050
 
 
28051
# Is the header present?
 
28052
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
28053
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
28054
cat >conftest.$ac_ext <<_ACEOF
 
28055
/* confdefs.h.  */
 
28056
_ACEOF
 
28057
cat confdefs.h >>conftest.$ac_ext
 
28058
cat >>conftest.$ac_ext <<_ACEOF
 
28059
/* end confdefs.h.  */
 
28060
#include <$ac_header>
 
28061
_ACEOF
 
28062
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
28063
case "(($ac_try" in
 
28064
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28065
  *) ac_try_echo=$ac_try;;
 
28066
esac
 
28067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28068
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
28069
  ac_status=$?
 
28070
  grep -v '^ *+' conftest.er1 >conftest.err
 
28071
  rm -f conftest.er1
 
28072
  cat conftest.err >&5
 
28073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28074
  (exit $ac_status); } >/dev/null && {
 
28075
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
28076
         test ! -s conftest.err
 
28077
       }; then
 
28078
  ac_header_preproc=yes
 
28079
else
 
28080
  echo "$as_me: failed program was:" >&5
 
28081
sed 's/^/| /' conftest.$ac_ext >&5
 
28082
 
 
28083
  ac_header_preproc=no
 
28084
fi
 
28085
 
 
28086
rm -f conftest.err conftest.$ac_ext
 
28087
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
28088
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
28089
 
 
28090
# So?  What about this header?
 
28091
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
28092
  yes:no: )
 
28093
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
28094
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
28095
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
28096
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
28097
    ac_header_preproc=yes
 
28098
    ;;
 
28099
  no:yes:* )
 
28100
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
28101
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
28102
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
28103
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
28104
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
28105
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
28106
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
28107
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
28108
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
28109
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
28110
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
28111
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
28112
    ( cat <<\_ASBOX
 
28113
## --------------------------------------- ##
 
28114
## Report this to opendap-tech@opendap.org ##
 
28115
## --------------------------------------- ##
 
28116
_ASBOX
 
28117
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
28118
    ;;
 
28119
esac
 
28120
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28121
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
28122
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28124
else
 
28125
  eval "$as_ac_Header=\$ac_header_preproc"
 
28126
fi
 
28127
ac_res=`eval echo '${'$as_ac_Header'}'`
 
28128
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
28129
echo "${ECHO_T}$ac_res" >&6; }
 
28130
 
 
28131
fi
 
28132
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
28133
  cat >>confdefs.h <<_ACEOF
 
28134
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
28135
_ACEOF
 
28136
 
 
28137
fi
 
28138
 
 
28139
done
 
28140
 
 
28141
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
28142
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
 
28143
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
28144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28145
else
 
28146
  if test "$cross_compiling" = yes; then
 
28147
  ac_cv_func_malloc_0_nonnull=no
 
28148
else
 
28149
  cat >conftest.$ac_ext <<_ACEOF
 
28150
/* confdefs.h.  */
 
28151
_ACEOF
 
28152
cat confdefs.h >>conftest.$ac_ext
 
28153
cat >>conftest.$ac_ext <<_ACEOF
 
28154
/* end confdefs.h.  */
 
28155
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
28156
# include <stdlib.h>
 
28157
#else
 
28158
char *malloc ();
 
28159
#endif
 
28160
 
 
28161
int
 
28162
main ()
 
28163
{
 
28164
return ! malloc (0);
 
28165
  ;
 
28166
  return 0;
 
28167
}
 
28168
_ACEOF
 
28169
rm -f conftest$ac_exeext
 
28170
if { (ac_try="$ac_link"
 
28171
case "(($ac_try" in
 
28172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28173
  *) ac_try_echo=$ac_try;;
 
28174
esac
 
28175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28176
  (eval "$ac_link") 2>&5
 
28177
  ac_status=$?
 
28178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28179
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28180
  { (case "(($ac_try" in
 
28181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28182
  *) ac_try_echo=$ac_try;;
 
28183
esac
 
28184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28185
  (eval "$ac_try") 2>&5
 
28186
  ac_status=$?
 
28187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28188
  (exit $ac_status); }; }; then
 
28189
  ac_cv_func_malloc_0_nonnull=yes
 
28190
else
 
28191
  echo "$as_me: program exited with status $ac_status" >&5
 
28192
echo "$as_me: failed program was:" >&5
 
28193
sed 's/^/| /' conftest.$ac_ext >&5
 
28194
 
 
28195
( exit $ac_status )
 
28196
ac_cv_func_malloc_0_nonnull=no
 
28197
fi
 
28198
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28199
fi
 
28200
 
 
28201
 
 
28202
fi
 
28203
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
28204
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
 
28205
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
28206
 
 
28207
cat >>confdefs.h <<\_ACEOF
 
28208
#define HAVE_MALLOC 1
 
28209
_ACEOF
 
28210
 
 
28211
else
 
28212
  cat >>confdefs.h <<\_ACEOF
 
28213
#define HAVE_MALLOC 0
 
28214
_ACEOF
 
28215
 
 
28216
   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
 
28217
 
 
28218
cat >>confdefs.h <<\_ACEOF
 
28219
#define malloc rpl_malloc
 
28220
_ACEOF
 
28221
 
 
28222
fi
 
28223
 
 
28224
 
 
28225
 
 
28226
 
 
28227
 
 
28228
  if test $gl_cv_func_malloc_posix = yes; then
 
28229
    HAVE_MALLOC_POSIX=1
 
28230
 
 
28231
cat >>confdefs.h <<\_ACEOF
 
28232
#define HAVE_MALLOC_POSIX 1
 
28233
_ACEOF
 
28234
 
 
28235
  else
 
28236
    gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
 
28237
    HAVE_MALLOC_POSIX=0
 
28238
  fi
 
28239
 
 
28240
 
 
28241
 
 
28242
 
 
28243
  GNULIB_MALLOC_POSIX=1
 
28244
 
 
28245
 
 
28246
 
 
28247
 
 
28248
 
 
28249
 
 
28250
 
 
28251
 
 
28252
 
 
28253
 
 
28254
# Check whether --with-included-regex was given.
 
28255
if test "${with_included_regex+set}" = set; then
 
28256
  withval=$with_included_regex;
 
28257
fi
 
28258
 
 
28259
 
 
28260
  case $with_included_regex in #(
 
28261
  yes|no) ac_use_included_regex=$with_included_regex
 
28262
        ;;
 
28263
  '')
 
28264
    # If the system regex support is good enough that it passes the
 
28265
    # following run test, then default to *not* using the included regex.c.
 
28266
    # If cross compiling, assume the test would fail and use the included
 
28267
    # regex.c.
 
28268
    { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
 
28269
echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
 
28270
if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
 
28271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28272
else
 
28273
  if test "$cross_compiling" = yes; then
 
28274
         gl_cv_func_re_compile_pattern_working=no
 
28275
else
 
28276
  cat >conftest.$ac_ext <<_ACEOF
 
28277
/* confdefs.h.  */
 
28278
_ACEOF
 
28279
cat confdefs.h >>conftest.$ac_ext
 
28280
cat >>conftest.$ac_ext <<_ACEOF
 
28281
/* end confdefs.h.  */
 
28282
$ac_includes_default
 
28283
           #if HAVE_LOCALE_H
 
28284
            #include <locale.h>
 
28285
           #endif
 
28286
           #include <limits.h>
 
28287
           #include <regex.h>
 
28288
 
 
28289
int
 
28290
main ()
 
28291
{
 
28292
static struct re_pattern_buffer regex;
 
28293
            unsigned char folded_chars[UCHAR_MAX + 1];
 
28294
            int i;
 
28295
            const char *s;
 
28296
            struct re_registers regs;
 
28297
 
 
28298
            #if HAVE_LOCALE_H
 
28299
              /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
 
28300
                 This test needs valgrind to catch the bug on Debian
 
28301
                 GNU/Linux 3.1 x86, but it might catch the bug better
 
28302
                 on other platforms and it shouldn't hurt to try the
 
28303
                 test here.  */
 
28304
              if (setlocale (LC_ALL, "en_US.UTF-8"))
 
28305
                {
 
28306
                  static char const pat[] = "insert into";
 
28307
                  static char const data[] =
 
28308
                    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
 
28309
                  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
 
28310
                                 | RE_ICASE);
 
28311
                  memset (&regex, 0, sizeof regex);
 
28312
                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
 
28313
                  if (s)
 
28314
                    return 1;
 
28315
                  if (re_search (&regex, data, sizeof data - 1,
 
28316
                                 0, sizeof data - 1, &regs)
 
28317
                      != -1)
 
28318
                    return 1;
 
28319
                  if (! setlocale (LC_ALL, "C"))
 
28320
                    return 1;
 
28321
                }
 
28322
            #endif
 
28323
 
 
28324
            /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
 
28325
            re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
 
28326
            memset (&regex, 0, sizeof regex);
 
28327
            s = re_compile_pattern ("a[^x]b", 6, &regex);
 
28328
            if (s)
 
28329
              return 1;
 
28330
 
 
28331
            /* This should fail, but succeeds for glibc-2.5.  */
 
28332
            if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
 
28333
              return 1;
 
28334
 
 
28335
            /* This regular expression is from Spencer ere test number 75
 
28336
               in grep-2.3.  */
 
28337
            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
 
28338
            memset (&regex, 0, sizeof regex);
 
28339
            for (i = 0; i <= UCHAR_MAX; i++)
 
28340
              folded_chars[i] = i;
 
28341
            regex.translate = folded_chars;
 
28342
            s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
 
28343
            /* This should fail with _Invalid character class name_ error.  */
 
28344
            if (!s)
 
28345
              return 1;
 
28346
 
 
28347
            /* This should succeed, but does not for glibc-2.1.3.  */
 
28348
            memset (&regex, 0, sizeof regex);
 
28349
            s = re_compile_pattern ("{1", 2, &regex);
 
28350
 
 
28351
            if (s)
 
28352
              return 1;
 
28353
 
 
28354
            /* The following example is derived from a problem report
 
28355
               against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
 
28356
            memset (&regex, 0, sizeof regex);
 
28357
            s = re_compile_pattern ("[an\371]*n", 7, &regex);
 
28358
            if (s)
 
28359
              return 1;
 
28360
 
 
28361
            /* This should match, but does not for glibc-2.2.1.  */
 
28362
            if (re_match (&regex, "an", 2, 0, &regs) != 2)
 
28363
              return 1;
 
28364
 
 
28365
            memset (&regex, 0, sizeof regex);
 
28366
            s = re_compile_pattern ("x", 1, &regex);
 
28367
            if (s)
 
28368
              return 1;
 
28369
 
 
28370
            /* glibc-2.2.93 does not work with a negative RANGE argument.  */
 
28371
            if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
 
28372
              return 1;
 
28373
 
 
28374
            /* The version of regex.c in older versions of gnulib
 
28375
               ignored RE_ICASE.  Detect that problem too.  */
 
28376
            re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
 
28377
            memset (&regex, 0, sizeof regex);
 
28378
            s = re_compile_pattern ("x", 1, &regex);
 
28379
            if (s)
 
28380
              return 1;
 
28381
 
 
28382
            if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
 
28383
              return 1;
 
28384
 
 
28385
            /* Catch a bug reported by Vin Shelton in
 
28386
               http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
 
28387
               */
 
28388
            re_set_syntax (RE_SYNTAX_POSIX_BASIC
 
28389
                           & ~RE_CONTEXT_INVALID_DUP
 
28390
                           & ~RE_NO_EMPTY_RANGES);
 
28391
            memset (&regex, 0, sizeof regex);
 
28392
            s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
 
28393
            if (s)
 
28394
              return 1;
 
28395
 
 
28396
            /* REG_STARTEND was added to glibc on 2004-01-15.
 
28397
               Reject older versions.  */
 
28398
            if (! REG_STARTEND)
 
28399
              return 1;
 
28400
 
 
28401
            /* Reject hosts whose regoff_t values are too narrow.
 
28402
               These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
 
28403
               and 32-bit int.  */
 
28404
            if (sizeof (regoff_t) < sizeof (ptrdiff_t)
 
28405
                || sizeof (regoff_t) < sizeof (ssize_t))
 
28406
              return 1;
 
28407
 
 
28408
            return 0;
 
28409
  ;
 
28410
  return 0;
 
28411
}
 
28412
_ACEOF
 
28413
rm -f conftest$ac_exeext
 
28414
if { (ac_try="$ac_link"
 
28415
case "(($ac_try" in
 
28416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28417
  *) ac_try_echo=$ac_try;;
 
28418
esac
 
28419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28420
  (eval "$ac_link") 2>&5
 
28421
  ac_status=$?
 
28422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28423
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28424
  { (case "(($ac_try" in
 
28425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28426
  *) ac_try_echo=$ac_try;;
 
28427
esac
 
28428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28429
  (eval "$ac_try") 2>&5
 
28430
  ac_status=$?
 
28431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28432
  (exit $ac_status); }; }; then
 
28433
  gl_cv_func_re_compile_pattern_working=yes
 
28434
else
 
28435
  echo "$as_me: program exited with status $ac_status" >&5
 
28436
echo "$as_me: failed program was:" >&5
 
28437
sed 's/^/| /' conftest.$ac_ext >&5
 
28438
 
 
28439
( exit $ac_status )
 
28440
gl_cv_func_re_compile_pattern_working=no
 
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
 
 
28445
 
 
28446
fi
 
28447
{ echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
 
28448
echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
 
28449
    case $gl_cv_func_re_compile_pattern_working in #(
 
28450
    yes) ac_use_included_regex=no;; #(
 
28451
    no) ac_use_included_regex=yes;;
 
28452
    esac
 
28453
    ;;
 
28454
  *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
 
28455
echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
 
28456
   { (exit 1); exit 1; }; }
 
28457
    ;;
 
28458
  esac
 
28459
 
 
28460
  if test $ac_use_included_regex = yes; then
 
28461
 
 
28462
cat >>confdefs.h <<\_ACEOF
 
28463
#define _REGEX_LARGE_OFFSETS 1
 
28464
_ACEOF
 
28465
 
 
28466
 
 
28467
cat >>confdefs.h <<\_ACEOF
 
28468
#define re_syntax_options rpl_re_syntax_options
 
28469
_ACEOF
 
28470
 
 
28471
 
 
28472
cat >>confdefs.h <<\_ACEOF
 
28473
#define re_set_syntax rpl_re_set_syntax
 
28474
_ACEOF
 
28475
 
 
28476
 
 
28477
cat >>confdefs.h <<\_ACEOF
 
28478
#define re_compile_pattern rpl_re_compile_pattern
 
28479
_ACEOF
 
28480
 
 
28481
 
 
28482
cat >>confdefs.h <<\_ACEOF
 
28483
#define re_compile_fastmap rpl_re_compile_fastmap
 
28484
_ACEOF
 
28485
 
 
28486
 
 
28487
cat >>confdefs.h <<\_ACEOF
 
28488
#define re_search rpl_re_search
 
28489
_ACEOF
 
28490
 
 
28491
 
 
28492
cat >>confdefs.h <<\_ACEOF
 
28493
#define re_search_2 rpl_re_search_2
 
28494
_ACEOF
 
28495
 
 
28496
 
 
28497
cat >>confdefs.h <<\_ACEOF
 
28498
#define re_match rpl_re_match
 
28499
_ACEOF
 
28500
 
 
28501
 
 
28502
cat >>confdefs.h <<\_ACEOF
 
28503
#define re_match_2 rpl_re_match_2
 
28504
_ACEOF
 
28505
 
 
28506
 
 
28507
cat >>confdefs.h <<\_ACEOF
 
28508
#define re_set_registers rpl_re_set_registers
 
28509
_ACEOF
 
28510
 
 
28511
 
 
28512
cat >>confdefs.h <<\_ACEOF
 
28513
#define re_comp rpl_re_comp
 
28514
_ACEOF
 
28515
 
 
28516
 
 
28517
cat >>confdefs.h <<\_ACEOF
 
28518
#define re_exec rpl_re_exec
 
28519
_ACEOF
 
28520
 
 
28521
 
 
28522
cat >>confdefs.h <<\_ACEOF
 
28523
#define regcomp rpl_regcomp
 
28524
_ACEOF
 
28525
 
 
28526
 
 
28527
cat >>confdefs.h <<\_ACEOF
 
28528
#define regexec rpl_regexec
 
28529
_ACEOF
 
28530
 
 
28531
 
 
28532
cat >>confdefs.h <<\_ACEOF
 
28533
#define regerror rpl_regerror
 
28534
_ACEOF
 
28535
 
 
28536
 
 
28537
cat >>confdefs.h <<\_ACEOF
 
28538
#define regfree rpl_regfree
 
28539
_ACEOF
 
28540
 
 
28541
    gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
 
28542
 
 
28543
 
 
28544
 
 
28545
 
 
28546
 
 
28547
 
 
28548
 
 
28549
 
 
28550
 
 
28551
 
 
28552
 
 
28553
 
 
28554
 
 
28555
 
 
28556
 
 
28557
 
 
28558
 
 
28559
  { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
 
28560
echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
 
28561
if test "${ac_cv_have_decl_isblank+set}" = set; then
 
28562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28563
else
 
28564
  cat >conftest.$ac_ext <<_ACEOF
 
28565
/* confdefs.h.  */
 
28566
_ACEOF
 
28567
cat confdefs.h >>conftest.$ac_ext
 
28568
cat >>conftest.$ac_ext <<_ACEOF
 
28569
/* end confdefs.h.  */
 
28570
#include <ctype.h>
 
28571
 
 
28572
int
 
28573
main ()
 
28574
{
 
28575
#ifndef isblank
 
28576
  (void) isblank;
 
28577
#endif
 
28578
 
 
28579
  ;
 
28580
  return 0;
 
28581
}
 
28582
_ACEOF
 
28583
rm -f conftest.$ac_objext
 
28584
if { (ac_try="$ac_compile"
 
28585
case "(($ac_try" in
 
28586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28587
  *) ac_try_echo=$ac_try;;
 
28588
esac
 
28589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28590
  (eval "$ac_compile") 2>conftest.er1
 
28591
  ac_status=$?
 
28592
  grep -v '^ *+' conftest.er1 >conftest.err
 
28593
  rm -f conftest.er1
 
28594
  cat conftest.err >&5
 
28595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28596
  (exit $ac_status); } && {
 
28597
         test -z "$ac_c_werror_flag" ||
 
28598
         test ! -s conftest.err
 
28599
       } && test -s conftest.$ac_objext; then
 
28600
  ac_cv_have_decl_isblank=yes
 
28601
else
 
28602
  echo "$as_me: failed program was:" >&5
 
28603
sed 's/^/| /' conftest.$ac_ext >&5
 
28604
 
 
28605
        ac_cv_have_decl_isblank=no
 
28606
fi
 
28607
 
 
28608
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28609
fi
 
28610
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
 
28611
echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
 
28612
if test $ac_cv_have_decl_isblank = yes; then
 
28613
 
 
28614
cat >>confdefs.h <<_ACEOF
 
28615
#define HAVE_DECL_ISBLANK 1
 
28616
_ACEOF
 
28617
 
 
28618
 
 
28619
else
 
28620
  cat >>confdefs.h <<_ACEOF
 
28621
#define HAVE_DECL_ISBLANK 0
 
28622
_ACEOF
 
28623
 
 
28624
 
 
28625
fi
 
28626
 
 
28627
 
 
28628
 
 
28629
  fi
 
28630
 
 
28631
 
 
28632
  { echo "$as_me:$LINENO: checking for ssize_t" >&5
 
28633
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
 
28634
if test "${gt_cv_ssize_t+set}" = set; then
 
28635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28636
else
 
28637
  cat >conftest.$ac_ext <<_ACEOF
 
28638
/* confdefs.h.  */
 
28639
_ACEOF
 
28640
cat confdefs.h >>conftest.$ac_ext
 
28641
cat >>conftest.$ac_ext <<_ACEOF
 
28642
/* end confdefs.h.  */
 
28643
#include <sys/types.h>
 
28644
int
 
28645
main ()
 
28646
{
 
28647
int x = sizeof (ssize_t *) + sizeof (ssize_t);
 
28648
        return !x;
 
28649
  ;
 
28650
  return 0;
 
28651
}
 
28652
_ACEOF
 
28653
rm -f conftest.$ac_objext
 
28654
if { (ac_try="$ac_compile"
 
28655
case "(($ac_try" in
 
28656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28657
  *) ac_try_echo=$ac_try;;
 
28658
esac
 
28659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28660
  (eval "$ac_compile") 2>conftest.er1
 
28661
  ac_status=$?
 
28662
  grep -v '^ *+' conftest.er1 >conftest.err
 
28663
  rm -f conftest.er1
 
28664
  cat conftest.err >&5
 
28665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28666
  (exit $ac_status); } && {
 
28667
         test -z "$ac_c_werror_flag" ||
 
28668
         test ! -s conftest.err
 
28669
       } && test -s conftest.$ac_objext; then
 
28670
  gt_cv_ssize_t=yes
 
28671
else
 
28672
  echo "$as_me: failed program was:" >&5
 
28673
sed 's/^/| /' conftest.$ac_ext >&5
 
28674
 
 
28675
        gt_cv_ssize_t=no
 
28676
fi
 
28677
 
 
28678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28679
fi
 
28680
{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
 
28681
echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
 
28682
  if test $gt_cv_ssize_t = no; then
 
28683
 
 
28684
cat >>confdefs.h <<\_ACEOF
 
28685
#define ssize_t int
 
28686
_ACEOF
 
28687
 
 
28688
  fi
 
28689
 
 
28690
 
 
28691
 
 
28692
 
 
28693
  # Define two additional variables used in the Makefile substitution.
 
28694
 
 
28695
  if test "$ac_cv_header_stdbool_h" = yes; then
 
28696
    STDBOOL_H=''
 
28697
  else
 
28698
    STDBOOL_H='stdbool.h'
 
28699
  fi
 
28700
 
 
28701
 
 
28702
  if test "$ac_cv_type__Bool" = yes; then
 
28703
    HAVE__BOOL=1
 
28704
  else
 
28705
    HAVE__BOOL=0
 
28706
  fi
 
28707
 
 
28708
 
 
28709
 
 
28710
 
 
28711
 
 
28712
  if test $ac_cv_type_long_long_int = yes; then
 
28713
    HAVE_LONG_LONG_INT=1
 
28714
  else
 
28715
    HAVE_LONG_LONG_INT=0
 
28716
  fi
 
28717
 
 
28718
 
 
28719
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
28720
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
28721
  else
 
28722
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
28723
  fi
 
28724
 
 
28725
 
 
28726
      if test $ac_cv_header_inttypes_h = yes; then
 
28727
    HAVE_INTTYPES_H=1
 
28728
  else
 
28729
    HAVE_INTTYPES_H=0
 
28730
  fi
 
28731
 
 
28732
 
 
28733
      if test $ac_cv_header_sys_types_h = yes; then
 
28734
    HAVE_SYS_TYPES_H=1
 
28735
  else
 
28736
    HAVE_SYS_TYPES_H=0
 
28737
  fi
 
28738
 
 
28739
 
 
28740
 
 
28741
 
 
28742
 
 
28743
 
 
28744
 
 
28745
 
 
28746
 
 
28747
 
 
28748
 
 
28749
 
 
28750
     if test $gl_cv_have_include_next = yes; then
 
28751
       gl_cv_next_stdint_h='<'stdint.h'>'
 
28752
     else
 
28753
       { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
 
28754
echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
 
28755
if test "${gl_cv_next_stdint_h+set}" = set; then
 
28756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28757
else
 
28758
 
 
28759
          if test $ac_cv_header_stdint_h = yes; then
 
28760
            cat >conftest.$ac_ext <<_ACEOF
 
28761
/* confdefs.h.  */
 
28762
_ACEOF
 
28763
cat confdefs.h >>conftest.$ac_ext
 
28764
cat >>conftest.$ac_ext <<_ACEOF
 
28765
/* end confdefs.h.  */
 
28766
#include <stdint.h>
 
28767
 
 
28768
_ACEOF
 
28769
                                    gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
28770
               sed -n '\#/stdint.h#{
 
28771
                 s#.*"\(.*/stdint.h\)".*#\1#
 
28772
                 s#^/[^/]#//&#
 
28773
                 p
 
28774
                 q
 
28775
               }'`'"'
 
28776
          else
 
28777
            gl_cv_next_stdint_h='<'stdint.h'>'
 
28778
          fi
 
28779
 
 
28780
fi
 
28781
{ echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
 
28782
echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
 
28783
     fi
 
28784
     NEXT_STDINT_H=$gl_cv_next_stdint_h
 
28785
 
 
28786
 
 
28787
 
 
28788
  if test $ac_cv_header_stdint_h = yes; then
 
28789
    HAVE_STDINT_H=1
 
28790
  else
 
28791
    HAVE_STDINT_H=0
 
28792
  fi
 
28793
 
 
28794
 
 
28795
    if test $ac_cv_header_stdint_h = yes; then
 
28796
    { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
 
28797
echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
 
28798
if test "${gl_cv_header_working_stdint_h+set}" = set; then
 
28799
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28800
else
 
28801
  gl_cv_header_working_stdint_h=no
 
28802
       cat >conftest.$ac_ext <<_ACEOF
 
28803
 
 
28804
         /* confdefs.h.  */
 
28805
_ACEOF
 
28806
cat confdefs.h >>conftest.$ac_ext
 
28807
cat >>conftest.$ac_ext <<_ACEOF
 
28808
/* end confdefs.h.  */
 
28809
 
 
28810
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
28811
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
28812
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
28813
#include <stdint.h>
 
28814
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
 
28815
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
 
28816
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
 
28817
#endif
 
28818
 
 
28819
 
 
28820
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
28821
     included before <wchar.h>.  */
 
28822
  #include <stddef.h>
 
28823
  #include <signal.h>
 
28824
  #if HAVE_WCHAR_H
 
28825
  # include <stdio.h>
 
28826
  # include <time.h>
 
28827
  # include <wchar.h>
 
28828
  #endif
 
28829
 
 
28830
 
 
28831
#ifdef INT8_MAX
 
28832
int8_t a1 = INT8_MAX;
 
28833
int8_t a1min = INT8_MIN;
 
28834
#endif
 
28835
#ifdef INT16_MAX
 
28836
int16_t a2 = INT16_MAX;
 
28837
int16_t a2min = INT16_MIN;
 
28838
#endif
 
28839
#ifdef INT32_MAX
 
28840
int32_t a3 = INT32_MAX;
 
28841
int32_t a3min = INT32_MIN;
 
28842
#endif
 
28843
#ifdef INT64_MAX
 
28844
int64_t a4 = INT64_MAX;
 
28845
int64_t a4min = INT64_MIN;
 
28846
#endif
 
28847
#ifdef UINT8_MAX
 
28848
uint8_t b1 = UINT8_MAX;
 
28849
#else
 
28850
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
28851
#endif
 
28852
#ifdef UINT16_MAX
 
28853
uint16_t b2 = UINT16_MAX;
 
28854
#endif
 
28855
#ifdef UINT32_MAX
 
28856
uint32_t b3 = UINT32_MAX;
 
28857
#endif
 
28858
#ifdef UINT64_MAX
 
28859
uint64_t b4 = UINT64_MAX;
 
28860
#endif
 
28861
int_least8_t c1 = INT8_C (0x7f);
 
28862
int_least8_t c1max = INT_LEAST8_MAX;
 
28863
int_least8_t c1min = INT_LEAST8_MIN;
 
28864
int_least16_t c2 = INT16_C (0x7fff);
 
28865
int_least16_t c2max = INT_LEAST16_MAX;
 
28866
int_least16_t c2min = INT_LEAST16_MIN;
 
28867
int_least32_t c3 = INT32_C (0x7fffffff);
 
28868
int_least32_t c3max = INT_LEAST32_MAX;
 
28869
int_least32_t c3min = INT_LEAST32_MIN;
 
28870
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
28871
int_least64_t c4max = INT_LEAST64_MAX;
 
28872
int_least64_t c4min = INT_LEAST64_MIN;
 
28873
uint_least8_t d1 = UINT8_C (0xff);
 
28874
uint_least8_t d1max = UINT_LEAST8_MAX;
 
28875
uint_least16_t d2 = UINT16_C (0xffff);
 
28876
uint_least16_t d2max = UINT_LEAST16_MAX;
 
28877
uint_least32_t d3 = UINT32_C (0xffffffff);
 
28878
uint_least32_t d3max = UINT_LEAST32_MAX;
 
28879
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
28880
uint_least64_t d4max = UINT_LEAST64_MAX;
 
28881
int_fast8_t e1 = INT_FAST8_MAX;
 
28882
int_fast8_t e1min = INT_FAST8_MIN;
 
28883
int_fast16_t e2 = INT_FAST16_MAX;
 
28884
int_fast16_t e2min = INT_FAST16_MIN;
 
28885
int_fast32_t e3 = INT_FAST32_MAX;
 
28886
int_fast32_t e3min = INT_FAST32_MIN;
 
28887
int_fast64_t e4 = INT_FAST64_MAX;
 
28888
int_fast64_t e4min = INT_FAST64_MIN;
 
28889
uint_fast8_t f1 = UINT_FAST8_MAX;
 
28890
uint_fast16_t f2 = UINT_FAST16_MAX;
 
28891
uint_fast32_t f3 = UINT_FAST32_MAX;
 
28892
uint_fast64_t f4 = UINT_FAST64_MAX;
 
28893
#ifdef INTPTR_MAX
 
28894
intptr_t g = INTPTR_MAX;
 
28895
intptr_t gmin = INTPTR_MIN;
 
28896
#endif
 
28897
#ifdef UINTPTR_MAX
 
28898
uintptr_t h = UINTPTR_MAX;
 
28899
#endif
 
28900
intmax_t i = INTMAX_MAX;
 
28901
uintmax_t j = UINTMAX_MAX;
 
28902
 
 
28903
#include <limits.h> /* for CHAR_BIT */
 
28904
#define TYPE_MINIMUM(t) \
 
28905
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
 
28906
#define TYPE_MAXIMUM(t) \
 
28907
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
 
28908
struct s {
 
28909
  int check_PTRDIFF:
 
28910
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
 
28911
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
 
28912
      ? 1 : -1;
 
28913
  /* Detect bug in FreeBSD 6.0 / ia64.  */
 
28914
  int check_SIG_ATOMIC:
 
28915
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
 
28916
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
 
28917
      ? 1 : -1;
 
28918
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
 
28919
  int check_WCHAR:
 
28920
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
 
28921
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
 
28922
      ? 1 : -1;
 
28923
  /* Detect bug in mingw.  */
 
28924
  int check_WINT:
 
28925
      WINT_MIN == TYPE_MINIMUM (wint_t)
 
28926
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
 
28927
      ? 1 : -1;
 
28928
 
 
28929
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
28930
  int check_UINT8_C:
 
28931
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
28932
  int check_UINT16_C:
 
28933
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
28934
 
 
28935
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
28936
#ifdef UINT8_MAX
 
28937
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
28938
#endif
 
28939
#ifdef UINT16_MAX
 
28940
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
28941
#endif
 
28942
#ifdef UINT32_MAX
 
28943
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
28944
#endif
 
28945
#ifdef UINT64_MAX
 
28946
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
28947
#endif
 
28948
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
28949
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
28950
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
28951
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
28952
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
28953
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
28954
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
28955
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
28956
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
28957
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
28958
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
28959
};
 
28960
 
 
28961
int
 
28962
main ()
 
28963
{
 
28964
 
 
28965
  ;
 
28966
  return 0;
 
28967
}
 
28968
_ACEOF
 
28969
rm -f conftest.$ac_objext
 
28970
if { (ac_try="$ac_compile"
 
28971
case "(($ac_try" in
 
28972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28973
  *) ac_try_echo=$ac_try;;
 
28974
esac
 
28975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28976
  (eval "$ac_compile") 2>conftest.er1
 
28977
  ac_status=$?
 
28978
  grep -v '^ *+' conftest.er1 >conftest.err
 
28979
  rm -f conftest.er1
 
28980
  cat conftest.err >&5
 
28981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28982
  (exit $ac_status); } && {
 
28983
         test -z "$ac_c_werror_flag" ||
 
28984
         test ! -s conftest.err
 
28985
       } && test -s conftest.$ac_objext; then
 
28986
  gl_cv_header_working_stdint_h=yes
 
28987
else
 
28988
  echo "$as_me: failed program was:" >&5
 
28989
sed 's/^/| /' conftest.$ac_ext >&5
 
28990
 
 
28991
 
 
28992
fi
 
28993
 
 
28994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28995
fi
 
28996
{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
 
28997
echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
 
28998
  fi
 
28999
  if test "$gl_cv_header_working_stdint_h" = yes; then
 
29000
    STDINT_H=
 
29001
  else
 
29002
 
 
29003
 
 
29004
for ac_header in sys/inttypes.h sys/bitypes.h
 
29005
do
 
29006
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
29007
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29008
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29009
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
29010
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29012
fi
 
29013
ac_res=`eval echo '${'$as_ac_Header'}'`
 
29014
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
29015
echo "${ECHO_T}$ac_res" >&6; }
 
29016
else
 
29017
  # Is the header compilable?
 
29018
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
29019
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
29020
cat >conftest.$ac_ext <<_ACEOF
 
29021
/* confdefs.h.  */
 
29022
_ACEOF
 
29023
cat confdefs.h >>conftest.$ac_ext
 
29024
cat >>conftest.$ac_ext <<_ACEOF
 
29025
/* end confdefs.h.  */
 
29026
$ac_includes_default
 
29027
#include <$ac_header>
 
29028
_ACEOF
 
29029
rm -f conftest.$ac_objext
 
29030
if { (ac_try="$ac_compile"
 
29031
case "(($ac_try" in
 
29032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29033
  *) ac_try_echo=$ac_try;;
 
29034
esac
 
29035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29036
  (eval "$ac_compile") 2>conftest.er1
 
29037
  ac_status=$?
 
29038
  grep -v '^ *+' conftest.er1 >conftest.err
 
29039
  rm -f conftest.er1
 
29040
  cat conftest.err >&5
 
29041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29042
  (exit $ac_status); } && {
 
29043
         test -z "$ac_c_werror_flag" ||
 
29044
         test ! -s conftest.err
 
29045
       } && test -s conftest.$ac_objext; then
 
29046
  ac_header_compiler=yes
 
29047
else
 
29048
  echo "$as_me: failed program was:" >&5
 
29049
sed 's/^/| /' conftest.$ac_ext >&5
 
29050
 
 
29051
        ac_header_compiler=no
 
29052
fi
 
29053
 
 
29054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29055
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
29056
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
29057
 
 
29058
# Is the header present?
 
29059
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
29060
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
29061
cat >conftest.$ac_ext <<_ACEOF
 
29062
/* confdefs.h.  */
 
29063
_ACEOF
 
29064
cat confdefs.h >>conftest.$ac_ext
 
29065
cat >>conftest.$ac_ext <<_ACEOF
 
29066
/* end confdefs.h.  */
 
29067
#include <$ac_header>
 
29068
_ACEOF
 
29069
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
29070
case "(($ac_try" in
 
29071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29072
  *) ac_try_echo=$ac_try;;
 
29073
esac
 
29074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29075
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
29076
  ac_status=$?
 
29077
  grep -v '^ *+' conftest.er1 >conftest.err
 
29078
  rm -f conftest.er1
 
29079
  cat conftest.err >&5
 
29080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29081
  (exit $ac_status); } >/dev/null && {
 
29082
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
29083
         test ! -s conftest.err
 
29084
       }; then
 
29085
  ac_header_preproc=yes
 
29086
else
 
29087
  echo "$as_me: failed program was:" >&5
 
29088
sed 's/^/| /' conftest.$ac_ext >&5
 
29089
 
 
29090
  ac_header_preproc=no
 
29091
fi
 
29092
 
 
29093
rm -f conftest.err conftest.$ac_ext
 
29094
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
29095
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
29096
 
 
29097
# So?  What about this header?
 
29098
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
29099
  yes:no: )
 
29100
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
29101
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
29102
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
29103
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
29104
    ac_header_preproc=yes
 
29105
    ;;
 
29106
  no:yes:* )
 
29107
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
29108
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
29109
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
29110
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
29111
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
29112
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
29113
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
29114
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
29115
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
29116
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
29117
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
29118
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
29119
    ( cat <<\_ASBOX
 
29120
## --------------------------------------- ##
 
29121
## Report this to opendap-tech@opendap.org ##
 
29122
## --------------------------------------- ##
 
29123
_ASBOX
 
29124
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
29125
    ;;
 
29126
esac
 
29127
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29128
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
29129
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29130
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29131
else
 
29132
  eval "$as_ac_Header=\$ac_header_preproc"
 
29133
fi
 
29134
ac_res=`eval echo '${'$as_ac_Header'}'`
 
29135
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
29136
echo "${ECHO_T}$ac_res" >&6; }
 
29137
 
 
29138
fi
 
29139
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
29140
  cat >>confdefs.h <<_ACEOF
 
29141
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
29142
_ACEOF
 
29143
 
 
29144
fi
 
29145
 
 
29146
done
 
29147
 
 
29148
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
29149
      HAVE_SYS_INTTYPES_H=1
 
29150
    else
 
29151
      HAVE_SYS_INTTYPES_H=0
 
29152
    fi
 
29153
 
 
29154
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
29155
      HAVE_SYS_BITYPES_H=1
 
29156
    else
 
29157
      HAVE_SYS_BITYPES_H=0
 
29158
    fi
 
29159
 
 
29160
 
 
29161
 
 
29162
 
 
29163
 
 
29164
 
 
29165
 
 
29166
 
 
29167
 
 
29168
 
 
29169
 
 
29170
 
 
29171
 
 
29172
 
 
29173
 
 
29174
 
 
29175
 
 
29176
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
 
29177
    { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
 
29178
echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
 
29179
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
 
29180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29181
else
 
29182
  if test "$cross_compiling" = yes; then
 
29183
  # Depending upon the size, compute the lo and hi bounds.
 
29184
cat >conftest.$ac_ext <<_ACEOF
 
29185
/* confdefs.h.  */
 
29186
_ACEOF
 
29187
cat confdefs.h >>conftest.$ac_ext
 
29188
cat >>conftest.$ac_ext <<_ACEOF
 
29189
/* end confdefs.h.  */
 
29190
 
 
29191
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29192
     included before <wchar.h>.  */
 
29193
  #include <stddef.h>
 
29194
  #include <signal.h>
 
29195
  #if HAVE_WCHAR_H
 
29196
  # include <stdio.h>
 
29197
  # include <time.h>
 
29198
  # include <wchar.h>
 
29199
  #endif
 
29200
 
 
29201
#include <limits.h>
 
29202
int
 
29203
main ()
 
29204
{
 
29205
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
 
29206
test_array [0] = 0
 
29207
 
 
29208
  ;
 
29209
  return 0;
 
29210
}
 
29211
_ACEOF
 
29212
rm -f conftest.$ac_objext
 
29213
if { (ac_try="$ac_compile"
 
29214
case "(($ac_try" in
 
29215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29216
  *) ac_try_echo=$ac_try;;
 
29217
esac
 
29218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29219
  (eval "$ac_compile") 2>conftest.er1
 
29220
  ac_status=$?
 
29221
  grep -v '^ *+' conftest.er1 >conftest.err
 
29222
  rm -f conftest.er1
 
29223
  cat conftest.err >&5
 
29224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29225
  (exit $ac_status); } && {
 
29226
         test -z "$ac_c_werror_flag" ||
 
29227
         test ! -s conftest.err
 
29228
       } && test -s conftest.$ac_objext; then
 
29229
  ac_lo=0 ac_mid=0
 
29230
  while :; do
 
29231
    cat >conftest.$ac_ext <<_ACEOF
 
29232
/* confdefs.h.  */
 
29233
_ACEOF
 
29234
cat confdefs.h >>conftest.$ac_ext
 
29235
cat >>conftest.$ac_ext <<_ACEOF
 
29236
/* end confdefs.h.  */
 
29237
 
 
29238
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29239
     included before <wchar.h>.  */
 
29240
  #include <stddef.h>
 
29241
  #include <signal.h>
 
29242
  #if HAVE_WCHAR_H
 
29243
  # include <stdio.h>
 
29244
  # include <time.h>
 
29245
  # include <wchar.h>
 
29246
  #endif
 
29247
 
 
29248
#include <limits.h>
 
29249
int
 
29250
main ()
 
29251
{
 
29252
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
29253
test_array [0] = 0
 
29254
 
 
29255
  ;
 
29256
  return 0;
 
29257
}
 
29258
_ACEOF
 
29259
rm -f conftest.$ac_objext
 
29260
if { (ac_try="$ac_compile"
 
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_compile") 2>conftest.er1
 
29267
  ac_status=$?
 
29268
  grep -v '^ *+' conftest.er1 >conftest.err
 
29269
  rm -f conftest.er1
 
29270
  cat conftest.err >&5
 
29271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29272
  (exit $ac_status); } && {
 
29273
         test -z "$ac_c_werror_flag" ||
 
29274
         test ! -s conftest.err
 
29275
       } && test -s conftest.$ac_objext; then
 
29276
  ac_hi=$ac_mid; break
 
29277
else
 
29278
  echo "$as_me: failed program was:" >&5
 
29279
sed 's/^/| /' conftest.$ac_ext >&5
 
29280
 
 
29281
        ac_lo=`expr $ac_mid + 1`
 
29282
                        if test $ac_lo -le $ac_mid; then
 
29283
                          ac_lo= ac_hi=
 
29284
                          break
 
29285
                        fi
 
29286
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
29287
fi
 
29288
 
 
29289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29290
  done
 
29291
else
 
29292
  echo "$as_me: failed program was:" >&5
 
29293
sed 's/^/| /' conftest.$ac_ext >&5
 
29294
 
 
29295
        cat >conftest.$ac_ext <<_ACEOF
 
29296
/* confdefs.h.  */
 
29297
_ACEOF
 
29298
cat confdefs.h >>conftest.$ac_ext
 
29299
cat >>conftest.$ac_ext <<_ACEOF
 
29300
/* end confdefs.h.  */
 
29301
 
 
29302
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29303
     included before <wchar.h>.  */
 
29304
  #include <stddef.h>
 
29305
  #include <signal.h>
 
29306
  #if HAVE_WCHAR_H
 
29307
  # include <stdio.h>
 
29308
  # include <time.h>
 
29309
  # include <wchar.h>
 
29310
  #endif
 
29311
 
 
29312
#include <limits.h>
 
29313
int
 
29314
main ()
 
29315
{
 
29316
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
 
29317
test_array [0] = 0
 
29318
 
 
29319
  ;
 
29320
  return 0;
 
29321
}
 
29322
_ACEOF
 
29323
rm -f conftest.$ac_objext
 
29324
if { (ac_try="$ac_compile"
 
29325
case "(($ac_try" in
 
29326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29327
  *) ac_try_echo=$ac_try;;
 
29328
esac
 
29329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29330
  (eval "$ac_compile") 2>conftest.er1
 
29331
  ac_status=$?
 
29332
  grep -v '^ *+' conftest.er1 >conftest.err
 
29333
  rm -f conftest.er1
 
29334
  cat conftest.err >&5
 
29335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29336
  (exit $ac_status); } && {
 
29337
         test -z "$ac_c_werror_flag" ||
 
29338
         test ! -s conftest.err
 
29339
       } && test -s conftest.$ac_objext; then
 
29340
  ac_hi=-1 ac_mid=-1
 
29341
  while :; do
 
29342
    cat >conftest.$ac_ext <<_ACEOF
 
29343
/* confdefs.h.  */
 
29344
_ACEOF
 
29345
cat confdefs.h >>conftest.$ac_ext
 
29346
cat >>conftest.$ac_ext <<_ACEOF
 
29347
/* end confdefs.h.  */
 
29348
 
 
29349
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29350
     included before <wchar.h>.  */
 
29351
  #include <stddef.h>
 
29352
  #include <signal.h>
 
29353
  #if HAVE_WCHAR_H
 
29354
  # include <stdio.h>
 
29355
  # include <time.h>
 
29356
  # include <wchar.h>
 
29357
  #endif
 
29358
 
 
29359
#include <limits.h>
 
29360
int
 
29361
main ()
 
29362
{
 
29363
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
 
29364
test_array [0] = 0
 
29365
 
 
29366
  ;
 
29367
  return 0;
 
29368
}
 
29369
_ACEOF
 
29370
rm -f conftest.$ac_objext
 
29371
if { (ac_try="$ac_compile"
 
29372
case "(($ac_try" in
 
29373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29374
  *) ac_try_echo=$ac_try;;
 
29375
esac
 
29376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29377
  (eval "$ac_compile") 2>conftest.er1
 
29378
  ac_status=$?
 
29379
  grep -v '^ *+' conftest.er1 >conftest.err
 
29380
  rm -f conftest.er1
 
29381
  cat conftest.err >&5
 
29382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29383
  (exit $ac_status); } && {
 
29384
         test -z "$ac_c_werror_flag" ||
 
29385
         test ! -s conftest.err
 
29386
       } && test -s conftest.$ac_objext; then
 
29387
  ac_lo=$ac_mid; break
 
29388
else
 
29389
  echo "$as_me: failed program was:" >&5
 
29390
sed 's/^/| /' conftest.$ac_ext >&5
 
29391
 
 
29392
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
29393
                        if test $ac_mid -le $ac_hi; then
 
29394
                          ac_lo= ac_hi=
 
29395
                          break
 
29396
                        fi
 
29397
                        ac_mid=`expr 2 '*' $ac_mid`
 
29398
fi
 
29399
 
 
29400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29401
  done
 
29402
else
 
29403
  echo "$as_me: failed program was:" >&5
 
29404
sed 's/^/| /' conftest.$ac_ext >&5
 
29405
 
 
29406
        ac_lo= ac_hi=
 
29407
fi
 
29408
 
 
29409
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29410
fi
 
29411
 
 
29412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29413
# Binary search between lo and hi bounds.
 
29414
while test "x$ac_lo" != "x$ac_hi"; do
 
29415
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
29416
  cat >conftest.$ac_ext <<_ACEOF
 
29417
/* confdefs.h.  */
 
29418
_ACEOF
 
29419
cat confdefs.h >>conftest.$ac_ext
 
29420
cat >>conftest.$ac_ext <<_ACEOF
 
29421
/* end confdefs.h.  */
 
29422
 
 
29423
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29424
     included before <wchar.h>.  */
 
29425
  #include <stddef.h>
 
29426
  #include <signal.h>
 
29427
  #if HAVE_WCHAR_H
 
29428
  # include <stdio.h>
 
29429
  # include <time.h>
 
29430
  # include <wchar.h>
 
29431
  #endif
 
29432
 
 
29433
#include <limits.h>
 
29434
int
 
29435
main ()
 
29436
{
 
29437
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
29438
test_array [0] = 0
 
29439
 
 
29440
  ;
 
29441
  return 0;
 
29442
}
 
29443
_ACEOF
 
29444
rm -f conftest.$ac_objext
 
29445
if { (ac_try="$ac_compile"
 
29446
case "(($ac_try" in
 
29447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29448
  *) ac_try_echo=$ac_try;;
 
29449
esac
 
29450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29451
  (eval "$ac_compile") 2>conftest.er1
 
29452
  ac_status=$?
 
29453
  grep -v '^ *+' conftest.er1 >conftest.err
 
29454
  rm -f conftest.er1
 
29455
  cat conftest.err >&5
 
29456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29457
  (exit $ac_status); } && {
 
29458
         test -z "$ac_c_werror_flag" ||
 
29459
         test ! -s conftest.err
 
29460
       } && test -s conftest.$ac_objext; then
 
29461
  ac_hi=$ac_mid
 
29462
else
 
29463
  echo "$as_me: failed program was:" >&5
 
29464
sed 's/^/| /' conftest.$ac_ext >&5
 
29465
 
 
29466
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
29467
fi
 
29468
 
 
29469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29470
done
 
29471
case $ac_lo in
 
29472
?*) result=$ac_lo;;
 
29473
'') result=unknown ;;
 
29474
esac
 
29475
else
 
29476
  cat >conftest.$ac_ext <<_ACEOF
 
29477
/* confdefs.h.  */
 
29478
_ACEOF
 
29479
cat confdefs.h >>conftest.$ac_ext
 
29480
cat >>conftest.$ac_ext <<_ACEOF
 
29481
/* end confdefs.h.  */
 
29482
 
 
29483
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29484
     included before <wchar.h>.  */
 
29485
  #include <stddef.h>
 
29486
  #include <signal.h>
 
29487
  #if HAVE_WCHAR_H
 
29488
  # include <stdio.h>
 
29489
  # include <time.h>
 
29490
  # include <wchar.h>
 
29491
  #endif
 
29492
 
 
29493
#include <limits.h>
 
29494
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
 
29495
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
 
29496
#include <stdio.h>
 
29497
#include <stdlib.h>
 
29498
int
 
29499
main ()
 
29500
{
 
29501
 
 
29502
  FILE *f = fopen ("conftest.val", "w");
 
29503
  if (! f)
 
29504
    return 1;
 
29505
  if ((sizeof ($gltype) * CHAR_BIT) < 0)
 
29506
    {
 
29507
      long int i = longval ();
 
29508
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
29509
        return 1;
 
29510
      fprintf (f, "%ld\n", i);
 
29511
    }
 
29512
  else
 
29513
    {
 
29514
      unsigned long int i = ulongval ();
 
29515
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
29516
        return 1;
 
29517
      fprintf (f, "%lu\n", i);
 
29518
    }
 
29519
  return ferror (f) || fclose (f) != 0;
 
29520
 
 
29521
  ;
 
29522
  return 0;
 
29523
}
 
29524
_ACEOF
 
29525
rm -f conftest$ac_exeext
 
29526
if { (ac_try="$ac_link"
 
29527
case "(($ac_try" in
 
29528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29529
  *) ac_try_echo=$ac_try;;
 
29530
esac
 
29531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29532
  (eval "$ac_link") 2>&5
 
29533
  ac_status=$?
 
29534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29535
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
29536
  { (case "(($ac_try" in
 
29537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29538
  *) ac_try_echo=$ac_try;;
 
29539
esac
 
29540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29541
  (eval "$ac_try") 2>&5
 
29542
  ac_status=$?
 
29543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29544
  (exit $ac_status); }; }; then
 
29545
  result=`cat conftest.val`
 
29546
else
 
29547
  echo "$as_me: program exited with status $ac_status" >&5
 
29548
echo "$as_me: failed program was:" >&5
 
29549
sed 's/^/| /' conftest.$ac_ext >&5
 
29550
 
 
29551
( exit $ac_status )
 
29552
result=unknown
 
29553
fi
 
29554
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
29555
fi
 
29556
rm -f conftest.val
 
29557
       eval gl_cv_bitsizeof_${gltype}=\$result
 
29558
 
 
29559
fi
 
29560
ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
 
29561
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
29562
echo "${ECHO_T}$ac_res" >&6; }
 
29563
    eval result=\$gl_cv_bitsizeof_${gltype}
 
29564
    if test $result = unknown; then
 
29565
                                                result=0
 
29566
    fi
 
29567
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
29568
    cat >>confdefs.h <<_ACEOF
 
29569
#define BITSIZEOF_${GLTYPE} $result
 
29570
_ACEOF
 
29571
 
 
29572
    eval BITSIZEOF_${GLTYPE}=\$result
 
29573
  done
 
29574
 
 
29575
 
 
29576
 
 
29577
 
 
29578
 
 
29579
 
 
29580
 
 
29581
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
29582
    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
 
29583
echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
 
29584
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
 
29585
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29586
else
 
29587
  cat >conftest.$ac_ext <<_ACEOF
 
29588
/* confdefs.h.  */
 
29589
_ACEOF
 
29590
cat confdefs.h >>conftest.$ac_ext
 
29591
cat >>conftest.$ac_ext <<_ACEOF
 
29592
/* end confdefs.h.  */
 
29593
 
 
29594
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29595
     included before <wchar.h>.  */
 
29596
  #include <stddef.h>
 
29597
  #include <signal.h>
 
29598
  #if HAVE_WCHAR_H
 
29599
  # include <stdio.h>
 
29600
  # include <time.h>
 
29601
  # include <wchar.h>
 
29602
  #endif
 
29603
 
 
29604
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
29605
int
 
29606
main ()
 
29607
{
 
29608
 
 
29609
  ;
 
29610
  return 0;
 
29611
}
 
29612
_ACEOF
 
29613
rm -f conftest.$ac_objext
 
29614
if { (ac_try="$ac_compile"
 
29615
case "(($ac_try" in
 
29616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29617
  *) ac_try_echo=$ac_try;;
 
29618
esac
 
29619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29620
  (eval "$ac_compile") 2>conftest.er1
 
29621
  ac_status=$?
 
29622
  grep -v '^ *+' conftest.er1 >conftest.err
 
29623
  rm -f conftest.er1
 
29624
  cat conftest.err >&5
 
29625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29626
  (exit $ac_status); } && {
 
29627
         test -z "$ac_c_werror_flag" ||
 
29628
         test ! -s conftest.err
 
29629
       } && test -s conftest.$ac_objext; then
 
29630
  result=yes
 
29631
else
 
29632
  echo "$as_me: failed program was:" >&5
 
29633
sed 's/^/| /' conftest.$ac_ext >&5
 
29634
 
 
29635
        result=no
 
29636
fi
 
29637
 
 
29638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29639
       eval gl_cv_type_${gltype}_signed=\$result
 
29640
 
 
29641
fi
 
29642
ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
 
29643
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
29644
echo "${ECHO_T}$ac_res" >&6; }
 
29645
    eval result=\$gl_cv_type_${gltype}_signed
 
29646
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
29647
    if test "$result" = yes; then
 
29648
      cat >>confdefs.h <<_ACEOF
 
29649
#define HAVE_SIGNED_${GLTYPE} 1
 
29650
_ACEOF
 
29651
 
 
29652
      eval HAVE_SIGNED_${GLTYPE}=1
 
29653
    else
 
29654
      eval HAVE_SIGNED_${GLTYPE}=0
 
29655
    fi
 
29656
  done
 
29657
 
 
29658
 
 
29659
  gl_cv_type_ptrdiff_t_signed=yes
 
29660
  gl_cv_type_size_t_signed=no
 
29661
 
 
29662
 
 
29663
 
 
29664
 
 
29665
 
 
29666
 
 
29667
 
 
29668
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
 
29669
    { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
 
29670
echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
 
29671
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
 
29672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29673
else
 
29674
  eval gl_cv_type_${gltype}_suffix=no
 
29675
       eval result=\$gl_cv_type_${gltype}_signed
 
29676
       if test "$result" = yes; then
 
29677
         glsufu=
 
29678
       else
 
29679
         glsufu=u
 
29680
       fi
 
29681
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
29682
         case $glsuf in
 
29683
           '')  gltype1='int';;
 
29684
           l)   gltype1='long int';;
 
29685
           ll)  gltype1='long long int';;
 
29686
           i64) gltype1='__int64';;
 
29687
           u)   gltype1='unsigned int';;
 
29688
           ul)  gltype1='unsigned long int';;
 
29689
           ull) gltype1='unsigned long long int';;
 
29690
           ui64)gltype1='unsigned __int64';;
 
29691
         esac
 
29692
         cat >conftest.$ac_ext <<_ACEOF
 
29693
/* confdefs.h.  */
 
29694
_ACEOF
 
29695
cat confdefs.h >>conftest.$ac_ext
 
29696
cat >>conftest.$ac_ext <<_ACEOF
 
29697
/* end confdefs.h.  */
 
29698
 
 
29699
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29700
     included before <wchar.h>.  */
 
29701
  #include <stddef.h>
 
29702
  #include <signal.h>
 
29703
  #if HAVE_WCHAR_H
 
29704
  # include <stdio.h>
 
29705
  # include <time.h>
 
29706
  # include <wchar.h>
 
29707
  #endif
 
29708
 
 
29709
              extern $gltype foo;
 
29710
              extern $gltype1 foo;
 
29711
int
 
29712
main ()
 
29713
{
 
29714
 
 
29715
  ;
 
29716
  return 0;
 
29717
}
 
29718
_ACEOF
 
29719
rm -f conftest.$ac_objext
 
29720
if { (ac_try="$ac_compile"
 
29721
case "(($ac_try" in
 
29722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29723
  *) ac_try_echo=$ac_try;;
 
29724
esac
 
29725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29726
  (eval "$ac_compile") 2>conftest.er1
 
29727
  ac_status=$?
 
29728
  grep -v '^ *+' conftest.er1 >conftest.err
 
29729
  rm -f conftest.er1
 
29730
  cat conftest.err >&5
 
29731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29732
  (exit $ac_status); } && {
 
29733
         test -z "$ac_c_werror_flag" ||
 
29734
         test ! -s conftest.err
 
29735
       } && test -s conftest.$ac_objext; then
 
29736
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
29737
else
 
29738
  echo "$as_me: failed program was:" >&5
 
29739
sed 's/^/| /' conftest.$ac_ext >&5
 
29740
 
 
29741
 
 
29742
fi
 
29743
 
 
29744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29745
         eval result=\$gl_cv_type_${gltype}_suffix
 
29746
         test "$result" != no && break
 
29747
       done
 
29748
fi
 
29749
ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
 
29750
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
29751
echo "${ECHO_T}$ac_res" >&6; }
 
29752
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
29753
    eval result=\$gl_cv_type_${gltype}_suffix
 
29754
    test "$result" = no && result=
 
29755
    eval ${GLTYPE}_SUFFIX=\$result
 
29756
    cat >>confdefs.h <<_ACEOF
 
29757
#define ${GLTYPE}_SUFFIX $result
 
29758
_ACEOF
 
29759
 
 
29760
  done
 
29761
 
 
29762
 
 
29763
 
 
29764
    STDINT_H=stdint.h
 
29765
  fi
 
29766
 
 
29767
 
 
29768
 
 
29769
 
 
29770
 
 
29771
 
 
29772
 
 
29773
 
 
29774
 
 
29775
 
 
29776
 
 
29777
 
 
29778
 
 
29779
 
 
29780
     if test $gl_cv_have_include_next = yes; then
 
29781
       gl_cv_next_stdlib_h='<'stdlib.h'>'
 
29782
     else
 
29783
       { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
 
29784
echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
 
29785
if test "${gl_cv_next_stdlib_h+set}" = set; then
 
29786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29787
else
 
29788
 
 
29789
          if test $ac_cv_header_stdlib_h = yes; then
 
29790
            cat >conftest.$ac_ext <<_ACEOF
 
29791
/* confdefs.h.  */
 
29792
_ACEOF
 
29793
cat confdefs.h >>conftest.$ac_ext
 
29794
cat >>conftest.$ac_ext <<_ACEOF
 
29795
/* end confdefs.h.  */
 
29796
#include <stdlib.h>
 
29797
 
 
29798
_ACEOF
 
29799
                                    gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
29800
               sed -n '\#/stdlib.h#{
 
29801
                 s#.*"\(.*/stdlib.h\)".*#\1#
 
29802
                 s#^/[^/]#//&#
 
29803
                 p
 
29804
                 q
 
29805
               }'`'"'
 
29806
          else
 
29807
            gl_cv_next_stdlib_h='<'stdlib.h'>'
 
29808
          fi
 
29809
 
 
29810
fi
 
29811
{ echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
 
29812
echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
 
29813
     fi
 
29814
     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
 
29815
 
 
29816
 
 
29817
 
 
29818
 
 
29819
 
 
29820
 
 
29821
 
 
29822
 
 
29823
 
 
29824
 
 
29825
 
 
29826
 
 
29827
 
 
29828
 
 
29829
 
 
29830
 
 
29831
 
 
29832
     if test $gl_cv_have_include_next = yes; then
 
29833
       gl_cv_next_unistd_h='<'unistd.h'>'
 
29834
     else
 
29835
       { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
 
29836
echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
 
29837
if test "${gl_cv_next_unistd_h+set}" = set; then
 
29838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29839
else
 
29840
 
 
29841
          if test $ac_cv_header_unistd_h = yes; then
 
29842
            cat >conftest.$ac_ext <<_ACEOF
 
29843
/* confdefs.h.  */
 
29844
_ACEOF
 
29845
cat confdefs.h >>conftest.$ac_ext
 
29846
cat >>conftest.$ac_ext <<_ACEOF
 
29847
/* end confdefs.h.  */
 
29848
#include <unistd.h>
 
29849
 
 
29850
_ACEOF
 
29851
                                    gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
29852
               sed -n '\#/unistd.h#{
 
29853
                 s#.*"\(.*/unistd.h\)".*#\1#
 
29854
                 s#^/[^/]#//&#
 
29855
                 p
 
29856
                 q
 
29857
               }'`'"'
 
29858
          else
 
29859
            gl_cv_next_unistd_h='<'unistd.h'>'
 
29860
          fi
 
29861
 
 
29862
fi
 
29863
{ echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
 
29864
echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
 
29865
     fi
 
29866
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
 
29867
 
 
29868
 
 
29869
 
 
29870
 
 
29871
 
 
29872
 
 
29873
 
 
29874
 
 
29875
 
 
29876
 
 
29877
  if test $ac_cv_header_unistd_h = yes; then
 
29878
    HAVE_UNISTD_H=1
 
29879
  else
 
29880
    HAVE_UNISTD_H=0
 
29881
  fi
 
29882
 
 
29883
 
 
29884
 
 
29885
 
 
29886
  { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
 
29887
echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
 
29888
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
 
29889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29890
else
 
29891
  cat >conftest.$ac_ext <<_ACEOF
 
29892
#include <wchar.h>
 
29893
wchar_t w;
 
29894
_ACEOF
 
29895
rm -f conftest.$ac_objext
 
29896
if { (ac_try="$ac_compile"
 
29897
case "(($ac_try" in
 
29898
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29899
  *) ac_try_echo=$ac_try;;
 
29900
esac
 
29901
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29902
  (eval "$ac_compile") 2>conftest.er1
 
29903
  ac_status=$?
 
29904
  grep -v '^ *+' conftest.er1 >conftest.err
 
29905
  rm -f conftest.er1
 
29906
  cat conftest.err >&5
 
29907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29908
  (exit $ac_status); } && {
 
29909
         test -z "$ac_c_werror_flag" ||
 
29910
         test ! -s conftest.err
 
29911
       } && test -s conftest.$ac_objext; then
 
29912
  gl_cv_header_wchar_h_standalone=yes
 
29913
else
 
29914
  echo "$as_me: failed program was:" >&5
 
29915
sed 's/^/| /' conftest.$ac_ext >&5
 
29916
 
 
29917
        gl_cv_header_wchar_h_standalone=no
 
29918
fi
 
29919
 
 
29920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29921
fi
 
29922
{ echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
 
29923
echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
 
29924
  if test $gl_cv_header_wchar_h_standalone != yes; then
 
29925
    WCHAR_H=wchar.h
 
29926
  fi
 
29927
 
 
29928
 
 
29929
 
 
29930
 
 
29931
 
 
29932
 
 
29933
 
 
29934
  if test $ac_cv_header_wchar_h = yes; then
 
29935
    HAVE_WCHAR_H=1
 
29936
  else
 
29937
    HAVE_WCHAR_H=0
 
29938
  fi
 
29939
 
 
29940
 
 
29941
 
 
29942
 
 
29943
 
 
29944
 
 
29945
 
 
29946
 
 
29947
 
 
29948
 
 
29949
 
 
29950
     if test $gl_cv_have_include_next = yes; then
 
29951
       gl_cv_next_wchar_h='<'wchar.h'>'
 
29952
     else
 
29953
       { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
 
29954
echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
 
29955
if test "${gl_cv_next_wchar_h+set}" = set; then
 
29956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29957
else
 
29958
 
 
29959
          if test $ac_cv_header_wchar_h = yes; then
 
29960
            cat >conftest.$ac_ext <<_ACEOF
 
29961
/* confdefs.h.  */
 
29962
_ACEOF
 
29963
cat confdefs.h >>conftest.$ac_ext
 
29964
cat >>conftest.$ac_ext <<_ACEOF
 
29965
/* end confdefs.h.  */
 
29966
#include <wchar.h>
 
29967
 
 
29968
_ACEOF
 
29969
                                    gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
29970
               sed -n '\#/wchar.h#{
 
29971
                 s#.*"\(.*/wchar.h\)".*#\1#
 
29972
                 s#^/[^/]#//&#
 
29973
                 p
 
29974
                 q
 
29975
               }'`'"'
 
29976
          else
 
29977
            gl_cv_next_wchar_h='<'wchar.h'>'
 
29978
          fi
 
29979
 
 
29980
fi
 
29981
{ echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
 
29982
echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
 
29983
     fi
 
29984
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
 
29985
 
 
29986
 
 
29987
 
 
29988
 
 
29989
 
 
29990
 
 
29991
 
 
29992
 
 
29993
 
 
29994
 
 
29995
 
 
29996
  if test $ac_cv_func_iswcntrl = yes; then
 
29997
    HAVE_ISWCNTRL=1
 
29998
  else
 
29999
    HAVE_ISWCNTRL=0
 
30000
  fi
 
30001
 
 
30002
 
 
30003
 
 
30004
 
 
30005
 
 
30006
 
 
30007
 
 
30008
 
 
30009
 
 
30010
 
 
30011
  if test $gt_cv_c_wint_t = yes; then
 
30012
    HAVE_WINT_T=1
 
30013
  else
 
30014
    HAVE_WINT_T=0
 
30015
  fi
 
30016
 
 
30017
 
 
30018
  WCTYPE_H=wctype.h
 
30019
  if test $ac_cv_header_wctype_h = yes; then
 
30020
    if test $ac_cv_func_iswcntrl = yes; then
 
30021
      WCTYPE_H=
 
30022
    fi
 
30023
 
 
30024
 
 
30025
 
 
30026
 
 
30027
 
 
30028
 
 
30029
 
 
30030
 
 
30031
 
 
30032
 
 
30033
     if test $gl_cv_have_include_next = yes; then
 
30034
       gl_cv_next_wctype_h='<'wctype.h'>'
 
30035
     else
 
30036
       { echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
 
30037
echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
 
30038
if test "${gl_cv_next_wctype_h+set}" = set; then
 
30039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30040
else
 
30041
 
 
30042
          if test $ac_cv_header_wctype_h = yes; then
 
30043
            cat >conftest.$ac_ext <<_ACEOF
 
30044
/* confdefs.h.  */
 
30045
_ACEOF
 
30046
cat confdefs.h >>conftest.$ac_ext
 
30047
cat >>conftest.$ac_ext <<_ACEOF
 
30048
/* end confdefs.h.  */
 
30049
#include <wctype.h>
 
30050
 
 
30051
_ACEOF
 
30052
                                    gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
30053
               sed -n '\#/wctype.h#{
 
30054
                 s#.*"\(.*/wctype.h\)".*#\1#
 
30055
                 s#^/[^/]#//&#
 
30056
                 p
 
30057
                 q
 
30058
               }'`'"'
 
30059
          else
 
30060
            gl_cv_next_wctype_h='<'wctype.h'>'
 
30061
          fi
 
30062
 
 
30063
fi
 
30064
{ echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
 
30065
echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; }
 
30066
     fi
 
30067
     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
 
30068
 
 
30069
 
 
30070
 
 
30071
    HAVE_WCTYPE_H=1
 
30072
  else
 
30073
    HAVE_WCTYPE_H=0
 
30074
  fi
 
30075
 
 
30076
 
 
30077
 
 
30078
 
 
30079
 
 
30080
 
 
30081
 
 
30082
 
 
30083
 
 
30084
 
 
30085
curlprivatereq=
 
30086
curlprivatelibs=
 
30087
libdap_pkgconfig_libcurl=yes
 
30088
libdap_libcurl_module='libcurl >= 7.10.6'
 
30089
 
 
30090
 
 
30091
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
30092
        if test -n "$ac_tool_prefix"; then
 
30093
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
30094
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
30095
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
30096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
30097
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
30098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30099
else
 
30100
  case $PKG_CONFIG in
 
30101
  [\\/]* | ?:[\\/]*)
 
30102
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
30103
  ;;
 
30104
  *)
 
30105
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
30106
for as_dir in $PATH
 
30107
do
 
30108
  IFS=$as_save_IFS
 
30109
  test -z "$as_dir" && as_dir=.
 
30110
  for ac_exec_ext in '' $ac_executable_extensions; do
 
30111
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
30112
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
30113
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
30114
    break 2
 
30115
  fi
 
30116
done
 
30117
done
 
30118
IFS=$as_save_IFS
 
30119
 
 
30120
  ;;
 
30121
esac
 
30122
fi
 
30123
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
30124
if test -n "$PKG_CONFIG"; then
 
30125
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
30126
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
30127
else
 
30128
  { echo "$as_me:$LINENO: result: no" >&5
 
30129
echo "${ECHO_T}no" >&6; }
 
30130
fi
 
30131
 
 
30132
 
 
30133
fi
 
30134
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
30135
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
30136
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
30137
set dummy pkg-config; ac_word=$2
 
30138
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
30139
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
30140
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
30141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30142
else
 
30143
  case $ac_pt_PKG_CONFIG in
 
30144
  [\\/]* | ?:[\\/]*)
 
30145
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
30146
  ;;
 
30147
  *)
 
30148
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
30149
for as_dir in $PATH
 
30150
do
 
30151
  IFS=$as_save_IFS
 
30152
  test -z "$as_dir" && as_dir=.
 
30153
  for ac_exec_ext in '' $ac_executable_extensions; do
 
30154
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
30155
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
30156
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
30157
    break 2
 
30158
  fi
 
30159
done
 
30160
done
 
30161
IFS=$as_save_IFS
 
30162
 
 
30163
  ;;
 
30164
esac
 
30165
fi
 
30166
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
30167
if test -n "$ac_pt_PKG_CONFIG"; then
 
30168
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
30169
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
30170
else
 
30171
  { echo "$as_me:$LINENO: result: no" >&5
 
30172
echo "${ECHO_T}no" >&6; }
 
30173
fi
 
30174
 
 
30175
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
30176
    PKG_CONFIG=""
 
30177
  else
 
30178
    case $cross_compiling:$ac_tool_warned in
 
30179
yes:)
 
30180
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
30181
whose name does not start with the host triplet.  If you think this
 
30182
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
30183
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
30184
whose name does not start with the host triplet.  If you think this
 
30185
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
30186
ac_tool_warned=yes ;;
 
30187
esac
 
30188
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
30189
  fi
 
30190
else
 
30191
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
30192
fi
 
30193
 
 
30194
fi
 
30195
if test -n "$PKG_CONFIG"; then
 
30196
        _pkg_min_version=0.9.0
 
30197
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
30198
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
30199
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
30200
                { echo "$as_me:$LINENO: result: yes" >&5
 
30201
echo "${ECHO_T}yes" >&6; }
 
30202
        else
 
30203
                { echo "$as_me:$LINENO: result: no" >&5
 
30204
echo "${ECHO_T}no" >&6; }
 
30205
                PKG_CONFIG=""
 
30206
        fi
 
30207
 
 
30208
fi
 
30209
 
 
30210
pkg_failed=no
 
30211
{ echo "$as_me:$LINENO: checking for CURL" >&5
 
30212
echo $ECHO_N "checking for CURL... $ECHO_C" >&6; }
 
30213
 
 
30214
if test -n "$PKG_CONFIG"; then
 
30215
    if test -n "$CURL_CFLAGS"; then
 
30216
        pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
 
30217
    else
 
30218
        if test -n "$PKG_CONFIG" && \
 
30219
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$libdap_libcurl_module\"") >&5
 
30220
  ($PKG_CONFIG --exists --print-errors "$libdap_libcurl_module") 2>&5
 
30221
  ac_status=$?
 
30222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30223
  (exit $ac_status); }; then
 
30224
  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "$libdap_libcurl_module" 2>/dev/null`
 
30225
else
 
30226
  pkg_failed=yes
 
30227
fi
 
30228
    fi
 
30229
else
 
30230
        pkg_failed=untried
 
30231
fi
 
30232
if test -n "$PKG_CONFIG"; then
 
30233
    if test -n "$CURL_LIBS"; then
 
30234
        pkg_cv_CURL_LIBS="$CURL_LIBS"
 
30235
    else
 
30236
        if test -n "$PKG_CONFIG" && \
 
30237
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$libdap_libcurl_module\"") >&5
 
30238
  ($PKG_CONFIG --exists --print-errors "$libdap_libcurl_module") 2>&5
 
30239
  ac_status=$?
 
30240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30241
  (exit $ac_status); }; then
 
30242
  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "$libdap_libcurl_module" 2>/dev/null`
 
30243
else
 
30244
  pkg_failed=yes
 
30245
fi
 
30246
    fi
 
30247
else
 
30248
        pkg_failed=untried
 
30249
fi
 
30250
 
 
30251
 
 
30252
 
 
30253
if test $pkg_failed = yes; then
 
30254
 
 
30255
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
30256
        _pkg_short_errors_supported=yes
 
30257
else
 
30258
        _pkg_short_errors_supported=no
 
30259
fi
 
30260
        if test $_pkg_short_errors_supported = yes; then
 
30261
                CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$libdap_libcurl_module"`
 
30262
        else
 
30263
                CURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$libdap_libcurl_module"`
 
30264
        fi
 
30265
        # Put the nasty error message in config.log where it belongs
 
30266
        echo "$CURL_PKG_ERRORS" >&5
 
30267
 
 
30268
        { echo "$as_me:$LINENO: result: no" >&5
 
30269
echo "${ECHO_T}no" >&6; }
 
30270
                libdap_pkgconfig_libcurl=no
 
30271
elif test $pkg_failed = untried; then
 
30272
        libdap_pkgconfig_libcurl=no
 
30273
else
 
30274
        CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
 
30275
        CURL_LIBS=$pkg_cv_CURL_LIBS
 
30276
        { echo "$as_me:$LINENO: result: yes" >&5
 
30277
echo "${ECHO_T}yes" >&6; }
 
30278
        :
 
30279
fi
 
30280
{ echo "$as_me:$LINENO: checking for libcurl" >&5
 
30281
echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
 
30282
if test $libdap_pkgconfig_libcurl = 'yes'
 
30283
then
 
30284
        curlprivatereq=$libdap_libcurl_module
 
30285
        CURL_STATIC_LIBS="`$PKG_CONFIG --static --libs libcurl`"
 
30286
        { echo "$as_me:$LINENO: result: yes; used pkg-config" >&5
 
30287
echo "${ECHO_T}yes; used pkg-config" >&6; }
 
30288
elif curl-config --version > /dev/null 2>&1
 
30289
then
 
30290
        version_libcurl=`curl-config --version | sed 's@libcurl \(.*\)@\1@'`
 
30291
 
 
30292
        version_M=`echo $version_libcurl | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\1@'`
 
30293
        version_m=`echo $version_libcurl | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\2@'`
 
30294
        version_m_m=`echo $version_libcurl | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\3@'`
 
30295
 
 
30296
 
 
30297
 
 
30298
        if test $version_M -gt 7
 
30299
        then
 
30300
                libcurl_ok='yes'
 
30301
        elif test $version_M -eq 7 && test $version_m -gt 10
 
30302
        then
 
30303
                libcurl_ok='yes'
 
30304
        elif test $version_M -eq 7 && test $version_m -eq 10 && test $version_m_m -gt 5
 
30305
        then
 
30306
                libcurl_ok='yes'
 
30307
        else
 
30308
                libcurl_ok='no'
 
30309
        fi
 
30310
 
 
30311
                if test $libcurl_ok = "no"
 
30312
        then
 
30313
                { { echo "$as_me:$LINENO: error: must have libcurl 7.10.6 or greater, found $version_libcurl" >&5
 
30314
echo "$as_me: error: must have libcurl 7.10.6 or greater, found $version_libcurl" >&2;}
 
30315
   { (exit 1); exit 1; }; }
 
30316
        fi
 
30317
 
 
30318
        CURL_LIBS="`curl-config --libs`"
 
30319
        CURL_STATIC_LIBS=$CURL_LIBS
 
30320
        curlprivatelibs="`curl-config --libs`"
 
30321
        CURL_CFLAGS="`curl-config --cflags`"
 
30322
        { echo "$as_me:$LINENO: result: yes; used curl-config" >&5
 
30323
echo "${ECHO_T}yes; used curl-config" >&6; }
 
30324
else
 
30325
        { { echo "$as_me:$LINENO: error: I could not find libcurl" >&5
 
30326
echo "$as_me: error: I could not find libcurl" >&2;}
 
30327
   { (exit 1); exit 1; }; }
 
30328
fi
 
30329
 
 
30330
 
 
30331
 
 
30332
 
 
30333
 
 
30334
 
 
30335
xmlprivatereq=
 
30336
xmlprivatelibs=
 
30337
libdap_pkgconfig_libxml2=yes
 
30338
libdap_libxml2_module='libxml-2.0 >= 2.6.16'
 
30339
 
 
30340
pkg_failed=no
 
30341
{ echo "$as_me:$LINENO: checking for XML2" >&5
 
30342
echo $ECHO_N "checking for XML2... $ECHO_C" >&6; }
 
30343
 
 
30344
if test -n "$PKG_CONFIG"; then
 
30345
    if test -n "$XML2_CFLAGS"; then
 
30346
        pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
 
30347
    else
 
30348
        if test -n "$PKG_CONFIG" && \
 
30349
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$libdap_libxml2_module\"") >&5
 
30350
  ($PKG_CONFIG --exists --print-errors "$libdap_libxml2_module") 2>&5
 
30351
  ac_status=$?
 
30352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30353
  (exit $ac_status); }; then
 
30354
  pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "$libdap_libxml2_module" 2>/dev/null`
 
30355
else
 
30356
  pkg_failed=yes
 
30357
fi
 
30358
    fi
 
30359
else
 
30360
        pkg_failed=untried
 
30361
fi
 
30362
if test -n "$PKG_CONFIG"; then
 
30363
    if test -n "$XML2_LIBS"; then
 
30364
        pkg_cv_XML2_LIBS="$XML2_LIBS"
 
30365
    else
 
30366
        if test -n "$PKG_CONFIG" && \
 
30367
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$libdap_libxml2_module\"") >&5
 
30368
  ($PKG_CONFIG --exists --print-errors "$libdap_libxml2_module") 2>&5
 
30369
  ac_status=$?
 
30370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30371
  (exit $ac_status); }; then
 
30372
  pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "$libdap_libxml2_module" 2>/dev/null`
 
30373
else
 
30374
  pkg_failed=yes
 
30375
fi
 
30376
    fi
 
30377
else
 
30378
        pkg_failed=untried
 
30379
fi
 
30380
 
 
30381
 
 
30382
 
 
30383
if test $pkg_failed = yes; then
 
30384
 
 
30385
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
30386
        _pkg_short_errors_supported=yes
 
30387
else
 
30388
        _pkg_short_errors_supported=no
 
30389
fi
 
30390
        if test $_pkg_short_errors_supported = yes; then
 
30391
                XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$libdap_libxml2_module"`
 
30392
        else
 
30393
                XML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$libdap_libxml2_module"`
 
30394
        fi
 
30395
        # Put the nasty error message in config.log where it belongs
 
30396
        echo "$XML2_PKG_ERRORS" >&5
 
30397
 
 
30398
        { echo "$as_me:$LINENO: result: no" >&5
 
30399
echo "${ECHO_T}no" >&6; }
 
30400
                libdap_pkgconfig_libxml2=no
 
30401
elif test $pkg_failed = untried; then
 
30402
        libdap_pkgconfig_libxml2=no
 
30403
else
 
30404
        XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
 
30405
        XML2_LIBS=$pkg_cv_XML2_LIBS
 
30406
        { echo "$as_me:$LINENO: result: yes" >&5
 
30407
echo "${ECHO_T}yes" >&6; }
 
30408
        :
 
30409
fi
 
30410
{ echo "$as_me:$LINENO: checking for libxml2" >&5
 
30411
echo $ECHO_N "checking for libxml2... $ECHO_C" >&6; }
 
30412
if test $libdap_pkgconfig_libxml2 = 'yes'
 
30413
then
 
30414
        xmlprivatereq=$libdap_libxml2_module
 
30415
        XML2_STATIC_LIBS="`$PKG_CONFIG --static --libs libxml-2.0`"
 
30416
 
 
30417
cat >>confdefs.h <<\_ACEOF
 
30418
#define LIBXML2_5_10 1
 
30419
_ACEOF
 
30420
 
 
30421
 
 
30422
cat >>confdefs.h <<\_ACEOF
 
30423
#define LIBXML2_6_16 1
 
30424
_ACEOF
 
30425
 
 
30426
        { echo "$as_me:$LINENO: result: yes; used pkg-config" >&5
 
30427
echo "${ECHO_T}yes; used pkg-config" >&6; }
 
30428
elif xml2-config --version > /dev/null 2>&1
 
30429
then
 
30430
        version_libxml2=`xml2-config --version`
 
30431
        version_M=`echo $version_libxml2 | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\1@'`
 
30432
        version_m=`echo $version_libxml2 | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\2@'`
 
30433
        version_m_m=`echo $version_libxml2 | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\3@'`
 
30434
 
 
30435
 
 
30436
        if test $version_M -gt 2
 
30437
        then
 
30438
                libxml2_ok='yes'
 
30439
        elif test $version_M -eq 2 && test $version_m -gt 5
 
30440
        then
 
30441
                libxml2_ok='yes'
 
30442
        elif test $version_M -eq 2 && test $version_m -eq 5 && test $version_m_m -gt 6
 
30443
        then
 
30444
                libxml2_ok='yes'
 
30445
        else
 
30446
                libxml2_ok='no'
 
30447
        fi
 
30448
 
 
30449
                if test $libxml2_ok = "no"
 
30450
        then
 
30451
                { { echo "$as_me:$LINENO: error: must have libxml2 2.5.7 or greater, found $version_libxml2" >&5
 
30452
echo "$as_me: error: must have libxml2 2.5.7 or greater, found $version_libxml2" >&2;}
 
30453
   { (exit 1); exit 1; }; }
 
30454
        fi
 
30455
 
 
30456
                if test $version_M -eq 2 && test $version_m -eq 5 && test $version_m_m -ge 10
 
30457
        then
 
30458
 
 
30459
cat >>confdefs.h <<\_ACEOF
 
30460
#define LIBXML2_5_10 1
 
30461
_ACEOF
 
30462
 
 
30463
        fi
 
30464
        if test $version_M -eq 2 && test $version_m -eq 6 && test $version_m_m -ge 16
 
30465
        then
 
30466
 
 
30467
cat >>confdefs.h <<\_ACEOF
 
30468
#define LIBXML2_5_10 1
 
30469
_ACEOF
 
30470
 
 
30471
 
 
30472
cat >>confdefs.h <<\_ACEOF
 
30473
#define LIBXML2_6_16 1
 
30474
_ACEOF
 
30475
 
 
30476
        fi
 
30477
 
 
30478
        XML2_LIBS="`xml2-config --libs`"
 
30479
        XML2_STATIC_LIBS=$XML2_LIBS
 
30480
        XML2_CFLAGS="`xml2-config --cflags`"
 
30481
        xmlprivatelibs="`xml2-config --libs`"
 
30482
        { echo "$as_me:$LINENO: result: yes; used xml2-config" >&5
 
30483
echo "${ECHO_T}yes; used xml2-config" >&6; }
 
30484
else
 
30485
        { { echo "$as_me:$LINENO: error: I could not find libxml2" >&5
 
30486
echo "$as_me: error: I could not find libxml2" >&2;}
 
30487
   { (exit 1); exit 1; }; }
 
30488
fi
 
30489
 
 
30490
 
 
30491
 
 
30492
 
 
30493
 
 
30494
 
 
30495
#
 
30496
# Handle user hints
 
30497
#
 
30498
 
 
30499
 
 
30500
# Check whether --with-zlib was given.
 
30501
if test "${with_zlib+set}" = set; then
 
30502
  withval=$with_zlib; if test "$withval" != no ; then
 
30503
  if test -d "$withval"
 
30504
  then
 
30505
    ZLIB_HOME="$withval"
 
30506
  else
 
30507
    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
 
30508
echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
 
30509
  fi
 
30510
else
 
30511
  { echo "$as_me:$LINENO: WARNING: zlib is required for deflate, not disabled" >&5
 
30512
echo "$as_me: WARNING: zlib is required for deflate, not disabled" >&2;}
 
30513
fi
 
30514
fi
 
30515
 
 
30516
 
 
30517
ZLIB_OLD_LDFLAGS=$LDFLAGS
 
30518
ZLIB_OLD_CPPFLAGS=$CPPFLAGS
 
30519
 
 
30520
#
 
30521
# Locate zlib, if wanted
 
30522
#
 
30523
if test -n "${ZLIB_HOME}"
 
30524
then
 
30525
        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
 
30526
        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
 
30527
fi
 
30528
 
 
30529
ac_ext=c
 
30530
ac_cpp='$CPP $CPPFLAGS'
 
30531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30534
 
 
30535
{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
 
30536
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
 
30537
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
 
30538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30539
else
 
30540
  ac_check_lib_save_LIBS=$LIBS
 
30541
LIBS="-lz  $LIBS"
 
30542
cat >conftest.$ac_ext <<_ACEOF
 
30543
/* confdefs.h.  */
 
30544
_ACEOF
 
30545
cat confdefs.h >>conftest.$ac_ext
 
30546
cat >>conftest.$ac_ext <<_ACEOF
 
30547
/* end confdefs.h.  */
 
30548
 
 
30549
/* Override any GCC internal prototype to avoid an error.
 
30550
   Use char because int might match the return type of a GCC
 
30551
   builtin and then its argument prototype would still apply.  */
 
30552
#ifdef __cplusplus
 
30553
extern "C"
 
30554
#endif
 
30555
char inflateEnd ();
 
30556
int
 
30557
main ()
 
30558
{
 
30559
return inflateEnd ();
 
30560
  ;
 
30561
  return 0;
 
30562
}
 
30563
_ACEOF
 
30564
rm -f conftest.$ac_objext conftest$ac_exeext
 
30565
if { (ac_try="$ac_link"
 
30566
case "(($ac_try" in
 
30567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30568
  *) ac_try_echo=$ac_try;;
 
30569
esac
 
30570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30571
  (eval "$ac_link") 2>conftest.er1
 
30572
  ac_status=$?
 
30573
  grep -v '^ *+' conftest.er1 >conftest.err
 
30574
  rm -f conftest.er1
 
30575
  cat conftest.err >&5
 
30576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30577
  (exit $ac_status); } && {
 
30578
         test -z "$ac_c_werror_flag" ||
 
30579
         test ! -s conftest.err
 
30580
       } && test -s conftest$ac_exeext &&
 
30581
       $as_test_x conftest$ac_exeext; then
 
30582
  ac_cv_lib_z_inflateEnd=yes
 
30583
else
 
30584
  echo "$as_me: failed program was:" >&5
 
30585
sed 's/^/| /' conftest.$ac_ext >&5
 
30586
 
 
30587
        ac_cv_lib_z_inflateEnd=no
 
30588
fi
 
30589
 
 
30590
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30591
      conftest$ac_exeext conftest.$ac_ext
 
30592
LIBS=$ac_check_lib_save_LIBS
 
30593
fi
 
30594
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
 
30595
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
 
30596
if test $ac_cv_lib_z_inflateEnd = yes; then
 
30597
  zlib_cv_libz=yes
 
30598
else
 
30599
  zlib_cv_libz=no
 
30600
fi
 
30601
 
 
30602
if test "${ac_cv_header_zlib_h+set}" = set; then
 
30603
  { echo "$as_me:$LINENO: checking for zlib.h" >&5
 
30604
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
 
30605
if test "${ac_cv_header_zlib_h+set}" = set; then
 
30606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30607
fi
 
30608
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
30609
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
 
30610
else
 
30611
  # Is the header compilable?
 
30612
{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
 
30613
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
 
30614
cat >conftest.$ac_ext <<_ACEOF
 
30615
/* confdefs.h.  */
 
30616
_ACEOF
 
30617
cat confdefs.h >>conftest.$ac_ext
 
30618
cat >>conftest.$ac_ext <<_ACEOF
 
30619
/* end confdefs.h.  */
 
30620
$ac_includes_default
 
30621
#include <zlib.h>
 
30622
_ACEOF
 
30623
rm -f conftest.$ac_objext
 
30624
if { (ac_try="$ac_compile"
 
30625
case "(($ac_try" in
 
30626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30627
  *) ac_try_echo=$ac_try;;
 
30628
esac
 
30629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30630
  (eval "$ac_compile") 2>conftest.er1
 
30631
  ac_status=$?
 
30632
  grep -v '^ *+' conftest.er1 >conftest.err
 
30633
  rm -f conftest.er1
 
30634
  cat conftest.err >&5
 
30635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30636
  (exit $ac_status); } && {
 
30637
         test -z "$ac_c_werror_flag" ||
 
30638
         test ! -s conftest.err
 
30639
       } && test -s conftest.$ac_objext; then
 
30640
  ac_header_compiler=yes
 
30641
else
 
30642
  echo "$as_me: failed program was:" >&5
 
30643
sed 's/^/| /' conftest.$ac_ext >&5
 
30644
 
 
30645
        ac_header_compiler=no
 
30646
fi
 
30647
 
 
30648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30649
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
30650
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
30651
 
 
30652
# Is the header present?
 
30653
{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
 
30654
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
 
30655
cat >conftest.$ac_ext <<_ACEOF
 
30656
/* confdefs.h.  */
 
30657
_ACEOF
 
30658
cat confdefs.h >>conftest.$ac_ext
 
30659
cat >>conftest.$ac_ext <<_ACEOF
 
30660
/* end confdefs.h.  */
 
30661
#include <zlib.h>
 
30662
_ACEOF
 
30663
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
30664
case "(($ac_try" in
 
30665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30666
  *) ac_try_echo=$ac_try;;
 
30667
esac
 
30668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30669
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
30670
  ac_status=$?
 
30671
  grep -v '^ *+' conftest.er1 >conftest.err
 
30672
  rm -f conftest.er1
 
30673
  cat conftest.err >&5
 
30674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30675
  (exit $ac_status); } >/dev/null && {
 
30676
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
30677
         test ! -s conftest.err
 
30678
       }; then
 
30679
  ac_header_preproc=yes
 
30680
else
 
30681
  echo "$as_me: failed program was:" >&5
 
30682
sed 's/^/| /' conftest.$ac_ext >&5
 
30683
 
 
30684
  ac_header_preproc=no
 
30685
fi
 
30686
 
 
30687
rm -f conftest.err conftest.$ac_ext
 
30688
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
30689
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
30690
 
 
30691
# So?  What about this header?
 
30692
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
30693
  yes:no: )
 
30694
    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
30695
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
30696
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
 
30697
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
 
30698
    ac_header_preproc=yes
 
30699
    ;;
 
30700
  no:yes:* )
 
30701
    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
 
30702
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
 
30703
    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
 
30704
echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
 
30705
    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
 
30706
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
 
30707
    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
30708
echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
30709
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
 
30710
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
 
30711
    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
 
30712
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
 
30713
    ( cat <<\_ASBOX
 
30714
## --------------------------------------- ##
 
30715
## Report this to opendap-tech@opendap.org ##
 
30716
## --------------------------------------- ##
 
30717
_ASBOX
 
30718
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
30719
    ;;
 
30720
esac
 
30721
{ echo "$as_me:$LINENO: checking for zlib.h" >&5
 
30722
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
 
30723
if test "${ac_cv_header_zlib_h+set}" = set; then
 
30724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30725
else
 
30726
  ac_cv_header_zlib_h=$ac_header_preproc
 
30727
fi
 
30728
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
30729
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
 
30730
 
 
30731
fi
 
30732
if test $ac_cv_header_zlib_h = yes; then
 
30733
  zlib_cv_zlib_h=yes
 
30734
else
 
30735
  zlib_cv_zlib_h=no
 
30736
fi
 
30737
 
 
30738
 
 
30739
ac_ext=c
 
30740
ac_cpp='$CPP $CPPFLAGS'
 
30741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30744
 
 
30745
 
 
30746
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
 
30747
then
 
30748
        #
 
30749
        # If both library and header were found, use them
 
30750
        #
 
30751
        ZLIB_LIBS="-lz"
 
30752
else
 
30753
        #
 
30754
        # If either header or library was not found, revert and bomb
 
30755
        #
 
30756
        { { echo "$as_me:$LINENO: error: zlib is required for deflate, specify a valid zlib installation with --with-zlib=DIR" >&5
 
30757
echo "$as_me: error: zlib is required for deflate, specify a valid zlib installation with --with-zlib=DIR" >&2;}
 
30758
   { (exit 1); exit 1; }; }
 
30759
fi
 
30760
 
 
30761
LDFLAGS="$ZLIB_OLD_LDFLAGS"
 
30762
CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
 
30763
 
 
30764
 
 
30765
 
 
30766
 
 
30767
 
 
30768
 
 
30769
 
 
30770
{ echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
 
30771
echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
 
30772
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
 
30773
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30774
else
 
30775
  ac_check_lib_save_LIBS=$LIBS
 
30776
LIBS="-lpthread  $LIBS"
 
30777
cat >conftest.$ac_ext <<_ACEOF
 
30778
/* confdefs.h.  */
 
30779
_ACEOF
 
30780
cat confdefs.h >>conftest.$ac_ext
 
30781
cat >>conftest.$ac_ext <<_ACEOF
 
30782
/* end confdefs.h.  */
 
30783
 
 
30784
/* Override any GCC internal prototype to avoid an error.
 
30785
   Use char because int might match the return type of a GCC
 
30786
   builtin and then its argument prototype would still apply.  */
 
30787
#ifdef __cplusplus
 
30788
extern "C"
 
30789
#endif
 
30790
char pthread_kill ();
 
30791
int
 
30792
main ()
 
30793
{
 
30794
return pthread_kill ();
 
30795
  ;
 
30796
  return 0;
 
30797
}
 
30798
_ACEOF
 
30799
rm -f conftest.$ac_objext conftest$ac_exeext
 
30800
if { (ac_try="$ac_link"
 
30801
case "(($ac_try" in
 
30802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30803
  *) ac_try_echo=$ac_try;;
 
30804
esac
 
30805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30806
  (eval "$ac_link") 2>conftest.er1
 
30807
  ac_status=$?
 
30808
  grep -v '^ *+' conftest.er1 >conftest.err
 
30809
  rm -f conftest.er1
 
30810
  cat conftest.err >&5
 
30811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30812
  (exit $ac_status); } && {
 
30813
         test -z "$ac_c_werror_flag" ||
 
30814
         test ! -s conftest.err
 
30815
       } && test -s conftest$ac_exeext &&
 
30816
       $as_test_x conftest$ac_exeext; then
 
30817
  ac_cv_lib_pthread_pthread_kill=yes
 
30818
else
 
30819
  echo "$as_me: failed program was:" >&5
 
30820
sed 's/^/| /' conftest.$ac_ext >&5
 
30821
 
 
30822
        ac_cv_lib_pthread_pthread_kill=no
 
30823
fi
 
30824
 
 
30825
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30826
      conftest$ac_exeext conftest.$ac_ext
 
30827
LIBS=$ac_check_lib_save_LIBS
 
30828
fi
 
30829
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
 
30830
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
 
30831
if test $ac_cv_lib_pthread_pthread_kill = yes; then
 
30832
  PTHREAD_LIBS="-lpthread"
 
30833
else
 
30834
  { { echo "$as_me:$LINENO: error: I could not find pthreads" >&5
 
30835
echo "$as_me: error: I could not find pthreads" >&2;}
 
30836
   { (exit 1); exit 1; }; }
 
30837
fi
 
30838
 
 
30839
 
 
30840
 
 
30841
 
 
30842
 
 
30843
 
 
30844
# Check whether --with-cppunit-prefix was given.
 
30845
if test "${with_cppunit_prefix+set}" = set; then
 
30846
  withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
 
30847
else
 
30848
  cppunit_config_prefix=""
 
30849
fi
 
30850
 
 
30851
 
 
30852
# Check whether --with-cppunit-exec-prefix was given.
 
30853
if test "${with_cppunit_exec_prefix+set}" = set; then
 
30854
  withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
 
30855
else
 
30856
  cppunit_config_exec_prefix=""
 
30857
fi
 
30858
 
 
30859
 
 
30860
  if test x$cppunit_config_exec_prefix != x ; then
 
30861
     cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
 
30862
     if test x${CPPUNIT_CONFIG+set} != xset ; then
 
30863
        CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
 
30864
     fi
 
30865
  fi
 
30866
  if test x$cppunit_config_prefix != x ; then
 
30867
     cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
 
30868
     if test x${CPPUNIT_CONFIG+set} != xset ; then
 
30869
        CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
 
30870
     fi
 
30871
  fi
 
30872
 
 
30873
  # Extract the first word of "cppunit-config", so it can be a program name with args.
 
30874
set dummy cppunit-config; ac_word=$2
 
30875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
30876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
30877
if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
 
30878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30879
else
 
30880
  case $CPPUNIT_CONFIG in
 
30881
  [\\/]* | ?:[\\/]*)
 
30882
  ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
 
30883
  ;;
 
30884
  *)
 
30885
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
30886
for as_dir in $PATH
 
30887
do
 
30888
  IFS=$as_save_IFS
 
30889
  test -z "$as_dir" && as_dir=.
 
30890
  for ac_exec_ext in '' $ac_executable_extensions; do
 
30891
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
30892
    ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
30893
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
30894
    break 2
 
30895
  fi
 
30896
done
 
30897
done
 
30898
IFS=$as_save_IFS
 
30899
 
 
30900
  test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
 
30901
  ;;
 
30902
esac
 
30903
fi
 
30904
CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
 
30905
if test -n "$CPPUNIT_CONFIG"; then
 
30906
  { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
 
30907
echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
 
30908
else
 
30909
  { echo "$as_me:$LINENO: result: no" >&5
 
30910
echo "${ECHO_T}no" >&6; }
 
30911
fi
 
30912
 
 
30913
 
 
30914
  cppunit_version_min=1.12.0
 
30915
 
 
30916
  { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
 
30917
echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
 
30918
  no_cppunit=""
 
30919
  if test "$CPPUNIT_CONFIG" = "no" ; then
 
30920
    { echo "$as_me:$LINENO: result: no" >&5
 
30921
echo "${ECHO_T}no" >&6; }
 
30922
    no_cppunit=yes
 
30923
  else
 
30924
    CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
 
30925
    CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
 
30926
    cppunit_version=`$CPPUNIT_CONFIG --version`
 
30927
 
 
30928
    cppunit_major_version=`echo $cppunit_version | \
 
30929
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
30930
    cppunit_minor_version=`echo $cppunit_version | \
 
30931
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
30932
    cppunit_micro_version=`echo $cppunit_version | \
 
30933
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
30934
 
 
30935
    cppunit_major_min=`echo $cppunit_version_min | \
 
30936
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
30937
    if test "x${cppunit_major_min}" = "x" ; then
 
30938
       cppunit_major_min=0
 
30939
    fi
 
30940
 
 
30941
    cppunit_minor_min=`echo $cppunit_version_min | \
 
30942
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
30943
    if test "x${cppunit_minor_min}" = "x" ; then
 
30944
       cppunit_minor_min=0
 
30945
    fi
 
30946
 
 
30947
    cppunit_micro_min=`echo $cppunit_version_min | \
 
30948
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
30949
    if test "x${cppunit_micro_min}" = "x" ; then
 
30950
       cppunit_micro_min=0
 
30951
    fi
 
30952
 
 
30953
    cppunit_version_proper=`expr \
 
30954
        $cppunit_major_version \> $cppunit_major_min \| \
 
30955
        $cppunit_major_version \= $cppunit_major_min \& \
 
30956
        $cppunit_minor_version \> $cppunit_minor_min \| \
 
30957
        $cppunit_major_version \= $cppunit_major_min \& \
 
30958
        $cppunit_minor_version \= $cppunit_minor_min \& \
 
30959
        $cppunit_micro_version \>= $cppunit_micro_min `
 
30960
 
 
30961
    if test "$cppunit_version_proper" = "1" ; then
 
30962
      { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
 
30963
echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
 
30964
    else
 
30965
      { echo "$as_me:$LINENO: result: no" >&5
 
30966
echo "${ECHO_T}no" >&6; }
 
30967
      no_cppunit=yes
 
30968
    fi
 
30969
  fi
 
30970
 
 
30971
  if test "x$no_cppunit" = x ; then
 
30972
      if true; then
 
30973
  CPPUNIT_TRUE=
 
30974
  CPPUNIT_FALSE='#'
 
30975
else
 
30976
  CPPUNIT_TRUE='#'
 
30977
  CPPUNIT_FALSE=
 
30978
fi
 
30979
 
 
30980
  else
 
30981
     CPPUNIT_CFLAGS=""
 
30982
     CPPUNIT_LIBS=""
 
30983
      if false; then
 
30984
  CPPUNIT_TRUE=
 
30985
  CPPUNIT_FALSE='#'
 
30986
else
 
30987
  CPPUNIT_TRUE='#'
 
30988
  CPPUNIT_FALSE=
 
30989
fi
 
30990
 
 
30991
  fi
 
30992
 
 
30993
 
 
30994
 
 
30995
 
 
30996
 
 
30997
    # Check whether --enable-debug was given.
 
30998
if test "${enable_debug+set}" = set; then
 
30999
  enableval=$enable_debug; DEBUG=$enableval
 
31000
else
 
31001
  DEBUG=no
 
31002
fi
 
31003
 
 
31004
 
 
31005
    case "$DEBUG" in
 
31006
    no)
 
31007
      ;;
 
31008
    1)
 
31009
      { echo "$as_me:$LINENO: result: Setting debugging to level 1" >&5
 
31010
echo "${ECHO_T}Setting debugging to level 1" >&6; }
 
31011
      cat >>confdefs.h <<\_ACEOF
 
31012
#define DODS_DEBUG 1
 
31013
_ACEOF
 
31014
 
 
31015
      ;;
 
31016
    2)
 
31017
      { echo "$as_me:$LINENO: result: Setting debugging to level 2" >&5
 
31018
echo "${ECHO_T}Setting debugging to level 2" >&6; }
 
31019
 
 
31020
cat >>confdefs.h <<\_ACEOF
 
31021
#define DODS_DEBUG
 
31022
_ACEOF
 
31023
 
 
31024
 
 
31025
cat >>confdefs.h <<\_ACEOF
 
31026
#define DODS_DEBUG2
 
31027
_ACEOF
 
31028
 
 
31029
      ;;
 
31030
    *)
 
31031
      { { echo "$as_me:$LINENO: error: Bad debug value" >&5
 
31032
echo "$as_me: error: Bad debug value" >&2;}
 
31033
   { (exit 1); exit 1; }; }
 
31034
      ;;
 
31035
    esac
 
31036
 
 
31037
if test "$prefix" = "NONE"
 
31038
then
 
31039
 
 
31040
cat >>confdefs.h <<\_ACEOF
 
31041
#define LIBDAP_ROOT "/usr/local"
 
31042
_ACEOF
 
31043
 
 
31044
else
 
31045
 
 
31046
cat >>confdefs.h <<_ACEOF
 
31047
#define LIBDAP_ROOT "$prefix"
 
31048
_ACEOF
 
31049
 
 
31050
fi
 
31051
 
 
31052
 
 
31053
 
 
31054
 
 
31055
 
 
31056
 
 
31057
 
 
31058
 
 
31059
ac_config_files="$ac_config_files Makefile libdap.pc libdapclient.pc libdapserver.pc gl/Makefile tests/Makefile unit-tests/Makefile unit-tests/cache-testsuite/Makefile"
 
31060
 
 
31061
ac_config_files="$ac_config_files dap-config"
 
31062
 
 
31063
 
 
31064
cat >confcache <<\_ACEOF
 
31065
# This file is a shell script that caches the results of configure
 
31066
# tests run on this system so they can be shared between configure
 
31067
# scripts and configure runs, see configure's option --config-cache.
 
31068
# It is not useful on other systems.  If it contains results you don't
 
31069
# want to keep, you may remove or edit it.
 
31070
#
 
31071
# config.status only pays attention to the cache file if you give it
 
31072
# the --recheck option to rerun configure.
 
31073
#
 
31074
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
31075
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
31076
# following values.
 
31077
 
 
31078
_ACEOF
 
31079
 
 
31080
# The following way of writing the cache mishandles newlines in values,
 
31081
# but we know of no workaround that is simple, portable, and efficient.
 
31082
# So, we kill variables containing newlines.
 
31083
# Ultrix sh set writes to stderr and can't be redirected directly,
 
31084
# and sets the high bit in the cache file unless we assign to the vars.
 
31085
(
 
31086
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
31087
    eval ac_val=\$$ac_var
 
31088
    case $ac_val in #(
 
31089
    *${as_nl}*)
 
31090
      case $ac_var in #(
 
31091
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
31092
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
31093
      esac
 
31094
      case $ac_var in #(
 
31095
      _ | IFS | as_nl) ;; #(
 
31096
      *) $as_unset $ac_var ;;
 
31097
      esac ;;
 
31098
    esac
 
31099
  done
 
31100
 
 
31101
  (set) 2>&1 |
 
31102
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
31103
    *${as_nl}ac_space=\ *)
 
31104
      # `set' does not quote correctly, so add quotes (double-quote
 
31105
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
31106
      sed -n \
 
31107
        "s/'/'\\\\''/g;
 
31108
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
31109
      ;; #(
 
31110
    *)
 
31111
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
31112
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
31113
      ;;
 
31114
    esac |
 
31115
    sort
 
31116
) |
 
31117
  sed '
 
31118
     /^ac_cv_env_/b end
 
31119
     t clear
 
31120
     :clear
 
31121
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
31122
     t end
 
31123
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
31124
     :end' >>confcache
 
31125
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
31126
  if test -w "$cache_file"; then
 
31127
    test "x$cache_file" != "x/dev/null" &&
 
31128
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
31129
echo "$as_me: updating cache $cache_file" >&6;}
 
31130
    cat confcache >$cache_file
 
31131
  else
 
31132
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
31133
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
31134
  fi
 
31135
fi
 
31136
rm -f confcache
 
31137
 
 
31138
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
31139
# Let make expand exec_prefix.
 
31140
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
31141
 
 
31142
DEFS=-DHAVE_CONFIG_H
 
31143
 
 
31144
ac_libobjs=
 
31145
ac_ltlibobjs=
 
31146
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
31147
  # 1. Remove the extension, and $U if already installed.
 
31148
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
31149
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
31150
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
31151
  #    will be set to the directory where LIBOBJS objects are built.
 
31152
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
31153
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
31154
done
 
31155
LIBOBJS=$ac_libobjs
 
31156
 
 
31157
LTLIBOBJS=$ac_ltlibobjs
 
31158
 
 
31159
 
 
31160
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
31161
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
31162
Usually this means the macro was only invoked conditionally." >&5
 
31163
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
31164
Usually this means the macro was only invoked conditionally." >&2;}
 
31165
   { (exit 1); exit 1; }; }
 
31166
fi
 
31167
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
31168
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
31169
Usually this means the macro was only invoked conditionally." >&5
 
31170
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
31171
Usually this means the macro was only invoked conditionally." >&2;}
 
31172
   { (exit 1); exit 1; }; }
 
31173
fi
 
31174
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
31175
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
31176
Usually this means the macro was only invoked conditionally." >&5
 
31177
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
31178
Usually this means the macro was only invoked conditionally." >&2;}
 
31179
   { (exit 1); exit 1; }; }
 
31180
fi
 
31181
if test -z "${USE_C99_TYPES_TRUE}" && test -z "${USE_C99_TYPES_FALSE}"; then
 
31182
  { { echo "$as_me:$LINENO: error: conditional \"USE_C99_TYPES\" was never defined.
 
31183
Usually this means the macro was only invoked conditionally." >&5
 
31184
echo "$as_me: error: conditional \"USE_C99_TYPES\" was never defined.
 
31185
Usually this means the macro was only invoked conditionally." >&2;}
 
31186
   { (exit 1); exit 1; }; }
 
31187
fi
 
31188
if test -z "${COMPILER_IS_GCC_TRUE}" && test -z "${COMPILER_IS_GCC_FALSE}"; then
 
31189
  { { echo "$as_me:$LINENO: error: conditional \"COMPILER_IS_GCC\" was never defined.
 
31190
Usually this means the macro was only invoked conditionally." >&5
 
31191
echo "$as_me: error: conditional \"COMPILER_IS_GCC\" was never defined.
 
31192
Usually this means the macro was only invoked conditionally." >&2;}
 
31193
   { (exit 1); exit 1; }; }
 
31194
fi
 
31195
if test -z "${COMPILER_IS_GCC_TRUE}" && test -z "${COMPILER_IS_GCC_FALSE}"; then
 
31196
  { { echo "$as_me:$LINENO: error: conditional \"COMPILER_IS_GCC\" was never defined.
 
31197
Usually this means the macro was only invoked conditionally." >&5
 
31198
echo "$as_me: error: conditional \"COMPILER_IS_GCC\" was never defined.
 
31199
Usually this means the macro was only invoked conditionally." >&2;}
 
31200
   { (exit 1); exit 1; }; }
 
31201
fi
 
31202
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
 
31203
  { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
 
31204
Usually this means the macro was only invoked conditionally." >&5
 
31205
echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
 
31206
Usually this means the macro was only invoked conditionally." >&2;}
 
31207
   { (exit 1); exit 1; }; }
 
31208
fi
 
31209
 
 
31210
    gl_libobjs=
 
31211
    gl_ltlibobjs=
 
31212
    if test -n "$gl_LIBOBJS"; then
 
31213
      # Remove the extension.
 
31214
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
31215
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
31216
        gl_libobjs="$gl_libobjs $i.$ac_objext"
 
31217
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
 
31218
      done
 
31219
    fi
 
31220
    gl_LIBOBJS=$gl_libobjs
 
31221
 
 
31222
    gl_LTLIBOBJS=$gl_ltlibobjs
 
31223
 
 
31224
 
 
31225
if test -z "${CPPUNIT_TRUE}" && test -z "${CPPUNIT_FALSE}"; then
 
31226
  { { echo "$as_me:$LINENO: error: conditional \"CPPUNIT\" was never defined.
 
31227
Usually this means the macro was only invoked conditionally." >&5
 
31228
echo "$as_me: error: conditional \"CPPUNIT\" was never defined.
 
31229
Usually this means the macro was only invoked conditionally." >&2;}
 
31230
   { (exit 1); exit 1; }; }
 
31231
fi
 
31232
if test -z "${CPPUNIT_TRUE}" && test -z "${CPPUNIT_FALSE}"; then
 
31233
  { { echo "$as_me:$LINENO: error: conditional \"CPPUNIT\" was never defined.
 
31234
Usually this means the macro was only invoked conditionally." >&5
 
31235
echo "$as_me: error: conditional \"CPPUNIT\" was never defined.
 
31236
Usually this means the macro was only invoked conditionally." >&2;}
 
31237
   { (exit 1); exit 1; }; }
 
31238
fi
 
31239
 
 
31240
: ${CONFIG_STATUS=./config.status}
 
31241
ac_clean_files_save=$ac_clean_files
 
31242
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
31243
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
31244
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
31245
cat >$CONFIG_STATUS <<_ACEOF
 
31246
#! $SHELL
 
31247
# Generated by $as_me.
 
31248
# Run this file to recreate the current configuration.
 
31249
# Compiler output produced by configure, useful for debugging
 
31250
# configure, is in config.log if it exists.
 
31251
 
 
31252
debug=false
 
31253
ac_cs_recheck=false
 
31254
ac_cs_silent=false
 
31255
SHELL=\${CONFIG_SHELL-$SHELL}
 
31256
_ACEOF
 
31257
 
 
31258
cat >>$CONFIG_STATUS <<\_ACEOF
 
31259
## --------------------- ##
 
31260
## M4sh Initialization.  ##
 
31261
## --------------------- ##
 
31262
 
 
31263
# Be more Bourne compatible
 
31264
DUALCASE=1; export DUALCASE # for MKS sh
 
31265
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
31266
  emulate sh
 
31267
  NULLCMD=:
 
31268
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
31269
  # is contrary to our usage.  Disable this feature.
 
31270
  alias -g '${1+"$@"}'='"$@"'
 
31271
  setopt NO_GLOB_SUBST
 
31272
else
 
31273
  case `(set -o) 2>/dev/null` in
 
31274
  *posix*) set -o posix ;;
 
31275
esac
 
31276
 
 
31277
fi
 
31278
 
 
31279
 
 
31280
 
 
31281
 
 
31282
# PATH needs CR
 
31283
# Avoid depending upon Character Ranges.
 
31284
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
31285
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
31286
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
31287
as_cr_digits='0123456789'
 
31288
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
31289
 
 
31290
# The user is always right.
 
31291
if test "${PATH_SEPARATOR+set}" != set; then
 
31292
  echo "#! /bin/sh" >conf$$.sh
 
31293
  echo  "exit 0"   >>conf$$.sh
 
31294
  chmod +x conf$$.sh
 
31295
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
31296
    PATH_SEPARATOR=';'
 
31297
  else
 
31298
    PATH_SEPARATOR=:
 
31299
  fi
 
31300
  rm -f conf$$.sh
 
31301
fi
 
31302
 
 
31303
# Support unset when possible.
 
31304
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
31305
  as_unset=unset
 
31306
else
 
31307
  as_unset=false
 
31308
fi
 
31309
 
 
31310
 
 
31311
# IFS
 
31312
# We need space, tab and new line, in precisely that order.  Quoting is
 
31313
# there to prevent editors from complaining about space-tab.
 
31314
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
31315
# splitting by setting IFS to empty value.)
 
31316
as_nl='
 
31317
'
 
31318
IFS=" ""        $as_nl"
 
31319
 
 
31320
# Find who we are.  Look in the path if we contain no directory separator.
 
31321
case $0 in
 
31322
  *[\\/]* ) as_myself=$0 ;;
 
31323
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31324
for as_dir in $PATH
 
31325
do
 
31326
  IFS=$as_save_IFS
 
31327
  test -z "$as_dir" && as_dir=.
 
31328
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
31329
done
 
31330
IFS=$as_save_IFS
 
31331
 
 
31332
     ;;
 
31333
esac
 
31334
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
31335
# in which case we are not to be found in the path.
 
31336
if test "x$as_myself" = x; then
 
31337
  as_myself=$0
 
31338
fi
 
31339
if test ! -f "$as_myself"; then
 
31340
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
31341
  { (exit 1); exit 1; }
 
31342
fi
 
31343
 
 
31344
# Work around bugs in pre-3.0 UWIN ksh.
 
31345
for as_var in ENV MAIL MAILPATH
 
31346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
31347
done
 
31348
PS1='$ '
 
31349
PS2='> '
 
31350
PS4='+ '
 
31351
 
 
31352
# NLS nuisances.
 
31353
for as_var in \
 
31354
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
31355
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
31356
  LC_TELEPHONE LC_TIME
 
31357
do
 
31358
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
31359
    eval $as_var=C; export $as_var
 
31360
  else
 
31361
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
31362
  fi
 
31363
done
 
31364
 
 
31365
# Required to use basename.
 
31366
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
31367
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
31368
  as_expr=expr
 
31369
else
 
31370
  as_expr=false
 
31371
fi
 
31372
 
 
31373
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
31374
  as_basename=basename
 
31375
else
 
31376
  as_basename=false
 
31377
fi
 
31378
 
 
31379
 
 
31380
# Name of the executable.
 
31381
as_me=`$as_basename -- "$0" ||
 
31382
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
31383
         X"$0" : 'X\(//\)$' \| \
 
31384
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
31385
echo X/"$0" |
 
31386
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
31387
            s//\1/
 
31388
            q
 
31389
          }
 
31390
          /^X\/\(\/\/\)$/{
 
31391
            s//\1/
 
31392
            q
 
31393
          }
 
31394
          /^X\/\(\/\).*/{
 
31395
            s//\1/
 
31396
            q
 
31397
          }
 
31398
          s/.*/./; q'`
 
31399
 
 
31400
# CDPATH.
 
31401
$as_unset CDPATH
 
31402
 
 
31403
 
 
31404
 
 
31405
  as_lineno_1=$LINENO
 
31406
  as_lineno_2=$LINENO
 
31407
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
31408
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
31409
 
 
31410
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
31411
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
31412
  # line-number line after each line using $LINENO; the second 'sed'
 
31413
  # does the real work.  The second script uses 'N' to pair each
 
31414
  # line-number line with the line containing $LINENO, and appends
 
31415
  # trailing '-' during substitution so that $LINENO is not a special
 
31416
  # case at line end.
 
31417
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
31418
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
31419
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
31420
  sed -n '
 
31421
    p
 
31422
    /[$]LINENO/=
 
31423
  ' <$as_myself |
 
31424
    sed '
 
31425
      s/[$]LINENO.*/&-/
 
31426
      t lineno
 
31427
      b
 
31428
      :lineno
 
31429
      N
 
31430
      :loop
 
31431
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
31432
      t loop
 
31433
      s/-\n.*//
 
31434
    ' >$as_me.lineno &&
 
31435
  chmod +x "$as_me.lineno" ||
 
31436
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
31437
   { (exit 1); exit 1; }; }
 
31438
 
 
31439
  # Don't try to exec as it changes $[0], causing all sort of problems
 
31440
  # (the dirname of $[0] is not the place where we might find the
 
31441
  # original and so on.  Autoconf is especially sensitive to this).
 
31442
  . "./$as_me.lineno"
 
31443
  # Exit status is that of the last command.
 
31444
  exit
 
31445
}
 
31446
 
 
31447
 
 
31448
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
31449
  as_dirname=dirname
 
31450
else
 
31451
  as_dirname=false
 
31452
fi
 
31453
 
 
31454
ECHO_C= ECHO_N= ECHO_T=
 
31455
case `echo -n x` in
 
31456
-n*)
 
31457
  case `echo 'x\c'` in
 
31458
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
31459
  *)   ECHO_C='\c';;
 
31460
  esac;;
 
31461
*)
 
31462
  ECHO_N='-n';;
 
31463
esac
 
31464
 
 
31465
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
31466
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
31467
  as_expr=expr
 
31468
else
 
31469
  as_expr=false
 
31470
fi
 
31471
 
 
31472
rm -f conf$$ conf$$.exe conf$$.file
 
31473
if test -d conf$$.dir; then
 
31474
  rm -f conf$$.dir/conf$$.file
 
31475
else
 
31476
  rm -f conf$$.dir
 
31477
  mkdir conf$$.dir
 
31478
fi
 
31479
echo >conf$$.file
 
31480
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
31481
  as_ln_s='ln -s'
 
31482
  # ... but there are two gotchas:
 
31483
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
31484
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
31485
  # In both cases, we have to default to `cp -p'.
 
31486
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
31487
    as_ln_s='cp -p'
 
31488
elif ln conf$$.file conf$$ 2>/dev/null; then
 
31489
  as_ln_s=ln
 
31490
else
 
31491
  as_ln_s='cp -p'
 
31492
fi
 
31493
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
31494
rmdir conf$$.dir 2>/dev/null
 
31495
 
 
31496
if mkdir -p . 2>/dev/null; then
 
31497
  as_mkdir_p=:
 
31498
else
 
31499
  test -d ./-p && rmdir ./-p
 
31500
  as_mkdir_p=false
 
31501
fi
 
31502
 
 
31503
if test -x / >/dev/null 2>&1; then
 
31504
  as_test_x='test -x'
 
31505
else
 
31506
  if ls -dL / >/dev/null 2>&1; then
 
31507
    as_ls_L_option=L
 
31508
  else
 
31509
    as_ls_L_option=
 
31510
  fi
 
31511
  as_test_x='
 
31512
    eval sh -c '\''
 
31513
      if test -d "$1"; then
 
31514
        test -d "$1/.";
 
31515
      else
 
31516
        case $1 in
 
31517
        -*)set "./$1";;
 
31518
        esac;
 
31519
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
31520
        ???[sx]*):;;*)false;;esac;fi
 
31521
    '\'' sh
 
31522
  '
 
31523
fi
 
31524
as_executable_p=$as_test_x
 
31525
 
 
31526
# Sed expression to map a string onto a valid CPP name.
 
31527
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
31528
 
 
31529
# Sed expression to map a string onto a valid variable name.
 
31530
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
31531
 
 
31532
 
 
31533
exec 6>&1
 
31534
 
 
31535
# Save the log message, to keep $[0] and so on meaningful, and to
 
31536
# report actual input values of CONFIG_FILES etc. instead of their
 
31537
# values after options handling.
 
31538
ac_log="
 
31539
This file was extended by libdap $as_me 3.9.3, which was
 
31540
generated by GNU Autoconf 2.61.  Invocation command line was
 
31541
 
 
31542
  CONFIG_FILES    = $CONFIG_FILES
 
31543
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
31544
  CONFIG_LINKS    = $CONFIG_LINKS
 
31545
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
31546
  $ $0 $@
 
31547
 
 
31548
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
31549
"
 
31550
 
 
31551
_ACEOF
 
31552
 
 
31553
cat >>$CONFIG_STATUS <<_ACEOF
 
31554
# Files that config.status was made for.
 
31555
config_files="$ac_config_files"
 
31556
config_headers="$ac_config_headers"
 
31557
config_commands="$ac_config_commands"
 
31558
 
 
31559
_ACEOF
 
31560
 
 
31561
cat >>$CONFIG_STATUS <<\_ACEOF
 
31562
ac_cs_usage="\
 
31563
\`$as_me' instantiates files from templates according to the
 
31564
current configuration.
 
31565
 
 
31566
Usage: $0 [OPTIONS] [FILE]...
 
31567
 
 
31568
  -h, --help       print this help, then exit
 
31569
  -V, --version    print version number and configuration settings, then exit
 
31570
  -q, --quiet      do not print progress messages
 
31571
  -d, --debug      don't remove temporary files
 
31572
      --recheck    update $as_me by reconfiguring in the same conditions
 
31573
  --file=FILE[:TEMPLATE]
 
31574
                   instantiate the configuration file FILE
 
31575
  --header=FILE[:TEMPLATE]
 
31576
                   instantiate the configuration header FILE
 
31577
 
 
31578
Configuration files:
 
31579
$config_files
 
31580
 
 
31581
Configuration headers:
 
31582
$config_headers
 
31583
 
 
31584
Configuration commands:
 
31585
$config_commands
 
31586
 
 
31587
Report bugs to <bug-autoconf@gnu.org>."
 
31588
 
 
31589
_ACEOF
 
31590
cat >>$CONFIG_STATUS <<_ACEOF
 
31591
ac_cs_version="\\
 
31592
libdap config.status 3.9.3
 
31593
configured by $0, generated by GNU Autoconf 2.61,
 
31594
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
31595
 
 
31596
Copyright (C) 2006 Free Software Foundation, Inc.
 
31597
This config.status script is free software; the Free Software Foundation
 
31598
gives unlimited permission to copy, distribute and modify it."
 
31599
 
 
31600
ac_pwd='$ac_pwd'
 
31601
srcdir='$srcdir'
 
31602
INSTALL='$INSTALL'
 
31603
MKDIR_P='$MKDIR_P'
 
31604
_ACEOF
 
31605
 
 
31606
cat >>$CONFIG_STATUS <<\_ACEOF
 
31607
# If no file are specified by the user, then we need to provide default
 
31608
# value.  By we need to know if files were specified by the user.
 
31609
ac_need_defaults=:
 
31610
while test $# != 0
 
31611
do
 
31612
  case $1 in
 
31613
  --*=*)
 
31614
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
31615
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
31616
    ac_shift=:
 
31617
    ;;
 
31618
  *)
 
31619
    ac_option=$1
 
31620
    ac_optarg=$2
 
31621
    ac_shift=shift
 
31622
    ;;
 
31623
  esac
 
31624
 
 
31625
  case $ac_option in
 
31626
  # Handling of the options.
 
31627
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
31628
    ac_cs_recheck=: ;;
 
31629
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
31630
    echo "$ac_cs_version"; exit ;;
 
31631
  --debug | --debu | --deb | --de | --d | -d )
 
31632
    debug=: ;;
 
31633
  --file | --fil | --fi | --f )
 
31634
    $ac_shift
 
31635
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
31636
    ac_need_defaults=false;;
 
31637
  --header | --heade | --head | --hea )
 
31638
    $ac_shift
 
31639
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
31640
    ac_need_defaults=false;;
 
31641
  --he | --h)
 
31642
    # Conflict between --help and --header
 
31643
    { echo "$as_me: error: ambiguous option: $1
 
31644
Try \`$0 --help' for more information." >&2
 
31645
   { (exit 1); exit 1; }; };;
 
31646
  --help | --hel | -h )
 
31647
    echo "$ac_cs_usage"; exit ;;
 
31648
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
31649
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
31650
    ac_cs_silent=: ;;
 
31651
 
 
31652
  # This is an error.
 
31653
  -*) { echo "$as_me: error: unrecognized option: $1
 
31654
Try \`$0 --help' for more information." >&2
 
31655
   { (exit 1); exit 1; }; } ;;
 
31656
 
 
31657
  *) ac_config_targets="$ac_config_targets $1"
 
31658
     ac_need_defaults=false ;;
 
31659
 
 
31660
  esac
 
31661
  shift
 
31662
done
 
31663
 
 
31664
ac_configure_extra_args=
 
31665
 
 
31666
if $ac_cs_silent; then
 
31667
  exec 6>/dev/null
 
31668
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
31669
fi
 
31670
 
 
31671
_ACEOF
 
31672
cat >>$CONFIG_STATUS <<_ACEOF
 
31673
if \$ac_cs_recheck; then
 
31674
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
31675
  CONFIG_SHELL=$SHELL
 
31676
  export CONFIG_SHELL
 
31677
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
31678
fi
 
31679
 
 
31680
_ACEOF
 
31681
cat >>$CONFIG_STATUS <<\_ACEOF
 
31682
exec 5>>config.log
 
31683
{
 
31684
  echo
 
31685
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
31686
## Running $as_me. ##
 
31687
_ASBOX
 
31688
  echo "$ac_log"
 
31689
} >&5
 
31690
 
 
31691
_ACEOF
 
31692
cat >>$CONFIG_STATUS <<_ACEOF
 
31693
#
 
31694
# INIT-COMMANDS
 
31695
#
 
31696
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
31697
 
 
31698
_ACEOF
 
31699
 
 
31700
cat >>$CONFIG_STATUS <<\_ACEOF
 
31701
 
 
31702
# Handling of arguments.
 
31703
for ac_config_target in $ac_config_targets
 
31704
do
 
31705
  case $ac_config_target in
 
31706
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
31707
    "dods-datatypes-config.h") CONFIG_HEADERS="$CONFIG_HEADERS dods-datatypes-config.h" ;;
 
31708
    "xdr-datatypes-config.h") CONFIG_HEADERS="$CONFIG_HEADERS xdr-datatypes-config.h" ;;
 
31709
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
31710
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
31711
    "libdap.pc") CONFIG_FILES="$CONFIG_FILES libdap.pc" ;;
 
31712
    "libdapclient.pc") CONFIG_FILES="$CONFIG_FILES libdapclient.pc" ;;
 
31713
    "libdapserver.pc") CONFIG_FILES="$CONFIG_FILES libdapserver.pc" ;;
 
31714
    "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
 
31715
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
31716
    "unit-tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/Makefile" ;;
 
31717
    "unit-tests/cache-testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/cache-testsuite/Makefile" ;;
 
31718
    "dap-config") CONFIG_FILES="$CONFIG_FILES dap-config" ;;
 
31719
 
 
31720
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
31721
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
31722
   { (exit 1); exit 1; }; };;
 
31723
  esac
 
31724
done
 
31725
 
 
31726
 
 
31727
# If the user did not use the arguments to specify the items to instantiate,
 
31728
# then the envvar interface is used.  Set only those that are not.
 
31729
# We use the long form for the default assignment because of an extremely
 
31730
# bizarre bug on SunOS 4.1.3.
 
31731
if $ac_need_defaults; then
 
31732
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
31733
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
31734
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
31735
fi
 
31736
 
 
31737
# Have a temporary directory for convenience.  Make it in the build tree
 
31738
# simply because there is no reason against having it here, and in addition,
 
31739
# creating and moving files from /tmp can sometimes cause problems.
 
31740
# Hook for its removal unless debugging.
 
31741
# Note that there is a small window in which the directory will not be cleaned:
 
31742
# after its creation but before its name has been assigned to `$tmp'.
 
31743
$debug ||
 
31744
{
 
31745
  tmp=
 
31746
  trap 'exit_status=$?
 
31747
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
31748
' 0
 
31749
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
31750
}
 
31751
# Create a (secure) tmp directory for tmp files.
 
31752
 
 
31753
{
 
31754
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
31755
  test -n "$tmp" && test -d "$tmp"
 
31756
}  ||
 
31757
{
 
31758
  tmp=./conf$$-$RANDOM
 
31759
  (umask 077 && mkdir "$tmp")
 
31760
} ||
 
31761
{
 
31762
   echo "$me: cannot create a temporary directory in ." >&2
 
31763
   { (exit 1); exit 1; }
 
31764
}
 
31765
 
 
31766
#
 
31767
# Set up the sed scripts for CONFIG_FILES section.
 
31768
#
 
31769
 
 
31770
# No need to generate the scripts if there are no CONFIG_FILES.
 
31771
# This happens for instance when ./config.status config.h
 
31772
if test -n "$CONFIG_FILES"; then
 
31773
 
 
31774
_ACEOF
 
31775
 
 
31776
 
 
31777
 
 
31778
ac_delim='%!_!# '
 
31779
for ac_last_try in false false false false false :; do
 
31780
  cat >conf$$subs.sed <<_ACEOF
 
31781
SHELL!$SHELL$ac_delim
 
31782
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
31783
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
31784
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
31785
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
31786
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
31787
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
31788
exec_prefix!$exec_prefix$ac_delim
 
31789
prefix!$prefix$ac_delim
 
31790
program_transform_name!$program_transform_name$ac_delim
 
31791
bindir!$bindir$ac_delim
 
31792
sbindir!$sbindir$ac_delim
 
31793
libexecdir!$libexecdir$ac_delim
 
31794
datarootdir!$datarootdir$ac_delim
 
31795
datadir!$datadir$ac_delim
 
31796
sysconfdir!$sysconfdir$ac_delim
 
31797
sharedstatedir!$sharedstatedir$ac_delim
 
31798
localstatedir!$localstatedir$ac_delim
 
31799
includedir!$includedir$ac_delim
 
31800
oldincludedir!$oldincludedir$ac_delim
 
31801
docdir!$docdir$ac_delim
 
31802
infodir!$infodir$ac_delim
 
31803
htmldir!$htmldir$ac_delim
 
31804
dvidir!$dvidir$ac_delim
 
31805
pdfdir!$pdfdir$ac_delim
 
31806
psdir!$psdir$ac_delim
 
31807
libdir!$libdir$ac_delim
 
31808
localedir!$localedir$ac_delim
 
31809
mandir!$mandir$ac_delim
 
31810
DEFS!$DEFS$ac_delim
 
31811
ECHO_C!$ECHO_C$ac_delim
 
31812
ECHO_N!$ECHO_N$ac_delim
 
31813
ECHO_T!$ECHO_T$ac_delim
 
31814
LIBS!$LIBS$ac_delim
 
31815
build_alias!$build_alias$ac_delim
 
31816
host_alias!$host_alias$ac_delim
 
31817
target_alias!$target_alias$ac_delim
 
31818
DAP_PROTOCOL_VERSION!$DAP_PROTOCOL_VERSION$ac_delim
 
31819
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
31820
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
31821
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
31822
am__isrc!$am__isrc$ac_delim
 
31823
CYGPATH_W!$CYGPATH_W$ac_delim
 
31824
PACKAGE!$PACKAGE$ac_delim
 
31825
VERSION!$VERSION$ac_delim
 
31826
ACLOCAL!$ACLOCAL$ac_delim
 
31827
AUTOCONF!$AUTOCONF$ac_delim
 
31828
AUTOMAKE!$AUTOMAKE$ac_delim
 
31829
AUTOHEADER!$AUTOHEADER$ac_delim
 
31830
MAKEINFO!$MAKEINFO$ac_delim
 
31831
install_sh!$install_sh$ac_delim
 
31832
STRIP!$STRIP$ac_delim
 
31833
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
31834
mkdir_p!$mkdir_p$ac_delim
 
31835
AWK!$AWK$ac_delim
 
31836
SET_MAKE!$SET_MAKE$ac_delim
 
31837
am__leading_dot!$am__leading_dot$ac_delim
 
31838
AMTAR!$AMTAR$ac_delim
 
31839
am__tar!$am__tar$ac_delim
 
31840
am__untar!$am__untar$ac_delim
 
31841
DVR!$DVR$ac_delim
 
31842
EVAL!$EVAL$ac_delim
 
31843
COMPRESSION_FOR_SERVER3!$COMPRESSION_FOR_SERVER3$ac_delim
 
31844
build!$build$ac_delim
 
31845
build_cpu!$build_cpu$ac_delim
 
31846
build_vendor!$build_vendor$ac_delim
 
31847
build_os!$build_os$ac_delim
 
31848
host!$host$ac_delim
 
31849
host_cpu!$host_cpu$ac_delim
 
31850
host_vendor!$host_vendor$ac_delim
 
31851
host_os!$host_os$ac_delim
 
31852
DAPLIB_CURRENT!$DAPLIB_CURRENT$ac_delim
 
31853
DAPLIB_AGE!$DAPLIB_AGE$ac_delim
 
31854
DAPLIB_REVISION!$DAPLIB_REVISION$ac_delim
 
31855
LIBDAP_VERSION!$LIBDAP_VERSION$ac_delim
 
31856
CLIENTLIB_CURRENT!$CLIENTLIB_CURRENT$ac_delim
 
31857
CLIENTLIB_AGE!$CLIENTLIB_AGE$ac_delim
 
31858
CLIENTLIB_REVISION!$CLIENTLIB_REVISION$ac_delim
 
31859
CLIENTLIB_VERSION!$CLIENTLIB_VERSION$ac_delim
 
31860
SERVERLIB_CURRENT!$SERVERLIB_CURRENT$ac_delim
 
31861
SERVERLIB_AGE!$SERVERLIB_AGE$ac_delim
 
31862
SERVERLIB_REVISION!$SERVERLIB_REVISION$ac_delim
 
31863
SERVERLIB_VERSION!$SERVERLIB_VERSION$ac_delim
 
31864
CXX!$CXX$ac_delim
 
31865
CXXFLAGS!$CXXFLAGS$ac_delim
 
31866
LDFLAGS!$LDFLAGS$ac_delim
 
31867
CPPFLAGS!$CPPFLAGS$ac_delim
 
31868
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
31869
EXEEXT!$EXEEXT$ac_delim
 
31870
OBJEXT!$OBJEXT$ac_delim
 
31871
DEPDIR!$DEPDIR$ac_delim
 
31872
am__include!$am__include$ac_delim
 
31873
am__quote!$am__quote$ac_delim
 
31874
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
31875
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
31876
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
31877
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
31878
_ACEOF
 
31879
 
 
31880
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
31881
    break
 
31882
  elif $ac_last_try; then
 
31883
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
31884
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
31885
   { (exit 1); exit 1; }; }
 
31886
  else
 
31887
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
31888
  fi
 
31889
done
 
31890
 
 
31891
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
31892
if test -n "$ac_eof"; then
 
31893
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
31894
  ac_eof=`expr $ac_eof + 1`
 
31895
fi
 
31896
 
 
31897
cat >>$CONFIG_STATUS <<_ACEOF
 
31898
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
31899
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
31900
_ACEOF
 
31901
sed '
 
31902
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
31903
s/^/s,@/; s/!/@,|#_!!_#|/
 
31904
:n
 
31905
t n
 
31906
s/'"$ac_delim"'$/,g/; t
 
31907
s/$/\\/; p
 
31908
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
31909
' >>$CONFIG_STATUS <conf$$subs.sed
 
31910
rm -f conf$$subs.sed
 
31911
cat >>$CONFIG_STATUS <<_ACEOF
 
31912
CEOF$ac_eof
 
31913
_ACEOF
 
31914
 
 
31915
 
 
31916
ac_delim='%!_!# '
 
31917
for ac_last_try in false false false false false :; do
 
31918
  cat >conf$$subs.sed <<_ACEOF
 
31919
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
31920
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
31921
CC!$CC$ac_delim
 
31922
CFLAGS!$CFLAGS$ac_delim
 
31923
ac_ct_CC!$ac_ct_CC$ac_delim
 
31924
CCDEPMODE!$CCDEPMODE$ac_delim
 
31925
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
31926
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
31927
RANLIB!$RANLIB$ac_delim
 
31928
CPP!$CPP$ac_delim
 
31929
GREP!$GREP$ac_delim
 
31930
EGREP!$EGREP$ac_delim
 
31931
LEX!$LEX$ac_delim
 
31932
LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
 
31933
LEXLIB!$LEXLIB$ac_delim
 
31934
LN_S!$LN_S$ac_delim
 
31935
SED!$SED$ac_delim
 
31936
ECHO!$ECHO$ac_delim
 
31937
AR!$AR$ac_delim
 
31938
CXXCPP!$CXXCPP$ac_delim
 
31939
F77!$F77$ac_delim
 
31940
FFLAGS!$FFLAGS$ac_delim
 
31941
ac_ct_F77!$ac_ct_F77$ac_delim
 
31942
LIBTOOL!$LIBTOOL$ac_delim
 
31943
YACC!$YACC$ac_delim
 
31944
USE_C99_TYPES_TRUE!$USE_C99_TYPES_TRUE$ac_delim
 
31945
USE_C99_TYPES_FALSE!$USE_C99_TYPES_FALSE$ac_delim
 
31946
COMPILER_IS_GCC_TRUE!$COMPILER_IS_GCC_TRUE$ac_delim
 
31947
COMPILER_IS_GCC_FALSE!$COMPILER_IS_GCC_FALSE$ac_delim
 
31948
GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
 
31949
GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
 
31950
LTALLOCA!$LTALLOCA$ac_delim
 
31951
ALLOCA!$ALLOCA$ac_delim
 
31952
ALLOCA_H!$ALLOCA_H$ac_delim
 
31953
LIBINTL!$LIBINTL$ac_delim
 
31954
LTLIBINTL!$LTLIBINTL$ac_delim
 
31955
GLIBC21!$GLIBC21$ac_delim
 
31956
HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
 
31957
GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
 
31958
GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
 
31959
GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
 
31960
GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
 
31961
GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
 
31962
GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
 
31963
HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
 
31964
HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
 
31965
HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
 
31966
HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
 
31967
REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
 
31968
STDBOOL_H!$STDBOOL_H$ac_delim
 
31969
HAVE__BOOL!$HAVE__BOOL$ac_delim
 
31970
HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
 
31971
HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
 
31972
HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
 
31973
HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
 
31974
INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
 
31975
NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
 
31976
HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
 
31977
HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
 
31978
HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
 
31979
BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
 
31980
BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
 
31981
BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
 
31982
BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
 
31983
BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
 
31984
HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
 
31985
HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
 
31986
HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
 
31987
PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
 
31988
SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
 
31989
SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
 
31990
WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
 
31991
WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
 
31992
STDINT_H!$STDINT_H$ac_delim
 
31993
NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
 
31994
GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
 
31995
GNULIB_DUP2!$GNULIB_DUP2$ac_delim
 
31996
GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
 
31997
GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
 
31998
GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
 
31999
GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
 
32000
GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
 
32001
GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
 
32002
GNULIB_READLINK!$GNULIB_READLINK$ac_delim
 
32003
GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
 
32004
HAVE_DUP2!$HAVE_DUP2$ac_delim
 
32005
HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
 
32006
HAVE_READLINK!$HAVE_READLINK$ac_delim
 
32007
HAVE_SLEEP!$HAVE_SLEEP$ac_delim
 
32008
HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
 
32009
REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
 
32010
REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
 
32011
REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
 
32012
REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
 
32013
REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
 
32014
NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
 
32015
HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
 
32016
_ACEOF
 
32017
 
 
32018
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
32019
    break
 
32020
  elif $ac_last_try; then
 
32021
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
32022
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
32023
   { (exit 1); exit 1; }; }
 
32024
  else
 
32025
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
32026
  fi
 
32027
done
 
32028
 
 
32029
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
32030
if test -n "$ac_eof"; then
 
32031
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
32032
  ac_eof=`expr $ac_eof + 1`
 
32033
fi
 
32034
 
 
32035
cat >>$CONFIG_STATUS <<_ACEOF
 
32036
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
32037
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
32038
_ACEOF
 
32039
sed '
 
32040
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
32041
s/^/s,@/; s/!/@,|#_!!_#|/
 
32042
:n
 
32043
t n
 
32044
s/'"$ac_delim"'$/,g/; t
 
32045
s/$/\\/; p
 
32046
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
32047
' >>$CONFIG_STATUS <conf$$subs.sed
 
32048
rm -f conf$$subs.sed
 
32049
cat >>$CONFIG_STATUS <<_ACEOF
 
32050
CEOF$ac_eof
 
32051
_ACEOF
 
32052
 
 
32053
 
 
32054
ac_delim='%!_!# '
 
32055
for ac_last_try in false false false false false :; do
 
32056
  cat >conf$$subs.sed <<_ACEOF
 
32057
GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
 
32058
HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
 
32059
REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
 
32060
WCHAR_H!$WCHAR_H$ac_delim
 
32061
HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
 
32062
NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
 
32063
HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
 
32064
HAVE_WINT_T!$HAVE_WINT_T$ac_delim
 
32065
NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
 
32066
HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
 
32067
WCTYPE_H!$WCTYPE_H$ac_delim
 
32068
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
32069
CURL_CFLAGS!$CURL_CFLAGS$ac_delim
 
32070
CURL_LIBS!$CURL_LIBS$ac_delim
 
32071
curlprivatereq!$curlprivatereq$ac_delim
 
32072
curlprivatelibs!$curlprivatelibs$ac_delim
 
32073
CURL_STATIC_LIBS!$CURL_STATIC_LIBS$ac_delim
 
32074
XML2_CFLAGS!$XML2_CFLAGS$ac_delim
 
32075
XML2_LIBS!$XML2_LIBS$ac_delim
 
32076
xmlprivatereq!$xmlprivatereq$ac_delim
 
32077
xmlprivatelibs!$xmlprivatelibs$ac_delim
 
32078
XML2_STATIC_LIBS!$XML2_STATIC_LIBS$ac_delim
 
32079
ZLIB_LIBS!$ZLIB_LIBS$ac_delim
 
32080
ZLIB_LDFLAGS!$ZLIB_LDFLAGS$ac_delim
 
32081
ZLIB_CFLAGS!$ZLIB_CFLAGS$ac_delim
 
32082
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
 
32083
CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
 
32084
CPPUNIT_TRUE!$CPPUNIT_TRUE$ac_delim
 
32085
CPPUNIT_FALSE!$CPPUNIT_FALSE$ac_delim
 
32086
CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
 
32087
CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
 
32088
LIBOBJS!$LIBOBJS$ac_delim
 
32089
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
32090
gl_LIBOBJS!$gl_LIBOBJS$ac_delim
 
32091
gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
 
32092
_ACEOF
 
32093
 
 
32094
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
 
32095
    break
 
32096
  elif $ac_last_try; then
 
32097
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
32098
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
32099
   { (exit 1); exit 1; }; }
 
32100
  else
 
32101
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
32102
  fi
 
32103
done
 
32104
 
 
32105
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
32106
if test -n "$ac_eof"; then
 
32107
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
32108
  ac_eof=`expr $ac_eof + 1`
 
32109
fi
 
32110
 
 
32111
cat >>$CONFIG_STATUS <<_ACEOF
 
32112
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 
32113
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
32114
_ACEOF
 
32115
sed '
 
32116
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
32117
s/^/s,@/; s/!/@,|#_!!_#|/
 
32118
:n
 
32119
t n
 
32120
s/'"$ac_delim"'$/,g/; t
 
32121
s/$/\\/; p
 
32122
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
32123
' >>$CONFIG_STATUS <conf$$subs.sed
 
32124
rm -f conf$$subs.sed
 
32125
cat >>$CONFIG_STATUS <<_ACEOF
 
32126
:end
 
32127
s/|#_!!_#|//g
 
32128
CEOF$ac_eof
 
32129
_ACEOF
 
32130
 
 
32131
 
 
32132
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
32133
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
32134
# trailing colons and then remove the whole line if VPATH becomes empty
 
32135
# (actually we leave an empty line to preserve line numbers).
 
32136
if test "x$srcdir" = x.; then
 
32137
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
32138
s/:*\$(srcdir):*/:/
 
32139
s/:*\${srcdir}:*/:/
 
32140
s/:*@srcdir@:*/:/
 
32141
s/^\([^=]*=[     ]*\):*/\1/
 
32142
s/:*$//
 
32143
s/^[^=]*=[       ]*$//
 
32144
}'
 
32145
fi
 
32146
 
 
32147
cat >>$CONFIG_STATUS <<\_ACEOF
 
32148
fi # test -n "$CONFIG_FILES"
 
32149
 
 
32150
 
 
32151
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
32152
do
 
32153
  case $ac_tag in
 
32154
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
32155
  esac
 
32156
  case $ac_mode$ac_tag in
 
32157
  :[FHL]*:*);;
 
32158
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
32159
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
32160
   { (exit 1); exit 1; }; };;
 
32161
  :[FH]-) ac_tag=-:-;;
 
32162
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
32163
  esac
 
32164
  ac_save_IFS=$IFS
 
32165
  IFS=:
 
32166
  set x $ac_tag
 
32167
  IFS=$ac_save_IFS
 
32168
  shift
 
32169
  ac_file=$1
 
32170
  shift
 
32171
 
 
32172
  case $ac_mode in
 
32173
  :L) ac_source=$1;;
 
32174
  :[FH])
 
32175
    ac_file_inputs=
 
32176
    for ac_f
 
32177
    do
 
32178
      case $ac_f in
 
32179
      -) ac_f="$tmp/stdin";;
 
32180
      *) # Look for the file first in the build tree, then in the source tree
 
32181
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
32182
         # because $ac_f cannot contain `:'.
 
32183
         test -f "$ac_f" ||
 
32184
           case $ac_f in
 
32185
           [\\/$]*) false;;
 
32186
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
32187
           esac ||
 
32188
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
32189
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
32190
   { (exit 1); exit 1; }; };;
 
32191
      esac
 
32192
      ac_file_inputs="$ac_file_inputs $ac_f"
 
32193
    done
 
32194
 
 
32195
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
32196
    # use $as_me), people would be surprised to read:
 
32197
    #    /* config.h.  Generated by config.status.  */
 
32198
    configure_input="Generated from "`IFS=:
 
32199
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
32200
    if test x"$ac_file" != x-; then
 
32201
      configure_input="$ac_file.  $configure_input"
 
32202
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
32203
echo "$as_me: creating $ac_file" >&6;}
 
32204
    fi
 
32205
 
 
32206
    case $ac_tag in
 
32207
    *:-:* | *:-) cat >"$tmp/stdin";;
 
32208
    esac
 
32209
    ;;
 
32210
  esac
 
32211
 
 
32212
  ac_dir=`$as_dirname -- "$ac_file" ||
 
32213
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32214
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
32215
         X"$ac_file" : 'X\(//\)$' \| \
 
32216
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
32217
echo X"$ac_file" |
 
32218
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
32219
            s//\1/
 
32220
            q
 
32221
          }
 
32222
          /^X\(\/\/\)[^/].*/{
 
32223
            s//\1/
 
32224
            q
 
32225
          }
 
32226
          /^X\(\/\/\)$/{
 
32227
            s//\1/
 
32228
            q
 
32229
          }
 
32230
          /^X\(\/\).*/{
 
32231
            s//\1/
 
32232
            q
 
32233
          }
 
32234
          s/.*/./; q'`
 
32235
  { as_dir="$ac_dir"
 
32236
  case $as_dir in #(
 
32237
  -*) as_dir=./$as_dir;;
 
32238
  esac
 
32239
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
32240
    as_dirs=
 
32241
    while :; do
 
32242
      case $as_dir in #(
 
32243
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
32244
      *) as_qdir=$as_dir;;
 
32245
      esac
 
32246
      as_dirs="'$as_qdir' $as_dirs"
 
32247
      as_dir=`$as_dirname -- "$as_dir" ||
 
32248
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32249
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
32250
         X"$as_dir" : 'X\(//\)$' \| \
 
32251
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
32252
echo X"$as_dir" |
 
32253
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
32254
            s//\1/
 
32255
            q
 
32256
          }
 
32257
          /^X\(\/\/\)[^/].*/{
 
32258
            s//\1/
 
32259
            q
 
32260
          }
 
32261
          /^X\(\/\/\)$/{
 
32262
            s//\1/
 
32263
            q
 
32264
          }
 
32265
          /^X\(\/\).*/{
 
32266
            s//\1/
 
32267
            q
 
32268
          }
 
32269
          s/.*/./; q'`
 
32270
      test -d "$as_dir" && break
 
32271
    done
 
32272
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
32273
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
32274
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
32275
   { (exit 1); exit 1; }; }; }
 
32276
  ac_builddir=.
 
32277
 
 
32278
case "$ac_dir" in
 
32279
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
32280
*)
 
32281
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
32282
  # A ".." for each directory in $ac_dir_suffix.
 
32283
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
32284
  case $ac_top_builddir_sub in
 
32285
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
32286
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
32287
  esac ;;
 
32288
esac
 
32289
ac_abs_top_builddir=$ac_pwd
 
32290
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
32291
# for backward compatibility:
 
32292
ac_top_builddir=$ac_top_build_prefix
 
32293
 
 
32294
case $srcdir in
 
32295
  .)  # We are building in place.
 
32296
    ac_srcdir=.
 
32297
    ac_top_srcdir=$ac_top_builddir_sub
 
32298
    ac_abs_top_srcdir=$ac_pwd ;;
 
32299
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
32300
    ac_srcdir=$srcdir$ac_dir_suffix;
 
32301
    ac_top_srcdir=$srcdir
 
32302
    ac_abs_top_srcdir=$srcdir ;;
 
32303
  *) # Relative name.
 
32304
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
32305
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
32306
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
32307
esac
 
32308
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
32309
 
 
32310
 
 
32311
  case $ac_mode in
 
32312
  :F)
 
32313
  #
 
32314
  # CONFIG_FILE
 
32315
  #
 
32316
 
 
32317
  case $INSTALL in
 
32318
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
32319
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
32320
  esac
 
32321
  ac_MKDIR_P=$MKDIR_P
 
32322
  case $MKDIR_P in
 
32323
  [\\/$]* | ?:[\\/]* ) ;;
 
32324
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
32325
  esac
 
32326
_ACEOF
 
32327
 
 
32328
cat >>$CONFIG_STATUS <<\_ACEOF
 
32329
# If the template does not know about datarootdir, expand it.
 
32330
# FIXME: This hack should be removed a few years after 2.60.
 
32331
ac_datarootdir_hack=; ac_datarootdir_seen=
 
32332
 
 
32333
case `sed -n '/datarootdir/ {
 
32334
  p
 
32335
  q
 
32336
}
 
32337
/@datadir@/p
 
32338
/@docdir@/p
 
32339
/@infodir@/p
 
32340
/@localedir@/p
 
32341
/@mandir@/p
 
32342
' $ac_file_inputs` in
 
32343
*datarootdir*) ac_datarootdir_seen=yes;;
 
32344
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
32345
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
32346
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
32347
_ACEOF
 
32348
cat >>$CONFIG_STATUS <<_ACEOF
 
32349
  ac_datarootdir_hack='
 
32350
  s&@datadir@&$datadir&g
 
32351
  s&@docdir@&$docdir&g
 
32352
  s&@infodir@&$infodir&g
 
32353
  s&@localedir@&$localedir&g
 
32354
  s&@mandir@&$mandir&g
 
32355
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
32356
esac
 
32357
_ACEOF
 
32358
 
 
32359
# Neutralize VPATH when `$srcdir' = `.'.
 
32360
# Shell code in configure.ac might set extrasub.
 
32361
# FIXME: do we really want to maintain this feature?
 
32362
cat >>$CONFIG_STATUS <<_ACEOF
 
32363
  sed "$ac_vpsub
 
32364
$extrasub
 
32365
_ACEOF
 
32366
cat >>$CONFIG_STATUS <<\_ACEOF
 
32367
:t
 
32368
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
32369
s&@configure_input@&$configure_input&;t t
 
32370
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
32371
s&@srcdir@&$ac_srcdir&;t t
 
32372
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
32373
s&@top_srcdir@&$ac_top_srcdir&;t t
 
32374
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
32375
s&@builddir@&$ac_builddir&;t t
 
32376
s&@abs_builddir@&$ac_abs_builddir&;t t
 
32377
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
32378
s&@INSTALL@&$ac_INSTALL&;t t
 
32379
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
32380
$ac_datarootdir_hack
 
32381
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
 
32382
 
 
32383
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
32384
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
32385
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
32386
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
32387
which seems to be undefined.  Please make sure it is defined." >&5
 
32388
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
32389
which seems to be undefined.  Please make sure it is defined." >&2;}
 
32390
 
 
32391
  rm -f "$tmp/stdin"
 
32392
  case $ac_file in
 
32393
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
32394
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
32395
  esac
 
32396
 ;;
 
32397
  :H)
 
32398
  #
 
32399
  # CONFIG_HEADER
 
32400
  #
 
32401
_ACEOF
 
32402
 
 
32403
# Transform confdefs.h into a sed script `conftest.defines', that
 
32404
# substitutes the proper values into config.h.in to produce config.h.
 
32405
rm -f conftest.defines conftest.tail
 
32406
# First, append a space to every undef/define line, to ease matching.
 
32407
echo 's/$/ /' >conftest.defines
 
32408
# Then, protect against being on the right side of a sed subst, or in
 
32409
# an unquoted here document, in config.status.  If some macros were
 
32410
# called several times there might be several #defines for the same
 
32411
# symbol, which is useless.  But do not sort them, since the last
 
32412
# AC_DEFINE must be honored.
 
32413
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
32414
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
32415
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
32416
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
32417
# just an empty string.
 
32418
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
32419
ac_dB='\\)[      (].*,\\1define\\2'
 
32420
ac_dC=' '
 
32421
ac_dD=' ,'
 
32422
 
 
32423
uniq confdefs.h |
 
32424
  sed -n '
 
32425
        t rset
 
32426
        :rset
 
32427
        s/^[     ]*#[    ]*define[       ][      ]*//
 
32428
        t ok
 
32429
        d
 
32430
        :ok
 
32431
        s/[\\&,]/\\&/g
 
32432
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
32433
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
32434
  ' >>conftest.defines
 
32435
 
 
32436
# Remove the space that was appended to ease matching.
 
32437
# Then replace #undef with comments.  This is necessary, for
 
32438
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
32439
# on some systems where configure will not decide to define it.
 
32440
# (The regexp can be short, since the line contains either #define or #undef.)
 
32441
echo 's/ $//
 
32442
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
32443
 
 
32444
# Break up conftest.defines:
 
32445
ac_max_sed_lines=50
 
32446
 
 
32447
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
32448
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
32449
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
32450
# et cetera.
 
32451
ac_in='$ac_file_inputs'
 
32452
ac_out='"$tmp/out1"'
 
32453
ac_nxt='"$tmp/out2"'
 
32454
 
 
32455
while :
 
32456
do
 
32457
  # Write a here document:
 
32458
    cat >>$CONFIG_STATUS <<_ACEOF
 
32459
    # First, check the format of the line:
 
32460
    cat >"\$tmp/defines.sed" <<\\CEOF
 
32461
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
32462
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
32463
b
 
32464
:def
 
32465
_ACEOF
 
32466
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
32467
  echo 'CEOF
 
32468
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
32469
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
32470
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
32471
  grep . conftest.tail >/dev/null || break
 
32472
  rm -f conftest.defines
 
32473
  mv conftest.tail conftest.defines
 
32474
done
 
32475
rm -f conftest.defines conftest.tail
 
32476
 
 
32477
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
32478
cat >>$CONFIG_STATUS <<\_ACEOF
 
32479
  if test x"$ac_file" != x-; then
 
32480
    echo "/* $configure_input  */" >"$tmp/config.h"
 
32481
    cat "$ac_result" >>"$tmp/config.h"
 
32482
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
32483
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
32484
echo "$as_me: $ac_file is unchanged" >&6;}
 
32485
    else
 
32486
      rm -f $ac_file
 
32487
      mv "$tmp/config.h" $ac_file
 
32488
    fi
 
32489
  else
 
32490
    echo "/* $configure_input  */"
 
32491
    cat "$ac_result"
 
32492
  fi
 
32493
  rm -f "$tmp/out12"
 
32494
# Compute $ac_file's index in $config_headers.
 
32495
_am_stamp_count=1
 
32496
for _am_header in $config_headers :; do
 
32497
  case $_am_header in
 
32498
    $ac_file | $ac_file:* )
 
32499
      break ;;
 
32500
    * )
 
32501
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
32502
  esac
 
32503
done
 
32504
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
32505
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32506
         X$ac_file : 'X\(//\)[^/]' \| \
 
32507
         X$ac_file : 'X\(//\)$' \| \
 
32508
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
32509
echo X$ac_file |
 
32510
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
32511
            s//\1/
 
32512
            q
 
32513
          }
 
32514
          /^X\(\/\/\)[^/].*/{
 
32515
            s//\1/
 
32516
            q
 
32517
          }
 
32518
          /^X\(\/\/\)$/{
 
32519
            s//\1/
 
32520
            q
 
32521
          }
 
32522
          /^X\(\/\).*/{
 
32523
            s//\1/
 
32524
            q
 
32525
          }
 
32526
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
32527
 ;;
 
32528
 
 
32529
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
32530
echo "$as_me: executing $ac_file commands" >&6;}
 
32531
 ;;
 
32532
  esac
 
32533
 
 
32534
 
 
32535
  case $ac_file$ac_mode in
 
32536
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
32537
  # Strip MF so we end up with the name of the file.
 
32538
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
32539
  # Check whether this is an Automake generated Makefile or not.
 
32540
  # We used to match only the files named `Makefile.in', but
 
32541
  # some people rename them; so instead we look at the file content.
 
32542
  # Grep'ing the first line is not enough: some people post-process
 
32543
  # each Makefile.in and add a new line on top of each file to say so.
 
32544
  # Grep'ing the whole file is not good either: AIX grep has a line
 
32545
  # limit of 2048, but all sed's we know have understand at least 4000.
 
32546
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
32547
    dirpart=`$as_dirname -- "$mf" ||
 
32548
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32549
         X"$mf" : 'X\(//\)[^/]' \| \
 
32550
         X"$mf" : 'X\(//\)$' \| \
 
32551
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
32552
echo X"$mf" |
 
32553
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
32554
            s//\1/
 
32555
            q
 
32556
          }
 
32557
          /^X\(\/\/\)[^/].*/{
 
32558
            s//\1/
 
32559
            q
 
32560
          }
 
32561
          /^X\(\/\/\)$/{
 
32562
            s//\1/
 
32563
            q
 
32564
          }
 
32565
          /^X\(\/\).*/{
 
32566
            s//\1/
 
32567
            q
 
32568
          }
 
32569
          s/.*/./; q'`
 
32570
  else
 
32571
    continue
 
32572
  fi
 
32573
  # Extract the definition of DEPDIR, am__include, and am__quote
 
32574
  # from the Makefile without running `make'.
 
32575
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
32576
  test -z "$DEPDIR" && continue
 
32577
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
32578
  test -z "am__include" && continue
 
32579
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
32580
  # When using ansi2knr, U may be empty or an underscore; expand it
 
32581
  U=`sed -n 's/^U = //p' < "$mf"`
 
32582
  # Find all dependency output files, they are included files with
 
32583
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
32584
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
32585
  # expansion.
 
32586
  for file in `sed -n "
 
32587
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
32588
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
32589
    # Make sure the directory exists.
 
32590
    test -f "$dirpart/$file" && continue
 
32591
    fdir=`$as_dirname -- "$file" ||
 
32592
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32593
         X"$file" : 'X\(//\)[^/]' \| \
 
32594
         X"$file" : 'X\(//\)$' \| \
 
32595
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
32596
echo X"$file" |
 
32597
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
32598
            s//\1/
 
32599
            q
 
32600
          }
 
32601
          /^X\(\/\/\)[^/].*/{
 
32602
            s//\1/
 
32603
            q
 
32604
          }
 
32605
          /^X\(\/\/\)$/{
 
32606
            s//\1/
 
32607
            q
 
32608
          }
 
32609
          /^X\(\/\).*/{
 
32610
            s//\1/
 
32611
            q
 
32612
          }
 
32613
          s/.*/./; q'`
 
32614
    { as_dir=$dirpart/$fdir
 
32615
  case $as_dir in #(
 
32616
  -*) as_dir=./$as_dir;;
 
32617
  esac
 
32618
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
32619
    as_dirs=
 
32620
    while :; do
 
32621
      case $as_dir in #(
 
32622
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
32623
      *) as_qdir=$as_dir;;
 
32624
      esac
 
32625
      as_dirs="'$as_qdir' $as_dirs"
 
32626
      as_dir=`$as_dirname -- "$as_dir" ||
 
32627
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32628
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
32629
         X"$as_dir" : 'X\(//\)$' \| \
 
32630
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
32631
echo X"$as_dir" |
 
32632
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
32633
            s//\1/
 
32634
            q
 
32635
          }
 
32636
          /^X\(\/\/\)[^/].*/{
 
32637
            s//\1/
 
32638
            q
 
32639
          }
 
32640
          /^X\(\/\/\)$/{
 
32641
            s//\1/
 
32642
            q
 
32643
          }
 
32644
          /^X\(\/\).*/{
 
32645
            s//\1/
 
32646
            q
 
32647
          }
 
32648
          s/.*/./; q'`
 
32649
      test -d "$as_dir" && break
 
32650
    done
 
32651
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
32652
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
32653
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
32654
   { (exit 1); exit 1; }; }; }
 
32655
    # echo "creating $dirpart/$file"
 
32656
    echo '# dummy' > "$dirpart/$file"
 
32657
  done
 
32658
done
 
32659
 ;;
 
32660
    "dap-config":F) chmod +x dap-config ;;
 
32661
 
 
32662
  esac
 
32663
done # for ac_tag
 
32664
 
 
32665
 
 
32666
{ (exit 0); exit 0; }
 
32667
_ACEOF
 
32668
chmod +x $CONFIG_STATUS
 
32669
ac_clean_files=$ac_clean_files_save
 
32670
 
 
32671
 
 
32672
# configure is writing to config.log, and then calls config.status.
 
32673
# config.status does its own redirection, appending to config.log.
 
32674
# Unfortunately, on DOS this fails, as config.log is still kept open
 
32675
# by configure, so config.status won't be able to write to it; its
 
32676
# output is simply discarded.  So we exec the FD to /dev/null,
 
32677
# effectively closing config.log, so it can be properly (re)opened and
 
32678
# appended to by config.status.  When coming back to configure, we
 
32679
# need to make the FD available again.
 
32680
if test "$no_create" != yes; then
 
32681
  ac_cs_success=:
 
32682
  ac_config_status_args=
 
32683
  test "$silent" = yes &&
 
32684
    ac_config_status_args="$ac_config_status_args --quiet"
 
32685
  exec 5>/dev/null
 
32686
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
32687
  exec 5>>config.log
 
32688
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
32689
  # would make configure fail if this is the last instruction.
 
32690
  $ac_cs_success || { (exit 1); exit 1; }
 
32691
fi
 
32692