~ubuntu-branches/ubuntu/oneiric/libapache-mod-jk/oneiric

« back to all changes in this revision

Viewing changes to native/configure

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2006-08-05 16:30:53 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060805163053-myf66gm6j1a21ps6
Tags: 1:1.2.18-1ubuntu1
Merge from Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# From configure.in Id: configure.in 423675 2006-07-20 00:15:01Z rjung .
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated by GNU Autoconf 2.60.
 
5
#
 
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
7
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
24
fi
 
25
BIN_SH=xpg4; export BIN_SH # for Tru64
 
26
DUALCASE=1; export DUALCASE # for MKS sh
 
27
 
 
28
 
 
29
# PATH needs CR
 
30
# Avoid depending upon Character Ranges.
 
31
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
32
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
33
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
34
as_cr_digits='0123456789'
 
35
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
36
 
 
37
# The user is always right.
 
38
if test "${PATH_SEPARATOR+set}" != set; then
 
39
  echo "#! /bin/sh" >conf$$.sh
 
40
  echo  "exit 0"   >>conf$$.sh
 
41
  chmod +x conf$$.sh
 
42
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
43
    PATH_SEPARATOR=';'
 
44
  else
 
45
    PATH_SEPARATOR=:
 
46
  fi
 
47
  rm -f conf$$.sh
 
48
fi
 
49
 
 
50
# Support unset when possible.
 
51
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
52
  as_unset=unset
 
53
else
 
54
  as_unset=false
 
55
fi
 
56
 
 
57
 
 
58
# IFS
 
59
# We need space, tab and new line, in precisely that order.  Quoting is
 
60
# there to prevent editors from complaining about space-tab.
 
61
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
62
# splitting by setting IFS to empty value.)
 
63
as_nl='
 
64
'
 
65
IFS=" ""        $as_nl"
 
66
 
 
67
# Find who we are.  Look in the path if we contain no directory separator.
 
68
case $0 in
 
69
  *[\\/]* ) as_myself=$0 ;;
 
70
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
71
for as_dir in $PATH
 
72
do
 
73
  IFS=$as_save_IFS
 
74
  test -z "$as_dir" && as_dir=.
 
75
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
76
done
 
77
IFS=$as_save_IFS
 
78
 
 
79
     ;;
 
80
esac
 
81
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
82
# in which case we are not to be found in the path.
 
83
if test "x$as_myself" = x; then
 
84
  as_myself=$0
 
85
fi
 
86
if test ! -f "$as_myself"; then
 
87
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
88
  { (exit 1); exit 1; }
 
89
fi
 
90
 
 
91
# Work around bugs in pre-3.0 UWIN ksh.
 
92
for as_var in ENV MAIL MAILPATH
 
93
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
94
done
 
95
PS1='$ '
 
96
PS2='> '
 
97
PS4='+ '
 
98
 
 
99
# NLS nuisances.
 
100
for as_var in \
 
101
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
102
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
103
  LC_TELEPHONE LC_TIME
 
104
do
 
105
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
106
    eval $as_var=C; export $as_var
 
107
  else
 
108
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
109
  fi
 
110
done
 
111
 
 
112
# Required to use basename.
 
113
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
114
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
115
  as_expr=expr
 
116
else
 
117
  as_expr=false
 
118
fi
 
119
 
 
120
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
121
  as_basename=basename
 
122
else
 
123
  as_basename=false
 
124
fi
 
125
 
 
126
 
 
127
# Name of the executable.
 
128
as_me=`$as_basename -- "$0" ||
 
129
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
130
         X"$0" : 'X\(//\)$' \| \
 
131
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
132
echo X/"$0" |
 
133
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
134
            s//\1/
 
135
            q
 
136
          }
 
137
          /^X\/\(\/\/\)$/{
 
138
            s//\1/
 
139
            q
 
140
          }
 
141
          /^X\/\(\/\).*/{
 
142
            s//\1/
 
143
            q
 
144
          }
 
145
          s/.*/./; q'`
 
146
 
 
147
# CDPATH.
 
148
$as_unset CDPATH
 
149
 
 
150
 
 
151
if test "x$CONFIG_SHELL" = x; then
 
152
  if (eval ":") 2>/dev/null; then
 
153
  as_have_required=yes
 
154
else
 
155
  as_have_required=no
 
156
fi
 
157
 
 
158
  if test $as_have_required = yes &&     (eval ":
 
159
(as_func_return () {
 
160
  (exit \$1)
 
161
}
 
162
as_func_success () {
 
163
  as_func_return 0
 
164
}
 
165
as_func_failure () {
 
166
  as_func_return 1
 
167
}
 
168
as_func_ret_success () {
 
169
  return 0
 
170
}
 
171
as_func_ret_failure () {
 
172
  return 1
 
173
}
 
174
 
 
175
exitcode=0
 
176
if as_func_success; then
 
177
  :
 
178
else
 
179
  exitcode=1
 
180
  echo as_func_success failed.
 
181
fi
 
182
 
 
183
if as_func_failure; then
 
184
  exitcode=1
 
185
  echo as_func_failure succeeded.
 
186
fi
 
187
 
 
188
if as_func_ret_success; then
 
189
  :
 
190
else
 
191
  exitcode=1
 
192
  echo as_func_ret_success failed.
 
193
fi
 
194
 
 
195
if as_func_ret_failure; then
 
196
  exitcode=1
 
197
  echo as_func_ret_failure succeeded.
 
198
fi
 
199
 
 
200
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
201
  :
 
202
else
 
203
  exitcode=1
 
204
  echo positional parameters were not saved.
 
205
fi
 
206
 
 
207
test \$exitcode = 0) || { (exit 1); exit 1; }
 
208
 
 
209
(
 
210
  as_lineno_1=\$LINENO
 
211
  as_lineno_2=\$LINENO
 
212
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
213
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
214
") 2> /dev/null; then
 
215
  :
 
216
else
 
217
  as_candidate_shells=
 
218
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
220
do
 
221
  IFS=$as_save_IFS
 
222
  test -z "$as_dir" && as_dir=.
 
223
  case $as_dir in
 
224
         /*)
 
225
           for as_base in sh bash ksh sh5; do
 
226
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
227
           done;;
 
228
       esac
 
229
done
 
230
IFS=$as_save_IFS
 
231
 
 
232
 
 
233
      for as_shell in $as_candidate_shells $SHELL; do
 
234
         # Try only shells that exist, to save several forks.
 
235
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
236
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
237
# Be Bourne compatible
 
238
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
239
  emulate sh
 
240
  NULLCMD=:
 
241
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
242
  # is contrary to our usage.  Disable this feature.
 
243
  alias -g '${1+"$@"}'='"$@"'
 
244
  setopt NO_GLOB_SUBST
 
245
else
 
246
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
247
fi
 
248
BIN_SH=xpg4; export BIN_SH # for Tru64
 
249
DUALCASE=1; export DUALCASE # for MKS sh
 
250
 
 
251
:
 
252
_ASEOF
 
253
}; then
 
254
  CONFIG_SHELL=$as_shell
 
255
               as_have_required=yes
 
256
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
257
# Be Bourne compatible
 
258
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
259
  emulate sh
 
260
  NULLCMD=:
 
261
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
262
  # is contrary to our usage.  Disable this feature.
 
263
  alias -g '${1+"$@"}'='"$@"'
 
264
  setopt NO_GLOB_SUBST
 
265
else
 
266
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
267
fi
 
268
BIN_SH=xpg4; export BIN_SH # for Tru64
 
269
DUALCASE=1; export DUALCASE # for MKS sh
 
270
 
 
271
:
 
272
(as_func_return () {
 
273
  (exit $1)
 
274
}
 
275
as_func_success () {
 
276
  as_func_return 0
 
277
}
 
278
as_func_failure () {
 
279
  as_func_return 1
 
280
}
 
281
as_func_ret_success () {
 
282
  return 0
 
283
}
 
284
as_func_ret_failure () {
 
285
  return 1
 
286
}
 
287
 
 
288
exitcode=0
 
289
if as_func_success; then
 
290
  :
 
291
else
 
292
  exitcode=1
 
293
  echo as_func_success failed.
 
294
fi
 
295
 
 
296
if as_func_failure; then
 
297
  exitcode=1
 
298
  echo as_func_failure succeeded.
 
299
fi
 
300
 
 
301
if as_func_ret_success; then
 
302
  :
 
303
else
 
304
  exitcode=1
 
305
  echo as_func_ret_success failed.
 
306
fi
 
307
 
 
308
if as_func_ret_failure; then
 
309
  exitcode=1
 
310
  echo as_func_ret_failure succeeded.
 
311
fi
 
312
 
 
313
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
314
  :
 
315
else
 
316
  exitcode=1
 
317
  echo positional parameters were not saved.
 
318
fi
 
319
 
 
320
test $exitcode = 0) || { (exit 1); exit 1; }
 
321
 
 
322
(
 
323
  as_lineno_1=$LINENO
 
324
  as_lineno_2=$LINENO
 
325
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
326
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
327
 
 
328
_ASEOF
 
329
}; then
 
330
  break
 
331
fi
 
332
 
 
333
fi
 
334
 
 
335
      done
 
336
 
 
337
      if test "x$CONFIG_SHELL" != x; then
 
338
  for as_var in BASH_ENV ENV
 
339
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
340
        done
 
341
        export CONFIG_SHELL
 
342
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
343
fi
 
344
 
 
345
 
 
346
    if test $as_have_required = no; then
 
347
  echo This script requires a shell more modern than all the
 
348
      echo shells that I found on your system.  Please install a
 
349
      echo modern shell, or manually run the script under such a
 
350
      echo shell if you do have one.
 
351
      { (exit 1); exit 1; }
 
352
fi
 
353
 
 
354
 
 
355
fi
 
356
 
 
357
fi
 
358
 
 
359
 
 
360
 
 
361
(eval "as_func_return () {
 
362
  (exit \$1)
 
363
}
 
364
as_func_success () {
 
365
  as_func_return 0
 
366
}
 
367
as_func_failure () {
 
368
  as_func_return 1
 
369
}
 
370
as_func_ret_success () {
 
371
  return 0
 
372
}
 
373
as_func_ret_failure () {
 
374
  return 1
 
375
}
 
376
 
 
377
exitcode=0
 
378
if as_func_success; then
 
379
  :
 
380
else
 
381
  exitcode=1
 
382
  echo as_func_success failed.
 
383
fi
 
384
 
 
385
if as_func_failure; then
 
386
  exitcode=1
 
387
  echo as_func_failure succeeded.
 
388
fi
 
389
 
 
390
if as_func_ret_success; then
 
391
  :
 
392
else
 
393
  exitcode=1
 
394
  echo as_func_ret_success failed.
 
395
fi
 
396
 
 
397
if as_func_ret_failure; then
 
398
  exitcode=1
 
399
  echo as_func_ret_failure succeeded.
 
400
fi
 
401
 
 
402
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
403
  :
 
404
else
 
405
  exitcode=1
 
406
  echo positional parameters were not saved.
 
407
fi
 
408
 
 
409
test \$exitcode = 0") || {
 
410
  echo No shell found that supports shell functions.
 
411
  echo Please tell autoconf@gnu.org about your system,
 
412
  echo including any error possibly output before this
 
413
  echo message
 
414
}
 
415
 
 
416
 
 
417
 
 
418
  as_lineno_1=$LINENO
 
419
  as_lineno_2=$LINENO
 
420
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
421
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
422
 
 
423
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
424
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
425
  # line-number line after each line using $LINENO; the second 'sed'
 
426
  # does the real work.  The second script uses 'N' to pair each
 
427
  # line-number line with the line containing $LINENO, and appends
 
428
  # trailing '-' during substitution so that $LINENO is not a special
 
429
  # case at line end.
 
430
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
431
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
432
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
433
  sed -n '
 
434
    p
 
435
    /[$]LINENO/=
 
436
  ' <$as_myself |
 
437
    sed '
 
438
      s/[$]LINENO.*/&-/
 
439
      t lineno
 
440
      b
 
441
      :lineno
 
442
      N
 
443
      :loop
 
444
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
445
      t loop
 
446
      s/-\n.*//
 
447
    ' >$as_me.lineno &&
 
448
  chmod +x "$as_me.lineno" ||
 
449
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
450
   { (exit 1); exit 1; }; }
 
451
 
 
452
  # Don't try to exec as it changes $[0], causing all sort of problems
 
453
  # (the dirname of $[0] is not the place where we might find the
 
454
  # original and so on.  Autoconf is especially sensitive to this).
 
455
  . "./$as_me.lineno"
 
456
  # Exit status is that of the last command.
 
457
  exit
 
458
}
 
459
 
 
460
 
 
461
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
462
  as_dirname=dirname
 
463
else
 
464
  as_dirname=false
 
465
fi
 
466
 
 
467
ECHO_C= ECHO_N= ECHO_T=
 
468
case `echo -n x` in
 
469
-n*)
 
470
  case `echo 'x\c'` in
 
471
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
472
  *)   ECHO_C='\c';;
 
473
  esac;;
 
474
*)
 
475
  ECHO_N='-n';;
 
476
esac
 
477
 
 
478
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
479
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
480
  as_expr=expr
 
481
else
 
482
  as_expr=false
 
483
fi
 
484
 
 
485
rm -f conf$$ conf$$.exe conf$$.file
 
486
if test -d conf$$.dir; then
 
487
  rm -f conf$$.dir/conf$$.file
 
488
else
 
489
  rm -f conf$$.dir
 
490
  mkdir conf$$.dir
 
491
fi
 
492
echo >conf$$.file
 
493
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
494
  as_ln_s='ln -s'
 
495
  # ... but there are two gotchas:
 
496
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
497
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
498
  # In both cases, we have to default to `cp -p'.
 
499
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
500
    as_ln_s='cp -p'
 
501
elif ln conf$$.file conf$$ 2>/dev/null; then
 
502
  as_ln_s=ln
 
503
else
 
504
  as_ln_s='cp -p'
 
505
fi
 
506
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
507
rmdir conf$$.dir 2>/dev/null
 
508
 
 
509
if mkdir -p . 2>/dev/null; then
 
510
  as_mkdir_p=:
 
511
else
 
512
  test -d ./-p && rmdir ./-p
 
513
  as_mkdir_p=false
 
514
fi
 
515
 
 
516
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
517
# systems may use methods other than mode bits to determine executability.
 
518
cat >conf$$.file <<_ASEOF
 
519
#! /bin/sh
 
520
exit 0
 
521
_ASEOF
 
522
chmod +x conf$$.file
 
523
if test -x conf$$.file >/dev/null 2>&1; then
 
524
  as_executable_p="test -x"
 
525
else
 
526
  as_executable_p=:
 
527
fi
 
528
rm -f conf$$.file
 
529
 
 
530
# Sed expression to map a string onto a valid CPP name.
 
531
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
532
 
 
533
# Sed expression to map a string onto a valid variable name.
 
534
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
535
 
 
536
 
 
537
 
 
538
 
 
539
# Check that we are running under the correct shell.
 
540
SHELL=${CONFIG_SHELL-/bin/sh}
 
541
 
 
542
case X$ECHO in
 
543
X*--fallback-echo)
 
544
  # Remove one level of quotation (which was required for Make).
 
545
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
546
  ;;
 
547
esac
 
548
 
 
549
echo=${ECHO-echo}
 
550
if test "X$1" = X--no-reexec; then
 
551
  # Discard the --no-reexec flag, and continue.
 
552
  shift
 
553
elif test "X$1" = X--fallback-echo; then
 
554
  # Avoid inline document here, it may be left over
 
555
  :
 
556
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
557
  # Yippee, $echo works!
 
558
  :
 
559
else
 
560
  # Restart under the correct shell.
 
561
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
562
fi
 
563
 
 
564
if test "X$1" = X--fallback-echo; then
 
565
  # used as fallback echo
 
566
  shift
 
567
  cat <<EOF
 
568
$*
 
569
EOF
 
570
  exit 0
 
571
fi
 
572
 
 
573
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
574
# if CDPATH is set.
 
575
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
576
 
 
577
if test -z "$ECHO"; then
 
578
if test "X${echo_test_string+set}" != Xset; then
 
579
# find a string as large as possible, as long as the shell can cope with it
 
580
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
581
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
582
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
583
       echo_test_string=`eval $cmd` &&
 
584
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
585
    then
 
586
      break
 
587
    fi
 
588
  done
 
589
fi
 
590
 
 
591
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
592
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
593
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
594
  :
 
595
else
 
596
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
597
  # backslashes.  This makes it impossible to quote backslashes using
 
598
  #   echo "$something" | sed 's/\\/\\\\/g'
 
599
  #
 
600
  # So, first we look for a working echo in the user's PATH.
 
601
 
 
602
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
603
  for dir in $PATH /usr/ucb; do
 
604
    IFS="$lt_save_ifs"
 
605
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
606
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
607
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
608
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
609
      echo="$dir/echo"
 
610
      break
 
611
    fi
 
612
  done
 
613
  IFS="$lt_save_ifs"
 
614
 
 
615
  if test "X$echo" = Xecho; then
 
616
    # We didn't find a better echo, so look for alternatives.
 
617
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
618
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
619
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
620
      # This shell has a builtin print -r that does the trick.
 
621
      echo='print -r'
 
622
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
623
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
624
      # If we have ksh, try running configure again with it.
 
625
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
626
      export ORIGINAL_CONFIG_SHELL
 
627
      CONFIG_SHELL=/bin/ksh
 
628
      export CONFIG_SHELL
 
629
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
630
    else
 
631
      # Try using printf.
 
632
      echo='printf %s\n'
 
633
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
634
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
635
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
        # Cool, printf works
 
637
        :
 
638
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
639
           test "X$echo_testing_string" = 'X\t' &&
 
640
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
641
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
642
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
643
        export CONFIG_SHELL
 
644
        SHELL="$CONFIG_SHELL"
 
645
        export SHELL
 
646
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
647
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
648
           test "X$echo_testing_string" = 'X\t' &&
 
649
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
650
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
651
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
652
      else
 
653
        # maybe with a smaller string...
 
654
        prev=:
 
655
 
 
656
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
657
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
658
          then
 
659
            break
 
660
          fi
 
661
          prev="$cmd"
 
662
        done
 
663
 
 
664
        if test "$prev" != 'sed 50q "$0"'; then
 
665
          echo_test_string=`eval $prev`
 
666
          export echo_test_string
 
667
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
668
        else
 
669
          # Oops.  We lost completely, so just stick with echo.
 
670
          echo=echo
 
671
        fi
 
672
      fi
 
673
    fi
 
674
  fi
 
675
fi
 
676
fi
 
677
 
 
678
# Copy echo and quote the copy suitably for passing to libtool from
 
679
# the Makefile, instead of quoting the original, which is used later.
 
680
ECHO=$echo
 
681
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
682
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
683
fi
 
684
 
 
685
 
 
686
 
 
687
 
 
688
tagnames=${tagnames+${tagnames},}CXX
 
689
 
 
690
tagnames=${tagnames+${tagnames},}F77
 
691
 
 
692
exec 7<&0 </dev/null 6>&1
 
693
 
 
694
# Name of the host.
 
695
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
696
# so uname gets run too.
 
697
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
698
 
 
699
#
 
700
# Initializations.
 
701
#
 
702
ac_default_prefix=/usr/local
 
703
ac_clean_files=
 
704
ac_config_libobj_dir=.
 
705
LIBOBJS=
 
706
cross_compiling=no
 
707
subdirs=
 
708
MFLAGS=
 
709
MAKEFLAGS=
 
710
SHELL=${CONFIG_SHELL-/bin/sh}
 
711
 
 
712
# Identity of this package.
 
713
PACKAGE_NAME=
 
714
PACKAGE_TARNAME=
 
715
PACKAGE_VERSION=
 
716
PACKAGE_STRING=
 
717
PACKAGE_BUGREPORT=
 
718
 
 
719
ac_unique_file="common/jk_worker.h"
 
720
# Factoring default headers for most tests.
 
721
ac_includes_default="\
 
722
#include <stdio.h>
 
723
#if HAVE_SYS_TYPES_H
 
724
# include <sys/types.h>
 
725
#endif
 
726
#if HAVE_SYS_STAT_H
 
727
# include <sys/stat.h>
 
728
#endif
 
729
#if STDC_HEADERS
 
730
# include <stdlib.h>
 
731
# include <stddef.h>
 
732
#else
 
733
# if HAVE_STDLIB_H
 
734
#  include <stdlib.h>
 
735
# endif
 
736
#endif
 
737
#if HAVE_STRING_H
 
738
# if !STDC_HEADERS && HAVE_MEMORY_H
 
739
#  include <memory.h>
 
740
# endif
 
741
# include <string.h>
 
742
#endif
 
743
#if HAVE_STRINGS_H
 
744
# include <strings.h>
 
745
#endif
 
746
#if HAVE_INTTYPES_H
 
747
# include <inttypes.h>
 
748
#endif
 
749
#if HAVE_STDINT_H
 
750
# include <stdint.h>
 
751
#endif
 
752
#if HAVE_UNISTD_H
 
753
# include <unistd.h>
 
754
#endif"
 
755
 
 
756
ac_subst_vars='SHELL
 
757
PATH_SEPARATOR
 
758
PACKAGE_NAME
 
759
PACKAGE_TARNAME
 
760
PACKAGE_VERSION
 
761
PACKAGE_STRING
 
762
PACKAGE_BUGREPORT
 
763
exec_prefix
 
764
prefix
 
765
program_transform_name
 
766
bindir
 
767
sbindir
 
768
libexecdir
 
769
datarootdir
 
770
datadir
 
771
sysconfdir
 
772
sharedstatedir
 
773
localstatedir
 
774
includedir
 
775
oldincludedir
 
776
docdir
 
777
infodir
 
778
htmldir
 
779
dvidir
 
780
pdfdir
 
781
psdir
 
782
libdir
 
783
localedir
 
784
mandir
 
785
DEFS
 
786
ECHO_C
 
787
ECHO_N
 
788
ECHO_T
 
789
LIBS
 
790
build_alias
 
791
host_alias
 
792
target_alias
 
793
build
 
794
build_cpu
 
795
build_vendor
 
796
build_os
 
797
host
 
798
host_cpu
 
799
host_vendor
 
800
host_os
 
801
target
 
802
target_cpu
 
803
target_vendor
 
804
target_os
 
805
INSTALL_PROGRAM
 
806
INSTALL_SCRIPT
 
807
INSTALL_DATA
 
808
CYGPATH_W
 
809
PACKAGE
 
810
VERSION
 
811
ACLOCAL
 
812
AUTOCONF
 
813
AUTOMAKE
 
814
AUTOHEADER
 
815
MAKEINFO
 
816
install_sh
 
817
STRIP
 
818
INSTALL_STRIP_PROGRAM
 
819
mkdir_p
 
820
AWK
 
821
SET_MAKE
 
822
am__leading_dot
 
823
AMTAR
 
824
am__tar
 
825
am__untar
 
826
CC
 
827
CFLAGS
 
828
LDFLAGS
 
829
CPPFLAGS
 
830
ac_ct_CC
 
831
EXEEXT
 
832
OBJEXT
 
833
DEPDIR
 
834
am__include
 
835
am__quote
 
836
AMDEP_TRUE
 
837
AMDEP_FALSE
 
838
AMDEPBACKSLASH
 
839
CCDEPMODE
 
840
am__fastdepCC_TRUE
 
841
am__fastdepCC_FALSE
 
842
GREP
 
843
EGREP
 
844
LN_S
 
845
ECHO
 
846
AR
 
847
RANLIB
 
848
CPP
 
849
CXX
 
850
CXXFLAGS
 
851
ac_ct_CXX
 
852
CXXDEPMODE
 
853
am__fastdepCXX_TRUE
 
854
am__fastdepCXX_FALSE
 
855
CXXCPP
 
856
F77
 
857
FFLAGS
 
858
ac_ct_F77
 
859
LIBTOOL
 
860
TEST
 
861
RM
 
862
SED
 
863
CP
 
864
MKDIR
 
865
int32_value
 
866
int32_t_fmt
 
867
uint32_t_fmt
 
868
uint32_t_hex_fmt
 
869
int64_value
 
870
int64_t_fmt
 
871
uint64_t_fmt
 
872
uint64_t_hex_fmt
 
873
PERL
 
874
APXS
 
875
APACHE_CONFIG_VARS
 
876
apache_include
 
877
APACHE_DIR
 
878
JK_JNI_WORKER
 
879
APXSCFLAGS
 
880
APXSCPPFLAGS
 
881
APXSLDFLAGS
 
882
JAVA_HOME
 
883
OS
 
884
WEBSERVER
 
885
MAKE_DYNAMIC_APACHE_TRUE
 
886
MAKE_DYNAMIC_APACHE_FALSE
 
887
APACHE20_OEXT
 
888
LIB_JK_TYPE
 
889
INSTALL_TYPE
 
890
LIBOBJS
 
891
LTLIBOBJS'
 
892
ac_subst_files=''
 
893
      ac_precious_vars='build_alias
 
894
host_alias
 
895
target_alias
 
896
CC
 
897
CFLAGS
 
898
LDFLAGS
 
899
CPPFLAGS
 
900
CPP
 
901
CXX
 
902
CXXFLAGS
 
903
CCC
 
904
CXXCPP
 
905
F77
 
906
FFLAGS'
 
907
 
 
908
 
 
909
# Initialize some variables set by options.
 
910
ac_init_help=
 
911
ac_init_version=false
 
912
# The variables have the same names as the options, with
 
913
# dashes changed to underlines.
 
914
cache_file=/dev/null
 
915
exec_prefix=NONE
 
916
no_create=
 
917
no_recursion=
 
918
prefix=NONE
 
919
program_prefix=NONE
 
920
program_suffix=NONE
 
921
program_transform_name=s,x,x,
 
922
silent=
 
923
site=
 
924
srcdir=
 
925
verbose=
 
926
x_includes=NONE
 
927
x_libraries=NONE
 
928
 
 
929
# Installation directory options.
 
930
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
931
# and all the variables that are supposed to be based on exec_prefix
 
932
# by default will actually change.
 
933
# Use braces instead of parens because sh, perl, etc. also accept them.
 
934
# (The list follows the same order as the GNU Coding Standards.)
 
935
bindir='${exec_prefix}/bin'
 
936
sbindir='${exec_prefix}/sbin'
 
937
libexecdir='${exec_prefix}/libexec'
 
938
datarootdir='${prefix}/share'
 
939
datadir='${datarootdir}'
 
940
sysconfdir='${prefix}/etc'
 
941
sharedstatedir='${prefix}/com'
 
942
localstatedir='${prefix}/var'
 
943
includedir='${prefix}/include'
 
944
oldincludedir='/usr/include'
 
945
docdir='${datarootdir}/doc/${PACKAGE}'
 
946
infodir='${datarootdir}/info'
 
947
htmldir='${docdir}'
 
948
dvidir='${docdir}'
 
949
pdfdir='${docdir}'
 
950
psdir='${docdir}'
 
951
libdir='${exec_prefix}/lib'
 
952
localedir='${datarootdir}/locale'
 
953
mandir='${datarootdir}/man'
 
954
 
 
955
ac_prev=
 
956
ac_dashdash=
 
957
for ac_option
 
958
do
 
959
  # If the previous option needs an argument, assign it.
 
960
  if test -n "$ac_prev"; then
 
961
    eval $ac_prev=\$ac_option
 
962
    ac_prev=
 
963
    continue
 
964
  fi
 
965
 
 
966
  case $ac_option in
 
967
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
968
  *)    ac_optarg=yes ;;
 
969
  esac
 
970
 
 
971
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
972
 
 
973
  case $ac_dashdash$ac_option in
 
974
  --)
 
975
    ac_dashdash=yes ;;
 
976
 
 
977
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
978
    ac_prev=bindir ;;
 
979
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
980
    bindir=$ac_optarg ;;
 
981
 
 
982
  -build | --build | --buil | --bui | --bu)
 
983
    ac_prev=build_alias ;;
 
984
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
985
    build_alias=$ac_optarg ;;
 
986
 
 
987
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
988
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
989
    ac_prev=cache_file ;;
 
990
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
991
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
992
    cache_file=$ac_optarg ;;
 
993
 
 
994
  --config-cache | -C)
 
995
    cache_file=config.cache ;;
 
996
 
 
997
  -datadir | --datadir | --datadi | --datad)
 
998
    ac_prev=datadir ;;
 
999
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1000
    datadir=$ac_optarg ;;
 
1001
 
 
1002
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1003
  | --dataroo | --dataro | --datar)
 
1004
    ac_prev=datarootdir ;;
 
1005
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1006
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1007
    datarootdir=$ac_optarg ;;
 
1008
 
 
1009
  -disable-* | --disable-*)
 
1010
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1011
    # Reject names that are not valid shell variable names.
 
1012
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1013
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1014
   { (exit 1); exit 1; }; }
 
1015
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
1016
    eval enable_$ac_feature=no ;;
 
1017
 
 
1018
  -docdir | --docdir | --docdi | --doc | --do)
 
1019
    ac_prev=docdir ;;
 
1020
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1021
    docdir=$ac_optarg ;;
 
1022
 
 
1023
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1024
    ac_prev=dvidir ;;
 
1025
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1026
    dvidir=$ac_optarg ;;
 
1027
 
 
1028
  -enable-* | --enable-*)
 
1029
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1030
    # Reject names that are not valid shell variable names.
 
1031
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1032
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1033
   { (exit 1); exit 1; }; }
 
1034
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
1035
    eval enable_$ac_feature=\$ac_optarg ;;
 
1036
 
 
1037
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1038
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1039
  | --exec | --exe | --ex)
 
1040
    ac_prev=exec_prefix ;;
 
1041
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1042
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1043
  | --exec=* | --exe=* | --ex=*)
 
1044
    exec_prefix=$ac_optarg ;;
 
1045
 
 
1046
  -gas | --gas | --ga | --g)
 
1047
    # Obsolete; use --with-gas.
 
1048
    with_gas=yes ;;
 
1049
 
 
1050
  -help | --help | --hel | --he | -h)
 
1051
    ac_init_help=long ;;
 
1052
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1053
    ac_init_help=recursive ;;
 
1054
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1055
    ac_init_help=short ;;
 
1056
 
 
1057
  -host | --host | --hos | --ho)
 
1058
    ac_prev=host_alias ;;
 
1059
  -host=* | --host=* | --hos=* | --ho=*)
 
1060
    host_alias=$ac_optarg ;;
 
1061
 
 
1062
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1063
    ac_prev=htmldir ;;
 
1064
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1065
  | --ht=*)
 
1066
    htmldir=$ac_optarg ;;
 
1067
 
 
1068
  -includedir | --includedir | --includedi | --included | --include \
 
1069
  | --includ | --inclu | --incl | --inc)
 
1070
    ac_prev=includedir ;;
 
1071
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1072
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1073
    includedir=$ac_optarg ;;
 
1074
 
 
1075
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1076
    ac_prev=infodir ;;
 
1077
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1078
    infodir=$ac_optarg ;;
 
1079
 
 
1080
  -libdir | --libdir | --libdi | --libd)
 
1081
    ac_prev=libdir ;;
 
1082
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1083
    libdir=$ac_optarg ;;
 
1084
 
 
1085
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1086
  | --libexe | --libex | --libe)
 
1087
    ac_prev=libexecdir ;;
 
1088
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1089
  | --libexe=* | --libex=* | --libe=*)
 
1090
    libexecdir=$ac_optarg ;;
 
1091
 
 
1092
  -localedir | --localedir | --localedi | --localed | --locale)
 
1093
    ac_prev=localedir ;;
 
1094
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1095
    localedir=$ac_optarg ;;
 
1096
 
 
1097
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1098
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1099
    ac_prev=localstatedir ;;
 
1100
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1101
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1102
    localstatedir=$ac_optarg ;;
 
1103
 
 
1104
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1105
    ac_prev=mandir ;;
 
1106
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1107
    mandir=$ac_optarg ;;
 
1108
 
 
1109
  -nfp | --nfp | --nf)
 
1110
    # Obsolete; use --without-fp.
 
1111
    with_fp=no ;;
 
1112
 
 
1113
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1114
  | --no-cr | --no-c | -n)
 
1115
    no_create=yes ;;
 
1116
 
 
1117
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1118
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1119
    no_recursion=yes ;;
 
1120
 
 
1121
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1122
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1123
  | --oldin | --oldi | --old | --ol | --o)
 
1124
    ac_prev=oldincludedir ;;
 
1125
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1126
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1127
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1128
    oldincludedir=$ac_optarg ;;
 
1129
 
 
1130
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1131
    ac_prev=prefix ;;
 
1132
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1133
    prefix=$ac_optarg ;;
 
1134
 
 
1135
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1136
  | --program-pre | --program-pr | --program-p)
 
1137
    ac_prev=program_prefix ;;
 
1138
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1139
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1140
    program_prefix=$ac_optarg ;;
 
1141
 
 
1142
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1143
  | --program-suf | --program-su | --program-s)
 
1144
    ac_prev=program_suffix ;;
 
1145
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1146
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1147
    program_suffix=$ac_optarg ;;
 
1148
 
 
1149
  -program-transform-name | --program-transform-name \
 
1150
  | --program-transform-nam | --program-transform-na \
 
1151
  | --program-transform-n | --program-transform- \
 
1152
  | --program-transform | --program-transfor \
 
1153
  | --program-transfo | --program-transf \
 
1154
  | --program-trans | --program-tran \
 
1155
  | --progr-tra | --program-tr | --program-t)
 
1156
    ac_prev=program_transform_name ;;
 
1157
  -program-transform-name=* | --program-transform-name=* \
 
1158
  | --program-transform-nam=* | --program-transform-na=* \
 
1159
  | --program-transform-n=* | --program-transform-=* \
 
1160
  | --program-transform=* | --program-transfor=* \
 
1161
  | --program-transfo=* | --program-transf=* \
 
1162
  | --program-trans=* | --program-tran=* \
 
1163
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1164
    program_transform_name=$ac_optarg ;;
 
1165
 
 
1166
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1167
    ac_prev=pdfdir ;;
 
1168
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1169
    pdfdir=$ac_optarg ;;
 
1170
 
 
1171
  -psdir | --psdir | --psdi | --psd | --ps)
 
1172
    ac_prev=psdir ;;
 
1173
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1174
    psdir=$ac_optarg ;;
 
1175
 
 
1176
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1177
  | -silent | --silent | --silen | --sile | --sil)
 
1178
    silent=yes ;;
 
1179
 
 
1180
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1181
    ac_prev=sbindir ;;
 
1182
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1183
  | --sbi=* | --sb=*)
 
1184
    sbindir=$ac_optarg ;;
 
1185
 
 
1186
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1187
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1188
  | --sharedst | --shareds | --shared | --share | --shar \
 
1189
  | --sha | --sh)
 
1190
    ac_prev=sharedstatedir ;;
 
1191
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1192
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1193
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1194
  | --sha=* | --sh=*)
 
1195
    sharedstatedir=$ac_optarg ;;
 
1196
 
 
1197
  -site | --site | --sit)
 
1198
    ac_prev=site ;;
 
1199
  -site=* | --site=* | --sit=*)
 
1200
    site=$ac_optarg ;;
 
1201
 
 
1202
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1203
    ac_prev=srcdir ;;
 
1204
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1205
    srcdir=$ac_optarg ;;
 
1206
 
 
1207
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1208
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1209
    ac_prev=sysconfdir ;;
 
1210
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1211
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1212
    sysconfdir=$ac_optarg ;;
 
1213
 
 
1214
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1215
    ac_prev=target_alias ;;
 
1216
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1217
    target_alias=$ac_optarg ;;
 
1218
 
 
1219
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1220
    verbose=yes ;;
 
1221
 
 
1222
  -version | --version | --versio | --versi | --vers | -V)
 
1223
    ac_init_version=: ;;
 
1224
 
 
1225
  -with-* | --with-*)
 
1226
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1227
    # Reject names that are not valid shell variable names.
 
1228
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1229
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1230
   { (exit 1); exit 1; }; }
 
1231
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
1232
    eval with_$ac_package=\$ac_optarg ;;
 
1233
 
 
1234
  -without-* | --without-*)
 
1235
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1236
    # Reject names that are not valid shell variable names.
 
1237
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1238
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1239
   { (exit 1); exit 1; }; }
 
1240
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
1241
    eval with_$ac_package=no ;;
 
1242
 
 
1243
  --x)
 
1244
    # Obsolete; use --with-x.
 
1245
    with_x=yes ;;
 
1246
 
 
1247
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1248
  | --x-incl | --x-inc | --x-in | --x-i)
 
1249
    ac_prev=x_includes ;;
 
1250
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1251
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1252
    x_includes=$ac_optarg ;;
 
1253
 
 
1254
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1255
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1256
    ac_prev=x_libraries ;;
 
1257
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1258
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1259
    x_libraries=$ac_optarg ;;
 
1260
 
 
1261
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1262
Try \`$0 --help' for more information." >&2
 
1263
   { (exit 1); exit 1; }; }
 
1264
    ;;
 
1265
 
 
1266
  *=*)
 
1267
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1268
    # Reject names that are not valid shell variable names.
 
1269
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1270
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1271
   { (exit 1); exit 1; }; }
 
1272
    eval $ac_envvar=\$ac_optarg
 
1273
    export $ac_envvar ;;
 
1274
 
 
1275
  *)
 
1276
    # FIXME: should be removed in autoconf 3.0.
 
1277
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1278
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1279
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1280
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1281
    ;;
 
1282
 
 
1283
  esac
 
1284
done
 
1285
 
 
1286
if test -n "$ac_prev"; then
 
1287
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1288
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1289
   { (exit 1); exit 1; }; }
 
1290
fi
 
1291
 
 
1292
# Be sure to have absolute directory names.
 
1293
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1294
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1295
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1296
                libdir localedir mandir
 
1297
do
 
1298
  eval ac_val=\$$ac_var
 
1299
  case $ac_val in
 
1300
    [\\/$]* | ?:[\\/]* )  continue;;
 
1301
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1302
  esac
 
1303
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1304
   { (exit 1); exit 1; }; }
 
1305
done
 
1306
 
 
1307
# There might be people who depend on the old broken behavior: `$host'
 
1308
# used to hold the argument of --host etc.
 
1309
# FIXME: To remove some day.
 
1310
build=$build_alias
 
1311
host=$host_alias
 
1312
target=$target_alias
 
1313
 
 
1314
# FIXME: To remove some day.
 
1315
if test "x$host_alias" != x; then
 
1316
  if test "x$build_alias" = x; then
 
1317
    cross_compiling=maybe
 
1318
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1319
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1320
  elif test "x$build_alias" != "x$host_alias"; then
 
1321
    cross_compiling=yes
 
1322
  fi
 
1323
fi
 
1324
 
 
1325
ac_tool_prefix=
 
1326
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1327
 
 
1328
test "$silent" = yes && exec 6>/dev/null
 
1329
 
 
1330
 
 
1331
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1332
ac_ls_di=`ls -di .` &&
 
1333
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1334
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1335
   { (exit 1); exit 1; }; }
 
1336
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1337
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1338
   { (exit 1); exit 1; }; }
 
1339
 
 
1340
 
 
1341
# Find the source files, if location was not specified.
 
1342
if test -z "$srcdir"; then
 
1343
  ac_srcdir_defaulted=yes
 
1344
  # Try the directory containing this script, then the parent directory.
 
1345
  ac_confdir=`$as_dirname -- "$0" ||
 
1346
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1347
         X"$0" : 'X\(//\)[^/]' \| \
 
1348
         X"$0" : 'X\(//\)$' \| \
 
1349
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1350
echo X"$0" |
 
1351
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1352
            s//\1/
 
1353
            q
 
1354
          }
 
1355
          /^X\(\/\/\)[^/].*/{
 
1356
            s//\1/
 
1357
            q
 
1358
          }
 
1359
          /^X\(\/\/\)$/{
 
1360
            s//\1/
 
1361
            q
 
1362
          }
 
1363
          /^X\(\/\).*/{
 
1364
            s//\1/
 
1365
            q
 
1366
          }
 
1367
          s/.*/./; q'`
 
1368
  srcdir=$ac_confdir
 
1369
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1370
    srcdir=..
 
1371
  fi
 
1372
else
 
1373
  ac_srcdir_defaulted=no
 
1374
fi
 
1375
if test ! -r "$srcdir/$ac_unique_file"; then
 
1376
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1377
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1378
   { (exit 1); exit 1; }; }
 
1379
fi
 
1380
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1381
ac_abs_confdir=`(
 
1382
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1383
   { (exit 1); exit 1; }; }
 
1384
        pwd)`
 
1385
# When building in place, set srcdir=.
 
1386
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1387
  srcdir=.
 
1388
fi
 
1389
# Remove unnecessary trailing slashes from srcdir.
 
1390
# Double slashes in file names in object file debugging info
 
1391
# mess up M-x gdb in Emacs.
 
1392
case $srcdir in
 
1393
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1394
esac
 
1395
for ac_var in $ac_precious_vars; do
 
1396
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1397
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1398
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1399
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1400
done
 
1401
 
 
1402
#
 
1403
# Report the --help message.
 
1404
#
 
1405
if test "$ac_init_help" = "long"; then
 
1406
  # Omit some internal or obsolete options to make the list less imposing.
 
1407
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1408
  cat <<_ACEOF
 
1409
\`configure' configures this package to adapt to many kinds of systems.
 
1410
 
 
1411
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1412
 
 
1413
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1414
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1415
 
 
1416
Defaults for the options are specified in brackets.
 
1417
 
 
1418
Configuration:
 
1419
  -h, --help              display this help and exit
 
1420
      --help=short        display options specific to this package
 
1421
      --help=recursive    display the short help of all the included packages
 
1422
  -V, --version           display version information and exit
 
1423
  -q, --quiet, --silent   do not print \`checking...' messages
 
1424
      --cache-file=FILE   cache test results in FILE [disabled]
 
1425
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1426
  -n, --no-create         do not create output files
 
1427
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1428
 
 
1429
Installation directories:
 
1430
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1431
                          [$ac_default_prefix]
 
1432
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1433
                          [PREFIX]
 
1434
 
 
1435
By default, \`make install' will install all the files in
 
1436
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1437
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1438
for instance \`--prefix=\$HOME'.
 
1439
 
 
1440
For better control, use the options below.
 
1441
 
 
1442
Fine tuning of the installation directories:
 
1443
  --bindir=DIR           user executables [EPREFIX/bin]
 
1444
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1445
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1446
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1447
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1448
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1449
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1450
  --includedir=DIR       C header files [PREFIX/include]
 
1451
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1452
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1453
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1454
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1455
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1456
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1457
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 
1458
  --htmldir=DIR          html documentation [DOCDIR]
 
1459
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1460
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1461
  --psdir=DIR            ps documentation [DOCDIR]
 
1462
_ACEOF
 
1463
 
 
1464
  cat <<\_ACEOF
 
1465
 
 
1466
Program names:
 
1467
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1468
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1469
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1470
 
 
1471
System types:
 
1472
  --build=BUILD     configure for building on BUILD [guessed]
 
1473
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1474
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1475
_ACEOF
 
1476
fi
 
1477
 
 
1478
if test -n "$ac_init_help"; then
 
1479
 
 
1480
  cat <<\_ACEOF
 
1481
 
 
1482
Optional Features:
 
1483
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1484
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1485
  --disable-dependency-tracking  speeds up one-time build
 
1486
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1487
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1488
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1489
  --enable-fast-install[=PKGS]
 
1490
                          optimize for fast installation [default=yes]
 
1491
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1492
  --enable-jni     Build jni_connect.so and enable jni_worker.
 
1493
  --enable-EAPI     Enable EAPI support (mod_ssl, Apache 1.3)
 
1494
  --enable-maintainer-mode   Turn on debugging and compile time warnings
 
1495
  --enable-prefork   Turn on prefork web server mode
 
1496
 
 
1497
Optional Packages:
 
1498
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1499
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1500
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1501
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1502
                          both]
 
1503
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1504
  --with-apxs=FILE      Build shared Apache module. FILE is the optional
 
1505
                        pathname to the apxs tool; defaults to finding
 
1506
                        apxs in your PATH.
 
1507
  --with-apache=DIR      Build static Apache module. DIR is the pathname
 
1508
                        to the Apache source directory.
 
1509
  --with-java-home=DIR     Where is your JDK root directory.
 
1510
  --with-java-platform=VAL Force the Java platorm
 
1511
                          (value is 1 for 1.1.x or 2 for 1.2.x or greater)
 
1512
  --with-os-type=SUBDIR     Where is your JDK os-type subdirectory.
 
1513
 
 
1514
Some influential environment variables:
 
1515
  CC          C compiler command
 
1516
  CFLAGS      C compiler flags
 
1517
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1518
              nonstandard directory <lib dir>
 
1519
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1520
              you have headers in a nonstandard directory <include dir>
 
1521
  CPP         C preprocessor
 
1522
  CXX         C++ compiler command
 
1523
  CXXFLAGS    C++ compiler flags
 
1524
  CXXCPP      C++ preprocessor
 
1525
  F77         Fortran 77 compiler command
 
1526
  FFLAGS      Fortran 77 compiler flags
 
1527
 
 
1528
Use these variables to override the choices made by `configure' or to help
 
1529
it to find libraries and programs with nonstandard names/locations.
 
1530
 
 
1531
_ACEOF
 
1532
ac_status=$?
 
1533
fi
 
1534
 
 
1535
if test "$ac_init_help" = "recursive"; then
 
1536
  # If there are subdirs, report their specific --help.
 
1537
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1538
    test -d "$ac_dir" || continue
 
1539
    ac_builddir=.
 
1540
 
 
1541
case "$ac_dir" in
 
1542
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1543
*)
 
1544
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1545
  # A ".." for each directory in $ac_dir_suffix.
 
1546
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1547
  case $ac_top_builddir_sub in
 
1548
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1549
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1550
  esac ;;
 
1551
esac
 
1552
ac_abs_top_builddir=$ac_pwd
 
1553
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1554
# for backward compatibility:
 
1555
ac_top_builddir=$ac_top_build_prefix
 
1556
 
 
1557
case $srcdir in
 
1558
  .)  # We are building in place.
 
1559
    ac_srcdir=.
 
1560
    ac_top_srcdir=$ac_top_builddir_sub
 
1561
    ac_abs_top_srcdir=$ac_pwd ;;
 
1562
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1563
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1564
    ac_top_srcdir=$srcdir
 
1565
    ac_abs_top_srcdir=$srcdir ;;
 
1566
  *) # Relative name.
 
1567
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1568
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1569
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1570
esac
 
1571
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1572
 
 
1573
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1574
    # Check for guested configure.
 
1575
    if test -f "$ac_srcdir/configure.gnu"; then
 
1576
      echo &&
 
1577
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1578
    elif test -f "$ac_srcdir/configure"; then
 
1579
      echo &&
 
1580
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1581
    else
 
1582
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1583
    fi || ac_status=$?
 
1584
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1585
  done
 
1586
fi
 
1587
 
 
1588
test -n "$ac_init_help" && exit $ac_status
 
1589
if $ac_init_version; then
 
1590
  cat <<\_ACEOF
 
1591
configure
 
1592
generated by GNU Autoconf 2.60
 
1593
 
 
1594
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1595
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1596
This configure script is free software; the Free Software Foundation
 
1597
gives unlimited permission to copy, distribute and modify it.
 
1598
_ACEOF
 
1599
  exit
 
1600
fi
 
1601
cat >config.log <<_ACEOF
 
1602
This file contains any messages produced by compilers while
 
1603
running configure, to aid debugging if configure makes a mistake.
 
1604
 
 
1605
It was created by $as_me, which was
 
1606
generated by GNU Autoconf 2.60.  Invocation command line was
 
1607
 
 
1608
  $ $0 $@
 
1609
 
 
1610
_ACEOF
 
1611
exec 5>>config.log
 
1612
{
 
1613
cat <<_ASUNAME
 
1614
## --------- ##
 
1615
## Platform. ##
 
1616
## --------- ##
 
1617
 
 
1618
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1619
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1620
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1621
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1622
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1623
 
 
1624
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1625
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1626
 
 
1627
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1628
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1629
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1630
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1631
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1632
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1633
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1634
 
 
1635
_ASUNAME
 
1636
 
 
1637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1638
for as_dir in $PATH
 
1639
do
 
1640
  IFS=$as_save_IFS
 
1641
  test -z "$as_dir" && as_dir=.
 
1642
  echo "PATH: $as_dir"
 
1643
done
 
1644
IFS=$as_save_IFS
 
1645
 
 
1646
} >&5
 
1647
 
 
1648
cat >&5 <<_ACEOF
 
1649
 
 
1650
 
 
1651
## ----------- ##
 
1652
## Core tests. ##
 
1653
## ----------- ##
 
1654
 
 
1655
_ACEOF
 
1656
 
 
1657
 
 
1658
# Keep a trace of the command line.
 
1659
# Strip out --no-create and --no-recursion so they do not pile up.
 
1660
# Strip out --silent because we don't want to record it for future runs.
 
1661
# Also quote any args containing shell meta-characters.
 
1662
# Make two passes to allow for proper duplicate-argument suppression.
 
1663
ac_configure_args=
 
1664
ac_configure_args0=
 
1665
ac_configure_args1=
 
1666
ac_must_keep_next=false
 
1667
for ac_pass in 1 2
 
1668
do
 
1669
  for ac_arg
 
1670
  do
 
1671
    case $ac_arg in
 
1672
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1673
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1674
    | -silent | --silent | --silen | --sile | --sil)
 
1675
      continue ;;
 
1676
    *\'*)
 
1677
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1678
    esac
 
1679
    case $ac_pass in
 
1680
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1681
    2)
 
1682
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1683
      if test $ac_must_keep_next = true; then
 
1684
        ac_must_keep_next=false # Got value, back to normal.
 
1685
      else
 
1686
        case $ac_arg in
 
1687
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1688
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1689
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1690
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1691
            case "$ac_configure_args0 " in
 
1692
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1693
            esac
 
1694
            ;;
 
1695
          -* ) ac_must_keep_next=true ;;
 
1696
        esac
 
1697
      fi
 
1698
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1699
      ;;
 
1700
    esac
 
1701
  done
 
1702
done
 
1703
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1704
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1705
 
 
1706
# When interrupted or exit'd, cleanup temporary files, and complete
 
1707
# config.log.  We remove comments because anyway the quotes in there
 
1708
# would cause problems or look ugly.
 
1709
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1710
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1711
trap 'exit_status=$?
 
1712
  # Save into config.log some information that might help in debugging.
 
1713
  {
 
1714
    echo
 
1715
 
 
1716
    cat <<\_ASBOX
 
1717
## ---------------- ##
 
1718
## Cache variables. ##
 
1719
## ---------------- ##
 
1720
_ASBOX
 
1721
    echo
 
1722
    # The following way of writing the cache mishandles newlines in values,
 
1723
(
 
1724
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1725
    eval ac_val=\$$ac_var
 
1726
    case $ac_val in #(
 
1727
    *${as_nl}*)
 
1728
      case $ac_var in #(
 
1729
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1730
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1731
      esac
 
1732
      case $ac_var in #(
 
1733
      _ | IFS | as_nl) ;; #(
 
1734
      *) $as_unset $ac_var ;;
 
1735
      esac ;;
 
1736
    esac
 
1737
  done
 
1738
  (set) 2>&1 |
 
1739
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1740
    *${as_nl}ac_space=\ *)
 
1741
      sed -n \
 
1742
        "s/'\''/'\''\\\\'\'''\''/g;
 
1743
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1744
      ;; #(
 
1745
    *)
 
1746
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1747
      ;;
 
1748
    esac |
 
1749
    sort
 
1750
)
 
1751
    echo
 
1752
 
 
1753
    cat <<\_ASBOX
 
1754
## ----------------- ##
 
1755
## Output variables. ##
 
1756
## ----------------- ##
 
1757
_ASBOX
 
1758
    echo
 
1759
    for ac_var in $ac_subst_vars
 
1760
    do
 
1761
      eval ac_val=\$$ac_var
 
1762
      case $ac_val in
 
1763
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1764
      esac
 
1765
      echo "$ac_var='\''$ac_val'\''"
 
1766
    done | sort
 
1767
    echo
 
1768
 
 
1769
    if test -n "$ac_subst_files"; then
 
1770
      cat <<\_ASBOX
 
1771
## ------------------- ##
 
1772
## File substitutions. ##
 
1773
## ------------------- ##
 
1774
_ASBOX
 
1775
      echo
 
1776
      for ac_var in $ac_subst_files
 
1777
      do
 
1778
        eval ac_val=\$$ac_var
 
1779
        case $ac_val in
 
1780
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1781
        esac
 
1782
        echo "$ac_var='\''$ac_val'\''"
 
1783
      done | sort
 
1784
      echo
 
1785
    fi
 
1786
 
 
1787
    if test -s confdefs.h; then
 
1788
      cat <<\_ASBOX
 
1789
## ----------- ##
 
1790
## confdefs.h. ##
 
1791
## ----------- ##
 
1792
_ASBOX
 
1793
      echo
 
1794
      cat confdefs.h
 
1795
      echo
 
1796
    fi
 
1797
    test "$ac_signal" != 0 &&
 
1798
      echo "$as_me: caught signal $ac_signal"
 
1799
    echo "$as_me: exit $exit_status"
 
1800
  } >&5
 
1801
  rm -f core *.core core.conftest.* &&
 
1802
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1803
    exit $exit_status
 
1804
' 0
 
1805
for ac_signal in 1 2 13 15; do
 
1806
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1807
done
 
1808
ac_signal=0
 
1809
 
 
1810
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1811
rm -f -r conftest* confdefs.h
 
1812
 
 
1813
# Predefined preprocessor variables.
 
1814
 
 
1815
cat >>confdefs.h <<_ACEOF
 
1816
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1817
_ACEOF
 
1818
 
 
1819
 
 
1820
cat >>confdefs.h <<_ACEOF
 
1821
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1822
_ACEOF
 
1823
 
 
1824
 
 
1825
cat >>confdefs.h <<_ACEOF
 
1826
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1827
_ACEOF
 
1828
 
 
1829
 
 
1830
cat >>confdefs.h <<_ACEOF
 
1831
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1832
_ACEOF
 
1833
 
 
1834
 
 
1835
cat >>confdefs.h <<_ACEOF
 
1836
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1837
_ACEOF
 
1838
 
 
1839
 
 
1840
# Let the site file select an alternate cache file if it wants to.
 
1841
# Prefer explicitly selected file to automatically selected ones.
 
1842
if test -n "$CONFIG_SITE"; then
 
1843
  set x "$CONFIG_SITE"
 
1844
elif test "x$prefix" != xNONE; then
 
1845
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1846
else
 
1847
  set x "$ac_default_prefix/share/config.site" \
 
1848
        "$ac_default_prefix/etc/config.site"
 
1849
fi
 
1850
shift
 
1851
for ac_site_file
 
1852
do
 
1853
  if test -r "$ac_site_file"; then
 
1854
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1855
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1856
    sed 's/^/| /' "$ac_site_file" >&5
 
1857
    . "$ac_site_file"
 
1858
  fi
 
1859
done
 
1860
 
 
1861
if test -r "$cache_file"; then
 
1862
  # Some versions of bash will fail to source /dev/null (special
 
1863
  # files actually), so we avoid doing that.
 
1864
  if test -f "$cache_file"; then
 
1865
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1866
echo "$as_me: loading cache $cache_file" >&6;}
 
1867
    case $cache_file in
 
1868
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1869
      *)                      . "./$cache_file";;
 
1870
    esac
 
1871
  fi
 
1872
else
 
1873
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1874
echo "$as_me: creating cache $cache_file" >&6;}
 
1875
  >$cache_file
 
1876
fi
 
1877
 
 
1878
# Check that the precious variables saved in the cache have kept the same
 
1879
# value.
 
1880
ac_cache_corrupted=false
 
1881
for ac_var in $ac_precious_vars; do
 
1882
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1883
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1884
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1885
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1886
  case $ac_old_set,$ac_new_set in
 
1887
    set,)
 
1888
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1889
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1890
      ac_cache_corrupted=: ;;
 
1891
    ,set)
 
1892
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1893
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1894
      ac_cache_corrupted=: ;;
 
1895
    ,);;
 
1896
    *)
 
1897
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1898
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1899
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1900
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1901
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1902
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1903
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1904
        ac_cache_corrupted=:
 
1905
      fi;;
 
1906
  esac
 
1907
  # Pass precious variables to config.status.
 
1908
  if test "$ac_new_set" = set; then
 
1909
    case $ac_new_val in
 
1910
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1911
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1912
    esac
 
1913
    case " $ac_configure_args " in
 
1914
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1915
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1916
    esac
 
1917
  fi
 
1918
done
 
1919
if $ac_cache_corrupted; then
 
1920
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1921
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1922
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1923
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1924
   { (exit 1); exit 1; }; }
 
1925
fi
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
ac_ext=c
 
1944
ac_cpp='$CPP $CPPFLAGS'
 
1945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1948
 
 
1949
 
 
1950
ac_config_headers="$ac_config_headers common/portable.h"
 
1951
 
 
1952
ac_aux_dir=
 
1953
for ac_dir in scripts/build/unix "$srcdir"/scripts/build/unix; do
 
1954
  if test -f "$ac_dir/install-sh"; then
 
1955
    ac_aux_dir=$ac_dir
 
1956
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1957
    break
 
1958
  elif test -f "$ac_dir/install.sh"; then
 
1959
    ac_aux_dir=$ac_dir
 
1960
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1961
    break
 
1962
  elif test -f "$ac_dir/shtool"; then
 
1963
    ac_aux_dir=$ac_dir
 
1964
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1965
    break
 
1966
  fi
 
1967
done
 
1968
if test -z "$ac_aux_dir"; then
 
1969
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/build/unix \"$srcdir\"/scripts/build/unix" >&5
 
1970
echo "$as_me: error: cannot find install-sh or install.sh in scripts/build/unix \"$srcdir\"/scripts/build/unix" >&2;}
 
1971
   { (exit 1); exit 1; }; }
 
1972
fi
 
1973
 
 
1974
# These three variables are undocumented and unsupported,
 
1975
# and are intended to be withdrawn in a future Autoconf release.
 
1976
# They can cause serious problems if a builder's source tree is in a directory
 
1977
# whose full name contains unusual characters.
 
1978
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1979
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1980
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1981
 
 
1982
 
 
1983
# Make sure we can run config.sub.
 
1984
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
1985
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
1986
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
1987
   { (exit 1); exit 1; }; }
 
1988
 
 
1989
{ echo "$as_me:$LINENO: checking build system type" >&5
 
1990
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
1991
if test "${ac_cv_build+set}" = set; then
 
1992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1993
else
 
1994
  ac_build_alias=$build_alias
 
1995
test "x$ac_build_alias" = x &&
 
1996
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
1997
test "x$ac_build_alias" = x &&
 
1998
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1999
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2000
   { (exit 1); exit 1; }; }
 
2001
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2002
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2003
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2004
   { (exit 1); exit 1; }; }
 
2005
 
 
2006
fi
 
2007
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2008
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2009
case $ac_cv_build in
 
2010
*-*-*) ;;
 
2011
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2012
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2013
   { (exit 1); exit 1; }; };;
 
2014
esac
 
2015
build=$ac_cv_build
 
2016
ac_save_IFS=$IFS; IFS='-'
 
2017
set x $ac_cv_build
 
2018
shift
 
2019
build_cpu=$1
 
2020
build_vendor=$2
 
2021
shift; shift
 
2022
# Remember, the first character of IFS is used to create $*,
 
2023
# except with old shells:
 
2024
build_os=$*
 
2025
IFS=$ac_save_IFS
 
2026
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2027
 
 
2028
 
 
2029
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2030
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2031
if test "${ac_cv_host+set}" = set; then
 
2032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2033
else
 
2034
  if test "x$host_alias" = x; then
 
2035
  ac_cv_host=$ac_cv_build
 
2036
else
 
2037
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2038
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2039
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2040
   { (exit 1); exit 1; }; }
 
2041
fi
 
2042
 
 
2043
fi
 
2044
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2045
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2046
case $ac_cv_host in
 
2047
*-*-*) ;;
 
2048
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2049
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2050
   { (exit 1); exit 1; }; };;
 
2051
esac
 
2052
host=$ac_cv_host
 
2053
ac_save_IFS=$IFS; IFS='-'
 
2054
set x $ac_cv_host
 
2055
shift
 
2056
host_cpu=$1
 
2057
host_vendor=$2
 
2058
shift; shift
 
2059
# Remember, the first character of IFS is used to create $*,
 
2060
# except with old shells:
 
2061
host_os=$*
 
2062
IFS=$ac_save_IFS
 
2063
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2064
 
 
2065
 
 
2066
{ echo "$as_me:$LINENO: checking target system type" >&5
 
2067
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
 
2068
if test "${ac_cv_target+set}" = set; then
 
2069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2070
else
 
2071
  if test "x$target_alias" = x; then
 
2072
  ac_cv_target=$ac_cv_host
 
2073
else
 
2074
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2075
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
2076
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
2077
   { (exit 1); exit 1; }; }
 
2078
fi
 
2079
 
 
2080
fi
 
2081
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2082
echo "${ECHO_T}$ac_cv_target" >&6; }
 
2083
case $ac_cv_target in
 
2084
*-*-*) ;;
 
2085
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
2086
echo "$as_me: error: invalid value of canonical target" >&2;}
 
2087
   { (exit 1); exit 1; }; };;
 
2088
esac
 
2089
target=$ac_cv_target
 
2090
ac_save_IFS=$IFS; IFS='-'
 
2091
set x $ac_cv_target
 
2092
shift
 
2093
target_cpu=$1
 
2094
target_vendor=$2
 
2095
shift; shift
 
2096
# Remember, the first character of IFS is used to create $*,
 
2097
# except with old shells:
 
2098
target_os=$*
 
2099
IFS=$ac_save_IFS
 
2100
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2101
 
 
2102
 
 
2103
# The aliases save the names the user supplied, while $host etc.
 
2104
# will get canonicalized.
 
2105
test -n "$target_alias" &&
 
2106
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2107
    NONENONEs,x,x, &&
 
2108
  program_prefix=${target_alias}-
 
2109
 
 
2110
PACKAGE=mod_jk
 
2111
VERSION=1.2.18
 
2112
 
 
2113
am__api_version="1.9"
 
2114
# Find a good install program.  We prefer a C program (faster),
 
2115
# so one script is as good as another.  But avoid the broken or
 
2116
# incompatible versions:
 
2117
# SysV /etc/install, /usr/sbin/install
 
2118
# SunOS /usr/etc/install
 
2119
# IRIX /sbin/install
 
2120
# AIX /bin/install
 
2121
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2122
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2123
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2124
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2125
# OS/2's system install, which has a completely different semantic
 
2126
# ./install, which can be erroneously created by make from ./install.sh.
 
2127
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2128
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2129
if test -z "$INSTALL"; then
 
2130
if test "${ac_cv_path_install+set}" = set; then
 
2131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2132
else
 
2133
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2134
for as_dir in $PATH
 
2135
do
 
2136
  IFS=$as_save_IFS
 
2137
  test -z "$as_dir" && as_dir=.
 
2138
  # Account for people who put trailing slashes in PATH elements.
 
2139
case $as_dir/ in
 
2140
  ./ | .// | /cC/* | \
 
2141
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2142
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2143
  /usr/ucb/* ) ;;
 
2144
  *)
 
2145
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2146
    # Don't use installbsd from OSF since it installs stuff as root
 
2147
    # by default.
 
2148
    for ac_prog in ginstall scoinst install; do
 
2149
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2150
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2151
          if test $ac_prog = install &&
 
2152
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2153
            # AIX install.  It has an incompatible calling convention.
 
2154
            :
 
2155
          elif test $ac_prog = install &&
 
2156
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2157
            # program-specific install script used by HP pwplus--don't use.
 
2158
            :
 
2159
          else
 
2160
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2161
            break 3
 
2162
          fi
 
2163
        fi
 
2164
      done
 
2165
    done
 
2166
    ;;
 
2167
esac
 
2168
done
 
2169
IFS=$as_save_IFS
 
2170
 
 
2171
 
 
2172
fi
 
2173
  if test "${ac_cv_path_install+set}" = set; then
 
2174
    INSTALL=$ac_cv_path_install
 
2175
  else
 
2176
    # As a last resort, use the slow shell script.  Don't cache a
 
2177
    # value for INSTALL within a source directory, because that will
 
2178
    # break other packages using the cache if that directory is
 
2179
    # removed, or if the value is a relative name.
 
2180
    INSTALL=$ac_install_sh
 
2181
  fi
 
2182
fi
 
2183
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2184
echo "${ECHO_T}$INSTALL" >&6; }
 
2185
 
 
2186
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2187
# It thinks the first close brace ends the variable substitution.
 
2188
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2189
 
 
2190
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2191
 
 
2192
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2193
 
 
2194
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2195
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2196
# Just in case
 
2197
sleep 1
 
2198
echo timestamp > conftest.file
 
2199
# Do `set' in a subshell so we don't clobber the current shell's
 
2200
# arguments.  Must try -L first in case configure is actually a
 
2201
# symlink; some systems play weird games with the mod time of symlinks
 
2202
# (eg FreeBSD returns the mod time of the symlink's containing
 
2203
# directory).
 
2204
if (
 
2205
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2206
   if test "$*" = "X"; then
 
2207
      # -L didn't work.
 
2208
      set X `ls -t $srcdir/configure conftest.file`
 
2209
   fi
 
2210
   rm -f conftest.file
 
2211
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2212
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2213
 
 
2214
      # If neither matched, then we have a broken ls.  This can happen
 
2215
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2216
      # broken ls alias from the environment.  This has actually
 
2217
      # happened.  Such a system could not be considered "sane".
 
2218
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2219
alias in your environment" >&5
 
2220
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2221
alias in your environment" >&2;}
 
2222
   { (exit 1); exit 1; }; }
 
2223
   fi
 
2224
 
 
2225
   test "$2" = conftest.file
 
2226
   )
 
2227
then
 
2228
   # Ok.
 
2229
   :
 
2230
else
 
2231
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2232
Check your system clock" >&5
 
2233
echo "$as_me: error: newly created file is older than distributed files!
 
2234
Check your system clock" >&2;}
 
2235
   { (exit 1); exit 1; }; }
 
2236
fi
 
2237
{ echo "$as_me:$LINENO: result: yes" >&5
 
2238
echo "${ECHO_T}yes" >&6; }
 
2239
test "$program_prefix" != NONE &&
 
2240
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2241
# Use a double $ so make ignores it.
 
2242
test "$program_suffix" != NONE &&
 
2243
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2244
# Double any \ or $.  echo might interpret backslashes.
 
2245
# By default was `s,x,x', remove it if useless.
 
2246
cat <<\_ACEOF >conftest.sed
 
2247
s/[\\$]/&&/g;s/;s,x,x,$//
 
2248
_ACEOF
 
2249
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2250
rm -f conftest.sed
 
2251
 
 
2252
# expand $ac_aux_dir to an absolute path
 
2253
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2254
 
 
2255
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2256
# Use eval to expand $SHELL
 
2257
if eval "$MISSING --run true"; then
 
2258
  am_missing_run="$MISSING --run "
 
2259
else
 
2260
  am_missing_run=
 
2261
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2262
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2263
fi
 
2264
 
 
2265
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2266
  # We used to keeping the `.' as first argument, in order to
 
2267
  # allow $(mkdir_p) to be used without argument.  As in
 
2268
  #   $(mkdir_p) $(somedir)
 
2269
  # where $(somedir) is conditionally defined.  However this is wrong
 
2270
  # for two reasons:
 
2271
  #  1. if the package is installed by a user who cannot write `.'
 
2272
  #     make install will fail,
 
2273
  #  2. the above comment should most certainly read
 
2274
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2275
  #     so it does not work when $(somedir) is undefined and
 
2276
  #     $(DESTDIR) is not.
 
2277
  #  To support the latter case, we have to write
 
2278
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2279
  #  so the `.' trick is pointless.
 
2280
  mkdir_p='mkdir -p --'
 
2281
else
 
2282
  # On NextStep and OpenStep, the `mkdir' command does not
 
2283
  # recognize any option.  It will interpret all options as
 
2284
  # directories to create, and then abort because `.' already
 
2285
  # exists.
 
2286
  for d in ./-p ./--version;
 
2287
  do
 
2288
    test -d $d && rmdir $d
 
2289
  done
 
2290
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2291
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2292
    mkdir_p='$(mkinstalldirs)'
 
2293
  else
 
2294
    mkdir_p='$(install_sh) -d'
 
2295
  fi
 
2296
fi
 
2297
 
 
2298
for ac_prog in gawk mawk nawk awk
 
2299
do
 
2300
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2301
set dummy $ac_prog; ac_word=$2
 
2302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2304
if test "${ac_cv_prog_AWK+set}" = set; then
 
2305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2306
else
 
2307
  if test -n "$AWK"; then
 
2308
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2309
else
 
2310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2311
for as_dir in $PATH
 
2312
do
 
2313
  IFS=$as_save_IFS
 
2314
  test -z "$as_dir" && as_dir=.
 
2315
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2317
    ac_cv_prog_AWK="$ac_prog"
 
2318
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2319
    break 2
 
2320
  fi
 
2321
done
 
2322
done
 
2323
IFS=$as_save_IFS
 
2324
 
 
2325
fi
 
2326
fi
 
2327
AWK=$ac_cv_prog_AWK
 
2328
if test -n "$AWK"; then
 
2329
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2330
echo "${ECHO_T}$AWK" >&6; }
 
2331
else
 
2332
  { echo "$as_me:$LINENO: result: no" >&5
 
2333
echo "${ECHO_T}no" >&6; }
 
2334
fi
 
2335
 
 
2336
 
 
2337
  test -n "$AWK" && break
 
2338
done
 
2339
 
 
2340
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2341
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2342
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2343
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2345
else
 
2346
  cat >conftest.make <<\_ACEOF
 
2347
SHELL = /bin/sh
 
2348
all:
 
2349
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2350
_ACEOF
 
2351
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2352
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2353
  *@@@%%%=?*=@@@%%%*)
 
2354
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2355
  *)
 
2356
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2357
esac
 
2358
rm -f conftest.make
 
2359
fi
 
2360
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2361
  { echo "$as_me:$LINENO: result: yes" >&5
 
2362
echo "${ECHO_T}yes" >&6; }
 
2363
  SET_MAKE=
 
2364
else
 
2365
  { echo "$as_me:$LINENO: result: no" >&5
 
2366
echo "${ECHO_T}no" >&6; }
 
2367
  SET_MAKE="MAKE=${MAKE-make}"
 
2368
fi
 
2369
 
 
2370
rm -rf .tst 2>/dev/null
 
2371
mkdir .tst 2>/dev/null
 
2372
if test -d .tst; then
 
2373
  am__leading_dot=.
 
2374
else
 
2375
  am__leading_dot=_
 
2376
fi
 
2377
rmdir .tst 2>/dev/null
 
2378
 
 
2379
# test to see if srcdir already configured
 
2380
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2381
   test -f $srcdir/config.status; then
 
2382
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2383
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2384
   { (exit 1); exit 1; }; }
 
2385
fi
 
2386
 
 
2387
# test whether we have cygpath
 
2388
if test -z "$CYGPATH_W"; then
 
2389
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2390
    CYGPATH_W='cygpath -w'
 
2391
  else
 
2392
    CYGPATH_W=echo
 
2393
  fi
 
2394
fi
 
2395
 
 
2396
 
 
2397
# Define the identity of the package.
 
2398
 PACKAGE=${PACKAGE}
 
2399
 VERSION=${VERSION}
 
2400
 
 
2401
 
 
2402
cat >>confdefs.h <<_ACEOF
 
2403
#define PACKAGE "$PACKAGE"
 
2404
_ACEOF
 
2405
 
 
2406
 
 
2407
cat >>confdefs.h <<_ACEOF
 
2408
#define VERSION "$VERSION"
 
2409
_ACEOF
 
2410
 
 
2411
# Some tools Automake needs.
 
2412
 
 
2413
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2414
 
 
2415
 
 
2416
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2417
 
 
2418
 
 
2419
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2420
 
 
2421
 
 
2422
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2423
 
 
2424
 
 
2425
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2426
 
 
2427
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2428
 
 
2429
# Installed binaries are usually stripped using `strip' when the user
 
2430
# run `make install-strip'.  However `strip' might not be the right
 
2431
# tool to use in cross-compilation environments, therefore Automake
 
2432
# will honor the `STRIP' environment variable to overrule this program.
 
2433
if test "$cross_compiling" != no; then
 
2434
  if test -n "$ac_tool_prefix"; then
 
2435
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2436
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2437
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2439
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2441
else
 
2442
  if test -n "$STRIP"; then
 
2443
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2444
else
 
2445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2446
for as_dir in $PATH
 
2447
do
 
2448
  IFS=$as_save_IFS
 
2449
  test -z "$as_dir" && as_dir=.
 
2450
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2451
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2452
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2453
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2454
    break 2
 
2455
  fi
 
2456
done
 
2457
done
 
2458
IFS=$as_save_IFS
 
2459
 
 
2460
fi
 
2461
fi
 
2462
STRIP=$ac_cv_prog_STRIP
 
2463
if test -n "$STRIP"; then
 
2464
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2465
echo "${ECHO_T}$STRIP" >&6; }
 
2466
else
 
2467
  { echo "$as_me:$LINENO: result: no" >&5
 
2468
echo "${ECHO_T}no" >&6; }
 
2469
fi
 
2470
 
 
2471
 
 
2472
fi
 
2473
if test -z "$ac_cv_prog_STRIP"; then
 
2474
  ac_ct_STRIP=$STRIP
 
2475
  # Extract the first word of "strip", so it can be a program name with args.
 
2476
set dummy strip; ac_word=$2
 
2477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2479
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2481
else
 
2482
  if test -n "$ac_ct_STRIP"; then
 
2483
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2484
else
 
2485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2486
for as_dir in $PATH
 
2487
do
 
2488
  IFS=$as_save_IFS
 
2489
  test -z "$as_dir" && as_dir=.
 
2490
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2492
    ac_cv_prog_ac_ct_STRIP="strip"
 
2493
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2494
    break 2
 
2495
  fi
 
2496
done
 
2497
done
 
2498
IFS=$as_save_IFS
 
2499
 
 
2500
fi
 
2501
fi
 
2502
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2503
if test -n "$ac_ct_STRIP"; then
 
2504
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2505
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2506
else
 
2507
  { echo "$as_me:$LINENO: result: no" >&5
 
2508
echo "${ECHO_T}no" >&6; }
 
2509
fi
 
2510
 
 
2511
  if test "x$ac_ct_STRIP" = x; then
 
2512
    STRIP=":"
 
2513
  else
 
2514
    case $cross_compiling:$ac_tool_warned in
 
2515
yes:)
 
2516
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2517
whose name does not start with the host triplet.  If you think this
 
2518
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2519
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2520
whose name does not start with the host triplet.  If you think this
 
2521
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2522
ac_tool_warned=yes ;;
 
2523
esac
 
2524
    STRIP=$ac_ct_STRIP
 
2525
  fi
 
2526
else
 
2527
  STRIP="$ac_cv_prog_STRIP"
 
2528
fi
 
2529
 
 
2530
fi
 
2531
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2532
 
 
2533
# We need awk for the "check" target.  The system "awk" is bad on
 
2534
# some platforms.
 
2535
# Always define AMTAR for backward compatibility.
 
2536
 
 
2537
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2538
 
 
2539
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2540
 
 
2541
 
 
2542
 
 
2543
 
 
2544
 
 
2545
 
 
2546
ac_ext=c
 
2547
ac_cpp='$CPP $CPPFLAGS'
 
2548
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2549
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2550
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2551
if test -n "$ac_tool_prefix"; then
 
2552
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2553
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2554
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2556
if test "${ac_cv_prog_CC+set}" = set; then
 
2557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2558
else
 
2559
  if test -n "$CC"; then
 
2560
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2561
else
 
2562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2563
for as_dir in $PATH
 
2564
do
 
2565
  IFS=$as_save_IFS
 
2566
  test -z "$as_dir" && as_dir=.
 
2567
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2568
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2569
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2570
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2571
    break 2
 
2572
  fi
 
2573
done
 
2574
done
 
2575
IFS=$as_save_IFS
 
2576
 
 
2577
fi
 
2578
fi
 
2579
CC=$ac_cv_prog_CC
 
2580
if test -n "$CC"; then
 
2581
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2582
echo "${ECHO_T}$CC" >&6; }
 
2583
else
 
2584
  { echo "$as_me:$LINENO: result: no" >&5
 
2585
echo "${ECHO_T}no" >&6; }
 
2586
fi
 
2587
 
 
2588
 
 
2589
fi
 
2590
if test -z "$ac_cv_prog_CC"; then
 
2591
  ac_ct_CC=$CC
 
2592
  # Extract the first word of "gcc", so it can be a program name with args.
 
2593
set dummy gcc; ac_word=$2
 
2594
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2595
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2596
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2598
else
 
2599
  if test -n "$ac_ct_CC"; then
 
2600
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2601
else
 
2602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2603
for as_dir in $PATH
 
2604
do
 
2605
  IFS=$as_save_IFS
 
2606
  test -z "$as_dir" && as_dir=.
 
2607
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2608
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2609
    ac_cv_prog_ac_ct_CC="gcc"
 
2610
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2611
    break 2
 
2612
  fi
 
2613
done
 
2614
done
 
2615
IFS=$as_save_IFS
 
2616
 
 
2617
fi
 
2618
fi
 
2619
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2620
if test -n "$ac_ct_CC"; then
 
2621
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2622
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2623
else
 
2624
  { echo "$as_me:$LINENO: result: no" >&5
 
2625
echo "${ECHO_T}no" >&6; }
 
2626
fi
 
2627
 
 
2628
  if test "x$ac_ct_CC" = x; then
 
2629
    CC=""
 
2630
  else
 
2631
    case $cross_compiling:$ac_tool_warned in
 
2632
yes:)
 
2633
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2634
whose name does not start with the host triplet.  If you think this
 
2635
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2636
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2637
whose name does not start with the host triplet.  If you think this
 
2638
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2639
ac_tool_warned=yes ;;
 
2640
esac
 
2641
    CC=$ac_ct_CC
 
2642
  fi
 
2643
else
 
2644
  CC="$ac_cv_prog_CC"
 
2645
fi
 
2646
 
 
2647
if test -z "$CC"; then
 
2648
          if test -n "$ac_tool_prefix"; then
 
2649
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2650
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2651
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2652
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2653
if test "${ac_cv_prog_CC+set}" = set; then
 
2654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2655
else
 
2656
  if test -n "$CC"; then
 
2657
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2658
else
 
2659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2660
for as_dir in $PATH
 
2661
do
 
2662
  IFS=$as_save_IFS
 
2663
  test -z "$as_dir" && as_dir=.
 
2664
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2665
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2666
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2667
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2668
    break 2
 
2669
  fi
 
2670
done
 
2671
done
 
2672
IFS=$as_save_IFS
 
2673
 
 
2674
fi
 
2675
fi
 
2676
CC=$ac_cv_prog_CC
 
2677
if test -n "$CC"; then
 
2678
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2679
echo "${ECHO_T}$CC" >&6; }
 
2680
else
 
2681
  { echo "$as_me:$LINENO: result: no" >&5
 
2682
echo "${ECHO_T}no" >&6; }
 
2683
fi
 
2684
 
 
2685
 
 
2686
  fi
 
2687
fi
 
2688
if test -z "$CC"; then
 
2689
  # Extract the first word of "cc", so it can be a program name with args.
 
2690
set dummy cc; ac_word=$2
 
2691
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2692
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2693
if test "${ac_cv_prog_CC+set}" = set; then
 
2694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2695
else
 
2696
  if test -n "$CC"; then
 
2697
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2698
else
 
2699
  ac_prog_rejected=no
 
2700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2701
for as_dir in $PATH
 
2702
do
 
2703
  IFS=$as_save_IFS
 
2704
  test -z "$as_dir" && as_dir=.
 
2705
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2706
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2707
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2708
       ac_prog_rejected=yes
 
2709
       continue
 
2710
     fi
 
2711
    ac_cv_prog_CC="cc"
 
2712
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2713
    break 2
 
2714
  fi
 
2715
done
 
2716
done
 
2717
IFS=$as_save_IFS
 
2718
 
 
2719
if test $ac_prog_rejected = yes; then
 
2720
  # We found a bogon in the path, so make sure we never use it.
 
2721
  set dummy $ac_cv_prog_CC
 
2722
  shift
 
2723
  if test $# != 0; then
 
2724
    # We chose a different compiler from the bogus one.
 
2725
    # However, it has the same basename, so the bogon will be chosen
 
2726
    # first if we set CC to just the basename; use the full file name.
 
2727
    shift
 
2728
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2729
  fi
 
2730
fi
 
2731
fi
 
2732
fi
 
2733
CC=$ac_cv_prog_CC
 
2734
if test -n "$CC"; then
 
2735
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2736
echo "${ECHO_T}$CC" >&6; }
 
2737
else
 
2738
  { echo "$as_me:$LINENO: result: no" >&5
 
2739
echo "${ECHO_T}no" >&6; }
 
2740
fi
 
2741
 
 
2742
 
 
2743
fi
 
2744
if test -z "$CC"; then
 
2745
  if test -n "$ac_tool_prefix"; then
 
2746
  for ac_prog in cl.exe
 
2747
  do
 
2748
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2749
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2750
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2752
if test "${ac_cv_prog_CC+set}" = set; then
 
2753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2754
else
 
2755
  if test -n "$CC"; then
 
2756
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2757
else
 
2758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2759
for as_dir in $PATH
 
2760
do
 
2761
  IFS=$as_save_IFS
 
2762
  test -z "$as_dir" && as_dir=.
 
2763
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2764
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2765
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2766
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2767
    break 2
 
2768
  fi
 
2769
done
 
2770
done
 
2771
IFS=$as_save_IFS
 
2772
 
 
2773
fi
 
2774
fi
 
2775
CC=$ac_cv_prog_CC
 
2776
if test -n "$CC"; then
 
2777
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2778
echo "${ECHO_T}$CC" >&6; }
 
2779
else
 
2780
  { echo "$as_me:$LINENO: result: no" >&5
 
2781
echo "${ECHO_T}no" >&6; }
 
2782
fi
 
2783
 
 
2784
 
 
2785
    test -n "$CC" && break
 
2786
  done
 
2787
fi
 
2788
if test -z "$CC"; then
 
2789
  ac_ct_CC=$CC
 
2790
  for ac_prog in cl.exe
 
2791
do
 
2792
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2793
set dummy $ac_prog; ac_word=$2
 
2794
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2795
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2796
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2798
else
 
2799
  if test -n "$ac_ct_CC"; then
 
2800
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2801
else
 
2802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2803
for as_dir in $PATH
 
2804
do
 
2805
  IFS=$as_save_IFS
 
2806
  test -z "$as_dir" && as_dir=.
 
2807
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2808
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2809
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2810
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2811
    break 2
 
2812
  fi
 
2813
done
 
2814
done
 
2815
IFS=$as_save_IFS
 
2816
 
 
2817
fi
 
2818
fi
 
2819
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2820
if test -n "$ac_ct_CC"; then
 
2821
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2822
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2823
else
 
2824
  { echo "$as_me:$LINENO: result: no" >&5
 
2825
echo "${ECHO_T}no" >&6; }
 
2826
fi
 
2827
 
 
2828
 
 
2829
  test -n "$ac_ct_CC" && break
 
2830
done
 
2831
 
 
2832
  if test "x$ac_ct_CC" = x; then
 
2833
    CC=""
 
2834
  else
 
2835
    case $cross_compiling:$ac_tool_warned in
 
2836
yes:)
 
2837
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2838
whose name does not start with the host triplet.  If you think this
 
2839
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2840
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2841
whose name does not start with the host triplet.  If you think this
 
2842
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2843
ac_tool_warned=yes ;;
 
2844
esac
 
2845
    CC=$ac_ct_CC
 
2846
  fi
 
2847
fi
 
2848
 
 
2849
fi
 
2850
 
 
2851
 
 
2852
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2853
See \`config.log' for more details." >&5
 
2854
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2855
See \`config.log' for more details." >&2;}
 
2856
   { (exit 1); exit 1; }; }
 
2857
 
 
2858
# Provide some information about the compiler.
 
2859
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2860
ac_compiler=`set X $ac_compile; echo $2`
 
2861
{ (ac_try="$ac_compiler --version >&5"
 
2862
case "(($ac_try" in
 
2863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2864
  *) ac_try_echo=$ac_try;;
 
2865
esac
 
2866
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2867
  (eval "$ac_compiler --version >&5") 2>&5
 
2868
  ac_status=$?
 
2869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2870
  (exit $ac_status); }
 
2871
{ (ac_try="$ac_compiler -v >&5"
 
2872
case "(($ac_try" in
 
2873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2874
  *) ac_try_echo=$ac_try;;
 
2875
esac
 
2876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2877
  (eval "$ac_compiler -v >&5") 2>&5
 
2878
  ac_status=$?
 
2879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2880
  (exit $ac_status); }
 
2881
{ (ac_try="$ac_compiler -V >&5"
 
2882
case "(($ac_try" in
 
2883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2884
  *) ac_try_echo=$ac_try;;
 
2885
esac
 
2886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2887
  (eval "$ac_compiler -V >&5") 2>&5
 
2888
  ac_status=$?
 
2889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2890
  (exit $ac_status); }
 
2891
 
 
2892
cat >conftest.$ac_ext <<_ACEOF
 
2893
/* confdefs.h.  */
 
2894
_ACEOF
 
2895
cat confdefs.h >>conftest.$ac_ext
 
2896
cat >>conftest.$ac_ext <<_ACEOF
 
2897
/* end confdefs.h.  */
 
2898
 
 
2899
int
 
2900
main ()
 
2901
{
 
2902
 
 
2903
  ;
 
2904
  return 0;
 
2905
}
 
2906
_ACEOF
 
2907
ac_clean_files_save=$ac_clean_files
 
2908
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2909
# Try to create an executable without -o first, disregard a.out.
 
2910
# It will help us diagnose broken compilers, and finding out an intuition
 
2911
# of exeext.
 
2912
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2913
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2914
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2915
#
 
2916
# List of possible output files, starting from the most likely.
 
2917
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2918
# only as a last resort.  b.out is created by i960 compilers.
 
2919
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2920
#
 
2921
# The IRIX 6 linker writes into existing files which may not be
 
2922
# executable, retaining their permissions.  Remove them first so a
 
2923
# subsequent execution test works.
 
2924
ac_rmfiles=
 
2925
for ac_file in $ac_files
 
2926
do
 
2927
  case $ac_file in
 
2928
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2929
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2930
  esac
 
2931
done
 
2932
rm -f $ac_rmfiles
 
2933
 
 
2934
if { (ac_try="$ac_link_default"
 
2935
case "(($ac_try" in
 
2936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2937
  *) ac_try_echo=$ac_try;;
 
2938
esac
 
2939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2940
  (eval "$ac_link_default") 2>&5
 
2941
  ac_status=$?
 
2942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2943
  (exit $ac_status); }; then
 
2944
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2945
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2946
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2947
# so that the user can short-circuit this test for compilers unknown to
 
2948
# Autoconf.
 
2949
for ac_file in $ac_files
 
2950
do
 
2951
  test -f "$ac_file" || continue
 
2952
  case $ac_file in
 
2953
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2954
        ;;
 
2955
    [ab].out )
 
2956
        # We found the default executable, but exeext='' is most
 
2957
        # certainly right.
 
2958
        break;;
 
2959
    *.* )
 
2960
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2961
        then :; else
 
2962
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2963
        fi
 
2964
        # We set ac_cv_exeext here because the later test for it is not
 
2965
        # safe: cross compilers may not add the suffix if given an `-o'
 
2966
        # argument, so we may need to know it at that point already.
 
2967
        # Even if this section looks crufty: it has the advantage of
 
2968
        # actually working.
 
2969
        break;;
 
2970
    * )
 
2971
        break;;
 
2972
  esac
 
2973
done
 
2974
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2975
 
 
2976
else
 
2977
  echo "$as_me: failed program was:" >&5
 
2978
sed 's/^/| /' conftest.$ac_ext >&5
 
2979
 
 
2980
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2981
See \`config.log' for more details." >&5
 
2982
echo "$as_me: error: C compiler cannot create executables
 
2983
See \`config.log' for more details." >&2;}
 
2984
   { (exit 77); exit 77; }; }
 
2985
fi
 
2986
 
 
2987
ac_exeext=$ac_cv_exeext
 
2988
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2989
echo "${ECHO_T}$ac_file" >&6; }
 
2990
 
 
2991
# Check that the compiler produces executables we can run.  If not, either
 
2992
# the compiler is broken, or we cross compile.
 
2993
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2994
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2995
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2996
# If not cross compiling, check that we can run a simple program.
 
2997
if test "$cross_compiling" != yes; then
 
2998
  if { ac_try='./$ac_file'
 
2999
  { (case "(($ac_try" in
 
3000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3001
  *) ac_try_echo=$ac_try;;
 
3002
esac
 
3003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3004
  (eval "$ac_try") 2>&5
 
3005
  ac_status=$?
 
3006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3007
  (exit $ac_status); }; }; then
 
3008
    cross_compiling=no
 
3009
  else
 
3010
    if test "$cross_compiling" = maybe; then
 
3011
        cross_compiling=yes
 
3012
    else
 
3013
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3014
If you meant to cross compile, use \`--host'.
 
3015
See \`config.log' for more details." >&5
 
3016
echo "$as_me: error: cannot run C compiled programs.
 
3017
If you meant to cross compile, use \`--host'.
 
3018
See \`config.log' for more details." >&2;}
 
3019
   { (exit 1); exit 1; }; }
 
3020
    fi
 
3021
  fi
 
3022
fi
 
3023
{ echo "$as_me:$LINENO: result: yes" >&5
 
3024
echo "${ECHO_T}yes" >&6; }
 
3025
 
 
3026
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3027
ac_clean_files=$ac_clean_files_save
 
3028
# Check that the compiler produces executables we can run.  If not, either
 
3029
# the compiler is broken, or we cross compile.
 
3030
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3031
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3032
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3033
echo "${ECHO_T}$cross_compiling" >&6; }
 
3034
 
 
3035
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3036
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3037
if { (ac_try="$ac_link"
 
3038
case "(($ac_try" in
 
3039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3040
  *) ac_try_echo=$ac_try;;
 
3041
esac
 
3042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3043
  (eval "$ac_link") 2>&5
 
3044
  ac_status=$?
 
3045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3046
  (exit $ac_status); }; then
 
3047
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3048
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3049
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3050
# `rm'.
 
3051
for ac_file in conftest.exe conftest conftest.*; do
 
3052
  test -f "$ac_file" || continue
 
3053
  case $ac_file in
 
3054
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3055
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3056
          break;;
 
3057
    * ) break;;
 
3058
  esac
 
3059
done
 
3060
else
 
3061
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3062
See \`config.log' for more details." >&5
 
3063
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3064
See \`config.log' for more details." >&2;}
 
3065
   { (exit 1); exit 1; }; }
 
3066
fi
 
3067
 
 
3068
rm -f conftest$ac_cv_exeext
 
3069
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3070
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3071
 
 
3072
rm -f conftest.$ac_ext
 
3073
EXEEXT=$ac_cv_exeext
 
3074
ac_exeext=$EXEEXT
 
3075
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3076
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3077
if test "${ac_cv_objext+set}" = set; then
 
3078
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3079
else
 
3080
  cat >conftest.$ac_ext <<_ACEOF
 
3081
/* confdefs.h.  */
 
3082
_ACEOF
 
3083
cat confdefs.h >>conftest.$ac_ext
 
3084
cat >>conftest.$ac_ext <<_ACEOF
 
3085
/* end confdefs.h.  */
 
3086
 
 
3087
int
 
3088
main ()
 
3089
{
 
3090
 
 
3091
  ;
 
3092
  return 0;
 
3093
}
 
3094
_ACEOF
 
3095
rm -f conftest.o conftest.obj
 
3096
if { (ac_try="$ac_compile"
 
3097
case "(($ac_try" in
 
3098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3099
  *) ac_try_echo=$ac_try;;
 
3100
esac
 
3101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3102
  (eval "$ac_compile") 2>&5
 
3103
  ac_status=$?
 
3104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3105
  (exit $ac_status); }; then
 
3106
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3107
  test -f "$ac_file" || continue;
 
3108
  case $ac_file in
 
3109
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3110
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3111
       break;;
 
3112
  esac
 
3113
done
 
3114
else
 
3115
  echo "$as_me: failed program was:" >&5
 
3116
sed 's/^/| /' conftest.$ac_ext >&5
 
3117
 
 
3118
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3119
See \`config.log' for more details." >&5
 
3120
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3121
See \`config.log' for more details." >&2;}
 
3122
   { (exit 1); exit 1; }; }
 
3123
fi
 
3124
 
 
3125
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3126
fi
 
3127
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3128
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3129
OBJEXT=$ac_cv_objext
 
3130
ac_objext=$OBJEXT
 
3131
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3132
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3133
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3135
else
 
3136
  cat >conftest.$ac_ext <<_ACEOF
 
3137
/* confdefs.h.  */
 
3138
_ACEOF
 
3139
cat confdefs.h >>conftest.$ac_ext
 
3140
cat >>conftest.$ac_ext <<_ACEOF
 
3141
/* end confdefs.h.  */
 
3142
 
 
3143
int
 
3144
main ()
 
3145
{
 
3146
#ifndef __GNUC__
 
3147
       choke me
 
3148
#endif
 
3149
 
 
3150
  ;
 
3151
  return 0;
 
3152
}
 
3153
_ACEOF
 
3154
rm -f conftest.$ac_objext
 
3155
if { (ac_try="$ac_compile"
 
3156
case "(($ac_try" in
 
3157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3158
  *) ac_try_echo=$ac_try;;
 
3159
esac
 
3160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3161
  (eval "$ac_compile") 2>conftest.er1
 
3162
  ac_status=$?
 
3163
  grep -v '^ *+' conftest.er1 >conftest.err
 
3164
  rm -f conftest.er1
 
3165
  cat conftest.err >&5
 
3166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3167
  (exit $ac_status); } &&
 
3168
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3169
  { (case "(($ac_try" in
 
3170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3171
  *) ac_try_echo=$ac_try;;
 
3172
esac
 
3173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3174
  (eval "$ac_try") 2>&5
 
3175
  ac_status=$?
 
3176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3177
  (exit $ac_status); }; } &&
 
3178
         { ac_try='test -s conftest.$ac_objext'
 
3179
  { (case "(($ac_try" in
 
3180
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3181
  *) ac_try_echo=$ac_try;;
 
3182
esac
 
3183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3184
  (eval "$ac_try") 2>&5
 
3185
  ac_status=$?
 
3186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3187
  (exit $ac_status); }; }; then
 
3188
  ac_compiler_gnu=yes
 
3189
else
 
3190
  echo "$as_me: failed program was:" >&5
 
3191
sed 's/^/| /' conftest.$ac_ext >&5
 
3192
 
 
3193
        ac_compiler_gnu=no
 
3194
fi
 
3195
 
 
3196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3197
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3198
 
 
3199
fi
 
3200
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3201
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3202
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3203
ac_test_CFLAGS=${CFLAGS+set}
 
3204
ac_save_CFLAGS=$CFLAGS
 
3205
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3206
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3207
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3209
else
 
3210
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3211
   ac_c_werror_flag=yes
 
3212
   ac_cv_prog_cc_g=no
 
3213
   CFLAGS="-g"
 
3214
   cat >conftest.$ac_ext <<_ACEOF
 
3215
/* confdefs.h.  */
 
3216
_ACEOF
 
3217
cat confdefs.h >>conftest.$ac_ext
 
3218
cat >>conftest.$ac_ext <<_ACEOF
 
3219
/* end confdefs.h.  */
 
3220
 
 
3221
int
 
3222
main ()
 
3223
{
 
3224
 
 
3225
  ;
 
3226
  return 0;
 
3227
}
 
3228
_ACEOF
 
3229
rm -f conftest.$ac_objext
 
3230
if { (ac_try="$ac_compile"
 
3231
case "(($ac_try" in
 
3232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3233
  *) ac_try_echo=$ac_try;;
 
3234
esac
 
3235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3236
  (eval "$ac_compile") 2>conftest.er1
 
3237
  ac_status=$?
 
3238
  grep -v '^ *+' conftest.er1 >conftest.err
 
3239
  rm -f conftest.er1
 
3240
  cat conftest.err >&5
 
3241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3242
  (exit $ac_status); } &&
 
3243
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3244
  { (case "(($ac_try" in
 
3245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3246
  *) ac_try_echo=$ac_try;;
 
3247
esac
 
3248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3249
  (eval "$ac_try") 2>&5
 
3250
  ac_status=$?
 
3251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3252
  (exit $ac_status); }; } &&
 
3253
         { ac_try='test -s conftest.$ac_objext'
 
3254
  { (case "(($ac_try" in
 
3255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3256
  *) ac_try_echo=$ac_try;;
 
3257
esac
 
3258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3259
  (eval "$ac_try") 2>&5
 
3260
  ac_status=$?
 
3261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3262
  (exit $ac_status); }; }; then
 
3263
  ac_cv_prog_cc_g=yes
 
3264
else
 
3265
  echo "$as_me: failed program was:" >&5
 
3266
sed 's/^/| /' conftest.$ac_ext >&5
 
3267
 
 
3268
        CFLAGS=""
 
3269
      cat >conftest.$ac_ext <<_ACEOF
 
3270
/* confdefs.h.  */
 
3271
_ACEOF
 
3272
cat confdefs.h >>conftest.$ac_ext
 
3273
cat >>conftest.$ac_ext <<_ACEOF
 
3274
/* end confdefs.h.  */
 
3275
 
 
3276
int
 
3277
main ()
 
3278
{
 
3279
 
 
3280
  ;
 
3281
  return 0;
 
3282
}
 
3283
_ACEOF
 
3284
rm -f conftest.$ac_objext
 
3285
if { (ac_try="$ac_compile"
 
3286
case "(($ac_try" in
 
3287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3288
  *) ac_try_echo=$ac_try;;
 
3289
esac
 
3290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3291
  (eval "$ac_compile") 2>conftest.er1
 
3292
  ac_status=$?
 
3293
  grep -v '^ *+' conftest.er1 >conftest.err
 
3294
  rm -f conftest.er1
 
3295
  cat conftest.err >&5
 
3296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3297
  (exit $ac_status); } &&
 
3298
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3299
  { (case "(($ac_try" in
 
3300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3301
  *) ac_try_echo=$ac_try;;
 
3302
esac
 
3303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3304
  (eval "$ac_try") 2>&5
 
3305
  ac_status=$?
 
3306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3307
  (exit $ac_status); }; } &&
 
3308
         { ac_try='test -s conftest.$ac_objext'
 
3309
  { (case "(($ac_try" in
 
3310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3311
  *) ac_try_echo=$ac_try;;
 
3312
esac
 
3313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3314
  (eval "$ac_try") 2>&5
 
3315
  ac_status=$?
 
3316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3317
  (exit $ac_status); }; }; then
 
3318
  :
 
3319
else
 
3320
  echo "$as_me: failed program was:" >&5
 
3321
sed 's/^/| /' conftest.$ac_ext >&5
 
3322
 
 
3323
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3324
         CFLAGS="-g"
 
3325
         cat >conftest.$ac_ext <<_ACEOF
 
3326
/* confdefs.h.  */
 
3327
_ACEOF
 
3328
cat confdefs.h >>conftest.$ac_ext
 
3329
cat >>conftest.$ac_ext <<_ACEOF
 
3330
/* end confdefs.h.  */
 
3331
 
 
3332
int
 
3333
main ()
 
3334
{
 
3335
 
 
3336
  ;
 
3337
  return 0;
 
3338
}
 
3339
_ACEOF
 
3340
rm -f conftest.$ac_objext
 
3341
if { (ac_try="$ac_compile"
 
3342
case "(($ac_try" in
 
3343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3344
  *) ac_try_echo=$ac_try;;
 
3345
esac
 
3346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3347
  (eval "$ac_compile") 2>conftest.er1
 
3348
  ac_status=$?
 
3349
  grep -v '^ *+' conftest.er1 >conftest.err
 
3350
  rm -f conftest.er1
 
3351
  cat conftest.err >&5
 
3352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3353
  (exit $ac_status); } &&
 
3354
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3355
  { (case "(($ac_try" in
 
3356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3357
  *) ac_try_echo=$ac_try;;
 
3358
esac
 
3359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3360
  (eval "$ac_try") 2>&5
 
3361
  ac_status=$?
 
3362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3363
  (exit $ac_status); }; } &&
 
3364
         { ac_try='test -s conftest.$ac_objext'
 
3365
  { (case "(($ac_try" in
 
3366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3367
  *) ac_try_echo=$ac_try;;
 
3368
esac
 
3369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3370
  (eval "$ac_try") 2>&5
 
3371
  ac_status=$?
 
3372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3373
  (exit $ac_status); }; }; then
 
3374
  ac_cv_prog_cc_g=yes
 
3375
else
 
3376
  echo "$as_me: failed program was:" >&5
 
3377
sed 's/^/| /' conftest.$ac_ext >&5
 
3378
 
 
3379
 
 
3380
fi
 
3381
 
 
3382
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3383
fi
 
3384
 
 
3385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3386
fi
 
3387
 
 
3388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3389
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3390
fi
 
3391
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3392
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3393
if test "$ac_test_CFLAGS" = set; then
 
3394
  CFLAGS=$ac_save_CFLAGS
 
3395
elif test $ac_cv_prog_cc_g = yes; then
 
3396
  if test "$GCC" = yes; then
 
3397
    CFLAGS="-g -O2"
 
3398
  else
 
3399
    CFLAGS="-g"
 
3400
  fi
 
3401
else
 
3402
  if test "$GCC" = yes; then
 
3403
    CFLAGS="-O2"
 
3404
  else
 
3405
    CFLAGS=
 
3406
  fi
 
3407
fi
 
3408
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3409
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3410
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3412
else
 
3413
  ac_cv_prog_cc_c89=no
 
3414
ac_save_CC=$CC
 
3415
cat >conftest.$ac_ext <<_ACEOF
 
3416
/* confdefs.h.  */
 
3417
_ACEOF
 
3418
cat confdefs.h >>conftest.$ac_ext
 
3419
cat >>conftest.$ac_ext <<_ACEOF
 
3420
/* end confdefs.h.  */
 
3421
#include <stdarg.h>
 
3422
#include <stdio.h>
 
3423
#include <sys/types.h>
 
3424
#include <sys/stat.h>
 
3425
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3426
struct buf { int x; };
 
3427
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3428
static char *e (p, i)
 
3429
     char **p;
 
3430
     int i;
 
3431
{
 
3432
  return p[i];
 
3433
}
 
3434
static char *f (char * (*g) (char **, int), char **p, ...)
 
3435
{
 
3436
  char *s;
 
3437
  va_list v;
 
3438
  va_start (v,p);
 
3439
  s = g (p, va_arg (v,int));
 
3440
  va_end (v);
 
3441
  return s;
 
3442
}
 
3443
 
 
3444
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3445
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3446
   These don't provoke an error unfortunately, instead are silently treated
 
3447
   as 'x'.  The following induces an error, until -std is added to get
 
3448
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3449
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3450
   that's true only with -std.  */
 
3451
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3452
 
 
3453
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3454
   inside strings and character constants.  */
 
3455
#define FOO(x) 'x'
 
3456
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3457
 
 
3458
int test (int i, double x);
 
3459
struct s1 {int (*f) (int a);};
 
3460
struct s2 {int (*f) (double a);};
 
3461
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3462
int argc;
 
3463
char **argv;
 
3464
int
 
3465
main ()
 
3466
{
 
3467
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3468
  ;
 
3469
  return 0;
 
3470
}
 
3471
_ACEOF
 
3472
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3473
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3474
do
 
3475
  CC="$ac_save_CC $ac_arg"
 
3476
  rm -f conftest.$ac_objext
 
3477
if { (ac_try="$ac_compile"
 
3478
case "(($ac_try" in
 
3479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3480
  *) ac_try_echo=$ac_try;;
 
3481
esac
 
3482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3483
  (eval "$ac_compile") 2>conftest.er1
 
3484
  ac_status=$?
 
3485
  grep -v '^ *+' conftest.er1 >conftest.err
 
3486
  rm -f conftest.er1
 
3487
  cat conftest.err >&5
 
3488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3489
  (exit $ac_status); } &&
 
3490
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3491
  { (case "(($ac_try" in
 
3492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3493
  *) ac_try_echo=$ac_try;;
 
3494
esac
 
3495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3496
  (eval "$ac_try") 2>&5
 
3497
  ac_status=$?
 
3498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3499
  (exit $ac_status); }; } &&
 
3500
         { ac_try='test -s conftest.$ac_objext'
 
3501
  { (case "(($ac_try" in
 
3502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3503
  *) ac_try_echo=$ac_try;;
 
3504
esac
 
3505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3506
  (eval "$ac_try") 2>&5
 
3507
  ac_status=$?
 
3508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3509
  (exit $ac_status); }; }; then
 
3510
  ac_cv_prog_cc_c89=$ac_arg
 
3511
else
 
3512
  echo "$as_me: failed program was:" >&5
 
3513
sed 's/^/| /' conftest.$ac_ext >&5
 
3514
 
 
3515
 
 
3516
fi
 
3517
 
 
3518
rm -f core conftest.err conftest.$ac_objext
 
3519
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3520
done
 
3521
rm -f conftest.$ac_ext
 
3522
CC=$ac_save_CC
 
3523
 
 
3524
fi
 
3525
# AC_CACHE_VAL
 
3526
case "x$ac_cv_prog_cc_c89" in
 
3527
  x)
 
3528
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3529
echo "${ECHO_T}none needed" >&6; } ;;
 
3530
  xno)
 
3531
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3532
echo "${ECHO_T}unsupported" >&6; } ;;
 
3533
  *)
 
3534
    CC="$CC $ac_cv_prog_cc_c89"
 
3535
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3536
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3537
esac
 
3538
 
 
3539
 
 
3540
ac_ext=c
 
3541
ac_cpp='$CPP $CPPFLAGS'
 
3542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3545
DEPDIR="${am__leading_dot}deps"
 
3546
 
 
3547
ac_config_commands="$ac_config_commands depfiles"
 
3548
 
 
3549
 
 
3550
am_make=${MAKE-make}
 
3551
cat > confinc << 'END'
 
3552
am__doit:
 
3553
        @echo done
 
3554
.PHONY: am__doit
 
3555
END
 
3556
# If we don't find an include directive, just comment out the code.
 
3557
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3558
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3559
am__include="#"
 
3560
am__quote=
 
3561
_am_result=none
 
3562
# First try GNU make style include.
 
3563
echo "include confinc" > confmf
 
3564
# We grep out `Entering directory' and `Leaving directory'
 
3565
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3566
# In particular we don't look at `^make:' because GNU make might
 
3567
# be invoked under some other name (usually "gmake"), in which
 
3568
# case it prints its new name instead of `make'.
 
3569
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3570
   am__include=include
 
3571
   am__quote=
 
3572
   _am_result=GNU
 
3573
fi
 
3574
# Now try BSD make style include.
 
3575
if test "$am__include" = "#"; then
 
3576
   echo '.include "confinc"' > confmf
 
3577
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3578
      am__include=.include
 
3579
      am__quote="\""
 
3580
      _am_result=BSD
 
3581
   fi
 
3582
fi
 
3583
 
 
3584
 
 
3585
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3586
echo "${ECHO_T}$_am_result" >&6; }
 
3587
rm -f confinc confmf
 
3588
 
 
3589
# Check whether --enable-dependency-tracking was given.
 
3590
if test "${enable_dependency_tracking+set}" = set; then
 
3591
  enableval=$enable_dependency_tracking;
 
3592
fi
 
3593
 
 
3594
if test "x$enable_dependency_tracking" != xno; then
 
3595
  am_depcomp="$ac_aux_dir/depcomp"
 
3596
  AMDEPBACKSLASH='\'
 
3597
fi
 
3598
 
 
3599
 
 
3600
if test "x$enable_dependency_tracking" != xno; then
 
3601
  AMDEP_TRUE=
 
3602
  AMDEP_FALSE='#'
 
3603
else
 
3604
  AMDEP_TRUE='#'
 
3605
  AMDEP_FALSE=
 
3606
fi
 
3607
 
 
3608
 
 
3609
 
 
3610
 
 
3611
depcc="$CC"   am_compiler_list=
 
3612
 
 
3613
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3614
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3615
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3616
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3617
else
 
3618
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3619
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3620
  # making bogus files that we don't know about and never remove.  For
 
3621
  # instance it was reported that on HP-UX the gcc test will end up
 
3622
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3623
  # in D'.
 
3624
  mkdir conftest.dir
 
3625
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3626
  # using a relative directory.
 
3627
  cp "$am_depcomp" conftest.dir
 
3628
  cd conftest.dir
 
3629
  # We will build objects and dependencies in a subdirectory because
 
3630
  # it helps to detect inapplicable dependency modes.  For instance
 
3631
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3632
  # side effect of compilation, but ICC will put the dependencies in
 
3633
  # the current directory while Tru64 will put them in the object
 
3634
  # directory.
 
3635
  mkdir sub
 
3636
 
 
3637
  am_cv_CC_dependencies_compiler_type=none
 
3638
  if test "$am_compiler_list" = ""; then
 
3639
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3640
  fi
 
3641
  for depmode in $am_compiler_list; do
 
3642
    # Setup a source with many dependencies, because some compilers
 
3643
    # like to wrap large dependency lists on column 80 (with \), and
 
3644
    # we should not choose a depcomp mode which is confused by this.
 
3645
    #
 
3646
    # We need to recreate these files for each test, as the compiler may
 
3647
    # overwrite some of them when testing with obscure command lines.
 
3648
    # This happens at least with the AIX C compiler.
 
3649
    : > sub/conftest.c
 
3650
    for i in 1 2 3 4 5 6; do
 
3651
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3652
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3653
      # Solaris 8's {/usr,}/bin/sh.
 
3654
      touch sub/conftst$i.h
 
3655
    done
 
3656
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3657
 
 
3658
    case $depmode in
 
3659
    nosideeffect)
 
3660
      # after this tag, mechanisms are not by side-effect, so they'll
 
3661
      # only be used when explicitly requested
 
3662
      if test "x$enable_dependency_tracking" = xyes; then
 
3663
        continue
 
3664
      else
 
3665
        break
 
3666
      fi
 
3667
      ;;
 
3668
    none) break ;;
 
3669
    esac
 
3670
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3671
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3672
    # handle `-M -o', and we need to detect this.
 
3673
    if depmode=$depmode \
 
3674
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3675
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3676
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3677
         >/dev/null 2>conftest.err &&
 
3678
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3679
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3680
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3681
      # icc doesn't choke on unknown options, it will just issue warnings
 
3682
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3683
      # that says an option was ignored or not supported.
 
3684
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3685
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3686
      # The diagnosis changed in icc 8.0:
 
3687
      #   icc: Command line remark: option '-MP' not supported
 
3688
      if (grep 'ignoring option' conftest.err ||
 
3689
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3690
        am_cv_CC_dependencies_compiler_type=$depmode
 
3691
        break
 
3692
      fi
 
3693
    fi
 
3694
  done
 
3695
 
 
3696
  cd ..
 
3697
  rm -rf conftest.dir
 
3698
else
 
3699
  am_cv_CC_dependencies_compiler_type=none
 
3700
fi
 
3701
 
 
3702
fi
 
3703
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3704
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3705
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3706
 
 
3707
 
 
3708
 
 
3709
if
 
3710
  test "x$enable_dependency_tracking" != xno \
 
3711
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3712
  am__fastdepCC_TRUE=
 
3713
  am__fastdepCC_FALSE='#'
 
3714
else
 
3715
  am__fastdepCC_TRUE='#'
 
3716
  am__fastdepCC_FALSE=
 
3717
fi
 
3718
 
 
3719
 
 
3720
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3721
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3722
if test "${lt_cv_path_SED+set}" = set; then
 
3723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3724
else
 
3725
  # Loop through the user's path and test for sed and gsed.
 
3726
# Then use that list of sed's as ones to test for truncation.
 
3727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3728
for as_dir in $PATH
 
3729
do
 
3730
  IFS=$as_save_IFS
 
3731
  test -z "$as_dir" && as_dir=.
 
3732
  for lt_ac_prog in sed gsed; do
 
3733
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3734
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3735
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3736
      fi
 
3737
    done
 
3738
  done
 
3739
done
 
3740
lt_ac_max=0
 
3741
lt_ac_count=0
 
3742
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3743
# along with /bin/sed that truncates output.
 
3744
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3745
  test ! -f $lt_ac_sed && continue
 
3746
  cat /dev/null > conftest.in
 
3747
  lt_ac_count=0
 
3748
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3749
  # Check for GNU sed and select it if it is found.
 
3750
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3751
    lt_cv_path_SED=$lt_ac_sed
 
3752
    break
 
3753
  fi
 
3754
  while true; do
 
3755
    cat conftest.in conftest.in >conftest.tmp
 
3756
    mv conftest.tmp conftest.in
 
3757
    cp conftest.in conftest.nl
 
3758
    echo >>conftest.nl
 
3759
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3760
    cmp -s conftest.out conftest.nl || break
 
3761
    # 10000 chars as input seems more than enough
 
3762
    test $lt_ac_count -gt 10 && break
 
3763
    lt_ac_count=`expr $lt_ac_count + 1`
 
3764
    if test $lt_ac_count -gt $lt_ac_max; then
 
3765
      lt_ac_max=$lt_ac_count
 
3766
      lt_cv_path_SED=$lt_ac_sed
 
3767
    fi
 
3768
  done
 
3769
done
 
3770
 
 
3771
fi
 
3772
 
 
3773
SED=$lt_cv_path_SED
 
3774
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3775
echo "${ECHO_T}$SED" >&6; }
 
3776
 
 
3777
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3778
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3779
if test "${ac_cv_path_GREP+set}" = set; then
 
3780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3781
else
 
3782
  # Extract the first word of "grep ggrep" to use in msg output
 
3783
if test -z "$GREP"; then
 
3784
set dummy grep ggrep; ac_prog_name=$2
 
3785
if test "${ac_cv_path_GREP+set}" = set; then
 
3786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3787
else
 
3788
  ac_path_GREP_found=false
 
3789
# Loop through the user's path and test for each of PROGNAME-LIST
 
3790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3791
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3792
do
 
3793
  IFS=$as_save_IFS
 
3794
  test -z "$as_dir" && as_dir=.
 
3795
  for ac_prog in grep ggrep; do
 
3796
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3797
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3798
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
 
3799
    # Check for GNU ac_path_GREP and select it if it is found.
 
3800
  # Check for GNU $ac_path_GREP
 
3801
case `"$ac_path_GREP" --version 2>&1` in
 
3802
*GNU*)
 
3803
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3804
*)
 
3805
  ac_count=0
 
3806
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3807
  while :
 
3808
  do
 
3809
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3810
    mv "conftest.tmp" "conftest.in"
 
3811
    cp "conftest.in" "conftest.nl"
 
3812
    echo 'GREP' >> "conftest.nl"
 
3813
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3814
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3815
    ac_count=`expr $ac_count + 1`
 
3816
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3817
      # Best one so far, save it but keep looking for a better one
 
3818
      ac_cv_path_GREP="$ac_path_GREP"
 
3819
      ac_path_GREP_max=$ac_count
 
3820
    fi
 
3821
    # 10*(2^10) chars as input seems more than enough
 
3822
    test $ac_count -gt 10 && break
 
3823
  done
 
3824
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3825
esac
 
3826
 
 
3827
 
 
3828
    $ac_path_GREP_found && break 3
 
3829
  done
 
3830
done
 
3831
 
 
3832
done
 
3833
IFS=$as_save_IFS
 
3834
 
 
3835
 
 
3836
fi
 
3837
 
 
3838
GREP="$ac_cv_path_GREP"
 
3839
if test -z "$GREP"; then
 
3840
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3841
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3842
   { (exit 1); exit 1; }; }
 
3843
fi
 
3844
 
 
3845
else
 
3846
  ac_cv_path_GREP=$GREP
 
3847
fi
 
3848
 
 
3849
 
 
3850
fi
 
3851
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3852
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3853
 GREP="$ac_cv_path_GREP"
 
3854
 
 
3855
 
 
3856
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3857
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3858
if test "${ac_cv_path_EGREP+set}" = set; then
 
3859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3860
else
 
3861
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3862
   then ac_cv_path_EGREP="$GREP -E"
 
3863
   else
 
3864
     # Extract the first word of "egrep" to use in msg output
 
3865
if test -z "$EGREP"; then
 
3866
set dummy egrep; ac_prog_name=$2
 
3867
if test "${ac_cv_path_EGREP+set}" = set; then
 
3868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3869
else
 
3870
  ac_path_EGREP_found=false
 
3871
# Loop through the user's path and test for each of PROGNAME-LIST
 
3872
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3873
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3874
do
 
3875
  IFS=$as_save_IFS
 
3876
  test -z "$as_dir" && as_dir=.
 
3877
  for ac_prog in egrep; do
 
3878
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3879
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3880
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
 
3881
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3882
  # Check for GNU $ac_path_EGREP
 
3883
case `"$ac_path_EGREP" --version 2>&1` in
 
3884
*GNU*)
 
3885
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3886
*)
 
3887
  ac_count=0
 
3888
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3889
  while :
 
3890
  do
 
3891
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3892
    mv "conftest.tmp" "conftest.in"
 
3893
    cp "conftest.in" "conftest.nl"
 
3894
    echo 'EGREP' >> "conftest.nl"
 
3895
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3896
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3897
    ac_count=`expr $ac_count + 1`
 
3898
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3899
      # Best one so far, save it but keep looking for a better one
 
3900
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3901
      ac_path_EGREP_max=$ac_count
 
3902
    fi
 
3903
    # 10*(2^10) chars as input seems more than enough
 
3904
    test $ac_count -gt 10 && break
 
3905
  done
 
3906
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3907
esac
 
3908
 
 
3909
 
 
3910
    $ac_path_EGREP_found && break 3
 
3911
  done
 
3912
done
 
3913
 
 
3914
done
 
3915
IFS=$as_save_IFS
 
3916
 
 
3917
 
 
3918
fi
 
3919
 
 
3920
EGREP="$ac_cv_path_EGREP"
 
3921
if test -z "$EGREP"; then
 
3922
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3923
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3924
   { (exit 1); exit 1; }; }
 
3925
fi
 
3926
 
 
3927
else
 
3928
  ac_cv_path_EGREP=$EGREP
 
3929
fi
 
3930
 
 
3931
 
 
3932
   fi
 
3933
fi
 
3934
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3935
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3936
 EGREP="$ac_cv_path_EGREP"
 
3937
 
 
3938
 
 
3939
 
 
3940
# Check whether --with-gnu-ld was given.
 
3941
if test "${with_gnu_ld+set}" = set; then
 
3942
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
3943
else
 
3944
  with_gnu_ld=no
 
3945
fi
 
3946
 
 
3947
ac_prog=ld
 
3948
if test "$GCC" = yes; then
 
3949
  # Check if gcc -print-prog-name=ld gives a path.
 
3950
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3951
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
3952
  case $host in
 
3953
  *-*-mingw*)
 
3954
    # gcc leaves a trailing carriage return which upsets mingw
 
3955
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3956
  *)
 
3957
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3958
  esac
 
3959
  case $ac_prog in
 
3960
    # Accept absolute paths.
 
3961
    [\\/]* | ?:[\\/]*)
 
3962
      re_direlt='/[^/][^/]*/\.\./'
 
3963
      # Canonicalize the pathname of ld
 
3964
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3965
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3966
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3967
      done
 
3968
      test -z "$LD" && LD="$ac_prog"
 
3969
      ;;
 
3970
  "")
 
3971
    # If it fails, then pretend we aren't using GCC.
 
3972
    ac_prog=ld
 
3973
    ;;
 
3974
  *)
 
3975
    # If it is relative, then search for the first ld in PATH.
 
3976
    with_gnu_ld=unknown
 
3977
    ;;
 
3978
  esac
 
3979
elif test "$with_gnu_ld" = yes; then
 
3980
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3981
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
3982
else
 
3983
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3984
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
3985
fi
 
3986
if test "${lt_cv_path_LD+set}" = set; then
 
3987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3988
else
 
3989
  if test -z "$LD"; then
 
3990
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3991
  for ac_dir in $PATH; do
 
3992
    IFS="$lt_save_ifs"
 
3993
    test -z "$ac_dir" && ac_dir=.
 
3994
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3995
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3996
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3997
      # but apparently some variants of GNU ld only accept -v.
 
3998
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3999
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4000
      *GNU* | *'with BFD'*)
 
4001
        test "$with_gnu_ld" != no && break
 
4002
        ;;
 
4003
      *)
 
4004
        test "$with_gnu_ld" != yes && break
 
4005
        ;;
 
4006
      esac
 
4007
    fi
 
4008
  done
 
4009
  IFS="$lt_save_ifs"
 
4010
else
 
4011
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4012
fi
 
4013
fi
 
4014
 
 
4015
LD="$lt_cv_path_LD"
 
4016
if test -n "$LD"; then
 
4017
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4018
echo "${ECHO_T}$LD" >&6; }
 
4019
else
 
4020
  { echo "$as_me:$LINENO: result: no" >&5
 
4021
echo "${ECHO_T}no" >&6; }
 
4022
fi
 
4023
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4024
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4025
   { (exit 1); exit 1; }; }
 
4026
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4027
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4028
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4030
else
 
4031
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4032
case `$LD -v 2>&1 </dev/null` in
 
4033
*GNU* | *'with BFD'*)
 
4034
  lt_cv_prog_gnu_ld=yes
 
4035
  ;;
 
4036
*)
 
4037
  lt_cv_prog_gnu_ld=no
 
4038
  ;;
 
4039
esac
 
4040
fi
 
4041
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4042
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4043
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4044
 
 
4045
 
 
4046
 
 
4047
 
 
4048
 
 
4049
 
 
4050
# Check whether --enable-shared was given.
 
4051
if test "${enable_shared+set}" = set; then
 
4052
  enableval=$enable_shared; p=${PACKAGE-default}
 
4053
    case $enableval in
 
4054
    yes) enable_shared=yes ;;
 
4055
    no) enable_shared=no ;;
 
4056
    *)
 
4057
      enable_shared=no
 
4058
      # Look at the argument we got.  We use all the common list separators.
 
4059
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4060
      for pkg in $enableval; do
 
4061
        IFS="$lt_save_ifs"
 
4062
        if test "X$pkg" = "X$p"; then
 
4063
          enable_shared=yes
 
4064
        fi
 
4065
      done
 
4066
      IFS="$lt_save_ifs"
 
4067
      ;;
 
4068
    esac
 
4069
else
 
4070
  enable_shared=yes
 
4071
fi
 
4072
 
 
4073
 
 
4074
# Check whether --enable-static was given.
 
4075
if test "${enable_static+set}" = set; then
 
4076
  enableval=$enable_static; p=${PACKAGE-default}
 
4077
    case $enableval in
 
4078
    yes) enable_static=yes ;;
 
4079
    no) enable_static=no ;;
 
4080
    *)
 
4081
     enable_static=no
 
4082
      # Look at the argument we got.  We use all the common list separators.
 
4083
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4084
      for pkg in $enableval; do
 
4085
        IFS="$lt_save_ifs"
 
4086
        if test "X$pkg" = "X$p"; then
 
4087
          enable_static=yes
 
4088
        fi
 
4089
      done
 
4090
      IFS="$lt_save_ifs"
 
4091
      ;;
 
4092
    esac
 
4093
else
 
4094
  enable_static=yes
 
4095
fi
 
4096
 
 
4097
 
 
4098
# Check whether --enable-fast-install was given.
 
4099
if test "${enable_fast_install+set}" = set; then
 
4100
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4101
    case $enableval in
 
4102
    yes) enable_fast_install=yes ;;
 
4103
    no) enable_fast_install=no ;;
 
4104
    *)
 
4105
      enable_fast_install=no
 
4106
      # Look at the argument we got.  We use all the common list separators.
 
4107
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4108
      for pkg in $enableval; do
 
4109
        IFS="$lt_save_ifs"
 
4110
        if test "X$pkg" = "X$p"; then
 
4111
          enable_fast_install=yes
 
4112
        fi
 
4113
      done
 
4114
      IFS="$lt_save_ifs"
 
4115
      ;;
 
4116
    esac
 
4117
else
 
4118
  enable_fast_install=yes
 
4119
fi
 
4120
 
 
4121
 
 
4122
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4123
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4124
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4126
else
 
4127
  lt_cv_ld_reload_flag='-r'
 
4128
fi
 
4129
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4130
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4131
reload_flag=$lt_cv_ld_reload_flag
 
4132
case $reload_flag in
 
4133
"" | " "*) ;;
 
4134
*) reload_flag=" $reload_flag" ;;
 
4135
esac
 
4136
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4137
case $host_os in
 
4138
  darwin*)
 
4139
    if test "$GCC" = yes; then
 
4140
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4141
    else
 
4142
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4143
    fi
 
4144
    ;;
 
4145
esac
 
4146
 
 
4147
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4148
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4149
if test "${lt_cv_path_NM+set}" = set; then
 
4150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4151
else
 
4152
  if test -n "$NM"; then
 
4153
  # Let the user override the test.
 
4154
  lt_cv_path_NM="$NM"
 
4155
else
 
4156
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4157
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4158
    lt_nm_to_check="$lt_nm_to_check nm"
 
4159
  fi
 
4160
  for lt_tmp_nm in $lt_nm_to_check; do
 
4161
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4162
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4163
      IFS="$lt_save_ifs"
 
4164
      test -z "$ac_dir" && ac_dir=.
 
4165
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4166
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4167
        # Check to see if the nm accepts a BSD-compat flag.
 
4168
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4169
        #   nm: unknown option "B" ignored
 
4170
        # Tru64's nm complains that /dev/null is an invalid object file
 
4171
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4172
        */dev/null* | *'Invalid file or object type'*)
 
4173
          lt_cv_path_NM="$tmp_nm -B"
 
4174
          break
 
4175
          ;;
 
4176
        *)
 
4177
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4178
          */dev/null*)
 
4179
            lt_cv_path_NM="$tmp_nm -p"
 
4180
            break
 
4181
            ;;
 
4182
          *)
 
4183
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4184
            continue # so that we can try to find one that supports BSD flags
 
4185
            ;;
 
4186
          esac
 
4187
          ;;
 
4188
        esac
 
4189
      fi
 
4190
    done
 
4191
    IFS="$lt_save_ifs"
 
4192
  done
 
4193
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4194
fi
 
4195
fi
 
4196
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4197
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4198
NM="$lt_cv_path_NM"
 
4199
 
 
4200
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4201
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4202
LN_S=$as_ln_s
 
4203
if test "$LN_S" = "ln -s"; then
 
4204
  { echo "$as_me:$LINENO: result: yes" >&5
 
4205
echo "${ECHO_T}yes" >&6; }
 
4206
else
 
4207
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4208
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4209
fi
 
4210
 
 
4211
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4212
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4213
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4215
else
 
4216
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4217
lt_cv_file_magic_test_file=
 
4218
lt_cv_deplibs_check_method='unknown'
 
4219
# Need to set the preceding variable on all platforms that support
 
4220
# interlibrary dependencies.
 
4221
# 'none' -- dependencies not supported.
 
4222
# `unknown' -- same as none, but documents that we really don't know.
 
4223
# 'pass_all' -- all dependencies passed with no checks.
 
4224
# 'test_compile' -- check by making test program.
 
4225
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4226
# which responds to the $file_magic_cmd with a given extended regex.
 
4227
# If you have `file' or equivalent on your system and you're not sure
 
4228
# whether `pass_all' will *always* work, you probably want this one.
 
4229
 
 
4230
case $host_os in
 
4231
aix4* | aix5*)
 
4232
  lt_cv_deplibs_check_method=pass_all
 
4233
  ;;
 
4234
 
 
4235
beos*)
 
4236
  lt_cv_deplibs_check_method=pass_all
 
4237
  ;;
 
4238
 
 
4239
bsdi[45]*)
 
4240
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4241
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4242
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4243
  ;;
 
4244
 
 
4245
cygwin*)
 
4246
  # func_win32_libid is a shell function defined in ltmain.sh
 
4247
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4248
  lt_cv_file_magic_cmd='func_win32_libid'
 
4249
  ;;
 
4250
 
 
4251
mingw* | pw32*)
 
4252
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4253
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4254
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4255
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4256
  ;;
 
4257
 
 
4258
darwin* | rhapsody*)
 
4259
  lt_cv_deplibs_check_method=pass_all
 
4260
  ;;
 
4261
 
 
4262
freebsd* | kfreebsd*-gnu | dragonfly*)
 
4263
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4264
    case $host_cpu in
 
4265
    i*86 )
 
4266
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4267
      # Let's accept both of them until this is cleared up.
 
4268
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4269
      lt_cv_file_magic_cmd=/usr/bin/file
 
4270
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4271
      ;;
 
4272
    esac
 
4273
  else
 
4274
    lt_cv_deplibs_check_method=pass_all
 
4275
  fi
 
4276
  ;;
 
4277
 
 
4278
gnu*)
 
4279
  lt_cv_deplibs_check_method=pass_all
 
4280
  ;;
 
4281
 
 
4282
hpux10.20* | hpux11*)
 
4283
  lt_cv_file_magic_cmd=/usr/bin/file
 
4284
  case $host_cpu in
 
4285
  ia64*)
 
4286
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4287
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4288
    ;;
 
4289
  hppa*64*)
 
4290
    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]'
 
4291
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4292
    ;;
 
4293
  *)
 
4294
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4295
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4296
    ;;
 
4297
  esac
 
4298
  ;;
 
4299
 
 
4300
interix3*)
 
4301
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4302
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4303
  ;;
 
4304
 
 
4305
irix5* | irix6* | nonstopux*)
 
4306
  case $LD in
 
4307
  *-32|*"-32 ") libmagic=32-bit;;
 
4308
  *-n32|*"-n32 ") libmagic=N32;;
 
4309
  *-64|*"-64 ") libmagic=64-bit;;
 
4310
  *) libmagic=never-match;;
 
4311
  esac
 
4312
  lt_cv_deplibs_check_method=pass_all
 
4313
  ;;
 
4314
 
 
4315
# This must be Linux ELF.
 
4316
linux*)
 
4317
  lt_cv_deplibs_check_method=pass_all
 
4318
  ;;
 
4319
 
 
4320
netbsd*)
 
4321
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4322
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4323
  else
 
4324
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4325
  fi
 
4326
  ;;
 
4327
 
 
4328
newos6*)
 
4329
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4330
  lt_cv_file_magic_cmd=/usr/bin/file
 
4331
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4332
  ;;
 
4333
 
 
4334
nto-qnx*)
 
4335
  lt_cv_deplibs_check_method=unknown
 
4336
  ;;
 
4337
 
 
4338
openbsd*)
 
4339
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4340
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4341
  else
 
4342
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4343
  fi
 
4344
  ;;
 
4345
 
 
4346
osf3* | osf4* | osf5*)
 
4347
  lt_cv_deplibs_check_method=pass_all
 
4348
  ;;
 
4349
 
 
4350
solaris*)
 
4351
  lt_cv_deplibs_check_method=pass_all
 
4352
  ;;
 
4353
 
 
4354
sysv4 | sysv4.3*)
 
4355
  case $host_vendor in
 
4356
  motorola)
 
4357
    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]'
 
4358
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4359
    ;;
 
4360
  ncr)
 
4361
    lt_cv_deplibs_check_method=pass_all
 
4362
    ;;
 
4363
  sequent)
 
4364
    lt_cv_file_magic_cmd='/bin/file'
 
4365
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4366
    ;;
 
4367
  sni)
 
4368
    lt_cv_file_magic_cmd='/bin/file'
 
4369
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4370
    lt_cv_file_magic_test_file=/lib/libc.so
 
4371
    ;;
 
4372
  siemens)
 
4373
    lt_cv_deplibs_check_method=pass_all
 
4374
    ;;
 
4375
  pc)
 
4376
    lt_cv_deplibs_check_method=pass_all
 
4377
    ;;
 
4378
  esac
 
4379
  ;;
 
4380
 
 
4381
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4382
  lt_cv_deplibs_check_method=pass_all
 
4383
  ;;
 
4384
esac
 
4385
 
 
4386
fi
 
4387
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4388
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4389
file_magic_cmd=$lt_cv_file_magic_cmd
 
4390
deplibs_check_method=$lt_cv_deplibs_check_method
 
4391
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4392
 
 
4393
 
 
4394
 
 
4395
 
 
4396
# If no C compiler was specified, use CC.
 
4397
LTCC=${LTCC-"$CC"}
 
4398
 
 
4399
# If no C compiler flags were specified, use CFLAGS.
 
4400
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4401
 
 
4402
# Allow CC to be a program name with arguments.
 
4403
compiler=$CC
 
4404
 
 
4405
 
 
4406
# Check whether --enable-libtool-lock was given.
 
4407
if test "${enable_libtool_lock+set}" = set; then
 
4408
  enableval=$enable_libtool_lock;
 
4409
fi
 
4410
 
 
4411
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4412
 
 
4413
# Some flags need to be propagated to the compiler or linker for good
 
4414
# libtool support.
 
4415
case $host in
 
4416
ia64-*-hpux*)
 
4417
  # Find out which ABI we are using.
 
4418
  echo 'int i;' > conftest.$ac_ext
 
4419
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4420
  (eval $ac_compile) 2>&5
 
4421
  ac_status=$?
 
4422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4423
  (exit $ac_status); }; then
 
4424
    case `/usr/bin/file conftest.$ac_objext` in
 
4425
    *ELF-32*)
 
4426
      HPUX_IA64_MODE="32"
 
4427
      ;;
 
4428
    *ELF-64*)
 
4429
      HPUX_IA64_MODE="64"
 
4430
      ;;
 
4431
    esac
 
4432
  fi
 
4433
  rm -rf conftest*
 
4434
  ;;
 
4435
*-*-irix6*)
 
4436
  # Find out which ABI we are using.
 
4437
  echo '#line 4437 "configure"' > conftest.$ac_ext
 
4438
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4439
  (eval $ac_compile) 2>&5
 
4440
  ac_status=$?
 
4441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4442
  (exit $ac_status); }; then
 
4443
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4444
    case `/usr/bin/file conftest.$ac_objext` in
 
4445
    *32-bit*)
 
4446
      LD="${LD-ld} -melf32bsmip"
 
4447
      ;;
 
4448
    *N32*)
 
4449
      LD="${LD-ld} -melf32bmipn32"
 
4450
      ;;
 
4451
    *64-bit*)
 
4452
      LD="${LD-ld} -melf64bmip"
 
4453
      ;;
 
4454
    esac
 
4455
   else
 
4456
    case `/usr/bin/file conftest.$ac_objext` in
 
4457
    *32-bit*)
 
4458
      LD="${LD-ld} -32"
 
4459
      ;;
 
4460
    *N32*)
 
4461
      LD="${LD-ld} -n32"
 
4462
      ;;
 
4463
    *64-bit*)
 
4464
      LD="${LD-ld} -64"
 
4465
      ;;
 
4466
    esac
 
4467
   fi
 
4468
  fi
 
4469
  rm -rf conftest*
 
4470
  ;;
 
4471
 
 
4472
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4473
  # Find out which ABI we are using.
 
4474
  echo 'int i;' > conftest.$ac_ext
 
4475
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4476
  (eval $ac_compile) 2>&5
 
4477
  ac_status=$?
 
4478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4479
  (exit $ac_status); }; then
 
4480
    case `/usr/bin/file conftest.o` in
 
4481
    *32-bit*)
 
4482
      case $host in
 
4483
        x86_64-*linux*)
 
4484
          LD="${LD-ld} -m elf_i386"
 
4485
          ;;
 
4486
        ppc64-*linux*|powerpc64-*linux*)
 
4487
          LD="${LD-ld} -m elf32ppclinux"
 
4488
          ;;
 
4489
        s390x-*linux*)
 
4490
          LD="${LD-ld} -m elf_s390"
 
4491
          ;;
 
4492
        sparc64-*linux*)
 
4493
          LD="${LD-ld} -m elf32_sparc"
 
4494
          ;;
 
4495
      esac
 
4496
      ;;
 
4497
    *64-bit*)
 
4498
      case $host in
 
4499
        x86_64-*linux*)
 
4500
          LD="${LD-ld} -m elf_x86_64"
 
4501
          ;;
 
4502
        ppc*-*linux*|powerpc*-*linux*)
 
4503
          LD="${LD-ld} -m elf64ppc"
 
4504
          ;;
 
4505
        s390*-*linux*)
 
4506
          LD="${LD-ld} -m elf64_s390"
 
4507
          ;;
 
4508
        sparc*-*linux*)
 
4509
          LD="${LD-ld} -m elf64_sparc"
 
4510
          ;;
 
4511
      esac
 
4512
      ;;
 
4513
    esac
 
4514
  fi
 
4515
  rm -rf conftest*
 
4516
  ;;
 
4517
 
 
4518
*-*-sco3.2v5*)
 
4519
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4520
  SAVE_CFLAGS="$CFLAGS"
 
4521
  CFLAGS="$CFLAGS -belf"
 
4522
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4523
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4524
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4526
else
 
4527
  ac_ext=c
 
4528
ac_cpp='$CPP $CPPFLAGS'
 
4529
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4530
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4531
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4532
 
 
4533
     cat >conftest.$ac_ext <<_ACEOF
 
4534
/* confdefs.h.  */
 
4535
_ACEOF
 
4536
cat confdefs.h >>conftest.$ac_ext
 
4537
cat >>conftest.$ac_ext <<_ACEOF
 
4538
/* end confdefs.h.  */
 
4539
 
 
4540
int
 
4541
main ()
 
4542
{
 
4543
 
 
4544
  ;
 
4545
  return 0;
 
4546
}
 
4547
_ACEOF
 
4548
rm -f conftest.$ac_objext conftest$ac_exeext
 
4549
if { (ac_try="$ac_link"
 
4550
case "(($ac_try" in
 
4551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4552
  *) ac_try_echo=$ac_try;;
 
4553
esac
 
4554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4555
  (eval "$ac_link") 2>conftest.er1
 
4556
  ac_status=$?
 
4557
  grep -v '^ *+' conftest.er1 >conftest.err
 
4558
  rm -f conftest.er1
 
4559
  cat conftest.err >&5
 
4560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4561
  (exit $ac_status); } &&
 
4562
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
4563
  { (case "(($ac_try" in
 
4564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4565
  *) ac_try_echo=$ac_try;;
 
4566
esac
 
4567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4568
  (eval "$ac_try") 2>&5
 
4569
  ac_status=$?
 
4570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4571
  (exit $ac_status); }; } &&
 
4572
         { ac_try='test -s conftest$ac_exeext'
 
4573
  { (case "(($ac_try" in
 
4574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4575
  *) ac_try_echo=$ac_try;;
 
4576
esac
 
4577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4578
  (eval "$ac_try") 2>&5
 
4579
  ac_status=$?
 
4580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4581
  (exit $ac_status); }; }; then
 
4582
  lt_cv_cc_needs_belf=yes
 
4583
else
 
4584
  echo "$as_me: failed program was:" >&5
 
4585
sed 's/^/| /' conftest.$ac_ext >&5
 
4586
 
 
4587
        lt_cv_cc_needs_belf=no
 
4588
fi
 
4589
 
 
4590
rm -f core conftest.err conftest.$ac_objext \
 
4591
      conftest$ac_exeext conftest.$ac_ext
 
4592
     ac_ext=c
 
4593
ac_cpp='$CPP $CPPFLAGS'
 
4594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4597
 
 
4598
fi
 
4599
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4600
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4601
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4602
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4603
    CFLAGS="$SAVE_CFLAGS"
 
4604
  fi
 
4605
  ;;
 
4606
sparc*-*solaris*)
 
4607
  # Find out which ABI we are using.
 
4608
  echo 'int i;' > conftest.$ac_ext
 
4609
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4610
  (eval $ac_compile) 2>&5
 
4611
  ac_status=$?
 
4612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4613
  (exit $ac_status); }; then
 
4614
    case `/usr/bin/file conftest.o` in
 
4615
    *64-bit*)
 
4616
      case $lt_cv_prog_gnu_ld in
 
4617
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4618
      *)    LD="${LD-ld} -64" ;;
 
4619
      esac
 
4620
      ;;
 
4621
    esac
 
4622
  fi
 
4623
  rm -rf conftest*
 
4624
  ;;
 
4625
 
 
4626
 
 
4627
esac
 
4628
 
 
4629
need_locks="$enable_libtool_lock"
 
4630
 
 
4631
 
 
4632
ac_ext=c
 
4633
ac_cpp='$CPP $CPPFLAGS'
 
4634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4637
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4638
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4639
# On Suns, sometimes $CPP names a directory.
 
4640
if test -n "$CPP" && test -d "$CPP"; then
 
4641
  CPP=
 
4642
fi
 
4643
if test -z "$CPP"; then
 
4644
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4646
else
 
4647
      # Double quotes because CPP needs to be expanded
 
4648
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4649
    do
 
4650
      ac_preproc_ok=false
 
4651
for ac_c_preproc_warn_flag in '' yes
 
4652
do
 
4653
  # Use a header file that comes with gcc, so configuring glibc
 
4654
  # with a fresh cross-compiler works.
 
4655
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4656
  # <limits.h> exists even on freestanding compilers.
 
4657
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4658
  # not just through cpp. "Syntax error" is here to catch this case.
 
4659
  cat >conftest.$ac_ext <<_ACEOF
 
4660
/* confdefs.h.  */
 
4661
_ACEOF
 
4662
cat confdefs.h >>conftest.$ac_ext
 
4663
cat >>conftest.$ac_ext <<_ACEOF
 
4664
/* end confdefs.h.  */
 
4665
#ifdef __STDC__
 
4666
# include <limits.h>
 
4667
#else
 
4668
# include <assert.h>
 
4669
#endif
 
4670
                     Syntax error
 
4671
_ACEOF
 
4672
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4673
case "(($ac_try" in
 
4674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4675
  *) ac_try_echo=$ac_try;;
 
4676
esac
 
4677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4678
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4679
  ac_status=$?
 
4680
  grep -v '^ *+' conftest.er1 >conftest.err
 
4681
  rm -f conftest.er1
 
4682
  cat conftest.err >&5
 
4683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4684
  (exit $ac_status); } >/dev/null; then
 
4685
  if test -s conftest.err; then
 
4686
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4687
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4688
  else
 
4689
    ac_cpp_err=
 
4690
  fi
 
4691
else
 
4692
  ac_cpp_err=yes
 
4693
fi
 
4694
if test -z "$ac_cpp_err"; then
 
4695
  :
 
4696
else
 
4697
  echo "$as_me: failed program was:" >&5
 
4698
sed 's/^/| /' conftest.$ac_ext >&5
 
4699
 
 
4700
  # Broken: fails on valid input.
 
4701
continue
 
4702
fi
 
4703
 
 
4704
rm -f conftest.err conftest.$ac_ext
 
4705
 
 
4706
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4707
  # can be detected and how.
 
4708
  cat >conftest.$ac_ext <<_ACEOF
 
4709
/* confdefs.h.  */
 
4710
_ACEOF
 
4711
cat confdefs.h >>conftest.$ac_ext
 
4712
cat >>conftest.$ac_ext <<_ACEOF
 
4713
/* end confdefs.h.  */
 
4714
#include <ac_nonexistent.h>
 
4715
_ACEOF
 
4716
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4717
case "(($ac_try" in
 
4718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4719
  *) ac_try_echo=$ac_try;;
 
4720
esac
 
4721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4722
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4723
  ac_status=$?
 
4724
  grep -v '^ *+' conftest.er1 >conftest.err
 
4725
  rm -f conftest.er1
 
4726
  cat conftest.err >&5
 
4727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4728
  (exit $ac_status); } >/dev/null; then
 
4729
  if test -s conftest.err; then
 
4730
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4731
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4732
  else
 
4733
    ac_cpp_err=
 
4734
  fi
 
4735
else
 
4736
  ac_cpp_err=yes
 
4737
fi
 
4738
if test -z "$ac_cpp_err"; then
 
4739
  # Broken: success on invalid input.
 
4740
continue
 
4741
else
 
4742
  echo "$as_me: failed program was:" >&5
 
4743
sed 's/^/| /' conftest.$ac_ext >&5
 
4744
 
 
4745
  # Passes both tests.
 
4746
ac_preproc_ok=:
 
4747
break
 
4748
fi
 
4749
 
 
4750
rm -f conftest.err conftest.$ac_ext
 
4751
 
 
4752
done
 
4753
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4754
rm -f conftest.err conftest.$ac_ext
 
4755
if $ac_preproc_ok; then
 
4756
  break
 
4757
fi
 
4758
 
 
4759
    done
 
4760
    ac_cv_prog_CPP=$CPP
 
4761
 
 
4762
fi
 
4763
  CPP=$ac_cv_prog_CPP
 
4764
else
 
4765
  ac_cv_prog_CPP=$CPP
 
4766
fi
 
4767
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4768
echo "${ECHO_T}$CPP" >&6; }
 
4769
ac_preproc_ok=false
 
4770
for ac_c_preproc_warn_flag in '' yes
 
4771
do
 
4772
  # Use a header file that comes with gcc, so configuring glibc
 
4773
  # with a fresh cross-compiler works.
 
4774
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4775
  # <limits.h> exists even on freestanding compilers.
 
4776
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4777
  # not just through cpp. "Syntax error" is here to catch this case.
 
4778
  cat >conftest.$ac_ext <<_ACEOF
 
4779
/* confdefs.h.  */
 
4780
_ACEOF
 
4781
cat confdefs.h >>conftest.$ac_ext
 
4782
cat >>conftest.$ac_ext <<_ACEOF
 
4783
/* end confdefs.h.  */
 
4784
#ifdef __STDC__
 
4785
# include <limits.h>
 
4786
#else
 
4787
# include <assert.h>
 
4788
#endif
 
4789
                     Syntax error
 
4790
_ACEOF
 
4791
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4792
case "(($ac_try" in
 
4793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4794
  *) ac_try_echo=$ac_try;;
 
4795
esac
 
4796
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4797
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4798
  ac_status=$?
 
4799
  grep -v '^ *+' conftest.er1 >conftest.err
 
4800
  rm -f conftest.er1
 
4801
  cat conftest.err >&5
 
4802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4803
  (exit $ac_status); } >/dev/null; then
 
4804
  if test -s conftest.err; then
 
4805
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4806
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4807
  else
 
4808
    ac_cpp_err=
 
4809
  fi
 
4810
else
 
4811
  ac_cpp_err=yes
 
4812
fi
 
4813
if test -z "$ac_cpp_err"; then
 
4814
  :
 
4815
else
 
4816
  echo "$as_me: failed program was:" >&5
 
4817
sed 's/^/| /' conftest.$ac_ext >&5
 
4818
 
 
4819
  # Broken: fails on valid input.
 
4820
continue
 
4821
fi
 
4822
 
 
4823
rm -f conftest.err conftest.$ac_ext
 
4824
 
 
4825
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4826
  # can be detected and how.
 
4827
  cat >conftest.$ac_ext <<_ACEOF
 
4828
/* confdefs.h.  */
 
4829
_ACEOF
 
4830
cat confdefs.h >>conftest.$ac_ext
 
4831
cat >>conftest.$ac_ext <<_ACEOF
 
4832
/* end confdefs.h.  */
 
4833
#include <ac_nonexistent.h>
 
4834
_ACEOF
 
4835
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4836
case "(($ac_try" in
 
4837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4838
  *) ac_try_echo=$ac_try;;
 
4839
esac
 
4840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4841
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4842
  ac_status=$?
 
4843
  grep -v '^ *+' conftest.er1 >conftest.err
 
4844
  rm -f conftest.er1
 
4845
  cat conftest.err >&5
 
4846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4847
  (exit $ac_status); } >/dev/null; then
 
4848
  if test -s conftest.err; then
 
4849
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4850
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4851
  else
 
4852
    ac_cpp_err=
 
4853
  fi
 
4854
else
 
4855
  ac_cpp_err=yes
 
4856
fi
 
4857
if test -z "$ac_cpp_err"; then
 
4858
  # Broken: success on invalid input.
 
4859
continue
 
4860
else
 
4861
  echo "$as_me: failed program was:" >&5
 
4862
sed 's/^/| /' conftest.$ac_ext >&5
 
4863
 
 
4864
  # Passes both tests.
 
4865
ac_preproc_ok=:
 
4866
break
 
4867
fi
 
4868
 
 
4869
rm -f conftest.err conftest.$ac_ext
 
4870
 
 
4871
done
 
4872
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4873
rm -f conftest.err conftest.$ac_ext
 
4874
if $ac_preproc_ok; then
 
4875
  :
 
4876
else
 
4877
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4878
See \`config.log' for more details." >&5
 
4879
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4880
See \`config.log' for more details." >&2;}
 
4881
   { (exit 1); exit 1; }; }
 
4882
fi
 
4883
 
 
4884
ac_ext=c
 
4885
ac_cpp='$CPP $CPPFLAGS'
 
4886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4889
 
 
4890
 
 
4891
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4892
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4893
if test "${ac_cv_header_stdc+set}" = set; then
 
4894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4895
else
 
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 <stdlib.h>
 
4903
#include <stdarg.h>
 
4904
#include <string.h>
 
4905
#include <float.h>
 
4906
 
 
4907
int
 
4908
main ()
 
4909
{
 
4910
 
 
4911
  ;
 
4912
  return 0;
 
4913
}
 
4914
_ACEOF
 
4915
rm -f conftest.$ac_objext
 
4916
if { (ac_try="$ac_compile"
 
4917
case "(($ac_try" in
 
4918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4919
  *) ac_try_echo=$ac_try;;
 
4920
esac
 
4921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4922
  (eval "$ac_compile") 2>conftest.er1
 
4923
  ac_status=$?
 
4924
  grep -v '^ *+' conftest.er1 >conftest.err
 
4925
  rm -f conftest.er1
 
4926
  cat conftest.err >&5
 
4927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4928
  (exit $ac_status); } &&
 
4929
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
4930
  { (case "(($ac_try" in
 
4931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4932
  *) ac_try_echo=$ac_try;;
 
4933
esac
 
4934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4935
  (eval "$ac_try") 2>&5
 
4936
  ac_status=$?
 
4937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4938
  (exit $ac_status); }; } &&
 
4939
         { ac_try='test -s conftest.$ac_objext'
 
4940
  { (case "(($ac_try" in
 
4941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4942
  *) ac_try_echo=$ac_try;;
 
4943
esac
 
4944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4945
  (eval "$ac_try") 2>&5
 
4946
  ac_status=$?
 
4947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4948
  (exit $ac_status); }; }; then
 
4949
  ac_cv_header_stdc=yes
 
4950
else
 
4951
  echo "$as_me: failed program was:" >&5
 
4952
sed 's/^/| /' conftest.$ac_ext >&5
 
4953
 
 
4954
        ac_cv_header_stdc=no
 
4955
fi
 
4956
 
 
4957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4958
 
 
4959
if test $ac_cv_header_stdc = yes; then
 
4960
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4961
  cat >conftest.$ac_ext <<_ACEOF
 
4962
/* confdefs.h.  */
 
4963
_ACEOF
 
4964
cat confdefs.h >>conftest.$ac_ext
 
4965
cat >>conftest.$ac_ext <<_ACEOF
 
4966
/* end confdefs.h.  */
 
4967
#include <string.h>
 
4968
 
 
4969
_ACEOF
 
4970
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4971
  $EGREP "memchr" >/dev/null 2>&1; then
 
4972
  :
 
4973
else
 
4974
  ac_cv_header_stdc=no
 
4975
fi
 
4976
rm -f conftest*
 
4977
 
 
4978
fi
 
4979
 
 
4980
if test $ac_cv_header_stdc = yes; then
 
4981
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4982
  cat >conftest.$ac_ext <<_ACEOF
 
4983
/* confdefs.h.  */
 
4984
_ACEOF
 
4985
cat confdefs.h >>conftest.$ac_ext
 
4986
cat >>conftest.$ac_ext <<_ACEOF
 
4987
/* end confdefs.h.  */
 
4988
#include <stdlib.h>
 
4989
 
 
4990
_ACEOF
 
4991
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4992
  $EGREP "free" >/dev/null 2>&1; then
 
4993
  :
 
4994
else
 
4995
  ac_cv_header_stdc=no
 
4996
fi
 
4997
rm -f conftest*
 
4998
 
 
4999
fi
 
5000
 
 
5001
if test $ac_cv_header_stdc = yes; then
 
5002
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5003
  if test "$cross_compiling" = yes; then
 
5004
  :
 
5005
else
 
5006
  cat >conftest.$ac_ext <<_ACEOF
 
5007
/* confdefs.h.  */
 
5008
_ACEOF
 
5009
cat confdefs.h >>conftest.$ac_ext
 
5010
cat >>conftest.$ac_ext <<_ACEOF
 
5011
/* end confdefs.h.  */
 
5012
#include <ctype.h>
 
5013
#include <stdlib.h>
 
5014
#if ((' ' & 0x0FF) == 0x020)
 
5015
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5016
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5017
#else
 
5018
# define ISLOWER(c) \
 
5019
                   (('a' <= (c) && (c) <= 'i') \
 
5020
                     || ('j' <= (c) && (c) <= 'r') \
 
5021
                     || ('s' <= (c) && (c) <= 'z'))
 
5022
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5023
#endif
 
5024
 
 
5025
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5026
int
 
5027
main ()
 
5028
{
 
5029
  int i;
 
5030
  for (i = 0; i < 256; i++)
 
5031
    if (XOR (islower (i), ISLOWER (i))
 
5032
        || toupper (i) != TOUPPER (i))
 
5033
      return 2;
 
5034
  return 0;
 
5035
}
 
5036
_ACEOF
 
5037
rm -f conftest$ac_exeext
 
5038
if { (ac_try="$ac_link"
 
5039
case "(($ac_try" in
 
5040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5041
  *) ac_try_echo=$ac_try;;
 
5042
esac
 
5043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5044
  (eval "$ac_link") 2>&5
 
5045
  ac_status=$?
 
5046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5047
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
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_try") 2>&5
 
5054
  ac_status=$?
 
5055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5056
  (exit $ac_status); }; }; then
 
5057
  :
 
5058
else
 
5059
  echo "$as_me: program exited with status $ac_status" >&5
 
5060
echo "$as_me: failed program was:" >&5
 
5061
sed 's/^/| /' conftest.$ac_ext >&5
 
5062
 
 
5063
( exit $ac_status )
 
5064
ac_cv_header_stdc=no
 
5065
fi
 
5066
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5067
fi
 
5068
 
 
5069
 
 
5070
fi
 
5071
fi
 
5072
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5073
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5074
if test $ac_cv_header_stdc = yes; then
 
5075
 
 
5076
cat >>confdefs.h <<\_ACEOF
 
5077
#define STDC_HEADERS 1
 
5078
_ACEOF
 
5079
 
 
5080
fi
 
5081
 
 
5082
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
 
 
5088
 
 
5089
 
 
5090
 
 
5091
 
 
5092
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5093
                  inttypes.h stdint.h unistd.h
 
5094
do
 
5095
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5096
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5097
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5098
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5100
else
 
5101
  cat >conftest.$ac_ext <<_ACEOF
 
5102
/* confdefs.h.  */
 
5103
_ACEOF
 
5104
cat confdefs.h >>conftest.$ac_ext
 
5105
cat >>conftest.$ac_ext <<_ACEOF
 
5106
/* end confdefs.h.  */
 
5107
$ac_includes_default
 
5108
 
 
5109
#include <$ac_header>
 
5110
_ACEOF
 
5111
rm -f conftest.$ac_objext
 
5112
if { (ac_try="$ac_compile"
 
5113
case "(($ac_try" in
 
5114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5115
  *) ac_try_echo=$ac_try;;
 
5116
esac
 
5117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5118
  (eval "$ac_compile") 2>conftest.er1
 
5119
  ac_status=$?
 
5120
  grep -v '^ *+' conftest.er1 >conftest.err
 
5121
  rm -f conftest.er1
 
5122
  cat conftest.err >&5
 
5123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5124
  (exit $ac_status); } &&
 
5125
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5126
  { (case "(($ac_try" in
 
5127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5128
  *) ac_try_echo=$ac_try;;
 
5129
esac
 
5130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5131
  (eval "$ac_try") 2>&5
 
5132
  ac_status=$?
 
5133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5134
  (exit $ac_status); }; } &&
 
5135
         { ac_try='test -s conftest.$ac_objext'
 
5136
  { (case "(($ac_try" in
 
5137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5138
  *) ac_try_echo=$ac_try;;
 
5139
esac
 
5140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5141
  (eval "$ac_try") 2>&5
 
5142
  ac_status=$?
 
5143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5144
  (exit $ac_status); }; }; then
 
5145
  eval "$as_ac_Header=yes"
 
5146
else
 
5147
  echo "$as_me: failed program was:" >&5
 
5148
sed 's/^/| /' conftest.$ac_ext >&5
 
5149
 
 
5150
        eval "$as_ac_Header=no"
 
5151
fi
 
5152
 
 
5153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5154
fi
 
5155
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5156
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5157
echo "${ECHO_T}$ac_res" >&6; }
 
5158
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5159
  cat >>confdefs.h <<_ACEOF
 
5160
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5161
_ACEOF
 
5162
 
 
5163
fi
 
5164
 
 
5165
done
 
5166
 
 
5167
 
 
5168
 
 
5169
for ac_header in dlfcn.h
 
5170
do
 
5171
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5172
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5173
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5174
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5175
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5176
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5177
fi
 
5178
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5179
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5180
echo "${ECHO_T}$ac_res" >&6; }
 
5181
else
 
5182
  # Is the header compilable?
 
5183
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5184
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5185
cat >conftest.$ac_ext <<_ACEOF
 
5186
/* confdefs.h.  */
 
5187
_ACEOF
 
5188
cat confdefs.h >>conftest.$ac_ext
 
5189
cat >>conftest.$ac_ext <<_ACEOF
 
5190
/* end confdefs.h.  */
 
5191
$ac_includes_default
 
5192
#include <$ac_header>
 
5193
_ACEOF
 
5194
rm -f conftest.$ac_objext
 
5195
if { (ac_try="$ac_compile"
 
5196
case "(($ac_try" in
 
5197
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5198
  *) ac_try_echo=$ac_try;;
 
5199
esac
 
5200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5201
  (eval "$ac_compile") 2>conftest.er1
 
5202
  ac_status=$?
 
5203
  grep -v '^ *+' conftest.er1 >conftest.err
 
5204
  rm -f conftest.er1
 
5205
  cat conftest.err >&5
 
5206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5207
  (exit $ac_status); } &&
 
5208
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5209
  { (case "(($ac_try" in
 
5210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5211
  *) ac_try_echo=$ac_try;;
 
5212
esac
 
5213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5214
  (eval "$ac_try") 2>&5
 
5215
  ac_status=$?
 
5216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5217
  (exit $ac_status); }; } &&
 
5218
         { ac_try='test -s conftest.$ac_objext'
 
5219
  { (case "(($ac_try" in
 
5220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5221
  *) ac_try_echo=$ac_try;;
 
5222
esac
 
5223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5224
  (eval "$ac_try") 2>&5
 
5225
  ac_status=$?
 
5226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5227
  (exit $ac_status); }; }; then
 
5228
  ac_header_compiler=yes
 
5229
else
 
5230
  echo "$as_me: failed program was:" >&5
 
5231
sed 's/^/| /' conftest.$ac_ext >&5
 
5232
 
 
5233
        ac_header_compiler=no
 
5234
fi
 
5235
 
 
5236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5237
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5238
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5239
 
 
5240
# Is the header present?
 
5241
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5242
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5243
cat >conftest.$ac_ext <<_ACEOF
 
5244
/* confdefs.h.  */
 
5245
_ACEOF
 
5246
cat confdefs.h >>conftest.$ac_ext
 
5247
cat >>conftest.$ac_ext <<_ACEOF
 
5248
/* end confdefs.h.  */
 
5249
#include <$ac_header>
 
5250
_ACEOF
 
5251
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5252
case "(($ac_try" in
 
5253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5254
  *) ac_try_echo=$ac_try;;
 
5255
esac
 
5256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5257
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5258
  ac_status=$?
 
5259
  grep -v '^ *+' conftest.er1 >conftest.err
 
5260
  rm -f conftest.er1
 
5261
  cat conftest.err >&5
 
5262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5263
  (exit $ac_status); } >/dev/null; then
 
5264
  if test -s conftest.err; then
 
5265
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5266
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5267
  else
 
5268
    ac_cpp_err=
 
5269
  fi
 
5270
else
 
5271
  ac_cpp_err=yes
 
5272
fi
 
5273
if test -z "$ac_cpp_err"; then
 
5274
  ac_header_preproc=yes
 
5275
else
 
5276
  echo "$as_me: failed program was:" >&5
 
5277
sed 's/^/| /' conftest.$ac_ext >&5
 
5278
 
 
5279
  ac_header_preproc=no
 
5280
fi
 
5281
 
 
5282
rm -f conftest.err conftest.$ac_ext
 
5283
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5284
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5285
 
 
5286
# So?  What about this header?
 
5287
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5288
  yes:no: )
 
5289
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5290
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5291
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5292
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5293
    ac_header_preproc=yes
 
5294
    ;;
 
5295
  no:yes:* )
 
5296
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5297
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5298
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5299
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5300
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5301
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5302
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5303
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5304
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5305
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5306
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5307
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5308
 
 
5309
    ;;
 
5310
esac
 
5311
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5313
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5315
else
 
5316
  eval "$as_ac_Header=\$ac_header_preproc"
 
5317
fi
 
5318
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5319
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5320
echo "${ECHO_T}$ac_res" >&6; }
 
5321
 
 
5322
fi
 
5323
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5324
  cat >>confdefs.h <<_ACEOF
 
5325
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5326
_ACEOF
 
5327
 
 
5328
fi
 
5329
 
 
5330
done
 
5331
 
 
5332
ac_ext=cpp
 
5333
ac_cpp='$CXXCPP $CPPFLAGS'
 
5334
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5335
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5336
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5337
if test -z "$CXX"; then
 
5338
  if test -n "$CCC"; then
 
5339
    CXX=$CCC
 
5340
  else
 
5341
    if test -n "$ac_tool_prefix"; then
 
5342
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5343
  do
 
5344
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5345
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5346
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5348
if test "${ac_cv_prog_CXX+set}" = set; then
 
5349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5350
else
 
5351
  if test -n "$CXX"; then
 
5352
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5353
else
 
5354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5355
for as_dir in $PATH
 
5356
do
 
5357
  IFS=$as_save_IFS
 
5358
  test -z "$as_dir" && as_dir=.
 
5359
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5360
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5361
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5362
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5363
    break 2
 
5364
  fi
 
5365
done
 
5366
done
 
5367
IFS=$as_save_IFS
 
5368
 
 
5369
fi
 
5370
fi
 
5371
CXX=$ac_cv_prog_CXX
 
5372
if test -n "$CXX"; then
 
5373
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5374
echo "${ECHO_T}$CXX" >&6; }
 
5375
else
 
5376
  { echo "$as_me:$LINENO: result: no" >&5
 
5377
echo "${ECHO_T}no" >&6; }
 
5378
fi
 
5379
 
 
5380
 
 
5381
    test -n "$CXX" && break
 
5382
  done
 
5383
fi
 
5384
if test -z "$CXX"; then
 
5385
  ac_ct_CXX=$CXX
 
5386
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5387
do
 
5388
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5389
set dummy $ac_prog; ac_word=$2
 
5390
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5391
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5392
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5394
else
 
5395
  if test -n "$ac_ct_CXX"; then
 
5396
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5397
else
 
5398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5399
for as_dir in $PATH
 
5400
do
 
5401
  IFS=$as_save_IFS
 
5402
  test -z "$as_dir" && as_dir=.
 
5403
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5404
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5405
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5406
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5407
    break 2
 
5408
  fi
 
5409
done
 
5410
done
 
5411
IFS=$as_save_IFS
 
5412
 
 
5413
fi
 
5414
fi
 
5415
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5416
if test -n "$ac_ct_CXX"; then
 
5417
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5418
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5419
else
 
5420
  { echo "$as_me:$LINENO: result: no" >&5
 
5421
echo "${ECHO_T}no" >&6; }
 
5422
fi
 
5423
 
 
5424
 
 
5425
  test -n "$ac_ct_CXX" && break
 
5426
done
 
5427
 
 
5428
  if test "x$ac_ct_CXX" = x; then
 
5429
    CXX="g++"
 
5430
  else
 
5431
    case $cross_compiling:$ac_tool_warned in
 
5432
yes:)
 
5433
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5434
whose name does not start with the host triplet.  If you think this
 
5435
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5436
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5437
whose name does not start with the host triplet.  If you think this
 
5438
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5439
ac_tool_warned=yes ;;
 
5440
esac
 
5441
    CXX=$ac_ct_CXX
 
5442
  fi
 
5443
fi
 
5444
 
 
5445
  fi
 
5446
fi
 
5447
# Provide some information about the compiler.
 
5448
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5449
ac_compiler=`set X $ac_compile; echo $2`
 
5450
{ (ac_try="$ac_compiler --version >&5"
 
5451
case "(($ac_try" in
 
5452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5453
  *) ac_try_echo=$ac_try;;
 
5454
esac
 
5455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5456
  (eval "$ac_compiler --version >&5") 2>&5
 
5457
  ac_status=$?
 
5458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5459
  (exit $ac_status); }
 
5460
{ (ac_try="$ac_compiler -v >&5"
 
5461
case "(($ac_try" in
 
5462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5463
  *) ac_try_echo=$ac_try;;
 
5464
esac
 
5465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5466
  (eval "$ac_compiler -v >&5") 2>&5
 
5467
  ac_status=$?
 
5468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5469
  (exit $ac_status); }
 
5470
{ (ac_try="$ac_compiler -V >&5"
 
5471
case "(($ac_try" in
 
5472
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5473
  *) ac_try_echo=$ac_try;;
 
5474
esac
 
5475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5476
  (eval "$ac_compiler -V >&5") 2>&5
 
5477
  ac_status=$?
 
5478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5479
  (exit $ac_status); }
 
5480
 
 
5481
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5482
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5483
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5485
else
 
5486
  cat >conftest.$ac_ext <<_ACEOF
 
5487
/* confdefs.h.  */
 
5488
_ACEOF
 
5489
cat confdefs.h >>conftest.$ac_ext
 
5490
cat >>conftest.$ac_ext <<_ACEOF
 
5491
/* end confdefs.h.  */
 
5492
 
 
5493
int
 
5494
main ()
 
5495
{
 
5496
#ifndef __GNUC__
 
5497
       choke me
 
5498
#endif
 
5499
 
 
5500
  ;
 
5501
  return 0;
 
5502
}
 
5503
_ACEOF
 
5504
rm -f conftest.$ac_objext
 
5505
if { (ac_try="$ac_compile"
 
5506
case "(($ac_try" in
 
5507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5508
  *) ac_try_echo=$ac_try;;
 
5509
esac
 
5510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5511
  (eval "$ac_compile") 2>conftest.er1
 
5512
  ac_status=$?
 
5513
  grep -v '^ *+' conftest.er1 >conftest.err
 
5514
  rm -f conftest.er1
 
5515
  cat conftest.err >&5
 
5516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5517
  (exit $ac_status); } &&
 
5518
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5519
  { (case "(($ac_try" in
 
5520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5521
  *) ac_try_echo=$ac_try;;
 
5522
esac
 
5523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5524
  (eval "$ac_try") 2>&5
 
5525
  ac_status=$?
 
5526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5527
  (exit $ac_status); }; } &&
 
5528
         { ac_try='test -s conftest.$ac_objext'
 
5529
  { (case "(($ac_try" in
 
5530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5531
  *) ac_try_echo=$ac_try;;
 
5532
esac
 
5533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5534
  (eval "$ac_try") 2>&5
 
5535
  ac_status=$?
 
5536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5537
  (exit $ac_status); }; }; then
 
5538
  ac_compiler_gnu=yes
 
5539
else
 
5540
  echo "$as_me: failed program was:" >&5
 
5541
sed 's/^/| /' conftest.$ac_ext >&5
 
5542
 
 
5543
        ac_compiler_gnu=no
 
5544
fi
 
5545
 
 
5546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5547
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5548
 
 
5549
fi
 
5550
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5551
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5552
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5553
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5554
ac_save_CXXFLAGS=$CXXFLAGS
 
5555
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5556
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5557
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5558
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5559
else
 
5560
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5561
   ac_cxx_werror_flag=yes
 
5562
   ac_cv_prog_cxx_g=no
 
5563
   CXXFLAGS="-g"
 
5564
   cat >conftest.$ac_ext <<_ACEOF
 
5565
/* confdefs.h.  */
 
5566
_ACEOF
 
5567
cat confdefs.h >>conftest.$ac_ext
 
5568
cat >>conftest.$ac_ext <<_ACEOF
 
5569
/* end confdefs.h.  */
 
5570
 
 
5571
int
 
5572
main ()
 
5573
{
 
5574
 
 
5575
  ;
 
5576
  return 0;
 
5577
}
 
5578
_ACEOF
 
5579
rm -f conftest.$ac_objext
 
5580
if { (ac_try="$ac_compile"
 
5581
case "(($ac_try" in
 
5582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5583
  *) ac_try_echo=$ac_try;;
 
5584
esac
 
5585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5586
  (eval "$ac_compile") 2>conftest.er1
 
5587
  ac_status=$?
 
5588
  grep -v '^ *+' conftest.er1 >conftest.err
 
5589
  rm -f conftest.er1
 
5590
  cat conftest.err >&5
 
5591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5592
  (exit $ac_status); } &&
 
5593
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5594
  { (case "(($ac_try" in
 
5595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5596
  *) ac_try_echo=$ac_try;;
 
5597
esac
 
5598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5599
  (eval "$ac_try") 2>&5
 
5600
  ac_status=$?
 
5601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5602
  (exit $ac_status); }; } &&
 
5603
         { ac_try='test -s conftest.$ac_objext'
 
5604
  { (case "(($ac_try" in
 
5605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5606
  *) ac_try_echo=$ac_try;;
 
5607
esac
 
5608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5609
  (eval "$ac_try") 2>&5
 
5610
  ac_status=$?
 
5611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5612
  (exit $ac_status); }; }; then
 
5613
  ac_cv_prog_cxx_g=yes
 
5614
else
 
5615
  echo "$as_me: failed program was:" >&5
 
5616
sed 's/^/| /' conftest.$ac_ext >&5
 
5617
 
 
5618
        CXXFLAGS=""
 
5619
      cat >conftest.$ac_ext <<_ACEOF
 
5620
/* confdefs.h.  */
 
5621
_ACEOF
 
5622
cat confdefs.h >>conftest.$ac_ext
 
5623
cat >>conftest.$ac_ext <<_ACEOF
 
5624
/* end confdefs.h.  */
 
5625
 
 
5626
int
 
5627
main ()
 
5628
{
 
5629
 
 
5630
  ;
 
5631
  return 0;
 
5632
}
 
5633
_ACEOF
 
5634
rm -f conftest.$ac_objext
 
5635
if { (ac_try="$ac_compile"
 
5636
case "(($ac_try" in
 
5637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5638
  *) ac_try_echo=$ac_try;;
 
5639
esac
 
5640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5641
  (eval "$ac_compile") 2>conftest.er1
 
5642
  ac_status=$?
 
5643
  grep -v '^ *+' conftest.er1 >conftest.err
 
5644
  rm -f conftest.er1
 
5645
  cat conftest.err >&5
 
5646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5647
  (exit $ac_status); } &&
 
5648
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5649
  { (case "(($ac_try" in
 
5650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5651
  *) ac_try_echo=$ac_try;;
 
5652
esac
 
5653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5654
  (eval "$ac_try") 2>&5
 
5655
  ac_status=$?
 
5656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5657
  (exit $ac_status); }; } &&
 
5658
         { ac_try='test -s conftest.$ac_objext'
 
5659
  { (case "(($ac_try" in
 
5660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5661
  *) ac_try_echo=$ac_try;;
 
5662
esac
 
5663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5664
  (eval "$ac_try") 2>&5
 
5665
  ac_status=$?
 
5666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5667
  (exit $ac_status); }; }; then
 
5668
  :
 
5669
else
 
5670
  echo "$as_me: failed program was:" >&5
 
5671
sed 's/^/| /' conftest.$ac_ext >&5
 
5672
 
 
5673
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5674
         CXXFLAGS="-g"
 
5675
         cat >conftest.$ac_ext <<_ACEOF
 
5676
/* confdefs.h.  */
 
5677
_ACEOF
 
5678
cat confdefs.h >>conftest.$ac_ext
 
5679
cat >>conftest.$ac_ext <<_ACEOF
 
5680
/* end confdefs.h.  */
 
5681
 
 
5682
int
 
5683
main ()
 
5684
{
 
5685
 
 
5686
  ;
 
5687
  return 0;
 
5688
}
 
5689
_ACEOF
 
5690
rm -f conftest.$ac_objext
 
5691
if { (ac_try="$ac_compile"
 
5692
case "(($ac_try" in
 
5693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5694
  *) ac_try_echo=$ac_try;;
 
5695
esac
 
5696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5697
  (eval "$ac_compile") 2>conftest.er1
 
5698
  ac_status=$?
 
5699
  grep -v '^ *+' conftest.er1 >conftest.err
 
5700
  rm -f conftest.er1
 
5701
  cat conftest.err >&5
 
5702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5703
  (exit $ac_status); } &&
 
5704
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5705
  { (case "(($ac_try" in
 
5706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5707
  *) ac_try_echo=$ac_try;;
 
5708
esac
 
5709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5710
  (eval "$ac_try") 2>&5
 
5711
  ac_status=$?
 
5712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5713
  (exit $ac_status); }; } &&
 
5714
         { ac_try='test -s conftest.$ac_objext'
 
5715
  { (case "(($ac_try" in
 
5716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5717
  *) ac_try_echo=$ac_try;;
 
5718
esac
 
5719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5720
  (eval "$ac_try") 2>&5
 
5721
  ac_status=$?
 
5722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5723
  (exit $ac_status); }; }; then
 
5724
  ac_cv_prog_cxx_g=yes
 
5725
else
 
5726
  echo "$as_me: failed program was:" >&5
 
5727
sed 's/^/| /' conftest.$ac_ext >&5
 
5728
 
 
5729
 
 
5730
fi
 
5731
 
 
5732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5733
fi
 
5734
 
 
5735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5736
fi
 
5737
 
 
5738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5739
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5740
fi
 
5741
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5742
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5743
if test "$ac_test_CXXFLAGS" = set; then
 
5744
  CXXFLAGS=$ac_save_CXXFLAGS
 
5745
elif test $ac_cv_prog_cxx_g = yes; then
 
5746
  if test "$GXX" = yes; then
 
5747
    CXXFLAGS="-g -O2"
 
5748
  else
 
5749
    CXXFLAGS="-g"
 
5750
  fi
 
5751
else
 
5752
  if test "$GXX" = yes; then
 
5753
    CXXFLAGS="-O2"
 
5754
  else
 
5755
    CXXFLAGS=
 
5756
  fi
 
5757
fi
 
5758
ac_ext=cpp
 
5759
ac_cpp='$CXXCPP $CPPFLAGS'
 
5760
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5761
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5762
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5763
 
 
5764
depcc="$CXX"  am_compiler_list=
 
5765
 
 
5766
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5767
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5768
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5769
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5770
else
 
5771
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5772
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5773
  # making bogus files that we don't know about and never remove.  For
 
5774
  # instance it was reported that on HP-UX the gcc test will end up
 
5775
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5776
  # in D'.
 
5777
  mkdir conftest.dir
 
5778
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5779
  # using a relative directory.
 
5780
  cp "$am_depcomp" conftest.dir
 
5781
  cd conftest.dir
 
5782
  # We will build objects and dependencies in a subdirectory because
 
5783
  # it helps to detect inapplicable dependency modes.  For instance
 
5784
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5785
  # side effect of compilation, but ICC will put the dependencies in
 
5786
  # the current directory while Tru64 will put them in the object
 
5787
  # directory.
 
5788
  mkdir sub
 
5789
 
 
5790
  am_cv_CXX_dependencies_compiler_type=none
 
5791
  if test "$am_compiler_list" = ""; then
 
5792
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5793
  fi
 
5794
  for depmode in $am_compiler_list; do
 
5795
    # Setup a source with many dependencies, because some compilers
 
5796
    # like to wrap large dependency lists on column 80 (with \), and
 
5797
    # we should not choose a depcomp mode which is confused by this.
 
5798
    #
 
5799
    # We need to recreate these files for each test, as the compiler may
 
5800
    # overwrite some of them when testing with obscure command lines.
 
5801
    # This happens at least with the AIX C compiler.
 
5802
    : > sub/conftest.c
 
5803
    for i in 1 2 3 4 5 6; do
 
5804
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5805
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5806
      # Solaris 8's {/usr,}/bin/sh.
 
5807
      touch sub/conftst$i.h
 
5808
    done
 
5809
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5810
 
 
5811
    case $depmode in
 
5812
    nosideeffect)
 
5813
      # after this tag, mechanisms are not by side-effect, so they'll
 
5814
      # only be used when explicitly requested
 
5815
      if test "x$enable_dependency_tracking" = xyes; then
 
5816
        continue
 
5817
      else
 
5818
        break
 
5819
      fi
 
5820
      ;;
 
5821
    none) break ;;
 
5822
    esac
 
5823
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5824
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5825
    # handle `-M -o', and we need to detect this.
 
5826
    if depmode=$depmode \
 
5827
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5828
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5829
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5830
         >/dev/null 2>conftest.err &&
 
5831
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5832
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5833
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5834
      # icc doesn't choke on unknown options, it will just issue warnings
 
5835
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5836
      # that says an option was ignored or not supported.
 
5837
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5838
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5839
      # The diagnosis changed in icc 8.0:
 
5840
      #   icc: Command line remark: option '-MP' not supported
 
5841
      if (grep 'ignoring option' conftest.err ||
 
5842
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5843
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5844
        break
 
5845
      fi
 
5846
    fi
 
5847
  done
 
5848
 
 
5849
  cd ..
 
5850
  rm -rf conftest.dir
 
5851
else
 
5852
  am_cv_CXX_dependencies_compiler_type=none
 
5853
fi
 
5854
 
 
5855
fi
 
5856
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5857
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5858
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5859
 
 
5860
 
 
5861
 
 
5862
if
 
5863
  test "x$enable_dependency_tracking" != xno \
 
5864
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5865
  am__fastdepCXX_TRUE=
 
5866
  am__fastdepCXX_FALSE='#'
 
5867
else
 
5868
  am__fastdepCXX_TRUE='#'
 
5869
  am__fastdepCXX_FALSE=
 
5870
fi
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5876
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5877
    (test "X$CXX" != "Xg++"))) ; then
 
5878
  ac_ext=cpp
 
5879
ac_cpp='$CXXCPP $CPPFLAGS'
 
5880
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5881
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5882
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5883
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5884
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5885
if test -z "$CXXCPP"; then
 
5886
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5888
else
 
5889
      # Double quotes because CXXCPP needs to be expanded
 
5890
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5891
    do
 
5892
      ac_preproc_ok=false
 
5893
for ac_cxx_preproc_warn_flag in '' yes
 
5894
do
 
5895
  # Use a header file that comes with gcc, so configuring glibc
 
5896
  # with a fresh cross-compiler works.
 
5897
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5898
  # <limits.h> exists even on freestanding compilers.
 
5899
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5900
  # not just through cpp. "Syntax error" is here to catch this case.
 
5901
  cat >conftest.$ac_ext <<_ACEOF
 
5902
/* confdefs.h.  */
 
5903
_ACEOF
 
5904
cat confdefs.h >>conftest.$ac_ext
 
5905
cat >>conftest.$ac_ext <<_ACEOF
 
5906
/* end confdefs.h.  */
 
5907
#ifdef __STDC__
 
5908
# include <limits.h>
 
5909
#else
 
5910
# include <assert.h>
 
5911
#endif
 
5912
                     Syntax error
 
5913
_ACEOF
 
5914
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5915
case "(($ac_try" in
 
5916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5917
  *) ac_try_echo=$ac_try;;
 
5918
esac
 
5919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5920
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5921
  ac_status=$?
 
5922
  grep -v '^ *+' conftest.er1 >conftest.err
 
5923
  rm -f conftest.er1
 
5924
  cat conftest.err >&5
 
5925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5926
  (exit $ac_status); } >/dev/null; then
 
5927
  if test -s conftest.err; then
 
5928
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5929
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5930
  else
 
5931
    ac_cpp_err=
 
5932
  fi
 
5933
else
 
5934
  ac_cpp_err=yes
 
5935
fi
 
5936
if test -z "$ac_cpp_err"; then
 
5937
  :
 
5938
else
 
5939
  echo "$as_me: failed program was:" >&5
 
5940
sed 's/^/| /' conftest.$ac_ext >&5
 
5941
 
 
5942
  # Broken: fails on valid input.
 
5943
continue
 
5944
fi
 
5945
 
 
5946
rm -f conftest.err conftest.$ac_ext
 
5947
 
 
5948
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5949
  # can be detected and how.
 
5950
  cat >conftest.$ac_ext <<_ACEOF
 
5951
/* confdefs.h.  */
 
5952
_ACEOF
 
5953
cat confdefs.h >>conftest.$ac_ext
 
5954
cat >>conftest.$ac_ext <<_ACEOF
 
5955
/* end confdefs.h.  */
 
5956
#include <ac_nonexistent.h>
 
5957
_ACEOF
 
5958
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5959
case "(($ac_try" in
 
5960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5961
  *) ac_try_echo=$ac_try;;
 
5962
esac
 
5963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5964
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5965
  ac_status=$?
 
5966
  grep -v '^ *+' conftest.er1 >conftest.err
 
5967
  rm -f conftest.er1
 
5968
  cat conftest.err >&5
 
5969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5970
  (exit $ac_status); } >/dev/null; then
 
5971
  if test -s conftest.err; then
 
5972
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5973
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5974
  else
 
5975
    ac_cpp_err=
 
5976
  fi
 
5977
else
 
5978
  ac_cpp_err=yes
 
5979
fi
 
5980
if test -z "$ac_cpp_err"; then
 
5981
  # Broken: success on invalid input.
 
5982
continue
 
5983
else
 
5984
  echo "$as_me: failed program was:" >&5
 
5985
sed 's/^/| /' conftest.$ac_ext >&5
 
5986
 
 
5987
  # Passes both tests.
 
5988
ac_preproc_ok=:
 
5989
break
 
5990
fi
 
5991
 
 
5992
rm -f conftest.err conftest.$ac_ext
 
5993
 
 
5994
done
 
5995
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5996
rm -f conftest.err conftest.$ac_ext
 
5997
if $ac_preproc_ok; then
 
5998
  break
 
5999
fi
 
6000
 
 
6001
    done
 
6002
    ac_cv_prog_CXXCPP=$CXXCPP
 
6003
 
 
6004
fi
 
6005
  CXXCPP=$ac_cv_prog_CXXCPP
 
6006
else
 
6007
  ac_cv_prog_CXXCPP=$CXXCPP
 
6008
fi
 
6009
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6010
echo "${ECHO_T}$CXXCPP" >&6; }
 
6011
ac_preproc_ok=false
 
6012
for ac_cxx_preproc_warn_flag in '' yes
 
6013
do
 
6014
  # Use a header file that comes with gcc, so configuring glibc
 
6015
  # with a fresh cross-compiler works.
 
6016
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6017
  # <limits.h> exists even on freestanding compilers.
 
6018
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6019
  # not just through cpp. "Syntax error" is here to catch this case.
 
6020
  cat >conftest.$ac_ext <<_ACEOF
 
6021
/* confdefs.h.  */
 
6022
_ACEOF
 
6023
cat confdefs.h >>conftest.$ac_ext
 
6024
cat >>conftest.$ac_ext <<_ACEOF
 
6025
/* end confdefs.h.  */
 
6026
#ifdef __STDC__
 
6027
# include <limits.h>
 
6028
#else
 
6029
# include <assert.h>
 
6030
#endif
 
6031
                     Syntax error
 
6032
_ACEOF
 
6033
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6034
case "(($ac_try" in
 
6035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6036
  *) ac_try_echo=$ac_try;;
 
6037
esac
 
6038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6039
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6040
  ac_status=$?
 
6041
  grep -v '^ *+' conftest.er1 >conftest.err
 
6042
  rm -f conftest.er1
 
6043
  cat conftest.err >&5
 
6044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6045
  (exit $ac_status); } >/dev/null; then
 
6046
  if test -s conftest.err; then
 
6047
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6048
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6049
  else
 
6050
    ac_cpp_err=
 
6051
  fi
 
6052
else
 
6053
  ac_cpp_err=yes
 
6054
fi
 
6055
if test -z "$ac_cpp_err"; then
 
6056
  :
 
6057
else
 
6058
  echo "$as_me: failed program was:" >&5
 
6059
sed 's/^/| /' conftest.$ac_ext >&5
 
6060
 
 
6061
  # Broken: fails on valid input.
 
6062
continue
 
6063
fi
 
6064
 
 
6065
rm -f conftest.err conftest.$ac_ext
 
6066
 
 
6067
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6068
  # can be detected and how.
 
6069
  cat >conftest.$ac_ext <<_ACEOF
 
6070
/* confdefs.h.  */
 
6071
_ACEOF
 
6072
cat confdefs.h >>conftest.$ac_ext
 
6073
cat >>conftest.$ac_ext <<_ACEOF
 
6074
/* end confdefs.h.  */
 
6075
#include <ac_nonexistent.h>
 
6076
_ACEOF
 
6077
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6078
case "(($ac_try" in
 
6079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6080
  *) ac_try_echo=$ac_try;;
 
6081
esac
 
6082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6083
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6084
  ac_status=$?
 
6085
  grep -v '^ *+' conftest.er1 >conftest.err
 
6086
  rm -f conftest.er1
 
6087
  cat conftest.err >&5
 
6088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6089
  (exit $ac_status); } >/dev/null; then
 
6090
  if test -s conftest.err; then
 
6091
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6092
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6093
  else
 
6094
    ac_cpp_err=
 
6095
  fi
 
6096
else
 
6097
  ac_cpp_err=yes
 
6098
fi
 
6099
if test -z "$ac_cpp_err"; then
 
6100
  # Broken: success on invalid input.
 
6101
continue
 
6102
else
 
6103
  echo "$as_me: failed program was:" >&5
 
6104
sed 's/^/| /' conftest.$ac_ext >&5
 
6105
 
 
6106
  # Passes both tests.
 
6107
ac_preproc_ok=:
 
6108
break
 
6109
fi
 
6110
 
 
6111
rm -f conftest.err conftest.$ac_ext
 
6112
 
 
6113
done
 
6114
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6115
rm -f conftest.err conftest.$ac_ext
 
6116
if $ac_preproc_ok; then
 
6117
  :
 
6118
else
 
6119
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6120
See \`config.log' for more details." >&5
 
6121
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6122
See \`config.log' for more details." >&2;}
 
6123
   { (exit 1); exit 1; }; }
 
6124
fi
 
6125
 
 
6126
ac_ext=cpp
 
6127
ac_cpp='$CXXCPP $CPPFLAGS'
 
6128
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6129
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6130
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6131
 
 
6132
fi
 
6133
 
 
6134
 
 
6135
ac_ext=f
 
6136
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6137
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6138
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6139
if test -n "$ac_tool_prefix"; then
 
6140
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
 
6141
  do
 
6142
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6143
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6144
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6145
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6146
if test "${ac_cv_prog_F77+set}" = set; then
 
6147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6148
else
 
6149
  if test -n "$F77"; then
 
6150
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6151
else
 
6152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6153
for as_dir in $PATH
 
6154
do
 
6155
  IFS=$as_save_IFS
 
6156
  test -z "$as_dir" && as_dir=.
 
6157
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6158
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6159
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6160
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6161
    break 2
 
6162
  fi
 
6163
done
 
6164
done
 
6165
IFS=$as_save_IFS
 
6166
 
 
6167
fi
 
6168
fi
 
6169
F77=$ac_cv_prog_F77
 
6170
if test -n "$F77"; then
 
6171
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6172
echo "${ECHO_T}$F77" >&6; }
 
6173
else
 
6174
  { echo "$as_me:$LINENO: result: no" >&5
 
6175
echo "${ECHO_T}no" >&6; }
 
6176
fi
 
6177
 
 
6178
 
 
6179
    test -n "$F77" && break
 
6180
  done
 
6181
fi
 
6182
if test -z "$F77"; then
 
6183
  ac_ct_F77=$F77
 
6184
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
 
6185
do
 
6186
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6187
set dummy $ac_prog; ac_word=$2
 
6188
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6190
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6192
else
 
6193
  if test -n "$ac_ct_F77"; then
 
6194
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6195
else
 
6196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6197
for as_dir in $PATH
 
6198
do
 
6199
  IFS=$as_save_IFS
 
6200
  test -z "$as_dir" && as_dir=.
 
6201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6202
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6203
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6204
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6205
    break 2
 
6206
  fi
 
6207
done
 
6208
done
 
6209
IFS=$as_save_IFS
 
6210
 
 
6211
fi
 
6212
fi
 
6213
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6214
if test -n "$ac_ct_F77"; then
 
6215
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6216
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6217
else
 
6218
  { echo "$as_me:$LINENO: result: no" >&5
 
6219
echo "${ECHO_T}no" >&6; }
 
6220
fi
 
6221
 
 
6222
 
 
6223
  test -n "$ac_ct_F77" && break
 
6224
done
 
6225
 
 
6226
  if test "x$ac_ct_F77" = x; then
 
6227
    F77=""
 
6228
  else
 
6229
    case $cross_compiling:$ac_tool_warned in
 
6230
yes:)
 
6231
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6232
whose name does not start with the host triplet.  If you think this
 
6233
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6234
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6235
whose name does not start with the host triplet.  If you think this
 
6236
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6237
ac_tool_warned=yes ;;
 
6238
esac
 
6239
    F77=$ac_ct_F77
 
6240
  fi
 
6241
fi
 
6242
 
 
6243
 
 
6244
# Provide some information about the compiler.
 
6245
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6246
ac_compiler=`set X $ac_compile; echo $2`
 
6247
{ (ac_try="$ac_compiler --version >&5"
 
6248
case "(($ac_try" in
 
6249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6250
  *) ac_try_echo=$ac_try;;
 
6251
esac
 
6252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6253
  (eval "$ac_compiler --version >&5") 2>&5
 
6254
  ac_status=$?
 
6255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6256
  (exit $ac_status); }
 
6257
{ (ac_try="$ac_compiler -v >&5"
 
6258
case "(($ac_try" in
 
6259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6260
  *) ac_try_echo=$ac_try;;
 
6261
esac
 
6262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6263
  (eval "$ac_compiler -v >&5") 2>&5
 
6264
  ac_status=$?
 
6265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6266
  (exit $ac_status); }
 
6267
{ (ac_try="$ac_compiler -V >&5"
 
6268
case "(($ac_try" in
 
6269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6270
  *) ac_try_echo=$ac_try;;
 
6271
esac
 
6272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6273
  (eval "$ac_compiler -V >&5") 2>&5
 
6274
  ac_status=$?
 
6275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6276
  (exit $ac_status); }
 
6277
rm -f a.out
 
6278
 
 
6279
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6280
# input file.  (Note that this only needs to work for GNU compilers.)
 
6281
ac_save_ext=$ac_ext
 
6282
ac_ext=F
 
6283
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6284
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6285
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6287
else
 
6288
  cat >conftest.$ac_ext <<_ACEOF
 
6289
      program main
 
6290
#ifndef __GNUC__
 
6291
       choke me
 
6292
#endif
 
6293
 
 
6294
      end
 
6295
_ACEOF
 
6296
rm -f conftest.$ac_objext
 
6297
if { (ac_try="$ac_compile"
 
6298
case "(($ac_try" in
 
6299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6300
  *) ac_try_echo=$ac_try;;
 
6301
esac
 
6302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6303
  (eval "$ac_compile") 2>conftest.er1
 
6304
  ac_status=$?
 
6305
  grep -v '^ *+' conftest.er1 >conftest.err
 
6306
  rm -f conftest.er1
 
6307
  cat conftest.err >&5
 
6308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6309
  (exit $ac_status); } &&
 
6310
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
6311
  { (case "(($ac_try" in
 
6312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6313
  *) ac_try_echo=$ac_try;;
 
6314
esac
 
6315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6316
  (eval "$ac_try") 2>&5
 
6317
  ac_status=$?
 
6318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6319
  (exit $ac_status); }; } &&
 
6320
         { ac_try='test -s conftest.$ac_objext'
 
6321
  { (case "(($ac_try" in
 
6322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6323
  *) ac_try_echo=$ac_try;;
 
6324
esac
 
6325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6326
  (eval "$ac_try") 2>&5
 
6327
  ac_status=$?
 
6328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6329
  (exit $ac_status); }; }; then
 
6330
  ac_compiler_gnu=yes
 
6331
else
 
6332
  echo "$as_me: failed program was:" >&5
 
6333
sed 's/^/| /' conftest.$ac_ext >&5
 
6334
 
 
6335
        ac_compiler_gnu=no
 
6336
fi
 
6337
 
 
6338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6339
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6340
 
 
6341
fi
 
6342
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6343
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6344
ac_ext=$ac_save_ext
 
6345
ac_test_FFLAGS=${FFLAGS+set}
 
6346
ac_save_FFLAGS=$FFLAGS
 
6347
FFLAGS=
 
6348
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6349
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6350
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6352
else
 
6353
  FFLAGS=-g
 
6354
cat >conftest.$ac_ext <<_ACEOF
 
6355
      program main
 
6356
 
 
6357
      end
 
6358
_ACEOF
 
6359
rm -f conftest.$ac_objext
 
6360
if { (ac_try="$ac_compile"
 
6361
case "(($ac_try" in
 
6362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6363
  *) ac_try_echo=$ac_try;;
 
6364
esac
 
6365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6366
  (eval "$ac_compile") 2>conftest.er1
 
6367
  ac_status=$?
 
6368
  grep -v '^ *+' conftest.er1 >conftest.err
 
6369
  rm -f conftest.er1
 
6370
  cat conftest.err >&5
 
6371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6372
  (exit $ac_status); } &&
 
6373
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
6374
  { (case "(($ac_try" in
 
6375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6376
  *) ac_try_echo=$ac_try;;
 
6377
esac
 
6378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6379
  (eval "$ac_try") 2>&5
 
6380
  ac_status=$?
 
6381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6382
  (exit $ac_status); }; } &&
 
6383
         { ac_try='test -s conftest.$ac_objext'
 
6384
  { (case "(($ac_try" in
 
6385
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6386
  *) ac_try_echo=$ac_try;;
 
6387
esac
 
6388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6389
  (eval "$ac_try") 2>&5
 
6390
  ac_status=$?
 
6391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6392
  (exit $ac_status); }; }; then
 
6393
  ac_cv_prog_f77_g=yes
 
6394
else
 
6395
  echo "$as_me: failed program was:" >&5
 
6396
sed 's/^/| /' conftest.$ac_ext >&5
 
6397
 
 
6398
        ac_cv_prog_f77_g=no
 
6399
fi
 
6400
 
 
6401
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6402
 
 
6403
fi
 
6404
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6405
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6406
if test "$ac_test_FFLAGS" = set; then
 
6407
  FFLAGS=$ac_save_FFLAGS
 
6408
elif test $ac_cv_prog_f77_g = yes; then
 
6409
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6410
    FFLAGS="-g -O2"
 
6411
  else
 
6412
    FFLAGS="-g"
 
6413
  fi
 
6414
else
 
6415
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6416
    FFLAGS="-O2"
 
6417
  else
 
6418
    FFLAGS=
 
6419
  fi
 
6420
fi
 
6421
 
 
6422
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6423
ac_ext=c
 
6424
ac_cpp='$CPP $CPPFLAGS'
 
6425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6428
 
 
6429
 
 
6430
 
 
6431
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6432
 
 
6433
# find the maximum length of command line arguments
 
6434
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6435
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6436
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6438
else
 
6439
    i=0
 
6440
  teststring="ABCD"
 
6441
 
 
6442
  case $build_os in
 
6443
  msdosdjgpp*)
 
6444
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6445
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6446
    # during glob expansion).  Even if it were fixed, the result of this
 
6447
    # check would be larger than it should be.
 
6448
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6449
    ;;
 
6450
 
 
6451
  gnu*)
 
6452
    # Under GNU Hurd, this test is not required because there is
 
6453
    # no limit to the length of command line arguments.
 
6454
    # Libtool will interpret -1 as no limit whatsoever
 
6455
    lt_cv_sys_max_cmd_len=-1;
 
6456
    ;;
 
6457
 
 
6458
  cygwin* | mingw*)
 
6459
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6460
    # about 5 minutes as the teststring grows exponentially.
 
6461
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6462
    # you end up with a "frozen" computer, even though with patience
 
6463
    # the test eventually succeeds (with a max line length of 256k).
 
6464
    # Instead, let's just punt: use the minimum linelength reported by
 
6465
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6466
    lt_cv_sys_max_cmd_len=8192;
 
6467
    ;;
 
6468
 
 
6469
  amigaos*)
 
6470
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6471
    # So we just punt and use a minimum line length of 8192.
 
6472
    lt_cv_sys_max_cmd_len=8192;
 
6473
    ;;
 
6474
 
 
6475
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6476
    # This has been around since 386BSD, at least.  Likely further.
 
6477
    if test -x /sbin/sysctl; then
 
6478
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6479
    elif test -x /usr/sbin/sysctl; then
 
6480
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6481
    else
 
6482
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6483
    fi
 
6484
    # And add a safety zone
 
6485
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6486
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6487
    ;;
 
6488
 
 
6489
  interix*)
 
6490
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6491
    lt_cv_sys_max_cmd_len=196608
 
6492
    ;;
 
6493
 
 
6494
  osf*)
 
6495
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6496
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6497
    # nice to cause kernel panics so lets avoid the loop below.
 
6498
    # First set a reasonable default.
 
6499
    lt_cv_sys_max_cmd_len=16384
 
6500
    #
 
6501
    if test -x /sbin/sysconfig; then
 
6502
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6503
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6504
      esac
 
6505
    fi
 
6506
    ;;
 
6507
  sco3.2v5*)
 
6508
    lt_cv_sys_max_cmd_len=102400
 
6509
    ;;
 
6510
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6511
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6512
    if test -n "$kargmax"; then
 
6513
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6514
    else
 
6515
      lt_cv_sys_max_cmd_len=32768
 
6516
    fi
 
6517
    ;;
 
6518
  *)
 
6519
    # If test is not a shell built-in, we'll probably end up computing a
 
6520
    # maximum length that is only half of the actual maximum length, but
 
6521
    # we can't tell.
 
6522
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6523
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6524
               = "XX$teststring") >/dev/null 2>&1 &&
 
6525
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6526
            lt_cv_sys_max_cmd_len=$new_result &&
 
6527
            test $i != 17 # 1/2 MB should be enough
 
6528
    do
 
6529
      i=`expr $i + 1`
 
6530
      teststring=$teststring$teststring
 
6531
    done
 
6532
    teststring=
 
6533
    # Add a significant safety factor because C++ compilers can tack on massive
 
6534
    # amounts of additional arguments before passing them to the linker.
 
6535
    # It appears as though 1/2 is a usable value.
 
6536
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6537
    ;;
 
6538
  esac
 
6539
 
 
6540
fi
 
6541
 
 
6542
if test -n $lt_cv_sys_max_cmd_len ; then
 
6543
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6544
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6545
else
 
6546
  { echo "$as_me:$LINENO: result: none" >&5
 
6547
echo "${ECHO_T}none" >&6; }
 
6548
fi
 
6549
 
 
6550
 
 
6551
 
 
6552
 
 
6553
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6554
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6555
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6556
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6558
else
 
6559
 
 
6560
# These are sane defaults that work on at least a few old systems.
 
6561
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6562
 
 
6563
# Character class describing NM global symbol codes.
 
6564
symcode='[BCDEGRST]'
 
6565
 
 
6566
# Regexp to match symbols that can be accessed directly from C.
 
6567
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6568
 
 
6569
# Transform an extracted symbol line into a proper C declaration
 
6570
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6571
 
 
6572
# Transform an extracted symbol line into symbol name and symbol address
 
6573
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'"
 
6574
 
 
6575
# Define system-specific variables.
 
6576
case $host_os in
 
6577
aix*)
 
6578
  symcode='[BCDT]'
 
6579
  ;;
 
6580
cygwin* | mingw* | pw32*)
 
6581
  symcode='[ABCDGISTW]'
 
6582
  ;;
 
6583
hpux*) # Its linker distinguishes data from code symbols
 
6584
  if test "$host_cpu" = ia64; then
 
6585
    symcode='[ABCDEGRST]'
 
6586
  fi
 
6587
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6588
  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'"
 
6589
  ;;
 
6590
linux*)
 
6591
  if test "$host_cpu" = ia64; then
 
6592
    symcode='[ABCDGIRSTW]'
 
6593
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6594
    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'"
 
6595
  fi
 
6596
  ;;
 
6597
irix* | nonstopux*)
 
6598
  symcode='[BCDEGRST]'
 
6599
  ;;
 
6600
osf*)
 
6601
  symcode='[BCDEGQRST]'
 
6602
  ;;
 
6603
solaris*)
 
6604
  symcode='[BDRT]'
 
6605
  ;;
 
6606
sco3.2v5*)
 
6607
  symcode='[DT]'
 
6608
  ;;
 
6609
sysv4.2uw2*)
 
6610
  symcode='[DT]'
 
6611
  ;;
 
6612
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6613
  symcode='[ABDT]'
 
6614
  ;;
 
6615
sysv4)
 
6616
  symcode='[DFNSTU]'
 
6617
  ;;
 
6618
esac
 
6619
 
 
6620
# Handle CRLF in mingw tool chain
 
6621
opt_cr=
 
6622
case $build_os in
 
6623
mingw*)
 
6624
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6625
  ;;
 
6626
esac
 
6627
 
 
6628
# If we're using GNU nm, then use its standard symbol codes.
 
6629
case `$NM -V 2>&1` in
 
6630
*GNU* | *'with BFD'*)
 
6631
  symcode='[ABCDGIRSTW]' ;;
 
6632
esac
 
6633
 
 
6634
# Try without a prefix undercore, then with it.
 
6635
for ac_symprfx in "" "_"; do
 
6636
 
 
6637
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6638
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6639
 
 
6640
  # Write the raw and C identifiers.
 
6641
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6642
 
 
6643
  # Check to see that the pipe works correctly.
 
6644
  pipe_works=no
 
6645
 
 
6646
  rm -f conftest*
 
6647
  cat > conftest.$ac_ext <<EOF
 
6648
#ifdef __cplusplus
 
6649
extern "C" {
 
6650
#endif
 
6651
char nm_test_var;
 
6652
void nm_test_func(){}
 
6653
#ifdef __cplusplus
 
6654
}
 
6655
#endif
 
6656
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6657
EOF
 
6658
 
 
6659
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6660
  (eval $ac_compile) 2>&5
 
6661
  ac_status=$?
 
6662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6663
  (exit $ac_status); }; then
 
6664
    # Now try to grab the symbols.
 
6665
    nlist=conftest.nm
 
6666
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6667
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6668
  ac_status=$?
 
6669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6670
  (exit $ac_status); } && test -s "$nlist"; then
 
6671
      # Try sorting and uniquifying the output.
 
6672
      if sort "$nlist" | uniq > "$nlist"T; then
 
6673
        mv -f "$nlist"T "$nlist"
 
6674
      else
 
6675
        rm -f "$nlist"T
 
6676
      fi
 
6677
 
 
6678
      # Make sure that we snagged all the symbols we need.
 
6679
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6680
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6681
          cat <<EOF > conftest.$ac_ext
 
6682
#ifdef __cplusplus
 
6683
extern "C" {
 
6684
#endif
 
6685
 
 
6686
EOF
 
6687
          # Now generate the symbol file.
 
6688
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6689
 
 
6690
          cat <<EOF >> conftest.$ac_ext
 
6691
#if defined (__STDC__) && __STDC__
 
6692
# define lt_ptr_t void *
 
6693
#else
 
6694
# define lt_ptr_t char *
 
6695
# define const
 
6696
#endif
 
6697
 
 
6698
/* The mapping between symbol names and symbols. */
 
6699
const struct {
 
6700
  const char *name;
 
6701
  lt_ptr_t address;
 
6702
}
 
6703
lt_preloaded_symbols[] =
 
6704
{
 
6705
EOF
 
6706
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6707
          cat <<\EOF >> conftest.$ac_ext
 
6708
  {0, (lt_ptr_t) 0}
 
6709
};
 
6710
 
 
6711
#ifdef __cplusplus
 
6712
}
 
6713
#endif
 
6714
EOF
 
6715
          # Now try linking the two files.
 
6716
          mv conftest.$ac_objext conftstm.$ac_objext
 
6717
          lt_save_LIBS="$LIBS"
 
6718
          lt_save_CFLAGS="$CFLAGS"
 
6719
          LIBS="conftstm.$ac_objext"
 
6720
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6721
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6722
  (eval $ac_link) 2>&5
 
6723
  ac_status=$?
 
6724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6725
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6726
            pipe_works=yes
 
6727
          fi
 
6728
          LIBS="$lt_save_LIBS"
 
6729
          CFLAGS="$lt_save_CFLAGS"
 
6730
        else
 
6731
          echo "cannot find nm_test_func in $nlist" >&5
 
6732
        fi
 
6733
      else
 
6734
        echo "cannot find nm_test_var in $nlist" >&5
 
6735
      fi
 
6736
    else
 
6737
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6738
    fi
 
6739
  else
 
6740
    echo "$progname: failed program was:" >&5
 
6741
    cat conftest.$ac_ext >&5
 
6742
  fi
 
6743
  rm -f conftest* conftst*
 
6744
 
 
6745
  # Do not use the global_symbol_pipe unless it works.
 
6746
  if test "$pipe_works" = yes; then
 
6747
    break
 
6748
  else
 
6749
    lt_cv_sys_global_symbol_pipe=
 
6750
  fi
 
6751
done
 
6752
 
 
6753
fi
 
6754
 
 
6755
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6756
  lt_cv_sys_global_symbol_to_cdecl=
 
6757
fi
 
6758
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6759
  { echo "$as_me:$LINENO: result: failed" >&5
 
6760
echo "${ECHO_T}failed" >&6; }
 
6761
else
 
6762
  { echo "$as_me:$LINENO: result: ok" >&5
 
6763
echo "${ECHO_T}ok" >&6; }
 
6764
fi
 
6765
 
 
6766
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6767
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6768
if test "${lt_cv_objdir+set}" = set; then
 
6769
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6770
else
 
6771
  rm -f .libs 2>/dev/null
 
6772
mkdir .libs 2>/dev/null
 
6773
if test -d .libs; then
 
6774
  lt_cv_objdir=.libs
 
6775
else
 
6776
  # MS-DOS does not allow filenames that begin with a dot.
 
6777
  lt_cv_objdir=_libs
 
6778
fi
 
6779
rmdir .libs 2>/dev/null
 
6780
fi
 
6781
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6782
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6783
objdir=$lt_cv_objdir
 
6784
 
 
6785
 
 
6786
 
 
6787
 
 
6788
 
 
6789
case $host_os in
 
6790
aix3*)
 
6791
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6792
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6793
  # vanish in a puff of smoke.
 
6794
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6795
    COLLECT_NAMES=
 
6796
    export COLLECT_NAMES
 
6797
  fi
 
6798
  ;;
 
6799
esac
 
6800
 
 
6801
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6802
# metacharacters that are still active within double-quoted strings.
 
6803
Xsed='sed -e 1s/^X//'
 
6804
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6805
 
 
6806
# Same as above, but do not quote variable references.
 
6807
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6808
 
 
6809
# Sed substitution to delay expansion of an escaped shell variable in a
 
6810
# double_quote_subst'ed string.
 
6811
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6812
 
 
6813
# Sed substitution to avoid accidental globbing in evaled expressions
 
6814
no_glob_subst='s/\*/\\\*/g'
 
6815
 
 
6816
# Constants:
 
6817
rm="rm -f"
 
6818
 
 
6819
# Global variables:
 
6820
default_ofile=libtool
 
6821
can_build_shared=yes
 
6822
 
 
6823
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6824
# which needs '.lib').
 
6825
libext=a
 
6826
ltmain="$ac_aux_dir/ltmain.sh"
 
6827
ofile="$default_ofile"
 
6828
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6829
 
 
6830
if test -n "$ac_tool_prefix"; then
 
6831
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6832
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6833
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6835
if test "${ac_cv_prog_AR+set}" = set; then
 
6836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6837
else
 
6838
  if test -n "$AR"; then
 
6839
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6840
else
 
6841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6842
for as_dir in $PATH
 
6843
do
 
6844
  IFS=$as_save_IFS
 
6845
  test -z "$as_dir" && as_dir=.
 
6846
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6847
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6848
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6849
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6850
    break 2
 
6851
  fi
 
6852
done
 
6853
done
 
6854
IFS=$as_save_IFS
 
6855
 
 
6856
fi
 
6857
fi
 
6858
AR=$ac_cv_prog_AR
 
6859
if test -n "$AR"; then
 
6860
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6861
echo "${ECHO_T}$AR" >&6; }
 
6862
else
 
6863
  { echo "$as_me:$LINENO: result: no" >&5
 
6864
echo "${ECHO_T}no" >&6; }
 
6865
fi
 
6866
 
 
6867
 
 
6868
fi
 
6869
if test -z "$ac_cv_prog_AR"; then
 
6870
  ac_ct_AR=$AR
 
6871
  # Extract the first word of "ar", so it can be a program name with args.
 
6872
set dummy ar; ac_word=$2
 
6873
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6875
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6877
else
 
6878
  if test -n "$ac_ct_AR"; then
 
6879
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6880
else
 
6881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6882
for as_dir in $PATH
 
6883
do
 
6884
  IFS=$as_save_IFS
 
6885
  test -z "$as_dir" && as_dir=.
 
6886
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6887
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6888
    ac_cv_prog_ac_ct_AR="ar"
 
6889
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6890
    break 2
 
6891
  fi
 
6892
done
 
6893
done
 
6894
IFS=$as_save_IFS
 
6895
 
 
6896
fi
 
6897
fi
 
6898
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6899
if test -n "$ac_ct_AR"; then
 
6900
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6901
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6902
else
 
6903
  { echo "$as_me:$LINENO: result: no" >&5
 
6904
echo "${ECHO_T}no" >&6; }
 
6905
fi
 
6906
 
 
6907
  if test "x$ac_ct_AR" = x; then
 
6908
    AR="false"
 
6909
  else
 
6910
    case $cross_compiling:$ac_tool_warned in
 
6911
yes:)
 
6912
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6913
whose name does not start with the host triplet.  If you think this
 
6914
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6915
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6916
whose name does not start with the host triplet.  If you think this
 
6917
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6918
ac_tool_warned=yes ;;
 
6919
esac
 
6920
    AR=$ac_ct_AR
 
6921
  fi
 
6922
else
 
6923
  AR="$ac_cv_prog_AR"
 
6924
fi
 
6925
 
 
6926
if test -n "$ac_tool_prefix"; then
 
6927
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6928
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6929
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6930
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6931
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6933
else
 
6934
  if test -n "$RANLIB"; then
 
6935
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6936
else
 
6937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6938
for as_dir in $PATH
 
6939
do
 
6940
  IFS=$as_save_IFS
 
6941
  test -z "$as_dir" && as_dir=.
 
6942
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6943
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6944
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6945
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6946
    break 2
 
6947
  fi
 
6948
done
 
6949
done
 
6950
IFS=$as_save_IFS
 
6951
 
 
6952
fi
 
6953
fi
 
6954
RANLIB=$ac_cv_prog_RANLIB
 
6955
if test -n "$RANLIB"; then
 
6956
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6957
echo "${ECHO_T}$RANLIB" >&6; }
 
6958
else
 
6959
  { echo "$as_me:$LINENO: result: no" >&5
 
6960
echo "${ECHO_T}no" >&6; }
 
6961
fi
 
6962
 
 
6963
 
 
6964
fi
 
6965
if test -z "$ac_cv_prog_RANLIB"; then
 
6966
  ac_ct_RANLIB=$RANLIB
 
6967
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6968
set dummy ranlib; ac_word=$2
 
6969
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6971
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6973
else
 
6974
  if test -n "$ac_ct_RANLIB"; then
 
6975
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6976
else
 
6977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6978
for as_dir in $PATH
 
6979
do
 
6980
  IFS=$as_save_IFS
 
6981
  test -z "$as_dir" && as_dir=.
 
6982
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6983
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6984
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6985
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6986
    break 2
 
6987
  fi
 
6988
done
 
6989
done
 
6990
IFS=$as_save_IFS
 
6991
 
 
6992
fi
 
6993
fi
 
6994
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6995
if test -n "$ac_ct_RANLIB"; then
 
6996
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6997
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6998
else
 
6999
  { echo "$as_me:$LINENO: result: no" >&5
 
7000
echo "${ECHO_T}no" >&6; }
 
7001
fi
 
7002
 
 
7003
  if test "x$ac_ct_RANLIB" = x; then
 
7004
    RANLIB=":"
 
7005
  else
 
7006
    case $cross_compiling:$ac_tool_warned in
 
7007
yes:)
 
7008
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7009
whose name does not start with the host triplet.  If you think this
 
7010
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7011
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7012
whose name does not start with the host triplet.  If you think this
 
7013
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7014
ac_tool_warned=yes ;;
 
7015
esac
 
7016
    RANLIB=$ac_ct_RANLIB
 
7017
  fi
 
7018
else
 
7019
  RANLIB="$ac_cv_prog_RANLIB"
 
7020
fi
 
7021
 
 
7022
if test -n "$ac_tool_prefix"; then
 
7023
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7024
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7025
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7026
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7027
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7029
else
 
7030
  if test -n "$STRIP"; then
 
7031
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7032
else
 
7033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7034
for as_dir in $PATH
 
7035
do
 
7036
  IFS=$as_save_IFS
 
7037
  test -z "$as_dir" && as_dir=.
 
7038
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7039
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7040
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7041
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7042
    break 2
 
7043
  fi
 
7044
done
 
7045
done
 
7046
IFS=$as_save_IFS
 
7047
 
 
7048
fi
 
7049
fi
 
7050
STRIP=$ac_cv_prog_STRIP
 
7051
if test -n "$STRIP"; then
 
7052
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7053
echo "${ECHO_T}$STRIP" >&6; }
 
7054
else
 
7055
  { echo "$as_me:$LINENO: result: no" >&5
 
7056
echo "${ECHO_T}no" >&6; }
 
7057
fi
 
7058
 
 
7059
 
 
7060
fi
 
7061
if test -z "$ac_cv_prog_STRIP"; then
 
7062
  ac_ct_STRIP=$STRIP
 
7063
  # Extract the first word of "strip", so it can be a program name with args.
 
7064
set dummy strip; ac_word=$2
 
7065
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7067
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7069
else
 
7070
  if test -n "$ac_ct_STRIP"; then
 
7071
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7072
else
 
7073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7074
for as_dir in $PATH
 
7075
do
 
7076
  IFS=$as_save_IFS
 
7077
  test -z "$as_dir" && as_dir=.
 
7078
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7079
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7080
    ac_cv_prog_ac_ct_STRIP="strip"
 
7081
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7082
    break 2
 
7083
  fi
 
7084
done
 
7085
done
 
7086
IFS=$as_save_IFS
 
7087
 
 
7088
fi
 
7089
fi
 
7090
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7091
if test -n "$ac_ct_STRIP"; then
 
7092
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7093
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
7094
else
 
7095
  { echo "$as_me:$LINENO: result: no" >&5
 
7096
echo "${ECHO_T}no" >&6; }
 
7097
fi
 
7098
 
 
7099
  if test "x$ac_ct_STRIP" = x; then
 
7100
    STRIP=":"
 
7101
  else
 
7102
    case $cross_compiling:$ac_tool_warned in
 
7103
yes:)
 
7104
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7105
whose name does not start with the host triplet.  If you think this
 
7106
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7107
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7108
whose name does not start with the host triplet.  If you think this
 
7109
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7110
ac_tool_warned=yes ;;
 
7111
esac
 
7112
    STRIP=$ac_ct_STRIP
 
7113
  fi
 
7114
else
 
7115
  STRIP="$ac_cv_prog_STRIP"
 
7116
fi
 
7117
 
 
7118
 
 
7119
old_CC="$CC"
 
7120
old_CFLAGS="$CFLAGS"
 
7121
 
 
7122
# Set sane defaults for various variables
 
7123
test -z "$AR" && AR=ar
 
7124
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7125
test -z "$AS" && AS=as
 
7126
test -z "$CC" && CC=cc
 
7127
test -z "$LTCC" && LTCC=$CC
 
7128
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7129
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7130
test -z "$LD" && LD=ld
 
7131
test -z "$LN_S" && LN_S="ln -s"
 
7132
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7133
test -z "$NM" && NM=nm
 
7134
test -z "$SED" && SED=sed
 
7135
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7136
test -z "$RANLIB" && RANLIB=:
 
7137
test -z "$STRIP" && STRIP=:
 
7138
test -z "$ac_objext" && ac_objext=o
 
7139
 
 
7140
# Determine commands to create old-style static archives.
 
7141
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7142
old_postinstall_cmds='chmod 644 $oldlib'
 
7143
old_postuninstall_cmds=
 
7144
 
 
7145
if test -n "$RANLIB"; then
 
7146
  case $host_os in
 
7147
  openbsd*)
 
7148
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7149
    ;;
 
7150
  *)
 
7151
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7152
    ;;
 
7153
  esac
 
7154
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7155
fi
 
7156
 
 
7157
for cc_temp in $compiler""; do
 
7158
  case $cc_temp in
 
7159
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7160
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7161
    \-*) ;;
 
7162
    *) break;;
 
7163
  esac
 
7164
done
 
7165
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7166
 
 
7167
 
 
7168
# Only perform the check for file, if the check method requires it
 
7169
case $deplibs_check_method in
 
7170
file_magic*)
 
7171
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7172
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7173
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7174
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7176
else
 
7177
  case $MAGIC_CMD in
 
7178
[\\/*] |  ?:[\\/]*)
 
7179
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7180
  ;;
 
7181
*)
 
7182
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7183
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7184
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7185
  for ac_dir in $ac_dummy; do
 
7186
    IFS="$lt_save_ifs"
 
7187
    test -z "$ac_dir" && ac_dir=.
 
7188
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7189
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7190
      if test -n "$file_magic_test_file"; then
 
7191
        case $deplibs_check_method in
 
7192
        "file_magic "*)
 
7193
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7194
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7195
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7196
            $EGREP "$file_magic_regex" > /dev/null; then
 
7197
            :
 
7198
          else
 
7199
            cat <<EOF 1>&2
 
7200
 
 
7201
*** Warning: the command libtool uses to detect shared libraries,
 
7202
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7203
*** The result is that libtool may fail to recognize shared libraries
 
7204
*** as such.  This will affect the creation of libtool libraries that
 
7205
*** depend on shared libraries, but programs linked with such libtool
 
7206
*** libraries will work regardless of this problem.  Nevertheless, you
 
7207
*** may want to report the problem to your system manager and/or to
 
7208
*** bug-libtool@gnu.org
 
7209
 
 
7210
EOF
 
7211
          fi ;;
 
7212
        esac
 
7213
      fi
 
7214
      break
 
7215
    fi
 
7216
  done
 
7217
  IFS="$lt_save_ifs"
 
7218
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7219
  ;;
 
7220
esac
 
7221
fi
 
7222
 
 
7223
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7224
if test -n "$MAGIC_CMD"; then
 
7225
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7226
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7227
else
 
7228
  { echo "$as_me:$LINENO: result: no" >&5
 
7229
echo "${ECHO_T}no" >&6; }
 
7230
fi
 
7231
 
 
7232
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7233
  if test -n "$ac_tool_prefix"; then
 
7234
    { echo "$as_me:$LINENO: checking for file" >&5
 
7235
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7236
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7238
else
 
7239
  case $MAGIC_CMD in
 
7240
[\\/*] |  ?:[\\/]*)
 
7241
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7242
  ;;
 
7243
*)
 
7244
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7245
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7246
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7247
  for ac_dir in $ac_dummy; do
 
7248
    IFS="$lt_save_ifs"
 
7249
    test -z "$ac_dir" && ac_dir=.
 
7250
    if test -f $ac_dir/file; then
 
7251
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7252
      if test -n "$file_magic_test_file"; then
 
7253
        case $deplibs_check_method in
 
7254
        "file_magic "*)
 
7255
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7256
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7257
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7258
            $EGREP "$file_magic_regex" > /dev/null; then
 
7259
            :
 
7260
          else
 
7261
            cat <<EOF 1>&2
 
7262
 
 
7263
*** Warning: the command libtool uses to detect shared libraries,
 
7264
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7265
*** The result is that libtool may fail to recognize shared libraries
 
7266
*** as such.  This will affect the creation of libtool libraries that
 
7267
*** depend on shared libraries, but programs linked with such libtool
 
7268
*** libraries will work regardless of this problem.  Nevertheless, you
 
7269
*** may want to report the problem to your system manager and/or to
 
7270
*** bug-libtool@gnu.org
 
7271
 
 
7272
EOF
 
7273
          fi ;;
 
7274
        esac
 
7275
      fi
 
7276
      break
 
7277
    fi
 
7278
  done
 
7279
  IFS="$lt_save_ifs"
 
7280
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7281
  ;;
 
7282
esac
 
7283
fi
 
7284
 
 
7285
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7286
if test -n "$MAGIC_CMD"; then
 
7287
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7288
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7289
else
 
7290
  { echo "$as_me:$LINENO: result: no" >&5
 
7291
echo "${ECHO_T}no" >&6; }
 
7292
fi
 
7293
 
 
7294
  else
 
7295
    MAGIC_CMD=:
 
7296
  fi
 
7297
fi
 
7298
 
 
7299
  fi
 
7300
  ;;
 
7301
esac
 
7302
 
 
7303
enable_dlopen=yes
 
7304
enable_win32_dll=no
 
7305
 
 
7306
# Check whether --enable-libtool-lock was given.
 
7307
if test "${enable_libtool_lock+set}" = set; then
 
7308
  enableval=$enable_libtool_lock;
 
7309
fi
 
7310
 
 
7311
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7312
 
 
7313
 
 
7314
# Check whether --with-pic was given.
 
7315
if test "${with_pic+set}" = set; then
 
7316
  withval=$with_pic; pic_mode="$withval"
 
7317
else
 
7318
  pic_mode=default
 
7319
fi
 
7320
 
 
7321
test -z "$pic_mode" && pic_mode=default
 
7322
 
 
7323
# Use C for the default configuration in the libtool script
 
7324
tagname=
 
7325
lt_save_CC="$CC"
 
7326
ac_ext=c
 
7327
ac_cpp='$CPP $CPPFLAGS'
 
7328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7331
 
 
7332
 
 
7333
# Source file extension for C test sources.
 
7334
ac_ext=c
 
7335
 
 
7336
# Object file extension for compiled C test sources.
 
7337
objext=o
 
7338
objext=$objext
 
7339
 
 
7340
# Code to be used in simple compile tests
 
7341
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7342
 
 
7343
# Code to be used in simple link tests
 
7344
lt_simple_link_test_code='int main(){return(0);}\n'
 
7345
 
 
7346
 
 
7347
# If no C compiler was specified, use CC.
 
7348
LTCC=${LTCC-"$CC"}
 
7349
 
 
7350
# If no C compiler flags were specified, use CFLAGS.
 
7351
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7352
 
 
7353
# Allow CC to be a program name with arguments.
 
7354
compiler=$CC
 
7355
 
 
7356
 
 
7357
# save warnings/boilerplate of simple test code
 
7358
ac_outfile=conftest.$ac_objext
 
7359
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7360
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7361
_lt_compiler_boilerplate=`cat conftest.err`
 
7362
$rm conftest*
 
7363
 
 
7364
ac_outfile=conftest.$ac_objext
 
7365
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7366
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7367
_lt_linker_boilerplate=`cat conftest.err`
 
7368
$rm conftest*
 
7369
 
 
7370
 
 
7371
 
 
7372
lt_prog_compiler_no_builtin_flag=
 
7373
 
 
7374
if test "$GCC" = yes; then
 
7375
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7376
 
 
7377
 
 
7378
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7379
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7380
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7382
else
 
7383
  lt_cv_prog_compiler_rtti_exceptions=no
 
7384
  ac_outfile=conftest.$ac_objext
 
7385
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7386
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7387
   # Insert the option either (1) after the last *FLAGS variable, or
 
7388
   # (2) before a word containing "conftest.", or (3) at the end.
 
7389
   # Note that $ac_compile itself does not contain backslashes and begins
 
7390
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7391
   # The option is referenced via a variable to avoid confusing sed.
 
7392
   lt_compile=`echo "$ac_compile" | $SED \
 
7393
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7394
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7395
   -e 's:$: $lt_compiler_flag:'`
 
7396
   (eval echo "\"\$as_me:7396: $lt_compile\"" >&5)
 
7397
   (eval "$lt_compile" 2>conftest.err)
 
7398
   ac_status=$?
 
7399
   cat conftest.err >&5
 
7400
   echo "$as_me:7400: \$? = $ac_status" >&5
 
7401
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7402
     # The compiler can only warn and ignore the option if not recognized
 
7403
     # So say no if there are warnings other than the usual output.
 
7404
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7405
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7406
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7407
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7408
     fi
 
7409
   fi
 
7410
   $rm conftest*
 
7411
 
 
7412
fi
 
7413
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7414
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7415
 
 
7416
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7417
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7418
else
 
7419
    :
 
7420
fi
 
7421
 
 
7422
fi
 
7423
 
 
7424
lt_prog_compiler_wl=
 
7425
lt_prog_compiler_pic=
 
7426
lt_prog_compiler_static=
 
7427
 
 
7428
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7429
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7430
 
 
7431
  if test "$GCC" = yes; then
 
7432
    lt_prog_compiler_wl='-Wl,'
 
7433
    lt_prog_compiler_static='-static'
 
7434
 
 
7435
    case $host_os in
 
7436
      aix*)
 
7437
      # All AIX code is PIC.
 
7438
      if test "$host_cpu" = ia64; then
 
7439
        # AIX 5 now supports IA64 processor
 
7440
        lt_prog_compiler_static='-Bstatic'
 
7441
      fi
 
7442
      ;;
 
7443
 
 
7444
    amigaos*)
 
7445
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7446
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7447
      # like `-m68040'.
 
7448
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7449
      ;;
 
7450
 
 
7451
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7452
      # PIC is the default for these OSes.
 
7453
      ;;
 
7454
 
 
7455
    mingw* | pw32* | os2*)
 
7456
      # This hack is so that the source file can tell whether it is being
 
7457
      # built for inclusion in a dll (and should export symbols for example).
 
7458
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7459
      ;;
 
7460
 
 
7461
    darwin* | rhapsody*)
 
7462
      # PIC is the default on this platform
 
7463
      # Common symbols not allowed in MH_DYLIB files
 
7464
      lt_prog_compiler_pic='-fno-common'
 
7465
      ;;
 
7466
 
 
7467
    interix3*)
 
7468
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7469
      # Instead, we relocate shared libraries at runtime.
 
7470
      ;;
 
7471
 
 
7472
    msdosdjgpp*)
 
7473
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7474
      # on systems that don't support them.
 
7475
      lt_prog_compiler_can_build_shared=no
 
7476
      enable_shared=no
 
7477
      ;;
 
7478
 
 
7479
    sysv4*MP*)
 
7480
      if test -d /usr/nec; then
 
7481
        lt_prog_compiler_pic=-Kconform_pic
 
7482
      fi
 
7483
      ;;
 
7484
 
 
7485
    hpux*)
 
7486
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7487
      # not for PA HP-UX.
 
7488
      case $host_cpu in
 
7489
      hppa*64*|ia64*)
 
7490
        # +Z the default
 
7491
        ;;
 
7492
      *)
 
7493
        lt_prog_compiler_pic='-fPIC'
 
7494
        ;;
 
7495
      esac
 
7496
      ;;
 
7497
 
 
7498
    *)
 
7499
      lt_prog_compiler_pic='-fPIC'
 
7500
      ;;
 
7501
    esac
 
7502
  else
 
7503
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7504
    case $host_os in
 
7505
    aix*)
 
7506
      lt_prog_compiler_wl='-Wl,'
 
7507
      if test "$host_cpu" = ia64; then
 
7508
        # AIX 5 now supports IA64 processor
 
7509
        lt_prog_compiler_static='-Bstatic'
 
7510
      else
 
7511
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7512
      fi
 
7513
      ;;
 
7514
      darwin*)
 
7515
        # PIC is the default on this platform
 
7516
        # Common symbols not allowed in MH_DYLIB files
 
7517
       case $cc_basename in
 
7518
         xlc*)
 
7519
         lt_prog_compiler_pic='-qnocommon'
 
7520
         lt_prog_compiler_wl='-Wl,'
 
7521
         ;;
 
7522
       esac
 
7523
       ;;
 
7524
 
 
7525
    mingw* | pw32* | os2*)
 
7526
      # This hack is so that the source file can tell whether it is being
 
7527
      # built for inclusion in a dll (and should export symbols for example).
 
7528
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7529
      ;;
 
7530
 
 
7531
    hpux9* | hpux10* | hpux11*)
 
7532
      lt_prog_compiler_wl='-Wl,'
 
7533
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7534
      # not for PA HP-UX.
 
7535
      case $host_cpu in
 
7536
      hppa*64*|ia64*)
 
7537
        # +Z the default
 
7538
        ;;
 
7539
      *)
 
7540
        lt_prog_compiler_pic='+Z'
 
7541
        ;;
 
7542
      esac
 
7543
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7544
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7545
      ;;
 
7546
 
 
7547
    irix5* | irix6* | nonstopux*)
 
7548
      lt_prog_compiler_wl='-Wl,'
 
7549
      # PIC (with -KPIC) is the default.
 
7550
      lt_prog_compiler_static='-non_shared'
 
7551
      ;;
 
7552
 
 
7553
    newsos6)
 
7554
      lt_prog_compiler_pic='-KPIC'
 
7555
      lt_prog_compiler_static='-Bstatic'
 
7556
      ;;
 
7557
 
 
7558
    linux*)
 
7559
      case $cc_basename in
 
7560
      icc* | ecc*)
 
7561
        lt_prog_compiler_wl='-Wl,'
 
7562
        lt_prog_compiler_pic='-KPIC'
 
7563
        lt_prog_compiler_static='-static'
 
7564
        ;;
 
7565
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7566
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7567
        # which looks to be a dead project)
 
7568
        lt_prog_compiler_wl='-Wl,'
 
7569
        lt_prog_compiler_pic='-fpic'
 
7570
        lt_prog_compiler_static='-Bstatic'
 
7571
        ;;
 
7572
      ccc*)
 
7573
        lt_prog_compiler_wl='-Wl,'
 
7574
        # All Alpha code is PIC.
 
7575
        lt_prog_compiler_static='-non_shared'
 
7576
        ;;
 
7577
      esac
 
7578
      ;;
 
7579
 
 
7580
    osf3* | osf4* | osf5*)
 
7581
      lt_prog_compiler_wl='-Wl,'
 
7582
      # All OSF/1 code is PIC.
 
7583
      lt_prog_compiler_static='-non_shared'
 
7584
      ;;
 
7585
 
 
7586
    solaris*)
 
7587
      lt_prog_compiler_pic='-KPIC'
 
7588
      lt_prog_compiler_static='-Bstatic'
 
7589
      case $cc_basename in
 
7590
      f77* | f90* | f95*)
 
7591
        lt_prog_compiler_wl='-Qoption ld ';;
 
7592
      *)
 
7593
        lt_prog_compiler_wl='-Wl,';;
 
7594
      esac
 
7595
      ;;
 
7596
 
 
7597
    sunos4*)
 
7598
      lt_prog_compiler_wl='-Qoption ld '
 
7599
      lt_prog_compiler_pic='-PIC'
 
7600
      lt_prog_compiler_static='-Bstatic'
 
7601
      ;;
 
7602
 
 
7603
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7604
      lt_prog_compiler_wl='-Wl,'
 
7605
      lt_prog_compiler_pic='-KPIC'
 
7606
      lt_prog_compiler_static='-Bstatic'
 
7607
      ;;
 
7608
 
 
7609
    sysv4*MP*)
 
7610
      if test -d /usr/nec ;then
 
7611
        lt_prog_compiler_pic='-Kconform_pic'
 
7612
        lt_prog_compiler_static='-Bstatic'
 
7613
      fi
 
7614
      ;;
 
7615
 
 
7616
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7617
      lt_prog_compiler_wl='-Wl,'
 
7618
      lt_prog_compiler_pic='-KPIC'
 
7619
      lt_prog_compiler_static='-Bstatic'
 
7620
      ;;
 
7621
 
 
7622
    unicos*)
 
7623
      lt_prog_compiler_wl='-Wl,'
 
7624
      lt_prog_compiler_can_build_shared=no
 
7625
      ;;
 
7626
 
 
7627
    uts4*)
 
7628
      lt_prog_compiler_pic='-pic'
 
7629
      lt_prog_compiler_static='-Bstatic'
 
7630
      ;;
 
7631
 
 
7632
    *)
 
7633
      lt_prog_compiler_can_build_shared=no
 
7634
      ;;
 
7635
    esac
 
7636
  fi
 
7637
 
 
7638
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7639
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7640
 
 
7641
#
 
7642
# Check to make sure the PIC flag actually works.
 
7643
#
 
7644
if test -n "$lt_prog_compiler_pic"; then
 
7645
 
 
7646
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7647
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7648
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7650
else
 
7651
  lt_prog_compiler_pic_works=no
 
7652
  ac_outfile=conftest.$ac_objext
 
7653
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7654
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7655
   # Insert the option either (1) after the last *FLAGS variable, or
 
7656
   # (2) before a word containing "conftest.", or (3) at the end.
 
7657
   # Note that $ac_compile itself does not contain backslashes and begins
 
7658
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7659
   # The option is referenced via a variable to avoid confusing sed.
 
7660
   lt_compile=`echo "$ac_compile" | $SED \
 
7661
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7662
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7663
   -e 's:$: $lt_compiler_flag:'`
 
7664
   (eval echo "\"\$as_me:7664: $lt_compile\"" >&5)
 
7665
   (eval "$lt_compile" 2>conftest.err)
 
7666
   ac_status=$?
 
7667
   cat conftest.err >&5
 
7668
   echo "$as_me:7668: \$? = $ac_status" >&5
 
7669
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7670
     # The compiler can only warn and ignore the option if not recognized
 
7671
     # So say no if there are warnings other than the usual output.
 
7672
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7673
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7674
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7675
       lt_prog_compiler_pic_works=yes
 
7676
     fi
 
7677
   fi
 
7678
   $rm conftest*
 
7679
 
 
7680
fi
 
7681
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7682
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7683
 
 
7684
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7685
    case $lt_prog_compiler_pic in
 
7686
     "" | " "*) ;;
 
7687
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7688
     esac
 
7689
else
 
7690
    lt_prog_compiler_pic=
 
7691
     lt_prog_compiler_can_build_shared=no
 
7692
fi
 
7693
 
 
7694
fi
 
7695
case $host_os in
 
7696
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7697
  *djgpp*)
 
7698
    lt_prog_compiler_pic=
 
7699
    ;;
 
7700
  *)
 
7701
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7702
    ;;
 
7703
esac
 
7704
 
 
7705
#
 
7706
# Check to make sure the static flag actually works.
 
7707
#
 
7708
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7709
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7710
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7711
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7713
else
 
7714
  lt_prog_compiler_static_works=no
 
7715
   save_LDFLAGS="$LDFLAGS"
 
7716
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7717
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7718
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7719
     # The linker can only warn and ignore the option if not recognized
 
7720
     # So say no if there are warnings
 
7721
     if test -s conftest.err; then
 
7722
       # Append any errors to the config.log.
 
7723
       cat conftest.err 1>&5
 
7724
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7725
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7726
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7727
         lt_prog_compiler_static_works=yes
 
7728
       fi
 
7729
     else
 
7730
       lt_prog_compiler_static_works=yes
 
7731
     fi
 
7732
   fi
 
7733
   $rm conftest*
 
7734
   LDFLAGS="$save_LDFLAGS"
 
7735
 
 
7736
fi
 
7737
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7738
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7739
 
 
7740
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7741
    :
 
7742
else
 
7743
    lt_prog_compiler_static=
 
7744
fi
 
7745
 
 
7746
 
 
7747
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7748
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7749
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7751
else
 
7752
  lt_cv_prog_compiler_c_o=no
 
7753
   $rm -r conftest 2>/dev/null
 
7754
   mkdir conftest
 
7755
   cd conftest
 
7756
   mkdir out
 
7757
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7758
 
 
7759
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7760
   # Insert the option either (1) after the last *FLAGS variable, or
 
7761
   # (2) before a word containing "conftest.", or (3) at the end.
 
7762
   # Note that $ac_compile itself does not contain backslashes and begins
 
7763
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7764
   lt_compile=`echo "$ac_compile" | $SED \
 
7765
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7766
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7767
   -e 's:$: $lt_compiler_flag:'`
 
7768
   (eval echo "\"\$as_me:7768: $lt_compile\"" >&5)
 
7769
   (eval "$lt_compile" 2>out/conftest.err)
 
7770
   ac_status=$?
 
7771
   cat out/conftest.err >&5
 
7772
   echo "$as_me:7772: \$? = $ac_status" >&5
 
7773
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7774
   then
 
7775
     # The compiler can only warn and ignore the option if not recognized
 
7776
     # So say no if there are warnings
 
7777
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7778
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7779
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7780
       lt_cv_prog_compiler_c_o=yes
 
7781
     fi
 
7782
   fi
 
7783
   chmod u+w . 2>&5
 
7784
   $rm conftest*
 
7785
   # SGI C++ compiler will create directory out/ii_files/ for
 
7786
   # template instantiation
 
7787
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7788
   $rm out/* && rmdir out
 
7789
   cd ..
 
7790
   rmdir conftest
 
7791
   $rm conftest*
 
7792
 
 
7793
fi
 
7794
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7795
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7796
 
 
7797
 
 
7798
hard_links="nottested"
 
7799
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7800
  # do not overwrite the value of need_locks provided by the user
 
7801
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7802
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7803
  hard_links=yes
 
7804
  $rm conftest*
 
7805
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7806
  touch conftest.a
 
7807
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7808
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7809
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7810
echo "${ECHO_T}$hard_links" >&6; }
 
7811
  if test "$hard_links" = no; then
 
7812
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7813
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7814
    need_locks=warn
 
7815
  fi
 
7816
else
 
7817
  need_locks=no
 
7818
fi
 
7819
 
 
7820
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7821
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
7822
 
 
7823
  runpath_var=
 
7824
  allow_undefined_flag=
 
7825
  enable_shared_with_static_runtimes=no
 
7826
  archive_cmds=
 
7827
  archive_expsym_cmds=
 
7828
  old_archive_From_new_cmds=
 
7829
  old_archive_from_expsyms_cmds=
 
7830
  export_dynamic_flag_spec=
 
7831
  whole_archive_flag_spec=
 
7832
  thread_safe_flag_spec=
 
7833
  hardcode_libdir_flag_spec=
 
7834
  hardcode_libdir_flag_spec_ld=
 
7835
  hardcode_libdir_separator=
 
7836
  hardcode_direct=no
 
7837
  hardcode_minus_L=no
 
7838
  hardcode_shlibpath_var=unsupported
 
7839
  link_all_deplibs=unknown
 
7840
  hardcode_automatic=no
 
7841
  module_cmds=
 
7842
  module_expsym_cmds=
 
7843
  always_export_symbols=no
 
7844
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7845
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7846
  # included in the symbol list
 
7847
  include_expsyms=
 
7848
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7849
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7850
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7851
  # as well as any symbol that contains `d'.
 
7852
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7853
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7854
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7855
  # the symbol is explicitly referenced.  Since portable code cannot
 
7856
  # rely on this symbol name, it's probably fine to never include it in
 
7857
  # preloaded symbol tables.
 
7858
  extract_expsyms_cmds=
 
7859
  # Just being paranoid about ensuring that cc_basename is set.
 
7860
  for cc_temp in $compiler""; do
 
7861
  case $cc_temp in
 
7862
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7863
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7864
    \-*) ;;
 
7865
    *) break;;
 
7866
  esac
 
7867
done
 
7868
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7869
 
 
7870
  case $host_os in
 
7871
  cygwin* | mingw* | pw32*)
 
7872
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7873
    # When not using gcc, we currently assume that we are using
 
7874
    # Microsoft Visual C++.
 
7875
    if test "$GCC" != yes; then
 
7876
      with_gnu_ld=no
 
7877
    fi
 
7878
    ;;
 
7879
  interix*)
 
7880
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7881
    with_gnu_ld=yes
 
7882
    ;;
 
7883
  openbsd*)
 
7884
    with_gnu_ld=no
 
7885
    ;;
 
7886
  esac
 
7887
 
 
7888
  ld_shlibs=yes
 
7889
  if test "$with_gnu_ld" = yes; then
 
7890
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7891
    wlarc='${wl}'
 
7892
 
 
7893
    # Set some defaults for GNU ld with shared library support. These
 
7894
    # are reset later if shared libraries are not supported. Putting them
 
7895
    # here allows them to be overridden if necessary.
 
7896
    runpath_var=LD_RUN_PATH
 
7897
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7898
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7899
    # ancient GNU ld didn't support --whole-archive et. al.
 
7900
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7901
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7902
      else
 
7903
        whole_archive_flag_spec=
 
7904
    fi
 
7905
    supports_anon_versioning=no
 
7906
    case `$LD -v 2>/dev/null` in
 
7907
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7908
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7909
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7910
      *\ 2.11.*) ;; # other 2.11 versions
 
7911
      *) supports_anon_versioning=yes ;;
 
7912
    esac
 
7913
 
 
7914
    # See if GNU ld supports shared libraries.
 
7915
    case $host_os in
 
7916
    aix3* | aix4* | aix5*)
 
7917
      # On AIX/PPC, the GNU linker is very broken
 
7918
      if test "$host_cpu" != ia64; then
 
7919
        ld_shlibs=no
 
7920
        cat <<EOF 1>&2
 
7921
 
 
7922
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7923
*** to be unable to reliably create shared libraries on AIX.
 
7924
*** Therefore, libtool is disabling shared libraries support.  If you
 
7925
*** really care for shared libraries, you may want to modify your PATH
 
7926
*** so that a non-GNU linker is found, and then restart.
 
7927
 
 
7928
EOF
 
7929
      fi
 
7930
      ;;
 
7931
 
 
7932
    amigaos*)
 
7933
      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)'
 
7934
      hardcode_libdir_flag_spec='-L$libdir'
 
7935
      hardcode_minus_L=yes
 
7936
 
 
7937
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7938
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7939
      # to version 4, is to share data among multiple programs linked
 
7940
      # with the same dynamic library.  Since this doesn't match the
 
7941
      # behavior of shared libraries on other platforms, we can't use
 
7942
      # them.
 
7943
      ld_shlibs=no
 
7944
      ;;
 
7945
 
 
7946
    beos*)
 
7947
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7948
        allow_undefined_flag=unsupported
 
7949
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7950
        # support --undefined.  This deserves some investigation.  FIXME
 
7951
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7952
      else
 
7953
        ld_shlibs=no
 
7954
      fi
 
7955
      ;;
 
7956
 
 
7957
    cygwin* | mingw* | pw32*)
 
7958
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7959
      # as there is no search path for DLLs.
 
7960
      hardcode_libdir_flag_spec='-L$libdir'
 
7961
      allow_undefined_flag=unsupported
 
7962
      always_export_symbols=no
 
7963
      enable_shared_with_static_runtimes=yes
 
7964
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7965
 
 
7966
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7967
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7968
        # If the export-symbols file already is a .def file (1st line
 
7969
        # is EXPORTS), use it as is; otherwise, prepend...
 
7970
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7971
          cp $export_symbols $output_objdir/$soname.def;
 
7972
        else
 
7973
          echo EXPORTS > $output_objdir/$soname.def;
 
7974
          cat $export_symbols >> $output_objdir/$soname.def;
 
7975
        fi~
 
7976
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7977
      else
 
7978
        ld_shlibs=no
 
7979
      fi
 
7980
      ;;
 
7981
 
 
7982
    interix3*)
 
7983
      hardcode_direct=no
 
7984
      hardcode_shlibpath_var=no
 
7985
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7986
      export_dynamic_flag_spec='${wl}-E'
 
7987
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7988
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7989
      # default) and relocated if they conflict, which is a slow very memory
 
7990
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7991
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7992
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7993
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7994
      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'
 
7995
      ;;
 
7996
 
 
7997
    linux*)
 
7998
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7999
        tmp_addflag=
 
8000
        case $cc_basename,$host_cpu in
 
8001
        pgcc*)                          # Portland Group C compiler
 
8002
          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'
 
8003
          tmp_addflag=' $pic_flag'
 
8004
          ;;
 
8005
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8006
          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'
 
8007
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8008
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8009
          tmp_addflag=' -i_dynamic' ;;
 
8010
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8011
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8012
        ifc* | ifort*)                  # Intel Fortran compiler
 
8013
          tmp_addflag=' -nofor_main' ;;
 
8014
        esac
 
8015
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8016
 
 
8017
        if test $supports_anon_versioning = yes; then
 
8018
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8019
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8020
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8021
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8022
        fi
 
8023
      else
 
8024
        ld_shlibs=no
 
8025
      fi
 
8026
      ;;
 
8027
 
 
8028
    netbsd*)
 
8029
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8030
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8031
        wlarc=
 
8032
      else
 
8033
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8034
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8035
      fi
 
8036
      ;;
 
8037
 
 
8038
    solaris*)
 
8039
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8040
        ld_shlibs=no
 
8041
        cat <<EOF 1>&2
 
8042
 
 
8043
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8044
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8045
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8046
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8047
*** your PATH or compiler configuration so that the native linker is
 
8048
*** used, and then restart.
 
8049
 
 
8050
EOF
 
8051
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8052
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8053
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8054
      else
 
8055
        ld_shlibs=no
 
8056
      fi
 
8057
      ;;
 
8058
 
 
8059
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8060
      case `$LD -v 2>&1` in
 
8061
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8062
        ld_shlibs=no
 
8063
        cat <<_LT_EOF 1>&2
 
8064
 
 
8065
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8066
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8067
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8068
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8069
*** your PATH or compiler configuration so that the native linker is
 
8070
*** used, and then restart.
 
8071
 
 
8072
_LT_EOF
 
8073
        ;;
 
8074
        *)
 
8075
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8076
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8077
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8078
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8079
          else
 
8080
            ld_shlibs=no
 
8081
          fi
 
8082
        ;;
 
8083
      esac
 
8084
      ;;
 
8085
 
 
8086
    sunos4*)
 
8087
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8088
      wlarc=
 
8089
      hardcode_direct=yes
 
8090
      hardcode_shlibpath_var=no
 
8091
      ;;
 
8092
 
 
8093
    *)
 
8094
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8095
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8096
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8097
      else
 
8098
        ld_shlibs=no
 
8099
      fi
 
8100
      ;;
 
8101
    esac
 
8102
 
 
8103
    if test "$ld_shlibs" = no; then
 
8104
      runpath_var=
 
8105
      hardcode_libdir_flag_spec=
 
8106
      export_dynamic_flag_spec=
 
8107
      whole_archive_flag_spec=
 
8108
    fi
 
8109
  else
 
8110
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8111
    case $host_os in
 
8112
    aix3*)
 
8113
      allow_undefined_flag=unsupported
 
8114
      always_export_symbols=yes
 
8115
      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'
 
8116
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8117
      # are no directories specified by -L.
 
8118
      hardcode_minus_L=yes
 
8119
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8120
        # Neither direct hardcoding nor static linking is supported with a
 
8121
        # broken collect2.
 
8122
        hardcode_direct=unsupported
 
8123
      fi
 
8124
      ;;
 
8125
 
 
8126
    aix4* | aix5*)
 
8127
      if test "$host_cpu" = ia64; then
 
8128
        # On IA64, the linker does run time linking by default, so we don't
 
8129
        # have to do anything special.
 
8130
        aix_use_runtimelinking=no
 
8131
        exp_sym_flag='-Bexport'
 
8132
        no_entry_flag=""
 
8133
      else
 
8134
        # If we're using GNU nm, then we don't want the "-C" option.
 
8135
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8136
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8137
          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'
 
8138
        else
 
8139
          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'
 
8140
        fi
 
8141
        aix_use_runtimelinking=no
 
8142
 
 
8143
        # Test if we are trying to use run time linking or normal
 
8144
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8145
        # need to do runtime linking.
 
8146
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8147
          for ld_flag in $LDFLAGS; do
 
8148
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8149
            aix_use_runtimelinking=yes
 
8150
            break
 
8151
          fi
 
8152
          done
 
8153
          ;;
 
8154
        esac
 
8155
 
 
8156
        exp_sym_flag='-bexport'
 
8157
        no_entry_flag='-bnoentry'
 
8158
      fi
 
8159
 
 
8160
      # When large executables or shared objects are built, AIX ld can
 
8161
      # have problems creating the table of contents.  If linking a library
 
8162
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8163
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8164
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8165
 
 
8166
      archive_cmds=''
 
8167
      hardcode_direct=yes
 
8168
      hardcode_libdir_separator=':'
 
8169
      link_all_deplibs=yes
 
8170
 
 
8171
      if test "$GCC" = yes; then
 
8172
        case $host_os in aix4.[012]|aix4.[012].*)
 
8173
        # We only want to do this on AIX 4.2 and lower, the check
 
8174
        # below for broken collect2 doesn't work under 4.3+
 
8175
          collect2name=`${CC} -print-prog-name=collect2`
 
8176
          if test -f "$collect2name" && \
 
8177
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8178
          then
 
8179
          # We have reworked collect2
 
8180
          hardcode_direct=yes
 
8181
          else
 
8182
          # We have old collect2
 
8183
          hardcode_direct=unsupported
 
8184
          # It fails to find uninstalled libraries when the uninstalled
 
8185
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8186
          # to unsupported forces relinking
 
8187
          hardcode_minus_L=yes
 
8188
          hardcode_libdir_flag_spec='-L$libdir'
 
8189
          hardcode_libdir_separator=
 
8190
          fi
 
8191
          ;;
 
8192
        esac
 
8193
        shared_flag='-shared'
 
8194
        if test "$aix_use_runtimelinking" = yes; then
 
8195
          shared_flag="$shared_flag "'${wl}-G'
 
8196
        fi
 
8197
      else
 
8198
        # not using gcc
 
8199
        if test "$host_cpu" = ia64; then
 
8200
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8201
        # chokes on -Wl,-G. The following line is correct:
 
8202
          shared_flag='-G'
 
8203
        else
 
8204
          if test "$aix_use_runtimelinking" = yes; then
 
8205
            shared_flag='${wl}-G'
 
8206
          else
 
8207
            shared_flag='${wl}-bM:SRE'
 
8208
          fi
 
8209
        fi
 
8210
      fi
 
8211
 
 
8212
      # It seems that -bexpall does not export symbols beginning with
 
8213
      # underscore (_), so it is better to generate a list of symbols to export.
 
8214
      always_export_symbols=yes
 
8215
      if test "$aix_use_runtimelinking" = yes; then
 
8216
        # Warning - without using the other runtime loading flags (-brtl),
 
8217
        # -berok will link without error, but may produce a broken library.
 
8218
        allow_undefined_flag='-berok'
 
8219
       # Determine the default libpath from the value encoded in an empty executable.
 
8220
       cat >conftest.$ac_ext <<_ACEOF
 
8221
/* confdefs.h.  */
 
8222
_ACEOF
 
8223
cat confdefs.h >>conftest.$ac_ext
 
8224
cat >>conftest.$ac_ext <<_ACEOF
 
8225
/* end confdefs.h.  */
 
8226
 
 
8227
int
 
8228
main ()
 
8229
{
 
8230
 
 
8231
  ;
 
8232
  return 0;
 
8233
}
 
8234
_ACEOF
 
8235
rm -f conftest.$ac_objext conftest$ac_exeext
 
8236
if { (ac_try="$ac_link"
 
8237
case "(($ac_try" in
 
8238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8239
  *) ac_try_echo=$ac_try;;
 
8240
esac
 
8241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8242
  (eval "$ac_link") 2>conftest.er1
 
8243
  ac_status=$?
 
8244
  grep -v '^ *+' conftest.er1 >conftest.err
 
8245
  rm -f conftest.er1
 
8246
  cat conftest.err >&5
 
8247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8248
  (exit $ac_status); } &&
 
8249
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8250
  { (case "(($ac_try" in
 
8251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8252
  *) ac_try_echo=$ac_try;;
 
8253
esac
 
8254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8255
  (eval "$ac_try") 2>&5
 
8256
  ac_status=$?
 
8257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8258
  (exit $ac_status); }; } &&
 
8259
         { ac_try='test -s conftest$ac_exeext'
 
8260
  { (case "(($ac_try" in
 
8261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8262
  *) ac_try_echo=$ac_try;;
 
8263
esac
 
8264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8265
  (eval "$ac_try") 2>&5
 
8266
  ac_status=$?
 
8267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8268
  (exit $ac_status); }; }; then
 
8269
 
 
8270
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8271
}'`
 
8272
# Check for a 64-bit object if we didn't find anything.
 
8273
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8274
}'`; fi
 
8275
else
 
8276
  echo "$as_me: failed program was:" >&5
 
8277
sed 's/^/| /' conftest.$ac_ext >&5
 
8278
 
 
8279
 
 
8280
fi
 
8281
 
 
8282
rm -f core conftest.err conftest.$ac_objext \
 
8283
      conftest$ac_exeext conftest.$ac_ext
 
8284
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8285
 
 
8286
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8287
        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"
 
8288
       else
 
8289
        if test "$host_cpu" = ia64; then
 
8290
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8291
          allow_undefined_flag="-z nodefs"
 
8292
          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"
 
8293
        else
 
8294
         # Determine the default libpath from the value encoded in an empty executable.
 
8295
         cat >conftest.$ac_ext <<_ACEOF
 
8296
/* confdefs.h.  */
 
8297
_ACEOF
 
8298
cat confdefs.h >>conftest.$ac_ext
 
8299
cat >>conftest.$ac_ext <<_ACEOF
 
8300
/* end confdefs.h.  */
 
8301
 
 
8302
int
 
8303
main ()
 
8304
{
 
8305
 
 
8306
  ;
 
8307
  return 0;
 
8308
}
 
8309
_ACEOF
 
8310
rm -f conftest.$ac_objext conftest$ac_exeext
 
8311
if { (ac_try="$ac_link"
 
8312
case "(($ac_try" in
 
8313
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8314
  *) ac_try_echo=$ac_try;;
 
8315
esac
 
8316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8317
  (eval "$ac_link") 2>conftest.er1
 
8318
  ac_status=$?
 
8319
  grep -v '^ *+' conftest.er1 >conftest.err
 
8320
  rm -f conftest.er1
 
8321
  cat conftest.err >&5
 
8322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8323
  (exit $ac_status); } &&
 
8324
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8325
  { (case "(($ac_try" in
 
8326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8327
  *) ac_try_echo=$ac_try;;
 
8328
esac
 
8329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8330
  (eval "$ac_try") 2>&5
 
8331
  ac_status=$?
 
8332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8333
  (exit $ac_status); }; } &&
 
8334
         { ac_try='test -s conftest$ac_exeext'
 
8335
  { (case "(($ac_try" in
 
8336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8337
  *) ac_try_echo=$ac_try;;
 
8338
esac
 
8339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8340
  (eval "$ac_try") 2>&5
 
8341
  ac_status=$?
 
8342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8343
  (exit $ac_status); }; }; then
 
8344
 
 
8345
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8346
}'`
 
8347
# Check for a 64-bit object if we didn't find anything.
 
8348
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8349
}'`; fi
 
8350
else
 
8351
  echo "$as_me: failed program was:" >&5
 
8352
sed 's/^/| /' conftest.$ac_ext >&5
 
8353
 
 
8354
 
 
8355
fi
 
8356
 
 
8357
rm -f core conftest.err conftest.$ac_objext \
 
8358
      conftest$ac_exeext conftest.$ac_ext
 
8359
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8360
 
 
8361
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8362
          # Warning - without using the other run time loading flags,
 
8363
          # -berok will link without error, but may produce a broken library.
 
8364
          no_undefined_flag=' ${wl}-bernotok'
 
8365
          allow_undefined_flag=' ${wl}-berok'
 
8366
          # Exported symbols can be pulled into shared objects from archives
 
8367
          whole_archive_flag_spec='$convenience'
 
8368
          archive_cmds_need_lc=yes
 
8369
          # This is similar to how AIX traditionally builds its shared libraries.
 
8370
          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'
 
8371
        fi
 
8372
      fi
 
8373
      ;;
 
8374
 
 
8375
    amigaos*)
 
8376
      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)'
 
8377
      hardcode_libdir_flag_spec='-L$libdir'
 
8378
      hardcode_minus_L=yes
 
8379
      # see comment about different semantics on the GNU ld section
 
8380
      ld_shlibs=no
 
8381
      ;;
 
8382
 
 
8383
    bsdi[45]*)
 
8384
      export_dynamic_flag_spec=-rdynamic
 
8385
      ;;
 
8386
 
 
8387
    cygwin* | mingw* | pw32*)
 
8388
      # When not using gcc, we currently assume that we are using
 
8389
      # Microsoft Visual C++.
 
8390
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8391
      # no search path for DLLs.
 
8392
      hardcode_libdir_flag_spec=' '
 
8393
      allow_undefined_flag=unsupported
 
8394
      # Tell ltmain to make .lib files, not .a files.
 
8395
      libext=lib
 
8396
      # Tell ltmain to make .dll files, not .so files.
 
8397
      shrext_cmds=".dll"
 
8398
      # FIXME: Setting linknames here is a bad hack.
 
8399
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8400
      # The linker will automatically build a .lib file if we build a DLL.
 
8401
      old_archive_From_new_cmds='true'
 
8402
      # FIXME: Should let the user specify the lib program.
 
8403
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8404
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8405
      enable_shared_with_static_runtimes=yes
 
8406
      ;;
 
8407
 
 
8408
    darwin* | rhapsody*)
 
8409
      case $host_os in
 
8410
        rhapsody* | darwin1.[012])
 
8411
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8412
         ;;
 
8413
       *) # Darwin 1.3 on
 
8414
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8415
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8416
         else
 
8417
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8418
             10.[012])
 
8419
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8420
               ;;
 
8421
             10.*)
 
8422
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8423
               ;;
 
8424
           esac
 
8425
         fi
 
8426
         ;;
 
8427
      esac
 
8428
      archive_cmds_need_lc=no
 
8429
      hardcode_direct=no
 
8430
      hardcode_automatic=yes
 
8431
      hardcode_shlibpath_var=unsupported
 
8432
      whole_archive_flag_spec=''
 
8433
      link_all_deplibs=yes
 
8434
    if test "$GCC" = yes ; then
 
8435
        output_verbose_link_cmd='echo'
 
8436
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8437
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8438
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8439
      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}'
 
8440
      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}'
 
8441
    else
 
8442
      case $cc_basename in
 
8443
        xlc*)
 
8444
         output_verbose_link_cmd='echo'
 
8445
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8446
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8447
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8448
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8449
          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}'
 
8450
          ;;
 
8451
       *)
 
8452
         ld_shlibs=no
 
8453
          ;;
 
8454
      esac
 
8455
    fi
 
8456
      ;;
 
8457
 
 
8458
    dgux*)
 
8459
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8460
      hardcode_libdir_flag_spec='-L$libdir'
 
8461
      hardcode_shlibpath_var=no
 
8462
      ;;
 
8463
 
 
8464
    freebsd1*)
 
8465
      ld_shlibs=no
 
8466
      ;;
 
8467
 
 
8468
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8469
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8470
    # does not break anything, and helps significantly (at the cost of a little
 
8471
    # extra space).
 
8472
    freebsd2.2*)
 
8473
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8474
      hardcode_libdir_flag_spec='-R$libdir'
 
8475
      hardcode_direct=yes
 
8476
      hardcode_shlibpath_var=no
 
8477
      ;;
 
8478
 
 
8479
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8480
    freebsd2*)
 
8481
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8482
      hardcode_direct=yes
 
8483
      hardcode_minus_L=yes
 
8484
      hardcode_shlibpath_var=no
 
8485
      ;;
 
8486
 
 
8487
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8488
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
8489
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8490
      hardcode_libdir_flag_spec='-R$libdir'
 
8491
      hardcode_direct=yes
 
8492
      hardcode_shlibpath_var=no
 
8493
      ;;
 
8494
 
 
8495
    hpux9*)
 
8496
      if test "$GCC" = yes; then
 
8497
        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'
 
8498
      else
 
8499
        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'
 
8500
      fi
 
8501
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8502
      hardcode_libdir_separator=:
 
8503
      hardcode_direct=yes
 
8504
 
 
8505
      # hardcode_minus_L: Not really in the search PATH,
 
8506
      # but as the default location of the library.
 
8507
      hardcode_minus_L=yes
 
8508
      export_dynamic_flag_spec='${wl}-E'
 
8509
      ;;
 
8510
 
 
8511
    hpux10*)
 
8512
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8513
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8514
      else
 
8515
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8516
      fi
 
8517
      if test "$with_gnu_ld" = no; then
 
8518
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8519
        hardcode_libdir_separator=:
 
8520
 
 
8521
        hardcode_direct=yes
 
8522
        export_dynamic_flag_spec='${wl}-E'
 
8523
 
 
8524
        # hardcode_minus_L: Not really in the search PATH,
 
8525
        # but as the default location of the library.
 
8526
        hardcode_minus_L=yes
 
8527
      fi
 
8528
      ;;
 
8529
 
 
8530
    hpux11*)
 
8531
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8532
        case $host_cpu in
 
8533
        hppa*64*)
 
8534
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8535
          ;;
 
8536
        ia64*)
 
8537
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8538
          ;;
 
8539
        *)
 
8540
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8541
          ;;
 
8542
        esac
 
8543
      else
 
8544
        case $host_cpu in
 
8545
        hppa*64*)
 
8546
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8547
          ;;
 
8548
        ia64*)
 
8549
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8550
          ;;
 
8551
        *)
 
8552
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8553
          ;;
 
8554
        esac
 
8555
      fi
 
8556
      if test "$with_gnu_ld" = no; then
 
8557
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8558
        hardcode_libdir_separator=:
 
8559
 
 
8560
        case $host_cpu in
 
8561
        hppa*64*|ia64*)
 
8562
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8563
          hardcode_direct=no
 
8564
          hardcode_shlibpath_var=no
 
8565
          ;;
 
8566
        *)
 
8567
          hardcode_direct=yes
 
8568
          export_dynamic_flag_spec='${wl}-E'
 
8569
 
 
8570
          # hardcode_minus_L: Not really in the search PATH,
 
8571
          # but as the default location of the library.
 
8572
          hardcode_minus_L=yes
 
8573
          ;;
 
8574
        esac
 
8575
      fi
 
8576
      ;;
 
8577
 
 
8578
    irix5* | irix6* | nonstopux*)
 
8579
      if test "$GCC" = yes; then
 
8580
        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'
 
8581
      else
 
8582
        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'
 
8583
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8584
      fi
 
8585
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8586
      hardcode_libdir_separator=:
 
8587
      link_all_deplibs=yes
 
8588
      ;;
 
8589
 
 
8590
    netbsd*)
 
8591
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8592
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8593
      else
 
8594
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8595
      fi
 
8596
      hardcode_libdir_flag_spec='-R$libdir'
 
8597
      hardcode_direct=yes
 
8598
      hardcode_shlibpath_var=no
 
8599
      ;;
 
8600
 
 
8601
    newsos6)
 
8602
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8603
      hardcode_direct=yes
 
8604
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8605
      hardcode_libdir_separator=:
 
8606
      hardcode_shlibpath_var=no
 
8607
      ;;
 
8608
 
 
8609
    openbsd*)
 
8610
      hardcode_direct=yes
 
8611
      hardcode_shlibpath_var=no
 
8612
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8613
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8614
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8615
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8616
        export_dynamic_flag_spec='${wl}-E'
 
8617
      else
 
8618
       case $host_os in
 
8619
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8620
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8621
           hardcode_libdir_flag_spec='-R$libdir'
 
8622
           ;;
 
8623
         *)
 
8624
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8625
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8626
           ;;
 
8627
       esac
 
8628
      fi
 
8629
      ;;
 
8630
 
 
8631
    os2*)
 
8632
      hardcode_libdir_flag_spec='-L$libdir'
 
8633
      hardcode_minus_L=yes
 
8634
      allow_undefined_flag=unsupported
 
8635
      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'
 
8636
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8637
      ;;
 
8638
 
 
8639
    osf3*)
 
8640
      if test "$GCC" = yes; then
 
8641
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8642
        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'
 
8643
      else
 
8644
        allow_undefined_flag=' -expect_unresolved \*'
 
8645
        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'
 
8646
      fi
 
8647
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8648
      hardcode_libdir_separator=:
 
8649
      ;;
 
8650
 
 
8651
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8652
      if test "$GCC" = yes; then
 
8653
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8654
        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'
 
8655
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8656
      else
 
8657
        allow_undefined_flag=' -expect_unresolved \*'
 
8658
        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'
 
8659
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8660
        $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'
 
8661
 
 
8662
        # Both c and cxx compiler support -rpath directly
 
8663
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8664
      fi
 
8665
      hardcode_libdir_separator=:
 
8666
      ;;
 
8667
 
 
8668
    solaris*)
 
8669
      no_undefined_flag=' -z text'
 
8670
      if test "$GCC" = yes; then
 
8671
        wlarc='${wl}'
 
8672
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8673
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8674
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8675
      else
 
8676
        wlarc=''
 
8677
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8678
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8679
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8680
      fi
 
8681
      hardcode_libdir_flag_spec='-R$libdir'
 
8682
      hardcode_shlibpath_var=no
 
8683
      case $host_os in
 
8684
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8685
      *)
 
8686
        # The compiler driver will combine linker options so we
 
8687
        # cannot just pass the convience library names through
 
8688
        # without $wl, iff we do not link with $LD.
 
8689
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8690
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8691
        case $wlarc in
 
8692
        '')
 
8693
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8694
        *)
 
8695
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
8696
        esac ;;
 
8697
      esac
 
8698
      link_all_deplibs=yes
 
8699
      ;;
 
8700
 
 
8701
    sunos4*)
 
8702
      if test "x$host_vendor" = xsequent; then
 
8703
        # Use $CC to link under sequent, because it throws in some extra .o
 
8704
        # files that make .init and .fini sections work.
 
8705
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8706
      else
 
8707
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8708
      fi
 
8709
      hardcode_libdir_flag_spec='-L$libdir'
 
8710
      hardcode_direct=yes
 
8711
      hardcode_minus_L=yes
 
8712
      hardcode_shlibpath_var=no
 
8713
      ;;
 
8714
 
 
8715
    sysv4)
 
8716
      case $host_vendor in
 
8717
        sni)
 
8718
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8719
          hardcode_direct=yes # is this really true???
 
8720
        ;;
 
8721
        siemens)
 
8722
          ## LD is ld it makes a PLAMLIB
 
8723
          ## CC just makes a GrossModule.
 
8724
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8725
          reload_cmds='$CC -r -o $output$reload_objs'
 
8726
          hardcode_direct=no
 
8727
        ;;
 
8728
        motorola)
 
8729
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8730
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8731
        ;;
 
8732
      esac
 
8733
      runpath_var='LD_RUN_PATH'
 
8734
      hardcode_shlibpath_var=no
 
8735
      ;;
 
8736
 
 
8737
    sysv4.3*)
 
8738
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8739
      hardcode_shlibpath_var=no
 
8740
      export_dynamic_flag_spec='-Bexport'
 
8741
      ;;
 
8742
 
 
8743
    sysv4*MP*)
 
8744
      if test -d /usr/nec; then
 
8745
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8746
        hardcode_shlibpath_var=no
 
8747
        runpath_var=LD_RUN_PATH
 
8748
        hardcode_runpath_var=yes
 
8749
        ld_shlibs=yes
 
8750
      fi
 
8751
      ;;
 
8752
 
 
8753
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8754
      no_undefined_flag='${wl}-z,text'
 
8755
      archive_cmds_need_lc=no
 
8756
      hardcode_shlibpath_var=no
 
8757
      runpath_var='LD_RUN_PATH'
 
8758
 
 
8759
      if test "$GCC" = yes; then
 
8760
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8761
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8762
      else
 
8763
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8764
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8765
      fi
 
8766
      ;;
 
8767
 
 
8768
    sysv5* | sco3.2v5* | sco5v6*)
 
8769
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8770
      # link with -lc, and that would cause any symbols used from libc to
 
8771
      # always be unresolved, which means just about no library would
 
8772
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8773
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8774
      # as -z defs.
 
8775
      no_undefined_flag='${wl}-z,text'
 
8776
      allow_undefined_flag='${wl}-z,nodefs'
 
8777
      archive_cmds_need_lc=no
 
8778
      hardcode_shlibpath_var=no
 
8779
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8780
      hardcode_libdir_separator=':'
 
8781
      link_all_deplibs=yes
 
8782
      export_dynamic_flag_spec='${wl}-Bexport'
 
8783
      runpath_var='LD_RUN_PATH'
 
8784
 
 
8785
      if test "$GCC" = yes; then
 
8786
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8787
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8788
      else
 
8789
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8790
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8791
      fi
 
8792
      ;;
 
8793
 
 
8794
    uts4*)
 
8795
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8796
      hardcode_libdir_flag_spec='-L$libdir'
 
8797
      hardcode_shlibpath_var=no
 
8798
      ;;
 
8799
 
 
8800
    *)
 
8801
      ld_shlibs=no
 
8802
      ;;
 
8803
    esac
 
8804
  fi
 
8805
 
 
8806
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8807
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8808
test "$ld_shlibs" = no && can_build_shared=no
 
8809
 
 
8810
#
 
8811
# Do we need to explicitly link libc?
 
8812
#
 
8813
case "x$archive_cmds_need_lc" in
 
8814
x|xyes)
 
8815
  # Assume -lc should be added
 
8816
  archive_cmds_need_lc=yes
 
8817
 
 
8818
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8819
    case $archive_cmds in
 
8820
    *'~'*)
 
8821
      # FIXME: we may have to deal with multi-command sequences.
 
8822
      ;;
 
8823
    '$CC '*)
 
8824
      # Test whether the compiler implicitly links with -lc since on some
 
8825
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8826
      # to ld, don't add -lc before -lgcc.
 
8827
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8828
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8829
      $rm conftest*
 
8830
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8831
 
 
8832
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8833
  (eval $ac_compile) 2>&5
 
8834
  ac_status=$?
 
8835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8836
  (exit $ac_status); } 2>conftest.err; then
 
8837
        soname=conftest
 
8838
        lib=conftest
 
8839
        libobjs=conftest.$ac_objext
 
8840
        deplibs=
 
8841
        wl=$lt_prog_compiler_wl
 
8842
        pic_flag=$lt_prog_compiler_pic
 
8843
        compiler_flags=-v
 
8844
        linker_flags=-v
 
8845
        verstring=
 
8846
        output_objdir=.
 
8847
        libname=conftest
 
8848
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8849
        allow_undefined_flag=
 
8850
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8851
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8852
  ac_status=$?
 
8853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8854
  (exit $ac_status); }
 
8855
        then
 
8856
          archive_cmds_need_lc=no
 
8857
        else
 
8858
          archive_cmds_need_lc=yes
 
8859
        fi
 
8860
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8861
      else
 
8862
        cat conftest.err 1>&5
 
8863
      fi
 
8864
      $rm conftest*
 
8865
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8866
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
8867
      ;;
 
8868
    esac
 
8869
  fi
 
8870
  ;;
 
8871
esac
 
8872
 
 
8873
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8874
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8875
library_names_spec=
 
8876
libname_spec='lib$name'
 
8877
soname_spec=
 
8878
shrext_cmds=".so"
 
8879
postinstall_cmds=
 
8880
postuninstall_cmds=
 
8881
finish_cmds=
 
8882
finish_eval=
 
8883
shlibpath_var=
 
8884
shlibpath_overrides_runpath=unknown
 
8885
version_type=none
 
8886
dynamic_linker="$host_os ld.so"
 
8887
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8888
if test "$GCC" = yes; then
 
8889
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8890
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8891
    # if the path contains ";" then we assume it to be the separator
 
8892
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8893
    # assumed that no part of a normal pathname contains ";" but that should
 
8894
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8895
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8896
  else
 
8897
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8898
  fi
 
8899
else
 
8900
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8901
fi
 
8902
need_lib_prefix=unknown
 
8903
hardcode_into_libs=no
 
8904
 
 
8905
# when you set need_version to no, make sure it does not cause -set_version
 
8906
# flags to be left without arguments
 
8907
need_version=unknown
 
8908
 
 
8909
case $host_os in
 
8910
aix3*)
 
8911
  version_type=linux
 
8912
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8913
  shlibpath_var=LIBPATH
 
8914
 
 
8915
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8916
  soname_spec='${libname}${release}${shared_ext}$major'
 
8917
  ;;
 
8918
 
 
8919
aix4* | aix5*)
 
8920
  version_type=linux
 
8921
  need_lib_prefix=no
 
8922
  need_version=no
 
8923
  hardcode_into_libs=yes
 
8924
  if test "$host_cpu" = ia64; then
 
8925
    # AIX 5 supports IA64
 
8926
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8927
    shlibpath_var=LD_LIBRARY_PATH
 
8928
  else
 
8929
    # With GCC up to 2.95.x, collect2 would create an import file
 
8930
    # for dependence libraries.  The import file would start with
 
8931
    # the line `#! .'.  This would cause the generated library to
 
8932
    # depend on `.', always an invalid library.  This was fixed in
 
8933
    # development snapshots of GCC prior to 3.0.
 
8934
    case $host_os in
 
8935
      aix4 | aix4.[01] | aix4.[01].*)
 
8936
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8937
           echo ' yes '
 
8938
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8939
        :
 
8940
      else
 
8941
        can_build_shared=no
 
8942
      fi
 
8943
      ;;
 
8944
    esac
 
8945
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8946
    # soname into executable. Probably we can add versioning support to
 
8947
    # collect2, so additional links can be useful in future.
 
8948
    if test "$aix_use_runtimelinking" = yes; then
 
8949
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8950
      # instead of lib<name>.a to let people know that these are not
 
8951
      # typical AIX shared libraries.
 
8952
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8953
    else
 
8954
      # We preserve .a as extension for shared libraries through AIX4.2
 
8955
      # and later when we are not doing run time linking.
 
8956
      library_names_spec='${libname}${release}.a $libname.a'
 
8957
      soname_spec='${libname}${release}${shared_ext}$major'
 
8958
    fi
 
8959
    shlibpath_var=LIBPATH
 
8960
  fi
 
8961
  ;;
 
8962
 
 
8963
amigaos*)
 
8964
  library_names_spec='$libname.ixlibrary $libname.a'
 
8965
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8966
  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'
 
8967
  ;;
 
8968
 
 
8969
beos*)
 
8970
  library_names_spec='${libname}${shared_ext}'
 
8971
  dynamic_linker="$host_os ld.so"
 
8972
  shlibpath_var=LIBRARY_PATH
 
8973
  ;;
 
8974
 
 
8975
bsdi[45]*)
 
8976
  version_type=linux
 
8977
  need_version=no
 
8978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8979
  soname_spec='${libname}${release}${shared_ext}$major'
 
8980
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8981
  shlibpath_var=LD_LIBRARY_PATH
 
8982
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8983
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8984
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8985
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8986
  # libtool to hard-code these into programs
 
8987
  ;;
 
8988
 
 
8989
cygwin* | mingw* | pw32*)
 
8990
  version_type=windows
 
8991
  shrext_cmds=".dll"
 
8992
  need_version=no
 
8993
  need_lib_prefix=no
 
8994
 
 
8995
  case $GCC,$host_os in
 
8996
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8997
    library_names_spec='$libname.dll.a'
 
8998
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8999
    postinstall_cmds='base_file=`basename \${file}`~
 
9000
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9001
      dldir=$destdir/`dirname \$dlpath`~
 
9002
      test -d \$dldir || mkdir -p \$dldir~
 
9003
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9004
      chmod a+x \$dldir/$dlname'
 
9005
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9006
      dlpath=$dir/\$dldll~
 
9007
       $rm \$dlpath'
 
9008
    shlibpath_overrides_runpath=yes
 
9009
 
 
9010
    case $host_os in
 
9011
    cygwin*)
 
9012
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9013
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9014
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9015
      ;;
 
9016
    mingw*)
 
9017
      # MinGW DLLs use traditional 'lib' prefix
 
9018
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9019
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9020
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9021
        # It is most probably a Windows format PATH printed by
 
9022
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9023
        # path with ; separators, and with drive letters. We can handle the
 
9024
        # drive letters (cygwin fileutils understands them), so leave them,
 
9025
        # especially as we might pass files found there to a mingw objdump,
 
9026
        # which wouldn't understand a cygwinified path. Ahh.
 
9027
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9028
      else
 
9029
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9030
      fi
 
9031
      ;;
 
9032
    pw32*)
 
9033
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9034
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9035
      ;;
 
9036
    esac
 
9037
    ;;
 
9038
 
 
9039
  *)
 
9040
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9041
    ;;
 
9042
  esac
 
9043
  dynamic_linker='Win32 ld.exe'
 
9044
  # FIXME: first we should search . and the directory the executable is in
 
9045
  shlibpath_var=PATH
 
9046
  ;;
 
9047
 
 
9048
darwin* | rhapsody*)
 
9049
  dynamic_linker="$host_os dyld"
 
9050
  version_type=darwin
 
9051
  need_lib_prefix=no
 
9052
  need_version=no
 
9053
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9054
  soname_spec='${libname}${release}${major}$shared_ext'
 
9055
  shlibpath_overrides_runpath=yes
 
9056
  shlibpath_var=DYLD_LIBRARY_PATH
 
9057
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9058
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9059
  if test "$GCC" = yes; then
 
9060
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
9061
  else
 
9062
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9063
  fi
 
9064
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9065
  ;;
 
9066
 
 
9067
dgux*)
 
9068
  version_type=linux
 
9069
  need_lib_prefix=no
 
9070
  need_version=no
 
9071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9072
  soname_spec='${libname}${release}${shared_ext}$major'
 
9073
  shlibpath_var=LD_LIBRARY_PATH
 
9074
  ;;
 
9075
 
 
9076
freebsd1*)
 
9077
  dynamic_linker=no
 
9078
  ;;
 
9079
 
 
9080
kfreebsd*-gnu)
 
9081
  version_type=linux
 
9082
  need_lib_prefix=no
 
9083
  need_version=no
 
9084
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9085
  soname_spec='${libname}${release}${shared_ext}$major'
 
9086
  shlibpath_var=LD_LIBRARY_PATH
 
9087
  shlibpath_overrides_runpath=no
 
9088
  hardcode_into_libs=yes
 
9089
  dynamic_linker='GNU ld.so'
 
9090
  ;;
 
9091
 
 
9092
freebsd* | dragonfly*)
 
9093
  # DragonFly does not have aout.  When/if they implement a new
 
9094
  # versioning mechanism, adjust this.
 
9095
  if test -x /usr/bin/objformat; then
 
9096
    objformat=`/usr/bin/objformat`
 
9097
  else
 
9098
    case $host_os in
 
9099
    freebsd[123]*) objformat=aout ;;
 
9100
    *) objformat=elf ;;
 
9101
    esac
 
9102
  fi
 
9103
  version_type=freebsd-$objformat
 
9104
  case $version_type in
 
9105
    freebsd-elf*)
 
9106
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9107
      need_version=no
 
9108
      need_lib_prefix=no
 
9109
      ;;
 
9110
    freebsd-*)
 
9111
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9112
      need_version=yes
 
9113
      ;;
 
9114
  esac
 
9115
  shlibpath_var=LD_LIBRARY_PATH
 
9116
  case $host_os in
 
9117
  freebsd2*)
 
9118
    shlibpath_overrides_runpath=yes
 
9119
    ;;
 
9120
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9121
    shlibpath_overrides_runpath=yes
 
9122
    hardcode_into_libs=yes
 
9123
    ;;
 
9124
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9125
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9126
    shlibpath_overrides_runpath=no
 
9127
    hardcode_into_libs=yes
 
9128
    ;;
 
9129
  freebsd*) # from 4.6 on
 
9130
    shlibpath_overrides_runpath=yes
 
9131
    hardcode_into_libs=yes
 
9132
    ;;
 
9133
  esac
 
9134
  ;;
 
9135
 
 
9136
gnu*)
 
9137
  version_type=linux
 
9138
  need_lib_prefix=no
 
9139
  need_version=no
 
9140
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9141
  soname_spec='${libname}${release}${shared_ext}$major'
 
9142
  shlibpath_var=LD_LIBRARY_PATH
 
9143
  hardcode_into_libs=yes
 
9144
  ;;
 
9145
 
 
9146
hpux9* | hpux10* | hpux11*)
 
9147
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9148
  # link against other versions.
 
9149
  version_type=sunos
 
9150
  need_lib_prefix=no
 
9151
  need_version=no
 
9152
  case $host_cpu in
 
9153
  ia64*)
 
9154
    shrext_cmds='.so'
 
9155
    hardcode_into_libs=yes
 
9156
    dynamic_linker="$host_os dld.so"
 
9157
    shlibpath_var=LD_LIBRARY_PATH
 
9158
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9159
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9160
    soname_spec='${libname}${release}${shared_ext}$major'
 
9161
    if test "X$HPUX_IA64_MODE" = X32; then
 
9162
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9163
    else
 
9164
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9165
    fi
 
9166
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9167
    ;;
 
9168
   hppa*64*)
 
9169
     shrext_cmds='.sl'
 
9170
     hardcode_into_libs=yes
 
9171
     dynamic_linker="$host_os dld.sl"
 
9172
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9173
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9174
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9175
     soname_spec='${libname}${release}${shared_ext}$major'
 
9176
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9177
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9178
     ;;
 
9179
   *)
 
9180
    shrext_cmds='.sl'
 
9181
    dynamic_linker="$host_os dld.sl"
 
9182
    shlibpath_var=SHLIB_PATH
 
9183
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9184
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9185
    soname_spec='${libname}${release}${shared_ext}$major'
 
9186
    ;;
 
9187
  esac
 
9188
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9189
  postinstall_cmds='chmod 555 $lib'
 
9190
  ;;
 
9191
 
 
9192
interix3*)
 
9193
  version_type=linux
 
9194
  need_lib_prefix=no
 
9195
  need_version=no
 
9196
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9197
  soname_spec='${libname}${release}${shared_ext}$major'
 
9198
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9199
  shlibpath_var=LD_LIBRARY_PATH
 
9200
  shlibpath_overrides_runpath=no
 
9201
  hardcode_into_libs=yes
 
9202
  ;;
 
9203
 
 
9204
irix5* | irix6* | nonstopux*)
 
9205
  case $host_os in
 
9206
    nonstopux*) version_type=nonstopux ;;
 
9207
    *)
 
9208
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9209
                version_type=linux
 
9210
        else
 
9211
                version_type=irix
 
9212
        fi ;;
 
9213
  esac
 
9214
  need_lib_prefix=no
 
9215
  need_version=no
 
9216
  soname_spec='${libname}${release}${shared_ext}$major'
 
9217
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9218
  case $host_os in
 
9219
  irix5* | nonstopux*)
 
9220
    libsuff= shlibsuff=
 
9221
    ;;
 
9222
  *)
 
9223
    case $LD in # libtool.m4 will add one of these switches to LD
 
9224
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9225
      libsuff= shlibsuff= libmagic=32-bit;;
 
9226
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9227
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9228
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9229
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9230
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9231
    esac
 
9232
    ;;
 
9233
  esac
 
9234
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9235
  shlibpath_overrides_runpath=no
 
9236
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9237
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9238
  hardcode_into_libs=yes
 
9239
  ;;
 
9240
 
 
9241
# No shared lib support for Linux oldld, aout, or coff.
 
9242
linux*oldld* | linux*aout* | linux*coff*)
 
9243
  dynamic_linker=no
 
9244
  ;;
 
9245
 
 
9246
# This must be Linux ELF.
 
9247
linux*)
 
9248
  version_type=linux
 
9249
  need_lib_prefix=no
 
9250
  need_version=no
 
9251
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9252
  soname_spec='${libname}${release}${shared_ext}$major'
 
9253
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9254
  shlibpath_var=LD_LIBRARY_PATH
 
9255
  shlibpath_overrides_runpath=no
 
9256
  # This implies no fast_install, which is unacceptable.
 
9257
  # Some rework will be needed to allow for fast_install
 
9258
  # before this can be enabled.
 
9259
  hardcode_into_libs=yes
 
9260
 
 
9261
  # Append ld.so.conf contents to the search path
 
9262
  if test -f /etc/ld.so.conf; then
 
9263
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9264
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9265
  fi
 
9266
 
 
9267
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9268
  # powerpc, because MkLinux only supported shared libraries with the
 
9269
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9270
  # most powerpc-linux boxes support dynamic linking these days and
 
9271
  # people can always --disable-shared, the test was removed, and we
 
9272
  # assume the GNU/Linux dynamic linker is in use.
 
9273
  dynamic_linker='GNU/Linux ld.so'
 
9274
  ;;
 
9275
 
 
9276
knetbsd*-gnu)
 
9277
  version_type=linux
 
9278
  need_lib_prefix=no
 
9279
  need_version=no
 
9280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9281
  soname_spec='${libname}${release}${shared_ext}$major'
 
9282
  shlibpath_var=LD_LIBRARY_PATH
 
9283
  shlibpath_overrides_runpath=no
 
9284
  hardcode_into_libs=yes
 
9285
  dynamic_linker='GNU ld.so'
 
9286
  ;;
 
9287
 
 
9288
netbsd*)
 
9289
  version_type=sunos
 
9290
  need_lib_prefix=no
 
9291
  need_version=no
 
9292
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9293
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9294
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9295
    dynamic_linker='NetBSD (a.out) ld.so'
 
9296
  else
 
9297
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9298
    soname_spec='${libname}${release}${shared_ext}$major'
 
9299
    dynamic_linker='NetBSD ld.elf_so'
 
9300
  fi
 
9301
  shlibpath_var=LD_LIBRARY_PATH
 
9302
  shlibpath_overrides_runpath=yes
 
9303
  hardcode_into_libs=yes
 
9304
  ;;
 
9305
 
 
9306
newsos6)
 
9307
  version_type=linux
 
9308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9309
  shlibpath_var=LD_LIBRARY_PATH
 
9310
  shlibpath_overrides_runpath=yes
 
9311
  ;;
 
9312
 
 
9313
nto-qnx*)
 
9314
  version_type=linux
 
9315
  need_lib_prefix=no
 
9316
  need_version=no
 
9317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9318
  soname_spec='${libname}${release}${shared_ext}$major'
 
9319
  shlibpath_var=LD_LIBRARY_PATH
 
9320
  shlibpath_overrides_runpath=yes
 
9321
  ;;
 
9322
 
 
9323
openbsd*)
 
9324
  version_type=sunos
 
9325
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9326
  need_lib_prefix=no
 
9327
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9328
  case $host_os in
 
9329
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9330
    *)                         need_version=no  ;;
 
9331
  esac
 
9332
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9333
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9334
  shlibpath_var=LD_LIBRARY_PATH
 
9335
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9336
    case $host_os in
 
9337
      openbsd2.[89] | openbsd2.[89].*)
 
9338
        shlibpath_overrides_runpath=no
 
9339
        ;;
 
9340
      *)
 
9341
        shlibpath_overrides_runpath=yes
 
9342
        ;;
 
9343
      esac
 
9344
  else
 
9345
    shlibpath_overrides_runpath=yes
 
9346
  fi
 
9347
  ;;
 
9348
 
 
9349
os2*)
 
9350
  libname_spec='$name'
 
9351
  shrext_cmds=".dll"
 
9352
  need_lib_prefix=no
 
9353
  library_names_spec='$libname${shared_ext} $libname.a'
 
9354
  dynamic_linker='OS/2 ld.exe'
 
9355
  shlibpath_var=LIBPATH
 
9356
  ;;
 
9357
 
 
9358
osf3* | osf4* | osf5*)
 
9359
  version_type=osf
 
9360
  need_lib_prefix=no
 
9361
  need_version=no
 
9362
  soname_spec='${libname}${release}${shared_ext}$major'
 
9363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9364
  shlibpath_var=LD_LIBRARY_PATH
 
9365
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9366
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9367
  ;;
 
9368
 
 
9369
solaris*)
 
9370
  version_type=linux
 
9371
  need_lib_prefix=no
 
9372
  need_version=no
 
9373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9374
  soname_spec='${libname}${release}${shared_ext}$major'
 
9375
  shlibpath_var=LD_LIBRARY_PATH
 
9376
  shlibpath_overrides_runpath=yes
 
9377
  hardcode_into_libs=yes
 
9378
  # ldd complains unless libraries are executable
 
9379
  postinstall_cmds='chmod +x $lib'
 
9380
  ;;
 
9381
 
 
9382
sunos4*)
 
9383
  version_type=sunos
 
9384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9385
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9386
  shlibpath_var=LD_LIBRARY_PATH
 
9387
  shlibpath_overrides_runpath=yes
 
9388
  if test "$with_gnu_ld" = yes; then
 
9389
    need_lib_prefix=no
 
9390
  fi
 
9391
  need_version=yes
 
9392
  ;;
 
9393
 
 
9394
sysv4 | sysv4.3*)
 
9395
  version_type=linux
 
9396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9397
  soname_spec='${libname}${release}${shared_ext}$major'
 
9398
  shlibpath_var=LD_LIBRARY_PATH
 
9399
  case $host_vendor in
 
9400
    sni)
 
9401
      shlibpath_overrides_runpath=no
 
9402
      need_lib_prefix=no
 
9403
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9404
      runpath_var=LD_RUN_PATH
 
9405
      ;;
 
9406
    siemens)
 
9407
      need_lib_prefix=no
 
9408
      ;;
 
9409
    motorola)
 
9410
      need_lib_prefix=no
 
9411
      need_version=no
 
9412
      shlibpath_overrides_runpath=no
 
9413
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9414
      ;;
 
9415
  esac
 
9416
  ;;
 
9417
 
 
9418
sysv4*MP*)
 
9419
  if test -d /usr/nec ;then
 
9420
    version_type=linux
 
9421
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9422
    soname_spec='$libname${shared_ext}.$major'
 
9423
    shlibpath_var=LD_LIBRARY_PATH
 
9424
  fi
 
9425
  ;;
 
9426
 
 
9427
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9428
  version_type=freebsd-elf
 
9429
  need_lib_prefix=no
 
9430
  need_version=no
 
9431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9432
  soname_spec='${libname}${release}${shared_ext}$major'
 
9433
  shlibpath_var=LD_LIBRARY_PATH
 
9434
  hardcode_into_libs=yes
 
9435
  if test "$with_gnu_ld" = yes; then
 
9436
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9437
    shlibpath_overrides_runpath=no
 
9438
  else
 
9439
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9440
    shlibpath_overrides_runpath=yes
 
9441
    case $host_os in
 
9442
      sco3.2v5*)
 
9443
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9444
        ;;
 
9445
    esac
 
9446
  fi
 
9447
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9448
  ;;
 
9449
 
 
9450
uts4*)
 
9451
  version_type=linux
 
9452
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9453
  soname_spec='${libname}${release}${shared_ext}$major'
 
9454
  shlibpath_var=LD_LIBRARY_PATH
 
9455
  ;;
 
9456
 
 
9457
*)
 
9458
  dynamic_linker=no
 
9459
  ;;
 
9460
esac
 
9461
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9462
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9463
test "$dynamic_linker" = no && can_build_shared=no
 
9464
 
 
9465
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9466
if test "$GCC" = yes; then
 
9467
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9468
fi
 
9469
 
 
9470
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9471
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9472
hardcode_action=
 
9473
if test -n "$hardcode_libdir_flag_spec" || \
 
9474
   test -n "$runpath_var" || \
 
9475
   test "X$hardcode_automatic" = "Xyes" ; then
 
9476
 
 
9477
  # We can hardcode non-existant directories.
 
9478
  if test "$hardcode_direct" != no &&
 
9479
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9480
     # have to relink, otherwise we might link with an installed library
 
9481
     # when we should be linking with a yet-to-be-installed one
 
9482
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9483
     test "$hardcode_minus_L" != no; then
 
9484
    # Linking always hardcodes the temporary library directory.
 
9485
    hardcode_action=relink
 
9486
  else
 
9487
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9488
    hardcode_action=immediate
 
9489
  fi
 
9490
else
 
9491
  # We cannot hardcode anything, or else we can only hardcode existing
 
9492
  # directories.
 
9493
  hardcode_action=unsupported
 
9494
fi
 
9495
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9496
echo "${ECHO_T}$hardcode_action" >&6; }
 
9497
 
 
9498
if test "$hardcode_action" = relink; then
 
9499
  # Fast installation is not supported
 
9500
  enable_fast_install=no
 
9501
elif test "$shlibpath_overrides_runpath" = yes ||
 
9502
     test "$enable_shared" = no; then
 
9503
  # Fast installation is not necessary
 
9504
  enable_fast_install=needless
 
9505
fi
 
9506
 
 
9507
striplib=
 
9508
old_striplib=
 
9509
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9510
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9511
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9512
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9513
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9514
  { echo "$as_me:$LINENO: result: yes" >&5
 
9515
echo "${ECHO_T}yes" >&6; }
 
9516
else
 
9517
# FIXME - insert some real tests, host_os isn't really good enough
 
9518
  case $host_os in
 
9519
   darwin*)
 
9520
       if test -n "$STRIP" ; then
 
9521
         striplib="$STRIP -x"
 
9522
         { echo "$as_me:$LINENO: result: yes" >&5
 
9523
echo "${ECHO_T}yes" >&6; }
 
9524
       else
 
9525
  { echo "$as_me:$LINENO: result: no" >&5
 
9526
echo "${ECHO_T}no" >&6; }
 
9527
fi
 
9528
       ;;
 
9529
   *)
 
9530
  { echo "$as_me:$LINENO: result: no" >&5
 
9531
echo "${ECHO_T}no" >&6; }
 
9532
    ;;
 
9533
  esac
 
9534
fi
 
9535
 
 
9536
if test "x$enable_dlopen" != xyes; then
 
9537
  enable_dlopen=unknown
 
9538
  enable_dlopen_self=unknown
 
9539
  enable_dlopen_self_static=unknown
 
9540
else
 
9541
  lt_cv_dlopen=no
 
9542
  lt_cv_dlopen_libs=
 
9543
 
 
9544
  case $host_os in
 
9545
  beos*)
 
9546
    lt_cv_dlopen="load_add_on"
 
9547
    lt_cv_dlopen_libs=
 
9548
    lt_cv_dlopen_self=yes
 
9549
    ;;
 
9550
 
 
9551
  mingw* | pw32*)
 
9552
    lt_cv_dlopen="LoadLibrary"
 
9553
    lt_cv_dlopen_libs=
 
9554
   ;;
 
9555
 
 
9556
  cygwin*)
 
9557
    lt_cv_dlopen="dlopen"
 
9558
    lt_cv_dlopen_libs=
 
9559
   ;;
 
9560
 
 
9561
  darwin*)
 
9562
  # if libdl is installed we need to link against it
 
9563
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9564
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9565
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9567
else
 
9568
  ac_check_lib_save_LIBS=$LIBS
 
9569
LIBS="-ldl  $LIBS"
 
9570
cat >conftest.$ac_ext <<_ACEOF
 
9571
/* confdefs.h.  */
 
9572
_ACEOF
 
9573
cat confdefs.h >>conftest.$ac_ext
 
9574
cat >>conftest.$ac_ext <<_ACEOF
 
9575
/* end confdefs.h.  */
 
9576
 
 
9577
/* Override any GCC internal prototype to avoid an error.
 
9578
   Use char because int might match the return type of a GCC
 
9579
   builtin and then its argument prototype would still apply.  */
 
9580
#ifdef __cplusplus
 
9581
extern "C"
 
9582
#endif
 
9583
char dlopen ();
 
9584
int
 
9585
main ()
 
9586
{
 
9587
return dlopen ();
 
9588
  ;
 
9589
  return 0;
 
9590
}
 
9591
_ACEOF
 
9592
rm -f conftest.$ac_objext conftest$ac_exeext
 
9593
if { (ac_try="$ac_link"
 
9594
case "(($ac_try" in
 
9595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9596
  *) ac_try_echo=$ac_try;;
 
9597
esac
 
9598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9599
  (eval "$ac_link") 2>conftest.er1
 
9600
  ac_status=$?
 
9601
  grep -v '^ *+' conftest.er1 >conftest.err
 
9602
  rm -f conftest.er1
 
9603
  cat conftest.err >&5
 
9604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9605
  (exit $ac_status); } &&
 
9606
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9607
  { (case "(($ac_try" in
 
9608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9609
  *) ac_try_echo=$ac_try;;
 
9610
esac
 
9611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9612
  (eval "$ac_try") 2>&5
 
9613
  ac_status=$?
 
9614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9615
  (exit $ac_status); }; } &&
 
9616
         { ac_try='test -s conftest$ac_exeext'
 
9617
  { (case "(($ac_try" in
 
9618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9619
  *) ac_try_echo=$ac_try;;
 
9620
esac
 
9621
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9622
  (eval "$ac_try") 2>&5
 
9623
  ac_status=$?
 
9624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9625
  (exit $ac_status); }; }; then
 
9626
  ac_cv_lib_dl_dlopen=yes
 
9627
else
 
9628
  echo "$as_me: failed program was:" >&5
 
9629
sed 's/^/| /' conftest.$ac_ext >&5
 
9630
 
 
9631
        ac_cv_lib_dl_dlopen=no
 
9632
fi
 
9633
 
 
9634
rm -f core conftest.err conftest.$ac_objext \
 
9635
      conftest$ac_exeext conftest.$ac_ext
 
9636
LIBS=$ac_check_lib_save_LIBS
 
9637
fi
 
9638
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9639
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9640
if test $ac_cv_lib_dl_dlopen = yes; then
 
9641
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9642
else
 
9643
 
 
9644
    lt_cv_dlopen="dyld"
 
9645
    lt_cv_dlopen_libs=
 
9646
    lt_cv_dlopen_self=yes
 
9647
 
 
9648
fi
 
9649
 
 
9650
   ;;
 
9651
 
 
9652
  *)
 
9653
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9654
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9655
if test "${ac_cv_func_shl_load+set}" = set; then
 
9656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9657
else
 
9658
  cat >conftest.$ac_ext <<_ACEOF
 
9659
/* confdefs.h.  */
 
9660
_ACEOF
 
9661
cat confdefs.h >>conftest.$ac_ext
 
9662
cat >>conftest.$ac_ext <<_ACEOF
 
9663
/* end confdefs.h.  */
 
9664
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9665
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9666
#define shl_load innocuous_shl_load
 
9667
 
 
9668
/* System header to define __stub macros and hopefully few prototypes,
 
9669
    which can conflict with char shl_load (); below.
 
9670
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9671
    <limits.h> exists even on freestanding compilers.  */
 
9672
 
 
9673
#ifdef __STDC__
 
9674
# include <limits.h>
 
9675
#else
 
9676
# include <assert.h>
 
9677
#endif
 
9678
 
 
9679
#undef shl_load
 
9680
 
 
9681
/* Override any GCC internal prototype to avoid an error.
 
9682
   Use char because int might match the return type of a GCC
 
9683
   builtin and then its argument prototype would still apply.  */
 
9684
#ifdef __cplusplus
 
9685
extern "C"
 
9686
#endif
 
9687
char shl_load ();
 
9688
/* The GNU C library defines this for functions which it implements
 
9689
    to always fail with ENOSYS.  Some functions are actually named
 
9690
    something starting with __ and the normal name is an alias.  */
 
9691
#if defined __stub_shl_load || defined __stub___shl_load
 
9692
choke me
 
9693
#endif
 
9694
 
 
9695
int
 
9696
main ()
 
9697
{
 
9698
return shl_load ();
 
9699
  ;
 
9700
  return 0;
 
9701
}
 
9702
_ACEOF
 
9703
rm -f conftest.$ac_objext conftest$ac_exeext
 
9704
if { (ac_try="$ac_link"
 
9705
case "(($ac_try" in
 
9706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9707
  *) ac_try_echo=$ac_try;;
 
9708
esac
 
9709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9710
  (eval "$ac_link") 2>conftest.er1
 
9711
  ac_status=$?
 
9712
  grep -v '^ *+' conftest.er1 >conftest.err
 
9713
  rm -f conftest.er1
 
9714
  cat conftest.err >&5
 
9715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9716
  (exit $ac_status); } &&
 
9717
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9718
  { (case "(($ac_try" in
 
9719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9720
  *) ac_try_echo=$ac_try;;
 
9721
esac
 
9722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9723
  (eval "$ac_try") 2>&5
 
9724
  ac_status=$?
 
9725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9726
  (exit $ac_status); }; } &&
 
9727
         { ac_try='test -s conftest$ac_exeext'
 
9728
  { (case "(($ac_try" in
 
9729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9730
  *) ac_try_echo=$ac_try;;
 
9731
esac
 
9732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9733
  (eval "$ac_try") 2>&5
 
9734
  ac_status=$?
 
9735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9736
  (exit $ac_status); }; }; then
 
9737
  ac_cv_func_shl_load=yes
 
9738
else
 
9739
  echo "$as_me: failed program was:" >&5
 
9740
sed 's/^/| /' conftest.$ac_ext >&5
 
9741
 
 
9742
        ac_cv_func_shl_load=no
 
9743
fi
 
9744
 
 
9745
rm -f core conftest.err conftest.$ac_objext \
 
9746
      conftest$ac_exeext conftest.$ac_ext
 
9747
fi
 
9748
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9749
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9750
if test $ac_cv_func_shl_load = yes; then
 
9751
  lt_cv_dlopen="shl_load"
 
9752
else
 
9753
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9754
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9755
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9757
else
 
9758
  ac_check_lib_save_LIBS=$LIBS
 
9759
LIBS="-ldld  $LIBS"
 
9760
cat >conftest.$ac_ext <<_ACEOF
 
9761
/* confdefs.h.  */
 
9762
_ACEOF
 
9763
cat confdefs.h >>conftest.$ac_ext
 
9764
cat >>conftest.$ac_ext <<_ACEOF
 
9765
/* end confdefs.h.  */
 
9766
 
 
9767
/* Override any GCC internal prototype to avoid an error.
 
9768
   Use char because int might match the return type of a GCC
 
9769
   builtin and then its argument prototype would still apply.  */
 
9770
#ifdef __cplusplus
 
9771
extern "C"
 
9772
#endif
 
9773
char shl_load ();
 
9774
int
 
9775
main ()
 
9776
{
 
9777
return shl_load ();
 
9778
  ;
 
9779
  return 0;
 
9780
}
 
9781
_ACEOF
 
9782
rm -f conftest.$ac_objext conftest$ac_exeext
 
9783
if { (ac_try="$ac_link"
 
9784
case "(($ac_try" in
 
9785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9786
  *) ac_try_echo=$ac_try;;
 
9787
esac
 
9788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9789
  (eval "$ac_link") 2>conftest.er1
 
9790
  ac_status=$?
 
9791
  grep -v '^ *+' conftest.er1 >conftest.err
 
9792
  rm -f conftest.er1
 
9793
  cat conftest.err >&5
 
9794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9795
  (exit $ac_status); } &&
 
9796
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9797
  { (case "(($ac_try" in
 
9798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9799
  *) ac_try_echo=$ac_try;;
 
9800
esac
 
9801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9802
  (eval "$ac_try") 2>&5
 
9803
  ac_status=$?
 
9804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9805
  (exit $ac_status); }; } &&
 
9806
         { ac_try='test -s conftest$ac_exeext'
 
9807
  { (case "(($ac_try" in
 
9808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9809
  *) ac_try_echo=$ac_try;;
 
9810
esac
 
9811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9812
  (eval "$ac_try") 2>&5
 
9813
  ac_status=$?
 
9814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9815
  (exit $ac_status); }; }; then
 
9816
  ac_cv_lib_dld_shl_load=yes
 
9817
else
 
9818
  echo "$as_me: failed program was:" >&5
 
9819
sed 's/^/| /' conftest.$ac_ext >&5
 
9820
 
 
9821
        ac_cv_lib_dld_shl_load=no
 
9822
fi
 
9823
 
 
9824
rm -f core conftest.err conftest.$ac_objext \
 
9825
      conftest$ac_exeext conftest.$ac_ext
 
9826
LIBS=$ac_check_lib_save_LIBS
 
9827
fi
 
9828
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9829
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9830
if test $ac_cv_lib_dld_shl_load = yes; then
 
9831
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9832
else
 
9833
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9834
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9835
if test "${ac_cv_func_dlopen+set}" = set; then
 
9836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9837
else
 
9838
  cat >conftest.$ac_ext <<_ACEOF
 
9839
/* confdefs.h.  */
 
9840
_ACEOF
 
9841
cat confdefs.h >>conftest.$ac_ext
 
9842
cat >>conftest.$ac_ext <<_ACEOF
 
9843
/* end confdefs.h.  */
 
9844
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9845
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9846
#define dlopen innocuous_dlopen
 
9847
 
 
9848
/* System header to define __stub macros and hopefully few prototypes,
 
9849
    which can conflict with char dlopen (); below.
 
9850
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9851
    <limits.h> exists even on freestanding compilers.  */
 
9852
 
 
9853
#ifdef __STDC__
 
9854
# include <limits.h>
 
9855
#else
 
9856
# include <assert.h>
 
9857
#endif
 
9858
 
 
9859
#undef dlopen
 
9860
 
 
9861
/* Override any GCC internal prototype to avoid an error.
 
9862
   Use char because int might match the return type of a GCC
 
9863
   builtin and then its argument prototype would still apply.  */
 
9864
#ifdef __cplusplus
 
9865
extern "C"
 
9866
#endif
 
9867
char dlopen ();
 
9868
/* The GNU C library defines this for functions which it implements
 
9869
    to always fail with ENOSYS.  Some functions are actually named
 
9870
    something starting with __ and the normal name is an alias.  */
 
9871
#if defined __stub_dlopen || defined __stub___dlopen
 
9872
choke me
 
9873
#endif
 
9874
 
 
9875
int
 
9876
main ()
 
9877
{
 
9878
return dlopen ();
 
9879
  ;
 
9880
  return 0;
 
9881
}
 
9882
_ACEOF
 
9883
rm -f conftest.$ac_objext conftest$ac_exeext
 
9884
if { (ac_try="$ac_link"
 
9885
case "(($ac_try" in
 
9886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9887
  *) ac_try_echo=$ac_try;;
 
9888
esac
 
9889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9890
  (eval "$ac_link") 2>conftest.er1
 
9891
  ac_status=$?
 
9892
  grep -v '^ *+' conftest.er1 >conftest.err
 
9893
  rm -f conftest.er1
 
9894
  cat conftest.err >&5
 
9895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9896
  (exit $ac_status); } &&
 
9897
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9898
  { (case "(($ac_try" in
 
9899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9900
  *) ac_try_echo=$ac_try;;
 
9901
esac
 
9902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9903
  (eval "$ac_try") 2>&5
 
9904
  ac_status=$?
 
9905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9906
  (exit $ac_status); }; } &&
 
9907
         { ac_try='test -s conftest$ac_exeext'
 
9908
  { (case "(($ac_try" in
 
9909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9910
  *) ac_try_echo=$ac_try;;
 
9911
esac
 
9912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9913
  (eval "$ac_try") 2>&5
 
9914
  ac_status=$?
 
9915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9916
  (exit $ac_status); }; }; then
 
9917
  ac_cv_func_dlopen=yes
 
9918
else
 
9919
  echo "$as_me: failed program was:" >&5
 
9920
sed 's/^/| /' conftest.$ac_ext >&5
 
9921
 
 
9922
        ac_cv_func_dlopen=no
 
9923
fi
 
9924
 
 
9925
rm -f core conftest.err conftest.$ac_objext \
 
9926
      conftest$ac_exeext conftest.$ac_ext
 
9927
fi
 
9928
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9929
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9930
if test $ac_cv_func_dlopen = yes; then
 
9931
  lt_cv_dlopen="dlopen"
 
9932
else
 
9933
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9934
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9935
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9937
else
 
9938
  ac_check_lib_save_LIBS=$LIBS
 
9939
LIBS="-ldl  $LIBS"
 
9940
cat >conftest.$ac_ext <<_ACEOF
 
9941
/* confdefs.h.  */
 
9942
_ACEOF
 
9943
cat confdefs.h >>conftest.$ac_ext
 
9944
cat >>conftest.$ac_ext <<_ACEOF
 
9945
/* end confdefs.h.  */
 
9946
 
 
9947
/* Override any GCC internal prototype to avoid an error.
 
9948
   Use char because int might match the return type of a GCC
 
9949
   builtin and then its argument prototype would still apply.  */
 
9950
#ifdef __cplusplus
 
9951
extern "C"
 
9952
#endif
 
9953
char dlopen ();
 
9954
int
 
9955
main ()
 
9956
{
 
9957
return dlopen ();
 
9958
  ;
 
9959
  return 0;
 
9960
}
 
9961
_ACEOF
 
9962
rm -f conftest.$ac_objext conftest$ac_exeext
 
9963
if { (ac_try="$ac_link"
 
9964
case "(($ac_try" in
 
9965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9966
  *) ac_try_echo=$ac_try;;
 
9967
esac
 
9968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9969
  (eval "$ac_link") 2>conftest.er1
 
9970
  ac_status=$?
 
9971
  grep -v '^ *+' conftest.er1 >conftest.err
 
9972
  rm -f conftest.er1
 
9973
  cat conftest.err >&5
 
9974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9975
  (exit $ac_status); } &&
 
9976
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9977
  { (case "(($ac_try" in
 
9978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9979
  *) ac_try_echo=$ac_try;;
 
9980
esac
 
9981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9982
  (eval "$ac_try") 2>&5
 
9983
  ac_status=$?
 
9984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9985
  (exit $ac_status); }; } &&
 
9986
         { ac_try='test -s conftest$ac_exeext'
 
9987
  { (case "(($ac_try" in
 
9988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9989
  *) ac_try_echo=$ac_try;;
 
9990
esac
 
9991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9992
  (eval "$ac_try") 2>&5
 
9993
  ac_status=$?
 
9994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9995
  (exit $ac_status); }; }; then
 
9996
  ac_cv_lib_dl_dlopen=yes
 
9997
else
 
9998
  echo "$as_me: failed program was:" >&5
 
9999
sed 's/^/| /' conftest.$ac_ext >&5
 
10000
 
 
10001
        ac_cv_lib_dl_dlopen=no
 
10002
fi
 
10003
 
 
10004
rm -f core conftest.err conftest.$ac_objext \
 
10005
      conftest$ac_exeext conftest.$ac_ext
 
10006
LIBS=$ac_check_lib_save_LIBS
 
10007
fi
 
10008
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10009
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10010
if test $ac_cv_lib_dl_dlopen = yes; then
 
10011
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10012
else
 
10013
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10014
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10015
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10017
else
 
10018
  ac_check_lib_save_LIBS=$LIBS
 
10019
LIBS="-lsvld  $LIBS"
 
10020
cat >conftest.$ac_ext <<_ACEOF
 
10021
/* confdefs.h.  */
 
10022
_ACEOF
 
10023
cat confdefs.h >>conftest.$ac_ext
 
10024
cat >>conftest.$ac_ext <<_ACEOF
 
10025
/* end confdefs.h.  */
 
10026
 
 
10027
/* Override any GCC internal prototype to avoid an error.
 
10028
   Use char because int might match the return type of a GCC
 
10029
   builtin and then its argument prototype would still apply.  */
 
10030
#ifdef __cplusplus
 
10031
extern "C"
 
10032
#endif
 
10033
char dlopen ();
 
10034
int
 
10035
main ()
 
10036
{
 
10037
return dlopen ();
 
10038
  ;
 
10039
  return 0;
 
10040
}
 
10041
_ACEOF
 
10042
rm -f conftest.$ac_objext conftest$ac_exeext
 
10043
if { (ac_try="$ac_link"
 
10044
case "(($ac_try" in
 
10045
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10046
  *) ac_try_echo=$ac_try;;
 
10047
esac
 
10048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10049
  (eval "$ac_link") 2>conftest.er1
 
10050
  ac_status=$?
 
10051
  grep -v '^ *+' conftest.er1 >conftest.err
 
10052
  rm -f conftest.er1
 
10053
  cat conftest.err >&5
 
10054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10055
  (exit $ac_status); } &&
 
10056
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10057
  { (case "(($ac_try" in
 
10058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10059
  *) ac_try_echo=$ac_try;;
 
10060
esac
 
10061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10062
  (eval "$ac_try") 2>&5
 
10063
  ac_status=$?
 
10064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10065
  (exit $ac_status); }; } &&
 
10066
         { ac_try='test -s conftest$ac_exeext'
 
10067
  { (case "(($ac_try" in
 
10068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10069
  *) ac_try_echo=$ac_try;;
 
10070
esac
 
10071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10072
  (eval "$ac_try") 2>&5
 
10073
  ac_status=$?
 
10074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10075
  (exit $ac_status); }; }; then
 
10076
  ac_cv_lib_svld_dlopen=yes
 
10077
else
 
10078
  echo "$as_me: failed program was:" >&5
 
10079
sed 's/^/| /' conftest.$ac_ext >&5
 
10080
 
 
10081
        ac_cv_lib_svld_dlopen=no
 
10082
fi
 
10083
 
 
10084
rm -f core conftest.err conftest.$ac_objext \
 
10085
      conftest$ac_exeext conftest.$ac_ext
 
10086
LIBS=$ac_check_lib_save_LIBS
 
10087
fi
 
10088
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10089
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10090
if test $ac_cv_lib_svld_dlopen = yes; then
 
10091
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10092
else
 
10093
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10094
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10095
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10097
else
 
10098
  ac_check_lib_save_LIBS=$LIBS
 
10099
LIBS="-ldld  $LIBS"
 
10100
cat >conftest.$ac_ext <<_ACEOF
 
10101
/* confdefs.h.  */
 
10102
_ACEOF
 
10103
cat confdefs.h >>conftest.$ac_ext
 
10104
cat >>conftest.$ac_ext <<_ACEOF
 
10105
/* end confdefs.h.  */
 
10106
 
 
10107
/* Override any GCC internal prototype to avoid an error.
 
10108
   Use char because int might match the return type of a GCC
 
10109
   builtin and then its argument prototype would still apply.  */
 
10110
#ifdef __cplusplus
 
10111
extern "C"
 
10112
#endif
 
10113
char dld_link ();
 
10114
int
 
10115
main ()
 
10116
{
 
10117
return dld_link ();
 
10118
  ;
 
10119
  return 0;
 
10120
}
 
10121
_ACEOF
 
10122
rm -f conftest.$ac_objext conftest$ac_exeext
 
10123
if { (ac_try="$ac_link"
 
10124
case "(($ac_try" in
 
10125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10126
  *) ac_try_echo=$ac_try;;
 
10127
esac
 
10128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10129
  (eval "$ac_link") 2>conftest.er1
 
10130
  ac_status=$?
 
10131
  grep -v '^ *+' conftest.er1 >conftest.err
 
10132
  rm -f conftest.er1
 
10133
  cat conftest.err >&5
 
10134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10135
  (exit $ac_status); } &&
 
10136
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10137
  { (case "(($ac_try" in
 
10138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10139
  *) ac_try_echo=$ac_try;;
 
10140
esac
 
10141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10142
  (eval "$ac_try") 2>&5
 
10143
  ac_status=$?
 
10144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10145
  (exit $ac_status); }; } &&
 
10146
         { ac_try='test -s conftest$ac_exeext'
 
10147
  { (case "(($ac_try" in
 
10148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10149
  *) ac_try_echo=$ac_try;;
 
10150
esac
 
10151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10152
  (eval "$ac_try") 2>&5
 
10153
  ac_status=$?
 
10154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10155
  (exit $ac_status); }; }; then
 
10156
  ac_cv_lib_dld_dld_link=yes
 
10157
else
 
10158
  echo "$as_me: failed program was:" >&5
 
10159
sed 's/^/| /' conftest.$ac_ext >&5
 
10160
 
 
10161
        ac_cv_lib_dld_dld_link=no
 
10162
fi
 
10163
 
 
10164
rm -f core conftest.err conftest.$ac_objext \
 
10165
      conftest$ac_exeext conftest.$ac_ext
 
10166
LIBS=$ac_check_lib_save_LIBS
 
10167
fi
 
10168
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10169
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10170
if test $ac_cv_lib_dld_dld_link = yes; then
 
10171
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10172
fi
 
10173
 
 
10174
 
 
10175
fi
 
10176
 
 
10177
 
 
10178
fi
 
10179
 
 
10180
 
 
10181
fi
 
10182
 
 
10183
 
 
10184
fi
 
10185
 
 
10186
 
 
10187
fi
 
10188
 
 
10189
    ;;
 
10190
  esac
 
10191
 
 
10192
  if test "x$lt_cv_dlopen" != xno; then
 
10193
    enable_dlopen=yes
 
10194
  else
 
10195
    enable_dlopen=no
 
10196
  fi
 
10197
 
 
10198
  case $lt_cv_dlopen in
 
10199
  dlopen)
 
10200
    save_CPPFLAGS="$CPPFLAGS"
 
10201
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10202
 
 
10203
    save_LDFLAGS="$LDFLAGS"
 
10204
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10205
 
 
10206
    save_LIBS="$LIBS"
 
10207
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10208
 
 
10209
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10210
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10211
if test "${lt_cv_dlopen_self+set}" = set; then
 
10212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10213
else
 
10214
          if test "$cross_compiling" = yes; then :
 
10215
  lt_cv_dlopen_self=cross
 
10216
else
 
10217
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10218
  lt_status=$lt_dlunknown
 
10219
  cat > conftest.$ac_ext <<EOF
 
10220
#line 10220 "configure"
 
10221
#include "confdefs.h"
 
10222
 
 
10223
#if HAVE_DLFCN_H
 
10224
#include <dlfcn.h>
 
10225
#endif
 
10226
 
 
10227
#include <stdio.h>
 
10228
 
 
10229
#ifdef RTLD_GLOBAL
 
10230
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10231
#else
 
10232
#  ifdef DL_GLOBAL
 
10233
#    define LT_DLGLOBAL         DL_GLOBAL
 
10234
#  else
 
10235
#    define LT_DLGLOBAL         0
 
10236
#  endif
 
10237
#endif
 
10238
 
 
10239
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10240
   find out it does not work in some platform. */
 
10241
#ifndef LT_DLLAZY_OR_NOW
 
10242
#  ifdef RTLD_LAZY
 
10243
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10244
#  else
 
10245
#    ifdef DL_LAZY
 
10246
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10247
#    else
 
10248
#      ifdef RTLD_NOW
 
10249
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10250
#      else
 
10251
#        ifdef DL_NOW
 
10252
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10253
#        else
 
10254
#          define LT_DLLAZY_OR_NOW      0
 
10255
#        endif
 
10256
#      endif
 
10257
#    endif
 
10258
#  endif
 
10259
#endif
 
10260
 
 
10261
#ifdef __cplusplus
 
10262
extern "C" void exit (int);
 
10263
#endif
 
10264
 
 
10265
void fnord() { int i=42;}
 
10266
int main ()
 
10267
{
 
10268
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10269
  int status = $lt_dlunknown;
 
10270
 
 
10271
  if (self)
 
10272
    {
 
10273
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10274
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10275
      /* dlclose (self); */
 
10276
    }
 
10277
  else
 
10278
    puts (dlerror ());
 
10279
 
 
10280
    exit (status);
 
10281
}
 
10282
EOF
 
10283
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10284
  (eval $ac_link) 2>&5
 
10285
  ac_status=$?
 
10286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10287
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10288
    (./conftest; exit; ) >&5 2>/dev/null
 
10289
    lt_status=$?
 
10290
    case x$lt_status in
 
10291
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10292
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10293
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10294
    esac
 
10295
  else :
 
10296
    # compilation failed
 
10297
    lt_cv_dlopen_self=no
 
10298
  fi
 
10299
fi
 
10300
rm -fr conftest*
 
10301
 
 
10302
 
 
10303
fi
 
10304
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10305
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10306
 
 
10307
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10308
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10309
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10310
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10311
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10313
else
 
10314
          if test "$cross_compiling" = yes; then :
 
10315
  lt_cv_dlopen_self_static=cross
 
10316
else
 
10317
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10318
  lt_status=$lt_dlunknown
 
10319
  cat > conftest.$ac_ext <<EOF
 
10320
#line 10320 "configure"
 
10321
#include "confdefs.h"
 
10322
 
 
10323
#if HAVE_DLFCN_H
 
10324
#include <dlfcn.h>
 
10325
#endif
 
10326
 
 
10327
#include <stdio.h>
 
10328
 
 
10329
#ifdef RTLD_GLOBAL
 
10330
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10331
#else
 
10332
#  ifdef DL_GLOBAL
 
10333
#    define LT_DLGLOBAL         DL_GLOBAL
 
10334
#  else
 
10335
#    define LT_DLGLOBAL         0
 
10336
#  endif
 
10337
#endif
 
10338
 
 
10339
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10340
   find out it does not work in some platform. */
 
10341
#ifndef LT_DLLAZY_OR_NOW
 
10342
#  ifdef RTLD_LAZY
 
10343
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10344
#  else
 
10345
#    ifdef DL_LAZY
 
10346
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10347
#    else
 
10348
#      ifdef RTLD_NOW
 
10349
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10350
#      else
 
10351
#        ifdef DL_NOW
 
10352
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10353
#        else
 
10354
#          define LT_DLLAZY_OR_NOW      0
 
10355
#        endif
 
10356
#      endif
 
10357
#    endif
 
10358
#  endif
 
10359
#endif
 
10360
 
 
10361
#ifdef __cplusplus
 
10362
extern "C" void exit (int);
 
10363
#endif
 
10364
 
 
10365
void fnord() { int i=42;}
 
10366
int main ()
 
10367
{
 
10368
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10369
  int status = $lt_dlunknown;
 
10370
 
 
10371
  if (self)
 
10372
    {
 
10373
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10374
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10375
      /* dlclose (self); */
 
10376
    }
 
10377
  else
 
10378
    puts (dlerror ());
 
10379
 
 
10380
    exit (status);
 
10381
}
 
10382
EOF
 
10383
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10384
  (eval $ac_link) 2>&5
 
10385
  ac_status=$?
 
10386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10387
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10388
    (./conftest; exit; ) >&5 2>/dev/null
 
10389
    lt_status=$?
 
10390
    case x$lt_status in
 
10391
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10392
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10393
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10394
    esac
 
10395
  else :
 
10396
    # compilation failed
 
10397
    lt_cv_dlopen_self_static=no
 
10398
  fi
 
10399
fi
 
10400
rm -fr conftest*
 
10401
 
 
10402
 
 
10403
fi
 
10404
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10405
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10406
    fi
 
10407
 
 
10408
    CPPFLAGS="$save_CPPFLAGS"
 
10409
    LDFLAGS="$save_LDFLAGS"
 
10410
    LIBS="$save_LIBS"
 
10411
    ;;
 
10412
  esac
 
10413
 
 
10414
  case $lt_cv_dlopen_self in
 
10415
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10416
  *) enable_dlopen_self=unknown ;;
 
10417
  esac
 
10418
 
 
10419
  case $lt_cv_dlopen_self_static in
 
10420
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10421
  *) enable_dlopen_self_static=unknown ;;
 
10422
  esac
 
10423
fi
 
10424
 
 
10425
 
 
10426
# Report which library types will actually be built
 
10427
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10428
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10429
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10430
echo "${ECHO_T}$can_build_shared" >&6; }
 
10431
 
 
10432
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10433
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10434
test "$can_build_shared" = "no" && enable_shared=no
 
10435
 
 
10436
# On AIX, shared libraries and static libraries use the same namespace, and
 
10437
# are all built from PIC.
 
10438
case $host_os in
 
10439
aix3*)
 
10440
  test "$enable_shared" = yes && enable_static=no
 
10441
  if test -n "$RANLIB"; then
 
10442
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10443
    postinstall_cmds='$RANLIB $lib'
 
10444
  fi
 
10445
  ;;
 
10446
 
 
10447
aix4* | aix5*)
 
10448
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10449
    test "$enable_shared" = yes && enable_static=no
 
10450
  fi
 
10451
    ;;
 
10452
esac
 
10453
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10454
echo "${ECHO_T}$enable_shared" >&6; }
 
10455
 
 
10456
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10457
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10458
# Make sure either enable_shared or enable_static is yes.
 
10459
test "$enable_shared" = yes || enable_static=yes
 
10460
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10461
echo "${ECHO_T}$enable_static" >&6; }
 
10462
 
 
10463
# The else clause should only fire when bootstrapping the
 
10464
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10465
# with your package, and you will get complaints that there are
 
10466
# no rules to generate ltmain.sh.
 
10467
if test -f "$ltmain"; then
 
10468
  # See if we are running on zsh, and set the options which allow our commands through
 
10469
  # without removal of \ escapes.
 
10470
  if test -n "${ZSH_VERSION+set}" ; then
 
10471
    setopt NO_GLOB_SUBST
 
10472
  fi
 
10473
  # Now quote all the things that may contain metacharacters while being
 
10474
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10475
  # variables and quote the copies for generation of the libtool script.
 
10476
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10477
    SED SHELL STRIP \
 
10478
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10479
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10480
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10481
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10482
    lt_cv_sys_global_symbol_to_c_name_address \
 
10483
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10484
    old_postinstall_cmds old_postuninstall_cmds \
 
10485
    compiler \
 
10486
    CC \
 
10487
    LD \
 
10488
    lt_prog_compiler_wl \
 
10489
    lt_prog_compiler_pic \
 
10490
    lt_prog_compiler_static \
 
10491
    lt_prog_compiler_no_builtin_flag \
 
10492
    export_dynamic_flag_spec \
 
10493
    thread_safe_flag_spec \
 
10494
    whole_archive_flag_spec \
 
10495
    enable_shared_with_static_runtimes \
 
10496
    old_archive_cmds \
 
10497
    old_archive_from_new_cmds \
 
10498
    predep_objects \
 
10499
    postdep_objects \
 
10500
    predeps \
 
10501
    postdeps \
 
10502
    compiler_lib_search_path \
 
10503
    archive_cmds \
 
10504
    archive_expsym_cmds \
 
10505
    postinstall_cmds \
 
10506
    postuninstall_cmds \
 
10507
    old_archive_from_expsyms_cmds \
 
10508
    allow_undefined_flag \
 
10509
    no_undefined_flag \
 
10510
    export_symbols_cmds \
 
10511
    hardcode_libdir_flag_spec \
 
10512
    hardcode_libdir_flag_spec_ld \
 
10513
    hardcode_libdir_separator \
 
10514
    hardcode_automatic \
 
10515
    module_cmds \
 
10516
    module_expsym_cmds \
 
10517
    lt_cv_prog_compiler_c_o \
 
10518
    exclude_expsyms \
 
10519
    include_expsyms; do
 
10520
 
 
10521
    case $var in
 
10522
    old_archive_cmds | \
 
10523
    old_archive_from_new_cmds | \
 
10524
    archive_cmds | \
 
10525
    archive_expsym_cmds | \
 
10526
    module_cmds | \
 
10527
    module_expsym_cmds | \
 
10528
    old_archive_from_expsyms_cmds | \
 
10529
    export_symbols_cmds | \
 
10530
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10531
    postinstall_cmds | postuninstall_cmds | \
 
10532
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10533
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10534
      # Double-quote double-evaled strings.
 
10535
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10536
      ;;
 
10537
    *)
 
10538
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10539
      ;;
 
10540
    esac
 
10541
  done
 
10542
 
 
10543
  case $lt_echo in
 
10544
  *'\$0 --fallback-echo"')
 
10545
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10546
    ;;
 
10547
  esac
 
10548
 
 
10549
cfgfile="${ofile}T"
 
10550
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10551
  $rm -f "$cfgfile"
 
10552
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10553
echo "$as_me: creating $ofile" >&6;}
 
10554
 
 
10555
  cat <<__EOF__ >> "$cfgfile"
 
10556
#! $SHELL
 
10557
 
 
10558
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10559
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10560
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10561
#
 
10562
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10563
# Free Software Foundation, Inc.
 
10564
#
 
10565
# This file is part of GNU Libtool:
 
10566
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10567
#
 
10568
# This program is free software; you can redistribute it and/or modify
 
10569
# it under the terms of the GNU General Public License as published by
 
10570
# the Free Software Foundation; either version 2 of the License, or
 
10571
# (at your option) any later version.
 
10572
#
 
10573
# This program is distributed in the hope that it will be useful, but
 
10574
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10575
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10576
# General Public License for more details.
 
10577
#
 
10578
# You should have received a copy of the GNU General Public License
 
10579
# along with this program; if not, write to the Free Software
 
10580
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10581
#
 
10582
# As a special exception to the GNU General Public License, if you
 
10583
# distribute this file as part of a program that contains a
 
10584
# configuration script generated by Autoconf, you may include it under
 
10585
# the same distribution terms that you use for the rest of that program.
 
10586
 
 
10587
# A sed program that does not truncate output.
 
10588
SED=$lt_SED
 
10589
 
 
10590
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10591
Xsed="$SED -e 1s/^X//"
 
10592
 
 
10593
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10594
# if CDPATH is set.
 
10595
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10596
 
 
10597
# The names of the tagged configurations supported by this script.
 
10598
available_tags=
 
10599
 
 
10600
# ### BEGIN LIBTOOL CONFIG
 
10601
 
 
10602
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10603
 
 
10604
# Shell to use when invoking shell scripts.
 
10605
SHELL=$lt_SHELL
 
10606
 
 
10607
# Whether or not to build shared libraries.
 
10608
build_libtool_libs=$enable_shared
 
10609
 
 
10610
# Whether or not to build static libraries.
 
10611
build_old_libs=$enable_static
 
10612
 
 
10613
# Whether or not to add -lc for building shared libraries.
 
10614
build_libtool_need_lc=$archive_cmds_need_lc
 
10615
 
 
10616
# Whether or not to disallow shared libs when runtime libs are static
 
10617
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10618
 
 
10619
# Whether or not to optimize for fast installation.
 
10620
fast_install=$enable_fast_install
 
10621
 
 
10622
# The host system.
 
10623
host_alias=$host_alias
 
10624
host=$host
 
10625
host_os=$host_os
 
10626
 
 
10627
# The build system.
 
10628
build_alias=$build_alias
 
10629
build=$build
 
10630
build_os=$build_os
 
10631
 
 
10632
# An echo program that does not interpret backslashes.
 
10633
echo=$lt_echo
 
10634
 
 
10635
# The archiver.
 
10636
AR=$lt_AR
 
10637
AR_FLAGS=$lt_AR_FLAGS
 
10638
 
 
10639
# A C compiler.
 
10640
LTCC=$lt_LTCC
 
10641
 
 
10642
# LTCC compiler flags.
 
10643
LTCFLAGS=$lt_LTCFLAGS
 
10644
 
 
10645
# A language-specific compiler.
 
10646
CC=$lt_compiler
 
10647
 
 
10648
# Is the compiler the GNU C compiler?
 
10649
with_gcc=$GCC
 
10650
 
 
10651
# An ERE matcher.
 
10652
EGREP=$lt_EGREP
 
10653
 
 
10654
# The linker used to build libraries.
 
10655
LD=$lt_LD
 
10656
 
 
10657
# Whether we need hard or soft links.
 
10658
LN_S=$lt_LN_S
 
10659
 
 
10660
# A BSD-compatible nm program.
 
10661
NM=$lt_NM
 
10662
 
 
10663
# A symbol stripping program
 
10664
STRIP=$lt_STRIP
 
10665
 
 
10666
# Used to examine libraries when file_magic_cmd begins "file"
 
10667
MAGIC_CMD=$MAGIC_CMD
 
10668
 
 
10669
# Used on cygwin: DLL creation program.
 
10670
DLLTOOL="$DLLTOOL"
 
10671
 
 
10672
# Used on cygwin: object dumper.
 
10673
OBJDUMP="$OBJDUMP"
 
10674
 
 
10675
# Used on cygwin: assembler.
 
10676
AS="$AS"
 
10677
 
 
10678
# The name of the directory that contains temporary libtool files.
 
10679
objdir=$objdir
 
10680
 
 
10681
# How to create reloadable object files.
 
10682
reload_flag=$lt_reload_flag
 
10683
reload_cmds=$lt_reload_cmds
 
10684
 
 
10685
# How to pass a linker flag through the compiler.
 
10686
wl=$lt_lt_prog_compiler_wl
 
10687
 
 
10688
# Object file suffix (normally "o").
 
10689
objext="$ac_objext"
 
10690
 
 
10691
# Old archive suffix (normally "a").
 
10692
libext="$libext"
 
10693
 
 
10694
# Shared library suffix (normally ".so").
 
10695
shrext_cmds='$shrext_cmds'
 
10696
 
 
10697
# Executable file suffix (normally "").
 
10698
exeext="$exeext"
 
10699
 
 
10700
# Additional compiler flags for building library objects.
 
10701
pic_flag=$lt_lt_prog_compiler_pic
 
10702
pic_mode=$pic_mode
 
10703
 
 
10704
# What is the maximum length of a command?
 
10705
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10706
 
 
10707
# Does compiler simultaneously support -c and -o options?
 
10708
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10709
 
 
10710
# Must we lock files when doing compilation?
 
10711
need_locks=$lt_need_locks
 
10712
 
 
10713
# Do we need the lib prefix for modules?
 
10714
need_lib_prefix=$need_lib_prefix
 
10715
 
 
10716
# Do we need a version for libraries?
 
10717
need_version=$need_version
 
10718
 
 
10719
# Whether dlopen is supported.
 
10720
dlopen_support=$enable_dlopen
 
10721
 
 
10722
# Whether dlopen of programs is supported.
 
10723
dlopen_self=$enable_dlopen_self
 
10724
 
 
10725
# Whether dlopen of statically linked programs is supported.
 
10726
dlopen_self_static=$enable_dlopen_self_static
 
10727
 
 
10728
# Compiler flag to prevent dynamic linking.
 
10729
link_static_flag=$lt_lt_prog_compiler_static
 
10730
 
 
10731
# Compiler flag to turn off builtin functions.
 
10732
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10733
 
 
10734
# Compiler flag to allow reflexive dlopens.
 
10735
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10736
 
 
10737
# Compiler flag to generate shared objects directly from archives.
 
10738
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10739
 
 
10740
# Compiler flag to generate thread-safe objects.
 
10741
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10742
 
 
10743
# Library versioning type.
 
10744
version_type=$version_type
 
10745
 
 
10746
# Format of library name prefix.
 
10747
libname_spec=$lt_libname_spec
 
10748
 
 
10749
# List of archive names.  First name is the real one, the rest are links.
 
10750
# The last name is the one that the linker finds with -lNAME.
 
10751
library_names_spec=$lt_library_names_spec
 
10752
 
 
10753
# The coded name of the library, if different from the real name.
 
10754
soname_spec=$lt_soname_spec
 
10755
 
 
10756
# Commands used to build and install an old-style archive.
 
10757
RANLIB=$lt_RANLIB
 
10758
old_archive_cmds=$lt_old_archive_cmds
 
10759
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10760
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10761
 
 
10762
# Create an old-style archive from a shared archive.
 
10763
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10764
 
 
10765
# Create a temporary old-style archive to link instead of a shared archive.
 
10766
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10767
 
 
10768
# Commands used to build and install a shared archive.
 
10769
archive_cmds=$lt_archive_cmds
 
10770
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10771
postinstall_cmds=$lt_postinstall_cmds
 
10772
postuninstall_cmds=$lt_postuninstall_cmds
 
10773
 
 
10774
# Commands used to build a loadable module (assumed same as above if empty)
 
10775
module_cmds=$lt_module_cmds
 
10776
module_expsym_cmds=$lt_module_expsym_cmds
 
10777
 
 
10778
# Commands to strip libraries.
 
10779
old_striplib=$lt_old_striplib
 
10780
striplib=$lt_striplib
 
10781
 
 
10782
# Dependencies to place before the objects being linked to create a
 
10783
# shared library.
 
10784
predep_objects=$lt_predep_objects
 
10785
 
 
10786
# Dependencies to place after the objects being linked to create a
 
10787
# shared library.
 
10788
postdep_objects=$lt_postdep_objects
 
10789
 
 
10790
# Dependencies to place before the objects being linked to create a
 
10791
# shared library.
 
10792
predeps=$lt_predeps
 
10793
 
 
10794
# Dependencies to place after the objects being linked to create a
 
10795
# shared library.
 
10796
postdeps=$lt_postdeps
 
10797
 
 
10798
# The library search path used internally by the compiler when linking
 
10799
# a shared library.
 
10800
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10801
 
 
10802
# Method to check whether dependent libraries are shared objects.
 
10803
deplibs_check_method=$lt_deplibs_check_method
 
10804
 
 
10805
# Command to use when deplibs_check_method == file_magic.
 
10806
file_magic_cmd=$lt_file_magic_cmd
 
10807
 
 
10808
# Flag that allows shared libraries with undefined symbols to be built.
 
10809
allow_undefined_flag=$lt_allow_undefined_flag
 
10810
 
 
10811
# Flag that forces no undefined symbols.
 
10812
no_undefined_flag=$lt_no_undefined_flag
 
10813
 
 
10814
# Commands used to finish a libtool library installation in a directory.
 
10815
finish_cmds=$lt_finish_cmds
 
10816
 
 
10817
# Same as above, but a single script fragment to be evaled but not shown.
 
10818
finish_eval=$lt_finish_eval
 
10819
 
 
10820
# Take the output of nm and produce a listing of raw symbols and C names.
 
10821
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10822
 
 
10823
# Transform the output of nm in a proper C declaration
 
10824
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10825
 
 
10826
# Transform the output of nm in a C name address pair
 
10827
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10828
 
 
10829
# This is the shared library runtime path variable.
 
10830
runpath_var=$runpath_var
 
10831
 
 
10832
# This is the shared library path variable.
 
10833
shlibpath_var=$shlibpath_var
 
10834
 
 
10835
# Is shlibpath searched before the hard-coded library search path?
 
10836
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10837
 
 
10838
# How to hardcode a shared library path into an executable.
 
10839
hardcode_action=$hardcode_action
 
10840
 
 
10841
# Whether we should hardcode library paths into libraries.
 
10842
hardcode_into_libs=$hardcode_into_libs
 
10843
 
 
10844
# Flag to hardcode \$libdir into a binary during linking.
 
10845
# This must work even if \$libdir does not exist.
 
10846
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10847
 
 
10848
# If ld is used when linking, flag to hardcode \$libdir into
 
10849
# a binary during linking. This must work even if \$libdir does
 
10850
# not exist.
 
10851
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10852
 
 
10853
# Whether we need a single -rpath flag with a separated argument.
 
10854
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10855
 
 
10856
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10857
# resulting binary.
 
10858
hardcode_direct=$hardcode_direct
 
10859
 
 
10860
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10861
# resulting binary.
 
10862
hardcode_minus_L=$hardcode_minus_L
 
10863
 
 
10864
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10865
# the resulting binary.
 
10866
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10867
 
 
10868
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10869
# and all subsequent libraries and executables linked against it.
 
10870
hardcode_automatic=$hardcode_automatic
 
10871
 
 
10872
# Variables whose values should be saved in libtool wrapper scripts and
 
10873
# restored at relink time.
 
10874
variables_saved_for_relink="$variables_saved_for_relink"
 
10875
 
 
10876
# Whether libtool must link a program against all its dependency libraries.
 
10877
link_all_deplibs=$link_all_deplibs
 
10878
 
 
10879
# Compile-time system search path for libraries
 
10880
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10881
 
 
10882
# Run-time system search path for libraries
 
10883
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10884
 
 
10885
# Fix the shell variable \$srcfile for the compiler.
 
10886
fix_srcfile_path="$fix_srcfile_path"
 
10887
 
 
10888
# Set to yes if exported symbols are required.
 
10889
always_export_symbols=$always_export_symbols
 
10890
 
 
10891
# The commands to list exported symbols.
 
10892
export_symbols_cmds=$lt_export_symbols_cmds
 
10893
 
 
10894
# The commands to extract the exported symbol list from a shared archive.
 
10895
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10896
 
 
10897
# Symbols that should not be listed in the preloaded symbols.
 
10898
exclude_expsyms=$lt_exclude_expsyms
 
10899
 
 
10900
# Symbols that must always be exported.
 
10901
include_expsyms=$lt_include_expsyms
 
10902
 
 
10903
# ### END LIBTOOL CONFIG
 
10904
 
 
10905
__EOF__
 
10906
 
 
10907
 
 
10908
  case $host_os in
 
10909
  aix3*)
 
10910
    cat <<\EOF >> "$cfgfile"
 
10911
 
 
10912
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10913
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10914
# vanish in a puff of smoke.
 
10915
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10916
  COLLECT_NAMES=
 
10917
  export COLLECT_NAMES
 
10918
fi
 
10919
EOF
 
10920
    ;;
 
10921
  esac
 
10922
 
 
10923
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10924
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10925
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10926
  # is reportedly fixed, but why not run on old versions too?
 
10927
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10928
 
 
10929
  mv -f "$cfgfile" "$ofile" || \
 
10930
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10931
  chmod +x "$ofile"
 
10932
 
 
10933
else
 
10934
  # If there is no Makefile yet, we rely on a make rule to execute
 
10935
  # `config.status --recheck' to rerun these tests and create the
 
10936
  # libtool script then.
 
10937
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10938
  if test -f "$ltmain_in"; then
 
10939
    test -f Makefile && make "$ltmain"
 
10940
  fi
 
10941
fi
 
10942
 
 
10943
 
 
10944
ac_ext=c
 
10945
ac_cpp='$CPP $CPPFLAGS'
 
10946
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10947
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10948
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10949
 
 
10950
CC="$lt_save_CC"
 
10951
 
 
10952
 
 
10953
# Check whether --with-tags was given.
 
10954
if test "${with_tags+set}" = set; then
 
10955
  withval=$with_tags; tagnames="$withval"
 
10956
fi
 
10957
 
 
10958
 
 
10959
if test -f "$ltmain" && test -n "$tagnames"; then
 
10960
  if test ! -f "${ofile}"; then
 
10961
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10962
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10963
  fi
 
10964
 
 
10965
  if test -z "$LTCC"; then
 
10966
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10967
    if test -z "$LTCC"; then
 
10968
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10969
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10970
    else
 
10971
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10972
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10973
    fi
 
10974
  fi
 
10975
  if test -z "$LTCFLAGS"; then
 
10976
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10977
  fi
 
10978
 
 
10979
  # Extract list of available tagged configurations in $ofile.
 
10980
  # Note that this assumes the entire list is on one line.
 
10981
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10982
 
 
10983
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10984
  for tagname in $tagnames; do
 
10985
    IFS="$lt_save_ifs"
 
10986
    # Check whether tagname contains only valid characters
 
10987
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10988
    "") ;;
 
10989
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10990
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10991
   { (exit 1); exit 1; }; }
 
10992
        ;;
 
10993
    esac
 
10994
 
 
10995
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10996
    then
 
10997
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10998
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10999
   { (exit 1); exit 1; }; }
 
11000
    fi
 
11001
 
 
11002
    # Update the list of available tags.
 
11003
    if test -n "$tagname"; then
 
11004
      echo appending configuration tag \"$tagname\" to $ofile
 
11005
 
 
11006
      case $tagname in
 
11007
      CXX)
 
11008
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11009
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11010
            (test "X$CXX" != "Xg++"))) ; then
 
11011
          ac_ext=cpp
 
11012
ac_cpp='$CXXCPP $CPPFLAGS'
 
11013
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11014
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11015
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11016
 
 
11017
 
 
11018
 
 
11019
 
 
11020
archive_cmds_need_lc_CXX=no
 
11021
allow_undefined_flag_CXX=
 
11022
always_export_symbols_CXX=no
 
11023
archive_expsym_cmds_CXX=
 
11024
export_dynamic_flag_spec_CXX=
 
11025
hardcode_direct_CXX=no
 
11026
hardcode_libdir_flag_spec_CXX=
 
11027
hardcode_libdir_flag_spec_ld_CXX=
 
11028
hardcode_libdir_separator_CXX=
 
11029
hardcode_minus_L_CXX=no
 
11030
hardcode_shlibpath_var_CXX=unsupported
 
11031
hardcode_automatic_CXX=no
 
11032
module_cmds_CXX=
 
11033
module_expsym_cmds_CXX=
 
11034
link_all_deplibs_CXX=unknown
 
11035
old_archive_cmds_CXX=$old_archive_cmds
 
11036
no_undefined_flag_CXX=
 
11037
whole_archive_flag_spec_CXX=
 
11038
enable_shared_with_static_runtimes_CXX=no
 
11039
 
 
11040
# Dependencies to place before and after the object being linked:
 
11041
predep_objects_CXX=
 
11042
postdep_objects_CXX=
 
11043
predeps_CXX=
 
11044
postdeps_CXX=
 
11045
compiler_lib_search_path_CXX=
 
11046
 
 
11047
# Source file extension for C++ test sources.
 
11048
ac_ext=cpp
 
11049
 
 
11050
# Object file extension for compiled C++ test sources.
 
11051
objext=o
 
11052
objext_CXX=$objext
 
11053
 
 
11054
# Code to be used in simple compile tests
 
11055
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11056
 
 
11057
# Code to be used in simple link tests
 
11058
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
11059
 
 
11060
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11061
 
 
11062
# If no C compiler was specified, use CC.
 
11063
LTCC=${LTCC-"$CC"}
 
11064
 
 
11065
# If no C compiler flags were specified, use CFLAGS.
 
11066
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11067
 
 
11068
# Allow CC to be a program name with arguments.
 
11069
compiler=$CC
 
11070
 
 
11071
 
 
11072
# save warnings/boilerplate of simple test code
 
11073
ac_outfile=conftest.$ac_objext
 
11074
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11075
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11076
_lt_compiler_boilerplate=`cat conftest.err`
 
11077
$rm conftest*
 
11078
 
 
11079
ac_outfile=conftest.$ac_objext
 
11080
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11081
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11082
_lt_linker_boilerplate=`cat conftest.err`
 
11083
$rm conftest*
 
11084
 
 
11085
 
 
11086
# Allow CC to be a program name with arguments.
 
11087
lt_save_CC=$CC
 
11088
lt_save_LD=$LD
 
11089
lt_save_GCC=$GCC
 
11090
GCC=$GXX
 
11091
lt_save_with_gnu_ld=$with_gnu_ld
 
11092
lt_save_path_LD=$lt_cv_path_LD
 
11093
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11094
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11095
else
 
11096
  $as_unset lt_cv_prog_gnu_ld
 
11097
fi
 
11098
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11099
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11100
else
 
11101
  $as_unset lt_cv_path_LD
 
11102
fi
 
11103
test -z "${LDCXX+set}" || LD=$LDCXX
 
11104
CC=${CXX-"c++"}
 
11105
compiler=$CC
 
11106
compiler_CXX=$CC
 
11107
for cc_temp in $compiler""; do
 
11108
  case $cc_temp in
 
11109
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11110
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11111
    \-*) ;;
 
11112
    *) break;;
 
11113
  esac
 
11114
done
 
11115
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11116
 
 
11117
 
 
11118
# We don't want -fno-exception wen compiling C++ code, so set the
 
11119
# no_builtin_flag separately
 
11120
if test "$GXX" = yes; then
 
11121
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11122
else
 
11123
  lt_prog_compiler_no_builtin_flag_CXX=
 
11124
fi
 
11125
 
 
11126
if test "$GXX" = yes; then
 
11127
  # Set up default GNU C++ configuration
 
11128
 
 
11129
 
 
11130
# Check whether --with-gnu-ld was given.
 
11131
if test "${with_gnu_ld+set}" = set; then
 
11132
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11133
else
 
11134
  with_gnu_ld=no
 
11135
fi
 
11136
 
 
11137
ac_prog=ld
 
11138
if test "$GCC" = yes; then
 
11139
  # Check if gcc -print-prog-name=ld gives a path.
 
11140
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11141
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11142
  case $host in
 
11143
  *-*-mingw*)
 
11144
    # gcc leaves a trailing carriage return which upsets mingw
 
11145
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11146
  *)
 
11147
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11148
  esac
 
11149
  case $ac_prog in
 
11150
    # Accept absolute paths.
 
11151
    [\\/]* | ?:[\\/]*)
 
11152
      re_direlt='/[^/][^/]*/\.\./'
 
11153
      # Canonicalize the pathname of ld
 
11154
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11155
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11156
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11157
      done
 
11158
      test -z "$LD" && LD="$ac_prog"
 
11159
      ;;
 
11160
  "")
 
11161
    # If it fails, then pretend we aren't using GCC.
 
11162
    ac_prog=ld
 
11163
    ;;
 
11164
  *)
 
11165
    # If it is relative, then search for the first ld in PATH.
 
11166
    with_gnu_ld=unknown
 
11167
    ;;
 
11168
  esac
 
11169
elif test "$with_gnu_ld" = yes; then
 
11170
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11171
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11172
else
 
11173
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11174
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11175
fi
 
11176
if test "${lt_cv_path_LD+set}" = set; then
 
11177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11178
else
 
11179
  if test -z "$LD"; then
 
11180
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11181
  for ac_dir in $PATH; do
 
11182
    IFS="$lt_save_ifs"
 
11183
    test -z "$ac_dir" && ac_dir=.
 
11184
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11185
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11186
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11187
      # but apparently some variants of GNU ld only accept -v.
 
11188
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11189
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11190
      *GNU* | *'with BFD'*)
 
11191
        test "$with_gnu_ld" != no && break
 
11192
        ;;
 
11193
      *)
 
11194
        test "$with_gnu_ld" != yes && break
 
11195
        ;;
 
11196
      esac
 
11197
    fi
 
11198
  done
 
11199
  IFS="$lt_save_ifs"
 
11200
else
 
11201
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11202
fi
 
11203
fi
 
11204
 
 
11205
LD="$lt_cv_path_LD"
 
11206
if test -n "$LD"; then
 
11207
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11208
echo "${ECHO_T}$LD" >&6; }
 
11209
else
 
11210
  { echo "$as_me:$LINENO: result: no" >&5
 
11211
echo "${ECHO_T}no" >&6; }
 
11212
fi
 
11213
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11214
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11215
   { (exit 1); exit 1; }; }
 
11216
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11217
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11218
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11220
else
 
11221
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11222
case `$LD -v 2>&1 </dev/null` in
 
11223
*GNU* | *'with BFD'*)
 
11224
  lt_cv_prog_gnu_ld=yes
 
11225
  ;;
 
11226
*)
 
11227
  lt_cv_prog_gnu_ld=no
 
11228
  ;;
 
11229
esac
 
11230
fi
 
11231
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11232
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11233
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11234
 
 
11235
 
 
11236
 
 
11237
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11238
  # archiving commands below assume that GNU ld is being used.
 
11239
  if test "$with_gnu_ld" = yes; then
 
11240
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11241
    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'
 
11242
 
 
11243
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11244
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11245
 
 
11246
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11247
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11248
    #     investigate it a little bit more. (MM)
 
11249
    wlarc='${wl}'
 
11250
 
 
11251
    # ancient GNU ld didn't support --whole-archive et. al.
 
11252
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11253
        grep 'no-whole-archive' > /dev/null; then
 
11254
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11255
    else
 
11256
      whole_archive_flag_spec_CXX=
 
11257
    fi
 
11258
  else
 
11259
    with_gnu_ld=no
 
11260
    wlarc=
 
11261
 
 
11262
    # A generic and very simple default shared library creation
 
11263
    # command for GNU C++ for the case where it uses the native
 
11264
    # linker, instead of GNU ld.  If possible, this setting should
 
11265
    # overridden to take advantage of the native linker features on
 
11266
    # the platform it is being used on.
 
11267
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11268
  fi
 
11269
 
 
11270
  # Commands to make compiler produce verbose output that lists
 
11271
  # what "hidden" libraries, object files and flags are used when
 
11272
  # linking a shared library.
 
11273
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11274
 
 
11275
else
 
11276
  GXX=no
 
11277
  with_gnu_ld=no
 
11278
  wlarc=
 
11279
fi
 
11280
 
 
11281
# PORTME: fill in a description of your system's C++ link characteristics
 
11282
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11283
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11284
ld_shlibs_CXX=yes
 
11285
case $host_os in
 
11286
  aix3*)
 
11287
    # FIXME: insert proper C++ library support
 
11288
    ld_shlibs_CXX=no
 
11289
    ;;
 
11290
  aix4* | aix5*)
 
11291
    if test "$host_cpu" = ia64; then
 
11292
      # On IA64, the linker does run time linking by default, so we don't
 
11293
      # have to do anything special.
 
11294
      aix_use_runtimelinking=no
 
11295
      exp_sym_flag='-Bexport'
 
11296
      no_entry_flag=""
 
11297
    else
 
11298
      aix_use_runtimelinking=no
 
11299
 
 
11300
      # Test if we are trying to use run time linking or normal
 
11301
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11302
      # need to do runtime linking.
 
11303
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11304
        for ld_flag in $LDFLAGS; do
 
11305
          case $ld_flag in
 
11306
          *-brtl*)
 
11307
            aix_use_runtimelinking=yes
 
11308
            break
 
11309
            ;;
 
11310
          esac
 
11311
        done
 
11312
        ;;
 
11313
      esac
 
11314
 
 
11315
      exp_sym_flag='-bexport'
 
11316
      no_entry_flag='-bnoentry'
 
11317
    fi
 
11318
 
 
11319
    # When large executables or shared objects are built, AIX ld can
 
11320
    # have problems creating the table of contents.  If linking a library
 
11321
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11322
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11323
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11324
 
 
11325
    archive_cmds_CXX=''
 
11326
    hardcode_direct_CXX=yes
 
11327
    hardcode_libdir_separator_CXX=':'
 
11328
    link_all_deplibs_CXX=yes
 
11329
 
 
11330
    if test "$GXX" = yes; then
 
11331
      case $host_os in aix4.[012]|aix4.[012].*)
 
11332
      # We only want to do this on AIX 4.2 and lower, the check
 
11333
      # below for broken collect2 doesn't work under 4.3+
 
11334
        collect2name=`${CC} -print-prog-name=collect2`
 
11335
        if test -f "$collect2name" && \
 
11336
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11337
        then
 
11338
          # We have reworked collect2
 
11339
          hardcode_direct_CXX=yes
 
11340
        else
 
11341
          # We have old collect2
 
11342
          hardcode_direct_CXX=unsupported
 
11343
          # It fails to find uninstalled libraries when the uninstalled
 
11344
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11345
          # to unsupported forces relinking
 
11346
          hardcode_minus_L_CXX=yes
 
11347
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11348
          hardcode_libdir_separator_CXX=
 
11349
        fi
 
11350
        ;;
 
11351
      esac
 
11352
      shared_flag='-shared'
 
11353
      if test "$aix_use_runtimelinking" = yes; then
 
11354
        shared_flag="$shared_flag "'${wl}-G'
 
11355
      fi
 
11356
    else
 
11357
      # not using gcc
 
11358
      if test "$host_cpu" = ia64; then
 
11359
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11360
        # chokes on -Wl,-G. The following line is correct:
 
11361
        shared_flag='-G'
 
11362
      else
 
11363
        if test "$aix_use_runtimelinking" = yes; then
 
11364
          shared_flag='${wl}-G'
 
11365
        else
 
11366
          shared_flag='${wl}-bM:SRE'
 
11367
        fi
 
11368
      fi
 
11369
    fi
 
11370
 
 
11371
    # It seems that -bexpall does not export symbols beginning with
 
11372
    # underscore (_), so it is better to generate a list of symbols to export.
 
11373
    always_export_symbols_CXX=yes
 
11374
    if test "$aix_use_runtimelinking" = yes; then
 
11375
      # Warning - without using the other runtime loading flags (-brtl),
 
11376
      # -berok will link without error, but may produce a broken library.
 
11377
      allow_undefined_flag_CXX='-berok'
 
11378
      # Determine the default libpath from the value encoded in an empty executable.
 
11379
      cat >conftest.$ac_ext <<_ACEOF
 
11380
/* confdefs.h.  */
 
11381
_ACEOF
 
11382
cat confdefs.h >>conftest.$ac_ext
 
11383
cat >>conftest.$ac_ext <<_ACEOF
 
11384
/* end confdefs.h.  */
 
11385
 
 
11386
int
 
11387
main ()
 
11388
{
 
11389
 
 
11390
  ;
 
11391
  return 0;
 
11392
}
 
11393
_ACEOF
 
11394
rm -f conftest.$ac_objext conftest$ac_exeext
 
11395
if { (ac_try="$ac_link"
 
11396
case "(($ac_try" in
 
11397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11398
  *) ac_try_echo=$ac_try;;
 
11399
esac
 
11400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11401
  (eval "$ac_link") 2>conftest.er1
 
11402
  ac_status=$?
 
11403
  grep -v '^ *+' conftest.er1 >conftest.err
 
11404
  rm -f conftest.er1
 
11405
  cat conftest.err >&5
 
11406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11407
  (exit $ac_status); } &&
 
11408
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
11409
  { (case "(($ac_try" in
 
11410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11411
  *) ac_try_echo=$ac_try;;
 
11412
esac
 
11413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11414
  (eval "$ac_try") 2>&5
 
11415
  ac_status=$?
 
11416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11417
  (exit $ac_status); }; } &&
 
11418
         { ac_try='test -s conftest$ac_exeext'
 
11419
  { (case "(($ac_try" in
 
11420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11421
  *) ac_try_echo=$ac_try;;
 
11422
esac
 
11423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11424
  (eval "$ac_try") 2>&5
 
11425
  ac_status=$?
 
11426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11427
  (exit $ac_status); }; }; then
 
11428
 
 
11429
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11430
}'`
 
11431
# Check for a 64-bit object if we didn't find anything.
 
11432
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11433
}'`; fi
 
11434
else
 
11435
  echo "$as_me: failed program was:" >&5
 
11436
sed 's/^/| /' conftest.$ac_ext >&5
 
11437
 
 
11438
 
 
11439
fi
 
11440
 
 
11441
rm -f core conftest.err conftest.$ac_objext \
 
11442
      conftest$ac_exeext conftest.$ac_ext
 
11443
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11444
 
 
11445
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11446
 
 
11447
      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"
 
11448
     else
 
11449
      if test "$host_cpu" = ia64; then
 
11450
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11451
        allow_undefined_flag_CXX="-z nodefs"
 
11452
        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"
 
11453
      else
 
11454
        # Determine the default libpath from the value encoded in an empty executable.
 
11455
        cat >conftest.$ac_ext <<_ACEOF
 
11456
/* confdefs.h.  */
 
11457
_ACEOF
 
11458
cat confdefs.h >>conftest.$ac_ext
 
11459
cat >>conftest.$ac_ext <<_ACEOF
 
11460
/* end confdefs.h.  */
 
11461
 
 
11462
int
 
11463
main ()
 
11464
{
 
11465
 
 
11466
  ;
 
11467
  return 0;
 
11468
}
 
11469
_ACEOF
 
11470
rm -f conftest.$ac_objext conftest$ac_exeext
 
11471
if { (ac_try="$ac_link"
 
11472
case "(($ac_try" in
 
11473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11474
  *) ac_try_echo=$ac_try;;
 
11475
esac
 
11476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11477
  (eval "$ac_link") 2>conftest.er1
 
11478
  ac_status=$?
 
11479
  grep -v '^ *+' conftest.er1 >conftest.err
 
11480
  rm -f conftest.er1
 
11481
  cat conftest.err >&5
 
11482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11483
  (exit $ac_status); } &&
 
11484
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
11485
  { (case "(($ac_try" in
 
11486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11487
  *) ac_try_echo=$ac_try;;
 
11488
esac
 
11489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11490
  (eval "$ac_try") 2>&5
 
11491
  ac_status=$?
 
11492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11493
  (exit $ac_status); }; } &&
 
11494
         { ac_try='test -s conftest$ac_exeext'
 
11495
  { (case "(($ac_try" in
 
11496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11497
  *) ac_try_echo=$ac_try;;
 
11498
esac
 
11499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11500
  (eval "$ac_try") 2>&5
 
11501
  ac_status=$?
 
11502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11503
  (exit $ac_status); }; }; then
 
11504
 
 
11505
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11506
}'`
 
11507
# Check for a 64-bit object if we didn't find anything.
 
11508
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11509
}'`; fi
 
11510
else
 
11511
  echo "$as_me: failed program was:" >&5
 
11512
sed 's/^/| /' conftest.$ac_ext >&5
 
11513
 
 
11514
 
 
11515
fi
 
11516
 
 
11517
rm -f core conftest.err conftest.$ac_objext \
 
11518
      conftest$ac_exeext conftest.$ac_ext
 
11519
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11520
 
 
11521
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11522
        # Warning - without using the other run time loading flags,
 
11523
        # -berok will link without error, but may produce a broken library.
 
11524
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11525
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11526
        # Exported symbols can be pulled into shared objects from archives
 
11527
        whole_archive_flag_spec_CXX='$convenience'
 
11528
        archive_cmds_need_lc_CXX=yes
 
11529
        # This is similar to how AIX traditionally builds its shared libraries.
 
11530
        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'
 
11531
      fi
 
11532
    fi
 
11533
    ;;
 
11534
 
 
11535
  beos*)
 
11536
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11537
      allow_undefined_flag_CXX=unsupported
 
11538
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11539
      # support --undefined.  This deserves some investigation.  FIXME
 
11540
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11541
    else
 
11542
      ld_shlibs_CXX=no
 
11543
    fi
 
11544
    ;;
 
11545
 
 
11546
  chorus*)
 
11547
    case $cc_basename in
 
11548
      *)
 
11549
        # FIXME: insert proper C++ library support
 
11550
        ld_shlibs_CXX=no
 
11551
        ;;
 
11552
    esac
 
11553
    ;;
 
11554
 
 
11555
  cygwin* | mingw* | pw32*)
 
11556
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11557
    # as there is no search path for DLLs.
 
11558
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11559
    allow_undefined_flag_CXX=unsupported
 
11560
    always_export_symbols_CXX=no
 
11561
    enable_shared_with_static_runtimes_CXX=yes
 
11562
 
 
11563
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11564
      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'
 
11565
      # If the export-symbols file already is a .def file (1st line
 
11566
      # is EXPORTS), use it as is; otherwise, prepend...
 
11567
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11568
        cp $export_symbols $output_objdir/$soname.def;
 
11569
      else
 
11570
        echo EXPORTS > $output_objdir/$soname.def;
 
11571
        cat $export_symbols >> $output_objdir/$soname.def;
 
11572
      fi~
 
11573
      $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'
 
11574
    else
 
11575
      ld_shlibs_CXX=no
 
11576
    fi
 
11577
  ;;
 
11578
      darwin* | rhapsody*)
 
11579
        case $host_os in
 
11580
        rhapsody* | darwin1.[012])
 
11581
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11582
         ;;
 
11583
       *) # Darwin 1.3 on
 
11584
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11585
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11586
         else
 
11587
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11588
             10.[012])
 
11589
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11590
               ;;
 
11591
             10.*)
 
11592
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11593
               ;;
 
11594
           esac
 
11595
         fi
 
11596
         ;;
 
11597
        esac
 
11598
      archive_cmds_need_lc_CXX=no
 
11599
      hardcode_direct_CXX=no
 
11600
      hardcode_automatic_CXX=yes
 
11601
      hardcode_shlibpath_var_CXX=unsupported
 
11602
      whole_archive_flag_spec_CXX=''
 
11603
      link_all_deplibs_CXX=yes
 
11604
 
 
11605
    if test "$GXX" = yes ; then
 
11606
      lt_int_apple_cc_single_mod=no
 
11607
      output_verbose_link_cmd='echo'
 
11608
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11609
       lt_int_apple_cc_single_mod=yes
 
11610
      fi
 
11611
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11612
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11613
      else
 
11614
          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'
 
11615
        fi
 
11616
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11617
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11618
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11619
            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}'
 
11620
          else
 
11621
            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}'
 
11622
          fi
 
11623
            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}'
 
11624
      else
 
11625
      case $cc_basename in
 
11626
        xlc*)
 
11627
         output_verbose_link_cmd='echo'
 
11628
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11629
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11630
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11631
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11632
          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}'
 
11633
          ;;
 
11634
       *)
 
11635
         ld_shlibs_CXX=no
 
11636
          ;;
 
11637
      esac
 
11638
      fi
 
11639
        ;;
 
11640
 
 
11641
  dgux*)
 
11642
    case $cc_basename in
 
11643
      ec++*)
 
11644
        # FIXME: insert proper C++ library support
 
11645
        ld_shlibs_CXX=no
 
11646
        ;;
 
11647
      ghcx*)
 
11648
        # Green Hills C++ Compiler
 
11649
        # FIXME: insert proper C++ library support
 
11650
        ld_shlibs_CXX=no
 
11651
        ;;
 
11652
      *)
 
11653
        # FIXME: insert proper C++ library support
 
11654
        ld_shlibs_CXX=no
 
11655
        ;;
 
11656
    esac
 
11657
    ;;
 
11658
  freebsd[12]*)
 
11659
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11660
    ld_shlibs_CXX=no
 
11661
    ;;
 
11662
  freebsd-elf*)
 
11663
    archive_cmds_need_lc_CXX=no
 
11664
    ;;
 
11665
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
11666
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11667
    # conventions
 
11668
    ld_shlibs_CXX=yes
 
11669
    ;;
 
11670
  gnu*)
 
11671
    ;;
 
11672
  hpux9*)
 
11673
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11674
    hardcode_libdir_separator_CXX=:
 
11675
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11676
    hardcode_direct_CXX=yes
 
11677
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11678
                                # but as the default
 
11679
                                # location of the library.
 
11680
 
 
11681
    case $cc_basename in
 
11682
    CC*)
 
11683
      # FIXME: insert proper C++ library support
 
11684
      ld_shlibs_CXX=no
 
11685
      ;;
 
11686
    aCC*)
 
11687
      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'
 
11688
      # Commands to make compiler produce verbose output that lists
 
11689
      # what "hidden" libraries, object files and flags are used when
 
11690
      # linking a shared library.
 
11691
      #
 
11692
      # There doesn't appear to be a way to prevent this compiler from
 
11693
      # explicitly linking system object files so we need to strip them
 
11694
      # from the output so that they don't get included in the library
 
11695
      # dependencies.
 
11696
      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'
 
11697
      ;;
 
11698
    *)
 
11699
      if test "$GXX" = yes; then
 
11700
        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'
 
11701
      else
 
11702
        # FIXME: insert proper C++ library support
 
11703
        ld_shlibs_CXX=no
 
11704
      fi
 
11705
      ;;
 
11706
    esac
 
11707
    ;;
 
11708
  hpux10*|hpux11*)
 
11709
    if test $with_gnu_ld = no; then
 
11710
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11711
      hardcode_libdir_separator_CXX=:
 
11712
 
 
11713
      case $host_cpu in
 
11714
      hppa*64*|ia64*)
 
11715
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11716
        ;;
 
11717
      *)
 
11718
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11719
        ;;
 
11720
      esac
 
11721
    fi
 
11722
    case $host_cpu in
 
11723
    hppa*64*|ia64*)
 
11724
      hardcode_direct_CXX=no
 
11725
      hardcode_shlibpath_var_CXX=no
 
11726
      ;;
 
11727
    *)
 
11728
      hardcode_direct_CXX=yes
 
11729
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11730
                                              # but as the default
 
11731
                                              # location of the library.
 
11732
      ;;
 
11733
    esac
 
11734
 
 
11735
    case $cc_basename in
 
11736
      CC*)
 
11737
        # FIXME: insert proper C++ library support
 
11738
        ld_shlibs_CXX=no
 
11739
        ;;
 
11740
      aCC*)
 
11741
        case $host_cpu in
 
11742
        hppa*64*)
 
11743
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11744
          ;;
 
11745
        ia64*)
 
11746
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11747
          ;;
 
11748
        *)
 
11749
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11750
          ;;
 
11751
        esac
 
11752
        # Commands to make compiler produce verbose output that lists
 
11753
        # what "hidden" libraries, object files and flags are used when
 
11754
        # linking a shared library.
 
11755
        #
 
11756
        # There doesn't appear to be a way to prevent this compiler from
 
11757
        # explicitly linking system object files so we need to strip them
 
11758
        # from the output so that they don't get included in the library
 
11759
        # dependencies.
 
11760
        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'
 
11761
        ;;
 
11762
      *)
 
11763
        if test "$GXX" = yes; then
 
11764
          if test $with_gnu_ld = no; then
 
11765
            case $host_cpu in
 
11766
            hppa*64*)
 
11767
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11768
              ;;
 
11769
            ia64*)
 
11770
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11771
              ;;
 
11772
            *)
 
11773
              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'
 
11774
              ;;
 
11775
            esac
 
11776
          fi
 
11777
        else
 
11778
          # FIXME: insert proper C++ library support
 
11779
          ld_shlibs_CXX=no
 
11780
        fi
 
11781
        ;;
 
11782
    esac
 
11783
    ;;
 
11784
  interix3*)
 
11785
    hardcode_direct_CXX=no
 
11786
    hardcode_shlibpath_var_CXX=no
 
11787
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11788
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11789
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11790
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11791
    # default) and relocated if they conflict, which is a slow very memory
 
11792
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11793
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11794
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11795
    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'
 
11796
    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'
 
11797
    ;;
 
11798
  irix5* | irix6*)
 
11799
    case $cc_basename in
 
11800
      CC*)
 
11801
        # SGI C++
 
11802
        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'
 
11803
 
 
11804
        # Archives containing C++ object files must be created using
 
11805
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11806
        # necessary to make sure instantiated templates are included
 
11807
        # in the archive.
 
11808
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11809
        ;;
 
11810
      *)
 
11811
        if test "$GXX" = yes; then
 
11812
          if test "$with_gnu_ld" = no; then
 
11813
            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'
 
11814
          else
 
11815
            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'
 
11816
          fi
 
11817
        fi
 
11818
        link_all_deplibs_CXX=yes
 
11819
        ;;
 
11820
    esac
 
11821
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11822
    hardcode_libdir_separator_CXX=:
 
11823
    ;;
 
11824
  linux*)
 
11825
    case $cc_basename in
 
11826
      KCC*)
 
11827
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11828
 
 
11829
        # KCC will only create a shared library if the output file
 
11830
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11831
        # to its proper name (with version) after linking.
 
11832
        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'
 
11833
        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'
 
11834
        # Commands to make compiler produce verbose output that lists
 
11835
        # what "hidden" libraries, object files and flags are used when
 
11836
        # linking a shared library.
 
11837
        #
 
11838
        # There doesn't appear to be a way to prevent this compiler from
 
11839
        # explicitly linking system object files so we need to strip them
 
11840
        # from the output so that they don't get included in the library
 
11841
        # dependencies.
 
11842
        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'
 
11843
 
 
11844
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11845
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11846
 
 
11847
        # Archives containing C++ object files must be created using
 
11848
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11849
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11850
        ;;
 
11851
      icpc*)
 
11852
        # Intel C++
 
11853
        with_gnu_ld=yes
 
11854
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11855
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11856
        # earlier do not add the objects themselves.
 
11857
        case `$CC -V 2>&1` in
 
11858
        *"Version 7."*)
 
11859
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11860
          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'
 
11861
          ;;
 
11862
        *)  # Version 8.0 or newer
 
11863
          tmp_idyn=
 
11864
          case $host_cpu in
 
11865
            ia64*) tmp_idyn=' -i_dynamic';;
 
11866
          esac
 
11867
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11868
          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'
 
11869
          ;;
 
11870
        esac
 
11871
        archive_cmds_need_lc_CXX=no
 
11872
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11873
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11874
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11875
        ;;
 
11876
      pgCC*)
 
11877
        # Portland Group C++ compiler
 
11878
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11879
        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'
 
11880
 
 
11881
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11882
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11883
        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'
 
11884
        ;;
 
11885
      cxx*)
 
11886
        # Compaq C++
 
11887
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11888
        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'
 
11889
 
 
11890
        runpath_var=LD_RUN_PATH
 
11891
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11892
        hardcode_libdir_separator_CXX=:
 
11893
 
 
11894
        # Commands to make compiler produce verbose output that lists
 
11895
        # what "hidden" libraries, object files and flags are used when
 
11896
        # linking a shared library.
 
11897
        #
 
11898
        # There doesn't appear to be a way to prevent this compiler from
 
11899
        # explicitly linking system object files so we need to strip them
 
11900
        # from the output so that they don't get included in the library
 
11901
        # dependencies.
 
11902
        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'
 
11903
        ;;
 
11904
    esac
 
11905
    ;;
 
11906
  lynxos*)
 
11907
    # FIXME: insert proper C++ library support
 
11908
    ld_shlibs_CXX=no
 
11909
    ;;
 
11910
  m88k*)
 
11911
    # FIXME: insert proper C++ library support
 
11912
    ld_shlibs_CXX=no
 
11913
    ;;
 
11914
  mvs*)
 
11915
    case $cc_basename in
 
11916
      cxx*)
 
11917
        # FIXME: insert proper C++ library support
 
11918
        ld_shlibs_CXX=no
 
11919
        ;;
 
11920
      *)
 
11921
        # FIXME: insert proper C++ library support
 
11922
        ld_shlibs_CXX=no
 
11923
        ;;
 
11924
    esac
 
11925
    ;;
 
11926
  netbsd*)
 
11927
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11928
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11929
      wlarc=
 
11930
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11931
      hardcode_direct_CXX=yes
 
11932
      hardcode_shlibpath_var_CXX=no
 
11933
    fi
 
11934
    # Workaround some broken pre-1.5 toolchains
 
11935
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11936
    ;;
 
11937
  openbsd2*)
 
11938
    # C++ shared libraries are fairly broken
 
11939
    ld_shlibs_CXX=no
 
11940
    ;;
 
11941
  openbsd*)
 
11942
    hardcode_direct_CXX=yes
 
11943
    hardcode_shlibpath_var_CXX=no
 
11944
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11945
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11946
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11947
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11948
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11949
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11950
    fi
 
11951
    output_verbose_link_cmd='echo'
 
11952
    ;;
 
11953
  osf3*)
 
11954
    case $cc_basename in
 
11955
      KCC*)
 
11956
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11957
 
 
11958
        # KCC will only create a shared library if the output file
 
11959
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11960
        # to its proper name (with version) after linking.
 
11961
        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'
 
11962
 
 
11963
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11964
        hardcode_libdir_separator_CXX=:
 
11965
 
 
11966
        # Archives containing C++ object files must be created using
 
11967
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11968
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11969
 
 
11970
        ;;
 
11971
      RCC*)
 
11972
        # Rational C++ 2.4.1
 
11973
        # FIXME: insert proper C++ library support
 
11974
        ld_shlibs_CXX=no
 
11975
        ;;
 
11976
      cxx*)
 
11977
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11978
        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'
 
11979
 
 
11980
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11981
        hardcode_libdir_separator_CXX=:
 
11982
 
 
11983
        # Commands to make compiler produce verbose output that lists
 
11984
        # what "hidden" libraries, object files and flags are used when
 
11985
        # linking a shared library.
 
11986
        #
 
11987
        # There doesn't appear to be a way to prevent this compiler from
 
11988
        # explicitly linking system object files so we need to strip them
 
11989
        # from the output so that they don't get included in the library
 
11990
        # dependencies.
 
11991
        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'
 
11992
        ;;
 
11993
      *)
 
11994
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11995
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11996
          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'
 
11997
 
 
11998
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11999
          hardcode_libdir_separator_CXX=:
 
12000
 
 
12001
          # Commands to make compiler produce verbose output that lists
 
12002
          # what "hidden" libraries, object files and flags are used when
 
12003
          # linking a shared library.
 
12004
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12005
 
 
12006
        else
 
12007
          # FIXME: insert proper C++ library support
 
12008
          ld_shlibs_CXX=no
 
12009
        fi
 
12010
        ;;
 
12011
    esac
 
12012
    ;;
 
12013
  osf4* | osf5*)
 
12014
    case $cc_basename in
 
12015
      KCC*)
 
12016
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12017
 
 
12018
        # KCC will only create a shared library if the output file
 
12019
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12020
        # to its proper name (with version) after linking.
 
12021
        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'
 
12022
 
 
12023
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12024
        hardcode_libdir_separator_CXX=:
 
12025
 
 
12026
        # Archives containing C++ object files must be created using
 
12027
        # the KAI C++ compiler.
 
12028
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12029
        ;;
 
12030
      RCC*)
 
12031
        # Rational C++ 2.4.1
 
12032
        # FIXME: insert proper C++ library support
 
12033
        ld_shlibs_CXX=no
 
12034
        ;;
 
12035
      cxx*)
 
12036
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12037
        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'
 
12038
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12039
          echo "-hidden">> $lib.exp~
 
12040
          $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~
 
12041
          $rm $lib.exp'
 
12042
 
 
12043
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12044
        hardcode_libdir_separator_CXX=:
 
12045
 
 
12046
        # Commands to make compiler produce verbose output that lists
 
12047
        # what "hidden" libraries, object files and flags are used when
 
12048
        # linking a shared library.
 
12049
        #
 
12050
        # There doesn't appear to be a way to prevent this compiler from
 
12051
        # explicitly linking system object files so we need to strip them
 
12052
        # from the output so that they don't get included in the library
 
12053
        # dependencies.
 
12054
        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'
 
12055
        ;;
 
12056
      *)
 
12057
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12058
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12059
         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'
 
12060
 
 
12061
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12062
          hardcode_libdir_separator_CXX=:
 
12063
 
 
12064
          # Commands to make compiler produce verbose output that lists
 
12065
          # what "hidden" libraries, object files and flags are used when
 
12066
          # linking a shared library.
 
12067
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12068
 
 
12069
        else
 
12070
          # FIXME: insert proper C++ library support
 
12071
          ld_shlibs_CXX=no
 
12072
        fi
 
12073
        ;;
 
12074
    esac
 
12075
    ;;
 
12076
  psos*)
 
12077
    # FIXME: insert proper C++ library support
 
12078
    ld_shlibs_CXX=no
 
12079
    ;;
 
12080
  sunos4*)
 
12081
    case $cc_basename in
 
12082
      CC*)
 
12083
        # Sun C++ 4.x
 
12084
        # FIXME: insert proper C++ library support
 
12085
        ld_shlibs_CXX=no
 
12086
        ;;
 
12087
      lcc*)
 
12088
        # Lucid
 
12089
        # FIXME: insert proper C++ library support
 
12090
        ld_shlibs_CXX=no
 
12091
        ;;
 
12092
      *)
 
12093
        # FIXME: insert proper C++ library support
 
12094
        ld_shlibs_CXX=no
 
12095
        ;;
 
12096
    esac
 
12097
    ;;
 
12098
  solaris*)
 
12099
    case $cc_basename in
 
12100
      CC*)
 
12101
        # Sun C++ 4.2, 5.x and Centerline C++
 
12102
        archive_cmds_need_lc_CXX=yes
 
12103
        no_undefined_flag_CXX=' -zdefs'
 
12104
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12105
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12106
        $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'
 
12107
 
 
12108
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12109
        hardcode_shlibpath_var_CXX=no
 
12110
        case $host_os in
 
12111
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12112
          *)
 
12113
            # The C++ compiler is used as linker so we must use $wl
 
12114
            # flag to pass the commands to the underlying system
 
12115
            # linker. We must also pass each convience library through
 
12116
            # to the system linker between allextract/defaultextract.
 
12117
            # The C++ compiler will combine linker options so we
 
12118
            # cannot just pass the convience library names through
 
12119
            # without $wl.
 
12120
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12121
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
12122
            ;;
 
12123
        esac
 
12124
        link_all_deplibs_CXX=yes
 
12125
 
 
12126
        output_verbose_link_cmd='echo'
 
12127
 
 
12128
        # Archives containing C++ object files must be created using
 
12129
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12130
        # necessary to make sure instantiated templates are included
 
12131
        # in the archive.
 
12132
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12133
        ;;
 
12134
      gcx*)
 
12135
        # Green Hills C++ Compiler
 
12136
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12137
 
 
12138
        # The C++ compiler must be used to create the archive.
 
12139
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12140
        ;;
 
12141
      *)
 
12142
        # GNU C++ compiler with Solaris linker
 
12143
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12144
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12145
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12146
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12147
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12148
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12149
 
 
12150
            # Commands to make compiler produce verbose output that lists
 
12151
            # what "hidden" libraries, object files and flags are used when
 
12152
            # linking a shared library.
 
12153
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12154
          else
 
12155
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12156
            # platform.
 
12157
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12158
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12159
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12160
 
 
12161
            # Commands to make compiler produce verbose output that lists
 
12162
            # what "hidden" libraries, object files and flags are used when
 
12163
            # linking a shared library.
 
12164
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12165
          fi
 
12166
 
 
12167
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12168
        fi
 
12169
        ;;
 
12170
    esac
 
12171
    ;;
 
12172
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12173
    no_undefined_flag_CXX='${wl}-z,text'
 
12174
    archive_cmds_need_lc_CXX=no
 
12175
    hardcode_shlibpath_var_CXX=no
 
12176
    runpath_var='LD_RUN_PATH'
 
12177
 
 
12178
    case $cc_basename in
 
12179
      CC*)
 
12180
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12181
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12182
        ;;
 
12183
      *)
 
12184
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12185
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12186
        ;;
 
12187
    esac
 
12188
    ;;
 
12189
  sysv5* | sco3.2v5* | sco5v6*)
 
12190
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12191
    # link with -lc, and that would cause any symbols used from libc to
 
12192
    # always be unresolved, which means just about no library would
 
12193
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12194
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12195
    # as -z defs.
 
12196
    # For security reasons, it is highly recommended that you always
 
12197
    # use absolute paths for naming shared libraries, and exclude the
 
12198
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12199
    # requires that you compile everything twice, which is a pain.
 
12200
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12201
    # non-empty value in the environment.  Most likely only useful for
 
12202
    # creating official distributions of packages.
 
12203
    # This is a hack until libtool officially supports absolute path
 
12204
    # names for shared libraries.
 
12205
    no_undefined_flag_CXX='${wl}-z,text'
 
12206
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12207
    archive_cmds_need_lc_CXX=no
 
12208
    hardcode_shlibpath_var_CXX=no
 
12209
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12210
    hardcode_libdir_separator_CXX=':'
 
12211
    link_all_deplibs_CXX=yes
 
12212
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12213
    runpath_var='LD_RUN_PATH'
 
12214
 
 
12215
    case $cc_basename in
 
12216
      CC*)
 
12217
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12218
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12219
        ;;
 
12220
      *)
 
12221
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12222
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12223
        ;;
 
12224
    esac
 
12225
    ;;
 
12226
  tandem*)
 
12227
    case $cc_basename in
 
12228
      NCC*)
 
12229
        # NonStop-UX NCC 3.20
 
12230
        # FIXME: insert proper C++ library support
 
12231
        ld_shlibs_CXX=no
 
12232
        ;;
 
12233
      *)
 
12234
        # FIXME: insert proper C++ library support
 
12235
        ld_shlibs_CXX=no
 
12236
        ;;
 
12237
    esac
 
12238
    ;;
 
12239
  vxworks*)
 
12240
    # FIXME: insert proper C++ library support
 
12241
    ld_shlibs_CXX=no
 
12242
    ;;
 
12243
  *)
 
12244
    # FIXME: insert proper C++ library support
 
12245
    ld_shlibs_CXX=no
 
12246
    ;;
 
12247
esac
 
12248
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12249
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12250
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12251
 
 
12252
GCC_CXX="$GXX"
 
12253
LD_CXX="$LD"
 
12254
 
 
12255
 
 
12256
cat > conftest.$ac_ext <<EOF
 
12257
class Foo
 
12258
{
 
12259
public:
 
12260
  Foo (void) { a = 0; }
 
12261
private:
 
12262
  int a;
 
12263
};
 
12264
EOF
 
12265
 
 
12266
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12267
  (eval $ac_compile) 2>&5
 
12268
  ac_status=$?
 
12269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12270
  (exit $ac_status); }; then
 
12271
  # Parse the compiler output and extract the necessary
 
12272
  # objects, libraries and library flags.
 
12273
 
 
12274
  # Sentinel used to keep track of whether or not we are before
 
12275
  # the conftest object file.
 
12276
  pre_test_object_deps_done=no
 
12277
 
 
12278
  # The `*' in the case matches for architectures that use `case' in
 
12279
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12280
  # eval without this substitution.
 
12281
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12282
 
 
12283
  for p in `eval $output_verbose_link_cmd`; do
 
12284
    case $p in
 
12285
 
 
12286
    -L* | -R* | -l*)
 
12287
       # Some compilers place space between "-{L,R}" and the path.
 
12288
       # Remove the space.
 
12289
       if test $p = "-L" \
 
12290
          || test $p = "-R"; then
 
12291
         prev=$p
 
12292
         continue
 
12293
       else
 
12294
         prev=
 
12295
       fi
 
12296
 
 
12297
       if test "$pre_test_object_deps_done" = no; then
 
12298
         case $p in
 
12299
         -L* | -R*)
 
12300
           # Internal compiler library paths should come after those
 
12301
           # provided the user.  The postdeps already come after the
 
12302
           # user supplied libs so there is no need to process them.
 
12303
           if test -z "$compiler_lib_search_path_CXX"; then
 
12304
             compiler_lib_search_path_CXX="${prev}${p}"
 
12305
           else
 
12306
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12307
           fi
 
12308
           ;;
 
12309
         # The "-l" case would never come before the object being
 
12310
         # linked, so don't bother handling this case.
 
12311
         esac
 
12312
       else
 
12313
         if test -z "$postdeps_CXX"; then
 
12314
           postdeps_CXX="${prev}${p}"
 
12315
         else
 
12316
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12317
         fi
 
12318
       fi
 
12319
       ;;
 
12320
 
 
12321
    *.$objext)
 
12322
       # This assumes that the test object file only shows up
 
12323
       # once in the compiler output.
 
12324
       if test "$p" = "conftest.$objext"; then
 
12325
         pre_test_object_deps_done=yes
 
12326
         continue
 
12327
       fi
 
12328
 
 
12329
       if test "$pre_test_object_deps_done" = no; then
 
12330
         if test -z "$predep_objects_CXX"; then
 
12331
           predep_objects_CXX="$p"
 
12332
         else
 
12333
           predep_objects_CXX="$predep_objects_CXX $p"
 
12334
         fi
 
12335
       else
 
12336
         if test -z "$postdep_objects_CXX"; then
 
12337
           postdep_objects_CXX="$p"
 
12338
         else
 
12339
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12340
         fi
 
12341
       fi
 
12342
       ;;
 
12343
 
 
12344
    *) ;; # Ignore the rest.
 
12345
 
 
12346
    esac
 
12347
  done
 
12348
 
 
12349
  # Clean up.
 
12350
  rm -f a.out a.exe
 
12351
else
 
12352
  echo "libtool.m4: error: problem compiling CXX test program"
 
12353
fi
 
12354
 
 
12355
$rm -f confest.$objext
 
12356
 
 
12357
# PORTME: override above test on systems where it is broken
 
12358
case $host_os in
 
12359
interix3*)
 
12360
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12361
  # hack all around it, let's just trust "g++" to DTRT.
 
12362
  predep_objects_CXX=
 
12363
  postdep_objects_CXX=
 
12364
  postdeps_CXX=
 
12365
  ;;
 
12366
 
 
12367
solaris*)
 
12368
  case $cc_basename in
 
12369
  CC*)
 
12370
    # Adding this requires a known-good setup of shared libraries for
 
12371
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12372
    # archive will be linked into the output, leading to subtle bugs.
 
12373
    postdeps_CXX='-lCstd -lCrun'
 
12374
    ;;
 
12375
  esac
 
12376
  ;;
 
12377
esac
 
12378
 
 
12379
 
 
12380
case " $postdeps_CXX " in
 
12381
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12382
esac
 
12383
 
 
12384
lt_prog_compiler_wl_CXX=
 
12385
lt_prog_compiler_pic_CXX=
 
12386
lt_prog_compiler_static_CXX=
 
12387
 
 
12388
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12389
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12390
 
 
12391
  # C++ specific cases for pic, static, wl, etc.
 
12392
  if test "$GXX" = yes; then
 
12393
    lt_prog_compiler_wl_CXX='-Wl,'
 
12394
    lt_prog_compiler_static_CXX='-static'
 
12395
 
 
12396
    case $host_os in
 
12397
    aix*)
 
12398
      # All AIX code is PIC.
 
12399
      if test "$host_cpu" = ia64; then
 
12400
        # AIX 5 now supports IA64 processor
 
12401
        lt_prog_compiler_static_CXX='-Bstatic'
 
12402
      fi
 
12403
      ;;
 
12404
    amigaos*)
 
12405
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12406
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12407
      # like `-m68040'.
 
12408
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12409
      ;;
 
12410
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12411
      # PIC is the default for these OSes.
 
12412
      ;;
 
12413
    mingw* | os2* | pw32*)
 
12414
      # This hack is so that the source file can tell whether it is being
 
12415
      # built for inclusion in a dll (and should export symbols for example).
 
12416
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12417
      ;;
 
12418
    darwin* | rhapsody*)
 
12419
      # PIC is the default on this platform
 
12420
      # Common symbols not allowed in MH_DYLIB files
 
12421
      lt_prog_compiler_pic_CXX='-fno-common'
 
12422
      ;;
 
12423
    *djgpp*)
 
12424
      # DJGPP does not support shared libraries at all
 
12425
      lt_prog_compiler_pic_CXX=
 
12426
      ;;
 
12427
    interix3*)
 
12428
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12429
      # Instead, we relocate shared libraries at runtime.
 
12430
      ;;
 
12431
    sysv4*MP*)
 
12432
      if test -d /usr/nec; then
 
12433
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12434
      fi
 
12435
      ;;
 
12436
    hpux*)
 
12437
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12438
      # not for PA HP-UX.
 
12439
      case $host_cpu in
 
12440
      hppa*64*|ia64*)
 
12441
        ;;
 
12442
      *)
 
12443
        lt_prog_compiler_pic_CXX='-fPIC'
 
12444
        ;;
 
12445
      esac
 
12446
      ;;
 
12447
    *)
 
12448
      lt_prog_compiler_pic_CXX='-fPIC'
 
12449
      ;;
 
12450
    esac
 
12451
  else
 
12452
    case $host_os in
 
12453
      aix4* | aix5*)
 
12454
        # All AIX code is PIC.
 
12455
        if test "$host_cpu" = ia64; then
 
12456
          # AIX 5 now supports IA64 processor
 
12457
          lt_prog_compiler_static_CXX='-Bstatic'
 
12458
        else
 
12459
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12460
        fi
 
12461
        ;;
 
12462
      chorus*)
 
12463
        case $cc_basename in
 
12464
        cxch68*)
 
12465
          # Green Hills C++ Compiler
 
12466
          # _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"
 
12467
          ;;
 
12468
        esac
 
12469
        ;;
 
12470
       darwin*)
 
12471
         # PIC is the default on this platform
 
12472
         # Common symbols not allowed in MH_DYLIB files
 
12473
         case $cc_basename in
 
12474
           xlc*)
 
12475
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12476
           lt_prog_compiler_wl_CXX='-Wl,'
 
12477
           ;;
 
12478
         esac
 
12479
       ;;
 
12480
      dgux*)
 
12481
        case $cc_basename in
 
12482
          ec++*)
 
12483
            lt_prog_compiler_pic_CXX='-KPIC'
 
12484
            ;;
 
12485
          ghcx*)
 
12486
            # Green Hills C++ Compiler
 
12487
            lt_prog_compiler_pic_CXX='-pic'
 
12488
            ;;
 
12489
          *)
 
12490
            ;;
 
12491
        esac
 
12492
        ;;
 
12493
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
12494
        # FreeBSD uses GNU C++
 
12495
        ;;
 
12496
      hpux9* | hpux10* | hpux11*)
 
12497
        case $cc_basename in
 
12498
          CC*)
 
12499
            lt_prog_compiler_wl_CXX='-Wl,'
 
12500
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12501
            if test "$host_cpu" != ia64; then
 
12502
              lt_prog_compiler_pic_CXX='+Z'
 
12503
            fi
 
12504
            ;;
 
12505
          aCC*)
 
12506
            lt_prog_compiler_wl_CXX='-Wl,'
 
12507
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12508
            case $host_cpu in
 
12509
            hppa*64*|ia64*)
 
12510
              # +Z the default
 
12511
              ;;
 
12512
            *)
 
12513
              lt_prog_compiler_pic_CXX='+Z'
 
12514
              ;;
 
12515
            esac
 
12516
            ;;
 
12517
          *)
 
12518
            ;;
 
12519
        esac
 
12520
        ;;
 
12521
      interix*)
 
12522
        # This is c89, which is MS Visual C++ (no shared libs)
 
12523
        # Anyone wants to do a port?
 
12524
        ;;
 
12525
      irix5* | irix6* | nonstopux*)
 
12526
        case $cc_basename in
 
12527
          CC*)
 
12528
            lt_prog_compiler_wl_CXX='-Wl,'
 
12529
            lt_prog_compiler_static_CXX='-non_shared'
 
12530
            # CC pic flag -KPIC is the default.
 
12531
            ;;
 
12532
          *)
 
12533
            ;;
 
12534
        esac
 
12535
        ;;
 
12536
      linux*)
 
12537
        case $cc_basename in
 
12538
          KCC*)
 
12539
            # KAI C++ Compiler
 
12540
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12541
            lt_prog_compiler_pic_CXX='-fPIC'
 
12542
            ;;
 
12543
          icpc* | ecpc*)
 
12544
            # Intel C++
 
12545
            lt_prog_compiler_wl_CXX='-Wl,'
 
12546
            lt_prog_compiler_pic_CXX='-KPIC'
 
12547
            lt_prog_compiler_static_CXX='-static'
 
12548
            ;;
 
12549
          pgCC*)
 
12550
            # Portland Group C++ compiler.
 
12551
            lt_prog_compiler_wl_CXX='-Wl,'
 
12552
            lt_prog_compiler_pic_CXX='-fpic'
 
12553
            lt_prog_compiler_static_CXX='-Bstatic'
 
12554
            ;;
 
12555
          cxx*)
 
12556
            # Compaq C++
 
12557
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12558
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12559
            lt_prog_compiler_pic_CXX=
 
12560
            lt_prog_compiler_static_CXX='-non_shared'
 
12561
            ;;
 
12562
          *)
 
12563
            ;;
 
12564
        esac
 
12565
        ;;
 
12566
      lynxos*)
 
12567
        ;;
 
12568
      m88k*)
 
12569
        ;;
 
12570
      mvs*)
 
12571
        case $cc_basename in
 
12572
          cxx*)
 
12573
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12574
            ;;
 
12575
          *)
 
12576
            ;;
 
12577
        esac
 
12578
        ;;
 
12579
      netbsd*)
 
12580
        ;;
 
12581
      osf3* | osf4* | osf5*)
 
12582
        case $cc_basename in
 
12583
          KCC*)
 
12584
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12585
            ;;
 
12586
          RCC*)
 
12587
            # Rational C++ 2.4.1
 
12588
            lt_prog_compiler_pic_CXX='-pic'
 
12589
            ;;
 
12590
          cxx*)
 
12591
            # Digital/Compaq C++
 
12592
            lt_prog_compiler_wl_CXX='-Wl,'
 
12593
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12594
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12595
            lt_prog_compiler_pic_CXX=
 
12596
            lt_prog_compiler_static_CXX='-non_shared'
 
12597
            ;;
 
12598
          *)
 
12599
            ;;
 
12600
        esac
 
12601
        ;;
 
12602
      psos*)
 
12603
        ;;
 
12604
      solaris*)
 
12605
        case $cc_basename in
 
12606
          CC*)
 
12607
            # Sun C++ 4.2, 5.x and Centerline C++
 
12608
            lt_prog_compiler_pic_CXX='-KPIC'
 
12609
            lt_prog_compiler_static_CXX='-Bstatic'
 
12610
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12611
            ;;
 
12612
          gcx*)
 
12613
            # Green Hills C++ Compiler
 
12614
            lt_prog_compiler_pic_CXX='-PIC'
 
12615
            ;;
 
12616
          *)
 
12617
            ;;
 
12618
        esac
 
12619
        ;;
 
12620
      sunos4*)
 
12621
        case $cc_basename in
 
12622
          CC*)
 
12623
            # Sun C++ 4.x
 
12624
            lt_prog_compiler_pic_CXX='-pic'
 
12625
            lt_prog_compiler_static_CXX='-Bstatic'
 
12626
            ;;
 
12627
          lcc*)
 
12628
            # Lucid
 
12629
            lt_prog_compiler_pic_CXX='-pic'
 
12630
            ;;
 
12631
          *)
 
12632
            ;;
 
12633
        esac
 
12634
        ;;
 
12635
      tandem*)
 
12636
        case $cc_basename in
 
12637
          NCC*)
 
12638
            # NonStop-UX NCC 3.20
 
12639
            lt_prog_compiler_pic_CXX='-KPIC'
 
12640
            ;;
 
12641
          *)
 
12642
            ;;
 
12643
        esac
 
12644
        ;;
 
12645
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12646
        case $cc_basename in
 
12647
          CC*)
 
12648
            lt_prog_compiler_wl_CXX='-Wl,'
 
12649
            lt_prog_compiler_pic_CXX='-KPIC'
 
12650
            lt_prog_compiler_static_CXX='-Bstatic'
 
12651
            ;;
 
12652
        esac
 
12653
        ;;
 
12654
      vxworks*)
 
12655
        ;;
 
12656
      *)
 
12657
        lt_prog_compiler_can_build_shared_CXX=no
 
12658
        ;;
 
12659
    esac
 
12660
  fi
 
12661
 
 
12662
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12663
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12664
 
 
12665
#
 
12666
# Check to make sure the PIC flag actually works.
 
12667
#
 
12668
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12669
 
 
12670
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12671
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12672
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12674
else
 
12675
  lt_prog_compiler_pic_works_CXX=no
 
12676
  ac_outfile=conftest.$ac_objext
 
12677
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12678
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12679
   # Insert the option either (1) after the last *FLAGS variable, or
 
12680
   # (2) before a word containing "conftest.", or (3) at the end.
 
12681
   # Note that $ac_compile itself does not contain backslashes and begins
 
12682
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12683
   # The option is referenced via a variable to avoid confusing sed.
 
12684
   lt_compile=`echo "$ac_compile" | $SED \
 
12685
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12686
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12687
   -e 's:$: $lt_compiler_flag:'`
 
12688
   (eval echo "\"\$as_me:12688: $lt_compile\"" >&5)
 
12689
   (eval "$lt_compile" 2>conftest.err)
 
12690
   ac_status=$?
 
12691
   cat conftest.err >&5
 
12692
   echo "$as_me:12692: \$? = $ac_status" >&5
 
12693
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12694
     # The compiler can only warn and ignore the option if not recognized
 
12695
     # So say no if there are warnings other than the usual output.
 
12696
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12697
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12698
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12699
       lt_prog_compiler_pic_works_CXX=yes
 
12700
     fi
 
12701
   fi
 
12702
   $rm conftest*
 
12703
 
 
12704
fi
 
12705
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12706
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12707
 
 
12708
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12709
    case $lt_prog_compiler_pic_CXX in
 
12710
     "" | " "*) ;;
 
12711
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12712
     esac
 
12713
else
 
12714
    lt_prog_compiler_pic_CXX=
 
12715
     lt_prog_compiler_can_build_shared_CXX=no
 
12716
fi
 
12717
 
 
12718
fi
 
12719
case $host_os in
 
12720
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12721
  *djgpp*)
 
12722
    lt_prog_compiler_pic_CXX=
 
12723
    ;;
 
12724
  *)
 
12725
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12726
    ;;
 
12727
esac
 
12728
 
 
12729
#
 
12730
# Check to make sure the static flag actually works.
 
12731
#
 
12732
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12733
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12734
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12735
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12737
else
 
12738
  lt_prog_compiler_static_works_CXX=no
 
12739
   save_LDFLAGS="$LDFLAGS"
 
12740
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12741
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12742
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12743
     # The linker can only warn and ignore the option if not recognized
 
12744
     # So say no if there are warnings
 
12745
     if test -s conftest.err; then
 
12746
       # Append any errors to the config.log.
 
12747
       cat conftest.err 1>&5
 
12748
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12749
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12750
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12751
         lt_prog_compiler_static_works_CXX=yes
 
12752
       fi
 
12753
     else
 
12754
       lt_prog_compiler_static_works_CXX=yes
 
12755
     fi
 
12756
   fi
 
12757
   $rm conftest*
 
12758
   LDFLAGS="$save_LDFLAGS"
 
12759
 
 
12760
fi
 
12761
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12762
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12763
 
 
12764
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12765
    :
 
12766
else
 
12767
    lt_prog_compiler_static_CXX=
 
12768
fi
 
12769
 
 
12770
 
 
12771
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12772
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12773
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12775
else
 
12776
  lt_cv_prog_compiler_c_o_CXX=no
 
12777
   $rm -r conftest 2>/dev/null
 
12778
   mkdir conftest
 
12779
   cd conftest
 
12780
   mkdir out
 
12781
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12782
 
 
12783
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12784
   # Insert the option either (1) after the last *FLAGS variable, or
 
12785
   # (2) before a word containing "conftest.", or (3) at the end.
 
12786
   # Note that $ac_compile itself does not contain backslashes and begins
 
12787
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12788
   lt_compile=`echo "$ac_compile" | $SED \
 
12789
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12790
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12791
   -e 's:$: $lt_compiler_flag:'`
 
12792
   (eval echo "\"\$as_me:12792: $lt_compile\"" >&5)
 
12793
   (eval "$lt_compile" 2>out/conftest.err)
 
12794
   ac_status=$?
 
12795
   cat out/conftest.err >&5
 
12796
   echo "$as_me:12796: \$? = $ac_status" >&5
 
12797
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12798
   then
 
12799
     # The compiler can only warn and ignore the option if not recognized
 
12800
     # So say no if there are warnings
 
12801
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12802
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12803
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12804
       lt_cv_prog_compiler_c_o_CXX=yes
 
12805
     fi
 
12806
   fi
 
12807
   chmod u+w . 2>&5
 
12808
   $rm conftest*
 
12809
   # SGI C++ compiler will create directory out/ii_files/ for
 
12810
   # template instantiation
 
12811
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12812
   $rm out/* && rmdir out
 
12813
   cd ..
 
12814
   rmdir conftest
 
12815
   $rm conftest*
 
12816
 
 
12817
fi
 
12818
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12819
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12820
 
 
12821
 
 
12822
hard_links="nottested"
 
12823
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12824
  # do not overwrite the value of need_locks provided by the user
 
12825
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12826
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12827
  hard_links=yes
 
12828
  $rm conftest*
 
12829
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12830
  touch conftest.a
 
12831
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12832
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12833
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12834
echo "${ECHO_T}$hard_links" >&6; }
 
12835
  if test "$hard_links" = no; then
 
12836
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12837
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12838
    need_locks=warn
 
12839
  fi
 
12840
else
 
12841
  need_locks=no
 
12842
fi
 
12843
 
 
12844
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12845
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12846
 
 
12847
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12848
  case $host_os in
 
12849
  aix4* | aix5*)
 
12850
    # If we're using GNU nm, then we don't want the "-C" option.
 
12851
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12852
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12853
      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'
 
12854
    else
 
12855
      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'
 
12856
    fi
 
12857
    ;;
 
12858
  pw32*)
 
12859
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12860
  ;;
 
12861
  cygwin* | mingw*)
 
12862
    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'
 
12863
  ;;
 
12864
  *)
 
12865
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12866
  ;;
 
12867
  esac
 
12868
 
 
12869
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12870
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12871
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12872
 
 
12873
#
 
12874
# Do we need to explicitly link libc?
 
12875
#
 
12876
case "x$archive_cmds_need_lc_CXX" in
 
12877
x|xyes)
 
12878
  # Assume -lc should be added
 
12879
  archive_cmds_need_lc_CXX=yes
 
12880
 
 
12881
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12882
    case $archive_cmds_CXX in
 
12883
    *'~'*)
 
12884
      # FIXME: we may have to deal with multi-command sequences.
 
12885
      ;;
 
12886
    '$CC '*)
 
12887
      # Test whether the compiler implicitly links with -lc since on some
 
12888
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12889
      # to ld, don't add -lc before -lgcc.
 
12890
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12891
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12892
      $rm conftest*
 
12893
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12894
 
 
12895
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12896
  (eval $ac_compile) 2>&5
 
12897
  ac_status=$?
 
12898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12899
  (exit $ac_status); } 2>conftest.err; then
 
12900
        soname=conftest
 
12901
        lib=conftest
 
12902
        libobjs=conftest.$ac_objext
 
12903
        deplibs=
 
12904
        wl=$lt_prog_compiler_wl_CXX
 
12905
        pic_flag=$lt_prog_compiler_pic_CXX
 
12906
        compiler_flags=-v
 
12907
        linker_flags=-v
 
12908
        verstring=
 
12909
        output_objdir=.
 
12910
        libname=conftest
 
12911
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12912
        allow_undefined_flag_CXX=
 
12913
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12914
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12915
  ac_status=$?
 
12916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12917
  (exit $ac_status); }
 
12918
        then
 
12919
          archive_cmds_need_lc_CXX=no
 
12920
        else
 
12921
          archive_cmds_need_lc_CXX=yes
 
12922
        fi
 
12923
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12924
      else
 
12925
        cat conftest.err 1>&5
 
12926
      fi
 
12927
      $rm conftest*
 
12928
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12929
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12930
      ;;
 
12931
    esac
 
12932
  fi
 
12933
  ;;
 
12934
esac
 
12935
 
 
12936
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12937
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12938
library_names_spec=
 
12939
libname_spec='lib$name'
 
12940
soname_spec=
 
12941
shrext_cmds=".so"
 
12942
postinstall_cmds=
 
12943
postuninstall_cmds=
 
12944
finish_cmds=
 
12945
finish_eval=
 
12946
shlibpath_var=
 
12947
shlibpath_overrides_runpath=unknown
 
12948
version_type=none
 
12949
dynamic_linker="$host_os ld.so"
 
12950
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12951
if test "$GCC" = yes; then
 
12952
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12953
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12954
    # if the path contains ";" then we assume it to be the separator
 
12955
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12956
    # assumed that no part of a normal pathname contains ";" but that should
 
12957
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12958
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12959
  else
 
12960
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12961
  fi
 
12962
else
 
12963
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12964
fi
 
12965
need_lib_prefix=unknown
 
12966
hardcode_into_libs=no
 
12967
 
 
12968
# when you set need_version to no, make sure it does not cause -set_version
 
12969
# flags to be left without arguments
 
12970
need_version=unknown
 
12971
 
 
12972
case $host_os in
 
12973
aix3*)
 
12974
  version_type=linux
 
12975
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12976
  shlibpath_var=LIBPATH
 
12977
 
 
12978
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12979
  soname_spec='${libname}${release}${shared_ext}$major'
 
12980
  ;;
 
12981
 
 
12982
aix4* | aix5*)
 
12983
  version_type=linux
 
12984
  need_lib_prefix=no
 
12985
  need_version=no
 
12986
  hardcode_into_libs=yes
 
12987
  if test "$host_cpu" = ia64; then
 
12988
    # AIX 5 supports IA64
 
12989
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12990
    shlibpath_var=LD_LIBRARY_PATH
 
12991
  else
 
12992
    # With GCC up to 2.95.x, collect2 would create an import file
 
12993
    # for dependence libraries.  The import file would start with
 
12994
    # the line `#! .'.  This would cause the generated library to
 
12995
    # depend on `.', always an invalid library.  This was fixed in
 
12996
    # development snapshots of GCC prior to 3.0.
 
12997
    case $host_os in
 
12998
      aix4 | aix4.[01] | aix4.[01].*)
 
12999
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13000
           echo ' yes '
 
13001
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13002
        :
 
13003
      else
 
13004
        can_build_shared=no
 
13005
      fi
 
13006
      ;;
 
13007
    esac
 
13008
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13009
    # soname into executable. Probably we can add versioning support to
 
13010
    # collect2, so additional links can be useful in future.
 
13011
    if test "$aix_use_runtimelinking" = yes; then
 
13012
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13013
      # instead of lib<name>.a to let people know that these are not
 
13014
      # typical AIX shared libraries.
 
13015
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13016
    else
 
13017
      # We preserve .a as extension for shared libraries through AIX4.2
 
13018
      # and later when we are not doing run time linking.
 
13019
      library_names_spec='${libname}${release}.a $libname.a'
 
13020
      soname_spec='${libname}${release}${shared_ext}$major'
 
13021
    fi
 
13022
    shlibpath_var=LIBPATH
 
13023
  fi
 
13024
  ;;
 
13025
 
 
13026
amigaos*)
 
13027
  library_names_spec='$libname.ixlibrary $libname.a'
 
13028
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13029
  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'
 
13030
  ;;
 
13031
 
 
13032
beos*)
 
13033
  library_names_spec='${libname}${shared_ext}'
 
13034
  dynamic_linker="$host_os ld.so"
 
13035
  shlibpath_var=LIBRARY_PATH
 
13036
  ;;
 
13037
 
 
13038
bsdi[45]*)
 
13039
  version_type=linux
 
13040
  need_version=no
 
13041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13042
  soname_spec='${libname}${release}${shared_ext}$major'
 
13043
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13044
  shlibpath_var=LD_LIBRARY_PATH
 
13045
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13046
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13047
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13048
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13049
  # libtool to hard-code these into programs
 
13050
  ;;
 
13051
 
 
13052
cygwin* | mingw* | pw32*)
 
13053
  version_type=windows
 
13054
  shrext_cmds=".dll"
 
13055
  need_version=no
 
13056
  need_lib_prefix=no
 
13057
 
 
13058
  case $GCC,$host_os in
 
13059
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13060
    library_names_spec='$libname.dll.a'
 
13061
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13062
    postinstall_cmds='base_file=`basename \${file}`~
 
13063
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13064
      dldir=$destdir/`dirname \$dlpath`~
 
13065
      test -d \$dldir || mkdir -p \$dldir~
 
13066
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13067
      chmod a+x \$dldir/$dlname'
 
13068
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13069
      dlpath=$dir/\$dldll~
 
13070
       $rm \$dlpath'
 
13071
    shlibpath_overrides_runpath=yes
 
13072
 
 
13073
    case $host_os in
 
13074
    cygwin*)
 
13075
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13076
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13077
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13078
      ;;
 
13079
    mingw*)
 
13080
      # MinGW DLLs use traditional 'lib' prefix
 
13081
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13082
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13083
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13084
        # It is most probably a Windows format PATH printed by
 
13085
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13086
        # path with ; separators, and with drive letters. We can handle the
 
13087
        # drive letters (cygwin fileutils understands them), so leave them,
 
13088
        # especially as we might pass files found there to a mingw objdump,
 
13089
        # which wouldn't understand a cygwinified path. Ahh.
 
13090
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13091
      else
 
13092
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13093
      fi
 
13094
      ;;
 
13095
    pw32*)
 
13096
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13097
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13098
      ;;
 
13099
    esac
 
13100
    ;;
 
13101
 
 
13102
  *)
 
13103
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13104
    ;;
 
13105
  esac
 
13106
  dynamic_linker='Win32 ld.exe'
 
13107
  # FIXME: first we should search . and the directory the executable is in
 
13108
  shlibpath_var=PATH
 
13109
  ;;
 
13110
 
 
13111
darwin* | rhapsody*)
 
13112
  dynamic_linker="$host_os dyld"
 
13113
  version_type=darwin
 
13114
  need_lib_prefix=no
 
13115
  need_version=no
 
13116
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13117
  soname_spec='${libname}${release}${major}$shared_ext'
 
13118
  shlibpath_overrides_runpath=yes
 
13119
  shlibpath_var=DYLD_LIBRARY_PATH
 
13120
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13121
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13122
  if test "$GCC" = yes; then
 
13123
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
13124
  else
 
13125
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13126
  fi
 
13127
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13128
  ;;
 
13129
 
 
13130
dgux*)
 
13131
  version_type=linux
 
13132
  need_lib_prefix=no
 
13133
  need_version=no
 
13134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13135
  soname_spec='${libname}${release}${shared_ext}$major'
 
13136
  shlibpath_var=LD_LIBRARY_PATH
 
13137
  ;;
 
13138
 
 
13139
freebsd1*)
 
13140
  dynamic_linker=no
 
13141
  ;;
 
13142
 
 
13143
kfreebsd*-gnu)
 
13144
  version_type=linux
 
13145
  need_lib_prefix=no
 
13146
  need_version=no
 
13147
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13148
  soname_spec='${libname}${release}${shared_ext}$major'
 
13149
  shlibpath_var=LD_LIBRARY_PATH
 
13150
  shlibpath_overrides_runpath=no
 
13151
  hardcode_into_libs=yes
 
13152
  dynamic_linker='GNU ld.so'
 
13153
  ;;
 
13154
 
 
13155
freebsd* | dragonfly*)
 
13156
  # DragonFly does not have aout.  When/if they implement a new
 
13157
  # versioning mechanism, adjust this.
 
13158
  if test -x /usr/bin/objformat; then
 
13159
    objformat=`/usr/bin/objformat`
 
13160
  else
 
13161
    case $host_os in
 
13162
    freebsd[123]*) objformat=aout ;;
 
13163
    *) objformat=elf ;;
 
13164
    esac
 
13165
  fi
 
13166
  version_type=freebsd-$objformat
 
13167
  case $version_type in
 
13168
    freebsd-elf*)
 
13169
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13170
      need_version=no
 
13171
      need_lib_prefix=no
 
13172
      ;;
 
13173
    freebsd-*)
 
13174
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13175
      need_version=yes
 
13176
      ;;
 
13177
  esac
 
13178
  shlibpath_var=LD_LIBRARY_PATH
 
13179
  case $host_os in
 
13180
  freebsd2*)
 
13181
    shlibpath_overrides_runpath=yes
 
13182
    ;;
 
13183
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13184
    shlibpath_overrides_runpath=yes
 
13185
    hardcode_into_libs=yes
 
13186
    ;;
 
13187
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13188
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13189
    shlibpath_overrides_runpath=no
 
13190
    hardcode_into_libs=yes
 
13191
    ;;
 
13192
  freebsd*) # from 4.6 on
 
13193
    shlibpath_overrides_runpath=yes
 
13194
    hardcode_into_libs=yes
 
13195
    ;;
 
13196
  esac
 
13197
  ;;
 
13198
 
 
13199
gnu*)
 
13200
  version_type=linux
 
13201
  need_lib_prefix=no
 
13202
  need_version=no
 
13203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13204
  soname_spec='${libname}${release}${shared_ext}$major'
 
13205
  shlibpath_var=LD_LIBRARY_PATH
 
13206
  hardcode_into_libs=yes
 
13207
  ;;
 
13208
 
 
13209
hpux9* | hpux10* | hpux11*)
 
13210
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13211
  # link against other versions.
 
13212
  version_type=sunos
 
13213
  need_lib_prefix=no
 
13214
  need_version=no
 
13215
  case $host_cpu in
 
13216
  ia64*)
 
13217
    shrext_cmds='.so'
 
13218
    hardcode_into_libs=yes
 
13219
    dynamic_linker="$host_os dld.so"
 
13220
    shlibpath_var=LD_LIBRARY_PATH
 
13221
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13222
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13223
    soname_spec='${libname}${release}${shared_ext}$major'
 
13224
    if test "X$HPUX_IA64_MODE" = X32; then
 
13225
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13226
    else
 
13227
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13228
    fi
 
13229
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13230
    ;;
 
13231
   hppa*64*)
 
13232
     shrext_cmds='.sl'
 
13233
     hardcode_into_libs=yes
 
13234
     dynamic_linker="$host_os dld.sl"
 
13235
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13236
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13237
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13238
     soname_spec='${libname}${release}${shared_ext}$major'
 
13239
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13240
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13241
     ;;
 
13242
   *)
 
13243
    shrext_cmds='.sl'
 
13244
    dynamic_linker="$host_os dld.sl"
 
13245
    shlibpath_var=SHLIB_PATH
 
13246
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13247
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13248
    soname_spec='${libname}${release}${shared_ext}$major'
 
13249
    ;;
 
13250
  esac
 
13251
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13252
  postinstall_cmds='chmod 555 $lib'
 
13253
  ;;
 
13254
 
 
13255
interix3*)
 
13256
  version_type=linux
 
13257
  need_lib_prefix=no
 
13258
  need_version=no
 
13259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13260
  soname_spec='${libname}${release}${shared_ext}$major'
 
13261
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13262
  shlibpath_var=LD_LIBRARY_PATH
 
13263
  shlibpath_overrides_runpath=no
 
13264
  hardcode_into_libs=yes
 
13265
  ;;
 
13266
 
 
13267
irix5* | irix6* | nonstopux*)
 
13268
  case $host_os in
 
13269
    nonstopux*) version_type=nonstopux ;;
 
13270
    *)
 
13271
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13272
                version_type=linux
 
13273
        else
 
13274
                version_type=irix
 
13275
        fi ;;
 
13276
  esac
 
13277
  need_lib_prefix=no
 
13278
  need_version=no
 
13279
  soname_spec='${libname}${release}${shared_ext}$major'
 
13280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13281
  case $host_os in
 
13282
  irix5* | nonstopux*)
 
13283
    libsuff= shlibsuff=
 
13284
    ;;
 
13285
  *)
 
13286
    case $LD in # libtool.m4 will add one of these switches to LD
 
13287
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13288
      libsuff= shlibsuff= libmagic=32-bit;;
 
13289
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13290
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13291
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13292
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13293
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13294
    esac
 
13295
    ;;
 
13296
  esac
 
13297
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13298
  shlibpath_overrides_runpath=no
 
13299
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13300
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13301
  hardcode_into_libs=yes
 
13302
  ;;
 
13303
 
 
13304
# No shared lib support for Linux oldld, aout, or coff.
 
13305
linux*oldld* | linux*aout* | linux*coff*)
 
13306
  dynamic_linker=no
 
13307
  ;;
 
13308
 
 
13309
# This must be Linux ELF.
 
13310
linux*)
 
13311
  version_type=linux
 
13312
  need_lib_prefix=no
 
13313
  need_version=no
 
13314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13315
  soname_spec='${libname}${release}${shared_ext}$major'
 
13316
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13317
  shlibpath_var=LD_LIBRARY_PATH
 
13318
  shlibpath_overrides_runpath=no
 
13319
  # This implies no fast_install, which is unacceptable.
 
13320
  # Some rework will be needed to allow for fast_install
 
13321
  # before this can be enabled.
 
13322
  hardcode_into_libs=yes
 
13323
 
 
13324
  # Append ld.so.conf contents to the search path
 
13325
  if test -f /etc/ld.so.conf; then
 
13326
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13327
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13328
  fi
 
13329
 
 
13330
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13331
  # powerpc, because MkLinux only supported shared libraries with the
 
13332
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13333
  # most powerpc-linux boxes support dynamic linking these days and
 
13334
  # people can always --disable-shared, the test was removed, and we
 
13335
  # assume the GNU/Linux dynamic linker is in use.
 
13336
  dynamic_linker='GNU/Linux ld.so'
 
13337
  ;;
 
13338
 
 
13339
knetbsd*-gnu)
 
13340
  version_type=linux
 
13341
  need_lib_prefix=no
 
13342
  need_version=no
 
13343
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13344
  soname_spec='${libname}${release}${shared_ext}$major'
 
13345
  shlibpath_var=LD_LIBRARY_PATH
 
13346
  shlibpath_overrides_runpath=no
 
13347
  hardcode_into_libs=yes
 
13348
  dynamic_linker='GNU ld.so'
 
13349
  ;;
 
13350
 
 
13351
netbsd*)
 
13352
  version_type=sunos
 
13353
  need_lib_prefix=no
 
13354
  need_version=no
 
13355
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13356
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13357
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13358
    dynamic_linker='NetBSD (a.out) ld.so'
 
13359
  else
 
13360
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13361
    soname_spec='${libname}${release}${shared_ext}$major'
 
13362
    dynamic_linker='NetBSD ld.elf_so'
 
13363
  fi
 
13364
  shlibpath_var=LD_LIBRARY_PATH
 
13365
  shlibpath_overrides_runpath=yes
 
13366
  hardcode_into_libs=yes
 
13367
  ;;
 
13368
 
 
13369
newsos6)
 
13370
  version_type=linux
 
13371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13372
  shlibpath_var=LD_LIBRARY_PATH
 
13373
  shlibpath_overrides_runpath=yes
 
13374
  ;;
 
13375
 
 
13376
nto-qnx*)
 
13377
  version_type=linux
 
13378
  need_lib_prefix=no
 
13379
  need_version=no
 
13380
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13381
  soname_spec='${libname}${release}${shared_ext}$major'
 
13382
  shlibpath_var=LD_LIBRARY_PATH
 
13383
  shlibpath_overrides_runpath=yes
 
13384
  ;;
 
13385
 
 
13386
openbsd*)
 
13387
  version_type=sunos
 
13388
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13389
  need_lib_prefix=no
 
13390
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13391
  case $host_os in
 
13392
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13393
    *)                         need_version=no  ;;
 
13394
  esac
 
13395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13396
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13397
  shlibpath_var=LD_LIBRARY_PATH
 
13398
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13399
    case $host_os in
 
13400
      openbsd2.[89] | openbsd2.[89].*)
 
13401
        shlibpath_overrides_runpath=no
 
13402
        ;;
 
13403
      *)
 
13404
        shlibpath_overrides_runpath=yes
 
13405
        ;;
 
13406
      esac
 
13407
  else
 
13408
    shlibpath_overrides_runpath=yes
 
13409
  fi
 
13410
  ;;
 
13411
 
 
13412
os2*)
 
13413
  libname_spec='$name'
 
13414
  shrext_cmds=".dll"
 
13415
  need_lib_prefix=no
 
13416
  library_names_spec='$libname${shared_ext} $libname.a'
 
13417
  dynamic_linker='OS/2 ld.exe'
 
13418
  shlibpath_var=LIBPATH
 
13419
  ;;
 
13420
 
 
13421
osf3* | osf4* | osf5*)
 
13422
  version_type=osf
 
13423
  need_lib_prefix=no
 
13424
  need_version=no
 
13425
  soname_spec='${libname}${release}${shared_ext}$major'
 
13426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13427
  shlibpath_var=LD_LIBRARY_PATH
 
13428
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13429
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13430
  ;;
 
13431
 
 
13432
solaris*)
 
13433
  version_type=linux
 
13434
  need_lib_prefix=no
 
13435
  need_version=no
 
13436
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13437
  soname_spec='${libname}${release}${shared_ext}$major'
 
13438
  shlibpath_var=LD_LIBRARY_PATH
 
13439
  shlibpath_overrides_runpath=yes
 
13440
  hardcode_into_libs=yes
 
13441
  # ldd complains unless libraries are executable
 
13442
  postinstall_cmds='chmod +x $lib'
 
13443
  ;;
 
13444
 
 
13445
sunos4*)
 
13446
  version_type=sunos
 
13447
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13448
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13449
  shlibpath_var=LD_LIBRARY_PATH
 
13450
  shlibpath_overrides_runpath=yes
 
13451
  if test "$with_gnu_ld" = yes; then
 
13452
    need_lib_prefix=no
 
13453
  fi
 
13454
  need_version=yes
 
13455
  ;;
 
13456
 
 
13457
sysv4 | sysv4.3*)
 
13458
  version_type=linux
 
13459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13460
  soname_spec='${libname}${release}${shared_ext}$major'
 
13461
  shlibpath_var=LD_LIBRARY_PATH
 
13462
  case $host_vendor in
 
13463
    sni)
 
13464
      shlibpath_overrides_runpath=no
 
13465
      need_lib_prefix=no
 
13466
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13467
      runpath_var=LD_RUN_PATH
 
13468
      ;;
 
13469
    siemens)
 
13470
      need_lib_prefix=no
 
13471
      ;;
 
13472
    motorola)
 
13473
      need_lib_prefix=no
 
13474
      need_version=no
 
13475
      shlibpath_overrides_runpath=no
 
13476
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13477
      ;;
 
13478
  esac
 
13479
  ;;
 
13480
 
 
13481
sysv4*MP*)
 
13482
  if test -d /usr/nec ;then
 
13483
    version_type=linux
 
13484
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13485
    soname_spec='$libname${shared_ext}.$major'
 
13486
    shlibpath_var=LD_LIBRARY_PATH
 
13487
  fi
 
13488
  ;;
 
13489
 
 
13490
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13491
  version_type=freebsd-elf
 
13492
  need_lib_prefix=no
 
13493
  need_version=no
 
13494
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13495
  soname_spec='${libname}${release}${shared_ext}$major'
 
13496
  shlibpath_var=LD_LIBRARY_PATH
 
13497
  hardcode_into_libs=yes
 
13498
  if test "$with_gnu_ld" = yes; then
 
13499
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13500
    shlibpath_overrides_runpath=no
 
13501
  else
 
13502
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13503
    shlibpath_overrides_runpath=yes
 
13504
    case $host_os in
 
13505
      sco3.2v5*)
 
13506
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13507
        ;;
 
13508
    esac
 
13509
  fi
 
13510
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13511
  ;;
 
13512
 
 
13513
uts4*)
 
13514
  version_type=linux
 
13515
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13516
  soname_spec='${libname}${release}${shared_ext}$major'
 
13517
  shlibpath_var=LD_LIBRARY_PATH
 
13518
  ;;
 
13519
 
 
13520
*)
 
13521
  dynamic_linker=no
 
13522
  ;;
 
13523
esac
 
13524
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13525
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13526
test "$dynamic_linker" = no && can_build_shared=no
 
13527
 
 
13528
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13529
if test "$GCC" = yes; then
 
13530
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13531
fi
 
13532
 
 
13533
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13534
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13535
hardcode_action_CXX=
 
13536
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13537
   test -n "$runpath_var_CXX" || \
 
13538
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13539
 
 
13540
  # We can hardcode non-existant directories.
 
13541
  if test "$hardcode_direct_CXX" != no &&
 
13542
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13543
     # have to relink, otherwise we might link with an installed library
 
13544
     # when we should be linking with a yet-to-be-installed one
 
13545
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13546
     test "$hardcode_minus_L_CXX" != no; then
 
13547
    # Linking always hardcodes the temporary library directory.
 
13548
    hardcode_action_CXX=relink
 
13549
  else
 
13550
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13551
    hardcode_action_CXX=immediate
 
13552
  fi
 
13553
else
 
13554
  # We cannot hardcode anything, or else we can only hardcode existing
 
13555
  # directories.
 
13556
  hardcode_action_CXX=unsupported
 
13557
fi
 
13558
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13559
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13560
 
 
13561
if test "$hardcode_action_CXX" = relink; then
 
13562
  # Fast installation is not supported
 
13563
  enable_fast_install=no
 
13564
elif test "$shlibpath_overrides_runpath" = yes ||
 
13565
     test "$enable_shared" = no; then
 
13566
  # Fast installation is not necessary
 
13567
  enable_fast_install=needless
 
13568
fi
 
13569
 
 
13570
 
 
13571
# The else clause should only fire when bootstrapping the
 
13572
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13573
# with your package, and you will get complaints that there are
 
13574
# no rules to generate ltmain.sh.
 
13575
if test -f "$ltmain"; then
 
13576
  # See if we are running on zsh, and set the options which allow our commands through
 
13577
  # without removal of \ escapes.
 
13578
  if test -n "${ZSH_VERSION+set}" ; then
 
13579
    setopt NO_GLOB_SUBST
 
13580
  fi
 
13581
  # Now quote all the things that may contain metacharacters while being
 
13582
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13583
  # variables and quote the copies for generation of the libtool script.
 
13584
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13585
    SED SHELL STRIP \
 
13586
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13587
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13588
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13589
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13590
    lt_cv_sys_global_symbol_to_c_name_address \
 
13591
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13592
    old_postinstall_cmds old_postuninstall_cmds \
 
13593
    compiler_CXX \
 
13594
    CC_CXX \
 
13595
    LD_CXX \
 
13596
    lt_prog_compiler_wl_CXX \
 
13597
    lt_prog_compiler_pic_CXX \
 
13598
    lt_prog_compiler_static_CXX \
 
13599
    lt_prog_compiler_no_builtin_flag_CXX \
 
13600
    export_dynamic_flag_spec_CXX \
 
13601
    thread_safe_flag_spec_CXX \
 
13602
    whole_archive_flag_spec_CXX \
 
13603
    enable_shared_with_static_runtimes_CXX \
 
13604
    old_archive_cmds_CXX \
 
13605
    old_archive_from_new_cmds_CXX \
 
13606
    predep_objects_CXX \
 
13607
    postdep_objects_CXX \
 
13608
    predeps_CXX \
 
13609
    postdeps_CXX \
 
13610
    compiler_lib_search_path_CXX \
 
13611
    archive_cmds_CXX \
 
13612
    archive_expsym_cmds_CXX \
 
13613
    postinstall_cmds_CXX \
 
13614
    postuninstall_cmds_CXX \
 
13615
    old_archive_from_expsyms_cmds_CXX \
 
13616
    allow_undefined_flag_CXX \
 
13617
    no_undefined_flag_CXX \
 
13618
    export_symbols_cmds_CXX \
 
13619
    hardcode_libdir_flag_spec_CXX \
 
13620
    hardcode_libdir_flag_spec_ld_CXX \
 
13621
    hardcode_libdir_separator_CXX \
 
13622
    hardcode_automatic_CXX \
 
13623
    module_cmds_CXX \
 
13624
    module_expsym_cmds_CXX \
 
13625
    lt_cv_prog_compiler_c_o_CXX \
 
13626
    exclude_expsyms_CXX \
 
13627
    include_expsyms_CXX; do
 
13628
 
 
13629
    case $var in
 
13630
    old_archive_cmds_CXX | \
 
13631
    old_archive_from_new_cmds_CXX | \
 
13632
    archive_cmds_CXX | \
 
13633
    archive_expsym_cmds_CXX | \
 
13634
    module_cmds_CXX | \
 
13635
    module_expsym_cmds_CXX | \
 
13636
    old_archive_from_expsyms_cmds_CXX | \
 
13637
    export_symbols_cmds_CXX | \
 
13638
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13639
    postinstall_cmds | postuninstall_cmds | \
 
13640
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13641
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13642
      # Double-quote double-evaled strings.
 
13643
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13644
      ;;
 
13645
    *)
 
13646
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13647
      ;;
 
13648
    esac
 
13649
  done
 
13650
 
 
13651
  case $lt_echo in
 
13652
  *'\$0 --fallback-echo"')
 
13653
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13654
    ;;
 
13655
  esac
 
13656
 
 
13657
cfgfile="$ofile"
 
13658
 
 
13659
  cat <<__EOF__ >> "$cfgfile"
 
13660
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13661
 
 
13662
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13663
 
 
13664
# Shell to use when invoking shell scripts.
 
13665
SHELL=$lt_SHELL
 
13666
 
 
13667
# Whether or not to build shared libraries.
 
13668
build_libtool_libs=$enable_shared
 
13669
 
 
13670
# Whether or not to build static libraries.
 
13671
build_old_libs=$enable_static
 
13672
 
 
13673
# Whether or not to add -lc for building shared libraries.
 
13674
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13675
 
 
13676
# Whether or not to disallow shared libs when runtime libs are static
 
13677
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13678
 
 
13679
# Whether or not to optimize for fast installation.
 
13680
fast_install=$enable_fast_install
 
13681
 
 
13682
# The host system.
 
13683
host_alias=$host_alias
 
13684
host=$host
 
13685
host_os=$host_os
 
13686
 
 
13687
# The build system.
 
13688
build_alias=$build_alias
 
13689
build=$build
 
13690
build_os=$build_os
 
13691
 
 
13692
# An echo program that does not interpret backslashes.
 
13693
echo=$lt_echo
 
13694
 
 
13695
# The archiver.
 
13696
AR=$lt_AR
 
13697
AR_FLAGS=$lt_AR_FLAGS
 
13698
 
 
13699
# A C compiler.
 
13700
LTCC=$lt_LTCC
 
13701
 
 
13702
# LTCC compiler flags.
 
13703
LTCFLAGS=$lt_LTCFLAGS
 
13704
 
 
13705
# A language-specific compiler.
 
13706
CC=$lt_compiler_CXX
 
13707
 
 
13708
# Is the compiler the GNU C compiler?
 
13709
with_gcc=$GCC_CXX
 
13710
 
 
13711
# An ERE matcher.
 
13712
EGREP=$lt_EGREP
 
13713
 
 
13714
# The linker used to build libraries.
 
13715
LD=$lt_LD_CXX
 
13716
 
 
13717
# Whether we need hard or soft links.
 
13718
LN_S=$lt_LN_S
 
13719
 
 
13720
# A BSD-compatible nm program.
 
13721
NM=$lt_NM
 
13722
 
 
13723
# A symbol stripping program
 
13724
STRIP=$lt_STRIP
 
13725
 
 
13726
# Used to examine libraries when file_magic_cmd begins "file"
 
13727
MAGIC_CMD=$MAGIC_CMD
 
13728
 
 
13729
# Used on cygwin: DLL creation program.
 
13730
DLLTOOL="$DLLTOOL"
 
13731
 
 
13732
# Used on cygwin: object dumper.
 
13733
OBJDUMP="$OBJDUMP"
 
13734
 
 
13735
# Used on cygwin: assembler.
 
13736
AS="$AS"
 
13737
 
 
13738
# The name of the directory that contains temporary libtool files.
 
13739
objdir=$objdir
 
13740
 
 
13741
# How to create reloadable object files.
 
13742
reload_flag=$lt_reload_flag
 
13743
reload_cmds=$lt_reload_cmds
 
13744
 
 
13745
# How to pass a linker flag through the compiler.
 
13746
wl=$lt_lt_prog_compiler_wl_CXX
 
13747
 
 
13748
# Object file suffix (normally "o").
 
13749
objext="$ac_objext"
 
13750
 
 
13751
# Old archive suffix (normally "a").
 
13752
libext="$libext"
 
13753
 
 
13754
# Shared library suffix (normally ".so").
 
13755
shrext_cmds='$shrext_cmds'
 
13756
 
 
13757
# Executable file suffix (normally "").
 
13758
exeext="$exeext"
 
13759
 
 
13760
# Additional compiler flags for building library objects.
 
13761
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13762
pic_mode=$pic_mode
 
13763
 
 
13764
# What is the maximum length of a command?
 
13765
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13766
 
 
13767
# Does compiler simultaneously support -c and -o options?
 
13768
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13769
 
 
13770
# Must we lock files when doing compilation?
 
13771
need_locks=$lt_need_locks
 
13772
 
 
13773
# Do we need the lib prefix for modules?
 
13774
need_lib_prefix=$need_lib_prefix
 
13775
 
 
13776
# Do we need a version for libraries?
 
13777
need_version=$need_version
 
13778
 
 
13779
# Whether dlopen is supported.
 
13780
dlopen_support=$enable_dlopen
 
13781
 
 
13782
# Whether dlopen of programs is supported.
 
13783
dlopen_self=$enable_dlopen_self
 
13784
 
 
13785
# Whether dlopen of statically linked programs is supported.
 
13786
dlopen_self_static=$enable_dlopen_self_static
 
13787
 
 
13788
# Compiler flag to prevent dynamic linking.
 
13789
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13790
 
 
13791
# Compiler flag to turn off builtin functions.
 
13792
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13793
 
 
13794
# Compiler flag to allow reflexive dlopens.
 
13795
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13796
 
 
13797
# Compiler flag to generate shared objects directly from archives.
 
13798
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13799
 
 
13800
# Compiler flag to generate thread-safe objects.
 
13801
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13802
 
 
13803
# Library versioning type.
 
13804
version_type=$version_type
 
13805
 
 
13806
# Format of library name prefix.
 
13807
libname_spec=$lt_libname_spec
 
13808
 
 
13809
# List of archive names.  First name is the real one, the rest are links.
 
13810
# The last name is the one that the linker finds with -lNAME.
 
13811
library_names_spec=$lt_library_names_spec
 
13812
 
 
13813
# The coded name of the library, if different from the real name.
 
13814
soname_spec=$lt_soname_spec
 
13815
 
 
13816
# Commands used to build and install an old-style archive.
 
13817
RANLIB=$lt_RANLIB
 
13818
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13819
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13820
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13821
 
 
13822
# Create an old-style archive from a shared archive.
 
13823
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13824
 
 
13825
# Create a temporary old-style archive to link instead of a shared archive.
 
13826
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13827
 
 
13828
# Commands used to build and install a shared archive.
 
13829
archive_cmds=$lt_archive_cmds_CXX
 
13830
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13831
postinstall_cmds=$lt_postinstall_cmds
 
13832
postuninstall_cmds=$lt_postuninstall_cmds
 
13833
 
 
13834
# Commands used to build a loadable module (assumed same as above if empty)
 
13835
module_cmds=$lt_module_cmds_CXX
 
13836
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13837
 
 
13838
# Commands to strip libraries.
 
13839
old_striplib=$lt_old_striplib
 
13840
striplib=$lt_striplib
 
13841
 
 
13842
# Dependencies to place before the objects being linked to create a
 
13843
# shared library.
 
13844
predep_objects=$lt_predep_objects_CXX
 
13845
 
 
13846
# Dependencies to place after the objects being linked to create a
 
13847
# shared library.
 
13848
postdep_objects=$lt_postdep_objects_CXX
 
13849
 
 
13850
# Dependencies to place before the objects being linked to create a
 
13851
# shared library.
 
13852
predeps=$lt_predeps_CXX
 
13853
 
 
13854
# Dependencies to place after the objects being linked to create a
 
13855
# shared library.
 
13856
postdeps=$lt_postdeps_CXX
 
13857
 
 
13858
# The library search path used internally by the compiler when linking
 
13859
# a shared library.
 
13860
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13861
 
 
13862
# Method to check whether dependent libraries are shared objects.
 
13863
deplibs_check_method=$lt_deplibs_check_method
 
13864
 
 
13865
# Command to use when deplibs_check_method == file_magic.
 
13866
file_magic_cmd=$lt_file_magic_cmd
 
13867
 
 
13868
# Flag that allows shared libraries with undefined symbols to be built.
 
13869
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13870
 
 
13871
# Flag that forces no undefined symbols.
 
13872
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13873
 
 
13874
# Commands used to finish a libtool library installation in a directory.
 
13875
finish_cmds=$lt_finish_cmds
 
13876
 
 
13877
# Same as above, but a single script fragment to be evaled but not shown.
 
13878
finish_eval=$lt_finish_eval
 
13879
 
 
13880
# Take the output of nm and produce a listing of raw symbols and C names.
 
13881
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13882
 
 
13883
# Transform the output of nm in a proper C declaration
 
13884
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13885
 
 
13886
# Transform the output of nm in a C name address pair
 
13887
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13888
 
 
13889
# This is the shared library runtime path variable.
 
13890
runpath_var=$runpath_var
 
13891
 
 
13892
# This is the shared library path variable.
 
13893
shlibpath_var=$shlibpath_var
 
13894
 
 
13895
# Is shlibpath searched before the hard-coded library search path?
 
13896
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13897
 
 
13898
# How to hardcode a shared library path into an executable.
 
13899
hardcode_action=$hardcode_action_CXX
 
13900
 
 
13901
# Whether we should hardcode library paths into libraries.
 
13902
hardcode_into_libs=$hardcode_into_libs
 
13903
 
 
13904
# Flag to hardcode \$libdir into a binary during linking.
 
13905
# This must work even if \$libdir does not exist.
 
13906
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13907
 
 
13908
# If ld is used when linking, flag to hardcode \$libdir into
 
13909
# a binary during linking. This must work even if \$libdir does
 
13910
# not exist.
 
13911
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13912
 
 
13913
# Whether we need a single -rpath flag with a separated argument.
 
13914
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13915
 
 
13916
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13917
# resulting binary.
 
13918
hardcode_direct=$hardcode_direct_CXX
 
13919
 
 
13920
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13921
# resulting binary.
 
13922
hardcode_minus_L=$hardcode_minus_L_CXX
 
13923
 
 
13924
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13925
# the resulting binary.
 
13926
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13927
 
 
13928
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13929
# and all subsequent libraries and executables linked against it.
 
13930
hardcode_automatic=$hardcode_automatic_CXX
 
13931
 
 
13932
# Variables whose values should be saved in libtool wrapper scripts and
 
13933
# restored at relink time.
 
13934
variables_saved_for_relink="$variables_saved_for_relink"
 
13935
 
 
13936
# Whether libtool must link a program against all its dependency libraries.
 
13937
link_all_deplibs=$link_all_deplibs_CXX
 
13938
 
 
13939
# Compile-time system search path for libraries
 
13940
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13941
 
 
13942
# Run-time system search path for libraries
 
13943
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13944
 
 
13945
# Fix the shell variable \$srcfile for the compiler.
 
13946
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13947
 
 
13948
# Set to yes if exported symbols are required.
 
13949
always_export_symbols=$always_export_symbols_CXX
 
13950
 
 
13951
# The commands to list exported symbols.
 
13952
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13953
 
 
13954
# The commands to extract the exported symbol list from a shared archive.
 
13955
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13956
 
 
13957
# Symbols that should not be listed in the preloaded symbols.
 
13958
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13959
 
 
13960
# Symbols that must always be exported.
 
13961
include_expsyms=$lt_include_expsyms_CXX
 
13962
 
 
13963
# ### END LIBTOOL TAG CONFIG: $tagname
 
13964
 
 
13965
__EOF__
 
13966
 
 
13967
 
 
13968
else
 
13969
  # If there is no Makefile yet, we rely on a make rule to execute
 
13970
  # `config.status --recheck' to rerun these tests and create the
 
13971
  # libtool script then.
 
13972
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13973
  if test -f "$ltmain_in"; then
 
13974
    test -f Makefile && make "$ltmain"
 
13975
  fi
 
13976
fi
 
13977
 
 
13978
 
 
13979
ac_ext=c
 
13980
ac_cpp='$CPP $CPPFLAGS'
 
13981
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13982
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13983
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13984
 
 
13985
CC=$lt_save_CC
 
13986
LDCXX=$LD
 
13987
LD=$lt_save_LD
 
13988
GCC=$lt_save_GCC
 
13989
with_gnu_ldcxx=$with_gnu_ld
 
13990
with_gnu_ld=$lt_save_with_gnu_ld
 
13991
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13992
lt_cv_path_LD=$lt_save_path_LD
 
13993
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13994
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13995
 
 
13996
        else
 
13997
          tagname=""
 
13998
        fi
 
13999
        ;;
 
14000
 
 
14001
      F77)
 
14002
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14003
 
 
14004
ac_ext=f
 
14005
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14006
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14007
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14008
 
 
14009
 
 
14010
archive_cmds_need_lc_F77=no
 
14011
allow_undefined_flag_F77=
 
14012
always_export_symbols_F77=no
 
14013
archive_expsym_cmds_F77=
 
14014
export_dynamic_flag_spec_F77=
 
14015
hardcode_direct_F77=no
 
14016
hardcode_libdir_flag_spec_F77=
 
14017
hardcode_libdir_flag_spec_ld_F77=
 
14018
hardcode_libdir_separator_F77=
 
14019
hardcode_minus_L_F77=no
 
14020
hardcode_automatic_F77=no
 
14021
module_cmds_F77=
 
14022
module_expsym_cmds_F77=
 
14023
link_all_deplibs_F77=unknown
 
14024
old_archive_cmds_F77=$old_archive_cmds
 
14025
no_undefined_flag_F77=
 
14026
whole_archive_flag_spec_F77=
 
14027
enable_shared_with_static_runtimes_F77=no
 
14028
 
 
14029
# Source file extension for f77 test sources.
 
14030
ac_ext=f
 
14031
 
 
14032
# Object file extension for compiled f77 test sources.
 
14033
objext=o
 
14034
objext_F77=$objext
 
14035
 
 
14036
# Code to be used in simple compile tests
 
14037
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14038
 
 
14039
# Code to be used in simple link tests
 
14040
lt_simple_link_test_code="      program t\n      end\n"
 
14041
 
 
14042
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14043
 
 
14044
# If no C compiler was specified, use CC.
 
14045
LTCC=${LTCC-"$CC"}
 
14046
 
 
14047
# If no C compiler flags were specified, use CFLAGS.
 
14048
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14049
 
 
14050
# Allow CC to be a program name with arguments.
 
14051
compiler=$CC
 
14052
 
 
14053
 
 
14054
# save warnings/boilerplate of simple test code
 
14055
ac_outfile=conftest.$ac_objext
 
14056
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14057
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14058
_lt_compiler_boilerplate=`cat conftest.err`
 
14059
$rm conftest*
 
14060
 
 
14061
ac_outfile=conftest.$ac_objext
 
14062
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14063
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14064
_lt_linker_boilerplate=`cat conftest.err`
 
14065
$rm conftest*
 
14066
 
 
14067
 
 
14068
# Allow CC to be a program name with arguments.
 
14069
lt_save_CC="$CC"
 
14070
CC=${F77-"f77"}
 
14071
compiler=$CC
 
14072
compiler_F77=$CC
 
14073
for cc_temp in $compiler""; do
 
14074
  case $cc_temp in
 
14075
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14076
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14077
    \-*) ;;
 
14078
    *) break;;
 
14079
  esac
 
14080
done
 
14081
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14082
 
 
14083
 
 
14084
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14085
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14086
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14087
echo "${ECHO_T}$can_build_shared" >&6; }
 
14088
 
 
14089
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14090
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
14091
test "$can_build_shared" = "no" && enable_shared=no
 
14092
 
 
14093
# On AIX, shared libraries and static libraries use the same namespace, and
 
14094
# are all built from PIC.
 
14095
case $host_os in
 
14096
aix3*)
 
14097
  test "$enable_shared" = yes && enable_static=no
 
14098
  if test -n "$RANLIB"; then
 
14099
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14100
    postinstall_cmds='$RANLIB $lib'
 
14101
  fi
 
14102
  ;;
 
14103
aix4* | aix5*)
 
14104
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14105
    test "$enable_shared" = yes && enable_static=no
 
14106
  fi
 
14107
  ;;
 
14108
esac
 
14109
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14110
echo "${ECHO_T}$enable_shared" >&6; }
 
14111
 
 
14112
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14113
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14114
# Make sure either enable_shared or enable_static is yes.
 
14115
test "$enable_shared" = yes || enable_static=yes
 
14116
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14117
echo "${ECHO_T}$enable_static" >&6; }
 
14118
 
 
14119
GCC_F77="$G77"
 
14120
LD_F77="$LD"
 
14121
 
 
14122
lt_prog_compiler_wl_F77=
 
14123
lt_prog_compiler_pic_F77=
 
14124
lt_prog_compiler_static_F77=
 
14125
 
 
14126
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14127
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14128
 
 
14129
  if test "$GCC" = yes; then
 
14130
    lt_prog_compiler_wl_F77='-Wl,'
 
14131
    lt_prog_compiler_static_F77='-static'
 
14132
 
 
14133
    case $host_os in
 
14134
      aix*)
 
14135
      # All AIX code is PIC.
 
14136
      if test "$host_cpu" = ia64; then
 
14137
        # AIX 5 now supports IA64 processor
 
14138
        lt_prog_compiler_static_F77='-Bstatic'
 
14139
      fi
 
14140
      ;;
 
14141
 
 
14142
    amigaos*)
 
14143
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14144
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14145
      # like `-m68040'.
 
14146
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14147
      ;;
 
14148
 
 
14149
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14150
      # PIC is the default for these OSes.
 
14151
      ;;
 
14152
 
 
14153
    mingw* | pw32* | os2*)
 
14154
      # This hack is so that the source file can tell whether it is being
 
14155
      # built for inclusion in a dll (and should export symbols for example).
 
14156
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14157
      ;;
 
14158
 
 
14159
    darwin* | rhapsody*)
 
14160
      # PIC is the default on this platform
 
14161
      # Common symbols not allowed in MH_DYLIB files
 
14162
      lt_prog_compiler_pic_F77='-fno-common'
 
14163
      ;;
 
14164
 
 
14165
    interix3*)
 
14166
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14167
      # Instead, we relocate shared libraries at runtime.
 
14168
      ;;
 
14169
 
 
14170
    msdosdjgpp*)
 
14171
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14172
      # on systems that don't support them.
 
14173
      lt_prog_compiler_can_build_shared_F77=no
 
14174
      enable_shared=no
 
14175
      ;;
 
14176
 
 
14177
    sysv4*MP*)
 
14178
      if test -d /usr/nec; then
 
14179
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14180
      fi
 
14181
      ;;
 
14182
 
 
14183
    hpux*)
 
14184
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14185
      # not for PA HP-UX.
 
14186
      case $host_cpu in
 
14187
      hppa*64*|ia64*)
 
14188
        # +Z the default
 
14189
        ;;
 
14190
      *)
 
14191
        lt_prog_compiler_pic_F77='-fPIC'
 
14192
        ;;
 
14193
      esac
 
14194
      ;;
 
14195
 
 
14196
    *)
 
14197
      lt_prog_compiler_pic_F77='-fPIC'
 
14198
      ;;
 
14199
    esac
 
14200
  else
 
14201
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14202
    case $host_os in
 
14203
    aix*)
 
14204
      lt_prog_compiler_wl_F77='-Wl,'
 
14205
      if test "$host_cpu" = ia64; then
 
14206
        # AIX 5 now supports IA64 processor
 
14207
        lt_prog_compiler_static_F77='-Bstatic'
 
14208
      else
 
14209
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14210
      fi
 
14211
      ;;
 
14212
      darwin*)
 
14213
        # PIC is the default on this platform
 
14214
        # Common symbols not allowed in MH_DYLIB files
 
14215
       case $cc_basename in
 
14216
         xlc*)
 
14217
         lt_prog_compiler_pic_F77='-qnocommon'
 
14218
         lt_prog_compiler_wl_F77='-Wl,'
 
14219
         ;;
 
14220
       esac
 
14221
       ;;
 
14222
 
 
14223
    mingw* | pw32* | os2*)
 
14224
      # This hack is so that the source file can tell whether it is being
 
14225
      # built for inclusion in a dll (and should export symbols for example).
 
14226
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14227
      ;;
 
14228
 
 
14229
    hpux9* | hpux10* | hpux11*)
 
14230
      lt_prog_compiler_wl_F77='-Wl,'
 
14231
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14232
      # not for PA HP-UX.
 
14233
      case $host_cpu in
 
14234
      hppa*64*|ia64*)
 
14235
        # +Z the default
 
14236
        ;;
 
14237
      *)
 
14238
        lt_prog_compiler_pic_F77='+Z'
 
14239
        ;;
 
14240
      esac
 
14241
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14242
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14243
      ;;
 
14244
 
 
14245
    irix5* | irix6* | nonstopux*)
 
14246
      lt_prog_compiler_wl_F77='-Wl,'
 
14247
      # PIC (with -KPIC) is the default.
 
14248
      lt_prog_compiler_static_F77='-non_shared'
 
14249
      ;;
 
14250
 
 
14251
    newsos6)
 
14252
      lt_prog_compiler_pic_F77='-KPIC'
 
14253
      lt_prog_compiler_static_F77='-Bstatic'
 
14254
      ;;
 
14255
 
 
14256
    linux*)
 
14257
      case $cc_basename in
 
14258
      icc* | ecc*)
 
14259
        lt_prog_compiler_wl_F77='-Wl,'
 
14260
        lt_prog_compiler_pic_F77='-KPIC'
 
14261
        lt_prog_compiler_static_F77='-static'
 
14262
        ;;
 
14263
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14264
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14265
        # which looks to be a dead project)
 
14266
        lt_prog_compiler_wl_F77='-Wl,'
 
14267
        lt_prog_compiler_pic_F77='-fpic'
 
14268
        lt_prog_compiler_static_F77='-Bstatic'
 
14269
        ;;
 
14270
      ccc*)
 
14271
        lt_prog_compiler_wl_F77='-Wl,'
 
14272
        # All Alpha code is PIC.
 
14273
        lt_prog_compiler_static_F77='-non_shared'
 
14274
        ;;
 
14275
      esac
 
14276
      ;;
 
14277
 
 
14278
    osf3* | osf4* | osf5*)
 
14279
      lt_prog_compiler_wl_F77='-Wl,'
 
14280
      # All OSF/1 code is PIC.
 
14281
      lt_prog_compiler_static_F77='-non_shared'
 
14282
      ;;
 
14283
 
 
14284
    solaris*)
 
14285
      lt_prog_compiler_pic_F77='-KPIC'
 
14286
      lt_prog_compiler_static_F77='-Bstatic'
 
14287
      case $cc_basename in
 
14288
      f77* | f90* | f95*)
 
14289
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14290
      *)
 
14291
        lt_prog_compiler_wl_F77='-Wl,';;
 
14292
      esac
 
14293
      ;;
 
14294
 
 
14295
    sunos4*)
 
14296
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14297
      lt_prog_compiler_pic_F77='-PIC'
 
14298
      lt_prog_compiler_static_F77='-Bstatic'
 
14299
      ;;
 
14300
 
 
14301
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14302
      lt_prog_compiler_wl_F77='-Wl,'
 
14303
      lt_prog_compiler_pic_F77='-KPIC'
 
14304
      lt_prog_compiler_static_F77='-Bstatic'
 
14305
      ;;
 
14306
 
 
14307
    sysv4*MP*)
 
14308
      if test -d /usr/nec ;then
 
14309
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14310
        lt_prog_compiler_static_F77='-Bstatic'
 
14311
      fi
 
14312
      ;;
 
14313
 
 
14314
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14315
      lt_prog_compiler_wl_F77='-Wl,'
 
14316
      lt_prog_compiler_pic_F77='-KPIC'
 
14317
      lt_prog_compiler_static_F77='-Bstatic'
 
14318
      ;;
 
14319
 
 
14320
    unicos*)
 
14321
      lt_prog_compiler_wl_F77='-Wl,'
 
14322
      lt_prog_compiler_can_build_shared_F77=no
 
14323
      ;;
 
14324
 
 
14325
    uts4*)
 
14326
      lt_prog_compiler_pic_F77='-pic'
 
14327
      lt_prog_compiler_static_F77='-Bstatic'
 
14328
      ;;
 
14329
 
 
14330
    *)
 
14331
      lt_prog_compiler_can_build_shared_F77=no
 
14332
      ;;
 
14333
    esac
 
14334
  fi
 
14335
 
 
14336
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14337
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14338
 
 
14339
#
 
14340
# Check to make sure the PIC flag actually works.
 
14341
#
 
14342
if test -n "$lt_prog_compiler_pic_F77"; then
 
14343
 
 
14344
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14345
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14346
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14348
else
 
14349
  lt_prog_compiler_pic_works_F77=no
 
14350
  ac_outfile=conftest.$ac_objext
 
14351
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14352
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14353
   # Insert the option either (1) after the last *FLAGS variable, or
 
14354
   # (2) before a word containing "conftest.", or (3) at the end.
 
14355
   # Note that $ac_compile itself does not contain backslashes and begins
 
14356
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14357
   # The option is referenced via a variable to avoid confusing sed.
 
14358
   lt_compile=`echo "$ac_compile" | $SED \
 
14359
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14360
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14361
   -e 's:$: $lt_compiler_flag:'`
 
14362
   (eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
 
14363
   (eval "$lt_compile" 2>conftest.err)
 
14364
   ac_status=$?
 
14365
   cat conftest.err >&5
 
14366
   echo "$as_me:14366: \$? = $ac_status" >&5
 
14367
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14368
     # The compiler can only warn and ignore the option if not recognized
 
14369
     # So say no if there are warnings other than the usual output.
 
14370
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14371
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14372
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14373
       lt_prog_compiler_pic_works_F77=yes
 
14374
     fi
 
14375
   fi
 
14376
   $rm conftest*
 
14377
 
 
14378
fi
 
14379
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14380
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14381
 
 
14382
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14383
    case $lt_prog_compiler_pic_F77 in
 
14384
     "" | " "*) ;;
 
14385
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14386
     esac
 
14387
else
 
14388
    lt_prog_compiler_pic_F77=
 
14389
     lt_prog_compiler_can_build_shared_F77=no
 
14390
fi
 
14391
 
 
14392
fi
 
14393
case $host_os in
 
14394
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14395
  *djgpp*)
 
14396
    lt_prog_compiler_pic_F77=
 
14397
    ;;
 
14398
  *)
 
14399
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14400
    ;;
 
14401
esac
 
14402
 
 
14403
#
 
14404
# Check to make sure the static flag actually works.
 
14405
#
 
14406
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14407
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14408
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14409
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14411
else
 
14412
  lt_prog_compiler_static_works_F77=no
 
14413
   save_LDFLAGS="$LDFLAGS"
 
14414
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14415
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14416
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14417
     # The linker can only warn and ignore the option if not recognized
 
14418
     # So say no if there are warnings
 
14419
     if test -s conftest.err; then
 
14420
       # Append any errors to the config.log.
 
14421
       cat conftest.err 1>&5
 
14422
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14423
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14424
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14425
         lt_prog_compiler_static_works_F77=yes
 
14426
       fi
 
14427
     else
 
14428
       lt_prog_compiler_static_works_F77=yes
 
14429
     fi
 
14430
   fi
 
14431
   $rm conftest*
 
14432
   LDFLAGS="$save_LDFLAGS"
 
14433
 
 
14434
fi
 
14435
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14436
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14437
 
 
14438
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14439
    :
 
14440
else
 
14441
    lt_prog_compiler_static_F77=
 
14442
fi
 
14443
 
 
14444
 
 
14445
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14446
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14447
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14449
else
 
14450
  lt_cv_prog_compiler_c_o_F77=no
 
14451
   $rm -r conftest 2>/dev/null
 
14452
   mkdir conftest
 
14453
   cd conftest
 
14454
   mkdir out
 
14455
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14456
 
 
14457
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14458
   # Insert the option either (1) after the last *FLAGS variable, or
 
14459
   # (2) before a word containing "conftest.", or (3) at the end.
 
14460
   # Note that $ac_compile itself does not contain backslashes and begins
 
14461
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14462
   lt_compile=`echo "$ac_compile" | $SED \
 
14463
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14464
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14465
   -e 's:$: $lt_compiler_flag:'`
 
14466
   (eval echo "\"\$as_me:14466: $lt_compile\"" >&5)
 
14467
   (eval "$lt_compile" 2>out/conftest.err)
 
14468
   ac_status=$?
 
14469
   cat out/conftest.err >&5
 
14470
   echo "$as_me:14470: \$? = $ac_status" >&5
 
14471
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14472
   then
 
14473
     # The compiler can only warn and ignore the option if not recognized
 
14474
     # So say no if there are warnings
 
14475
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14476
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14477
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14478
       lt_cv_prog_compiler_c_o_F77=yes
 
14479
     fi
 
14480
   fi
 
14481
   chmod u+w . 2>&5
 
14482
   $rm conftest*
 
14483
   # SGI C++ compiler will create directory out/ii_files/ for
 
14484
   # template instantiation
 
14485
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14486
   $rm out/* && rmdir out
 
14487
   cd ..
 
14488
   rmdir conftest
 
14489
   $rm conftest*
 
14490
 
 
14491
fi
 
14492
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14493
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14494
 
 
14495
 
 
14496
hard_links="nottested"
 
14497
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14498
  # do not overwrite the value of need_locks provided by the user
 
14499
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14500
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14501
  hard_links=yes
 
14502
  $rm conftest*
 
14503
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14504
  touch conftest.a
 
14505
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14506
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14507
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14508
echo "${ECHO_T}$hard_links" >&6; }
 
14509
  if test "$hard_links" = no; then
 
14510
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14511
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14512
    need_locks=warn
 
14513
  fi
 
14514
else
 
14515
  need_locks=no
 
14516
fi
 
14517
 
 
14518
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14519
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14520
 
 
14521
  runpath_var=
 
14522
  allow_undefined_flag_F77=
 
14523
  enable_shared_with_static_runtimes_F77=no
 
14524
  archive_cmds_F77=
 
14525
  archive_expsym_cmds_F77=
 
14526
  old_archive_From_new_cmds_F77=
 
14527
  old_archive_from_expsyms_cmds_F77=
 
14528
  export_dynamic_flag_spec_F77=
 
14529
  whole_archive_flag_spec_F77=
 
14530
  thread_safe_flag_spec_F77=
 
14531
  hardcode_libdir_flag_spec_F77=
 
14532
  hardcode_libdir_flag_spec_ld_F77=
 
14533
  hardcode_libdir_separator_F77=
 
14534
  hardcode_direct_F77=no
 
14535
  hardcode_minus_L_F77=no
 
14536
  hardcode_shlibpath_var_F77=unsupported
 
14537
  link_all_deplibs_F77=unknown
 
14538
  hardcode_automatic_F77=no
 
14539
  module_cmds_F77=
 
14540
  module_expsym_cmds_F77=
 
14541
  always_export_symbols_F77=no
 
14542
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14543
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14544
  # included in the symbol list
 
14545
  include_expsyms_F77=
 
14546
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14547
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14548
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14549
  # as well as any symbol that contains `d'.
 
14550
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14551
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14552
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14553
  # the symbol is explicitly referenced.  Since portable code cannot
 
14554
  # rely on this symbol name, it's probably fine to never include it in
 
14555
  # preloaded symbol tables.
 
14556
  extract_expsyms_cmds=
 
14557
  # Just being paranoid about ensuring that cc_basename is set.
 
14558
  for cc_temp in $compiler""; do
 
14559
  case $cc_temp in
 
14560
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14561
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14562
    \-*) ;;
 
14563
    *) break;;
 
14564
  esac
 
14565
done
 
14566
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14567
 
 
14568
  case $host_os in
 
14569
  cygwin* | mingw* | pw32*)
 
14570
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14571
    # When not using gcc, we currently assume that we are using
 
14572
    # Microsoft Visual C++.
 
14573
    if test "$GCC" != yes; then
 
14574
      with_gnu_ld=no
 
14575
    fi
 
14576
    ;;
 
14577
  interix*)
 
14578
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14579
    with_gnu_ld=yes
 
14580
    ;;
 
14581
  openbsd*)
 
14582
    with_gnu_ld=no
 
14583
    ;;
 
14584
  esac
 
14585
 
 
14586
  ld_shlibs_F77=yes
 
14587
  if test "$with_gnu_ld" = yes; then
 
14588
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14589
    wlarc='${wl}'
 
14590
 
 
14591
    # Set some defaults for GNU ld with shared library support. These
 
14592
    # are reset later if shared libraries are not supported. Putting them
 
14593
    # here allows them to be overridden if necessary.
 
14594
    runpath_var=LD_RUN_PATH
 
14595
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14596
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14597
    # ancient GNU ld didn't support --whole-archive et. al.
 
14598
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14599
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14600
      else
 
14601
        whole_archive_flag_spec_F77=
 
14602
    fi
 
14603
    supports_anon_versioning=no
 
14604
    case `$LD -v 2>/dev/null` in
 
14605
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14606
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14607
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14608
      *\ 2.11.*) ;; # other 2.11 versions
 
14609
      *) supports_anon_versioning=yes ;;
 
14610
    esac
 
14611
 
 
14612
    # See if GNU ld supports shared libraries.
 
14613
    case $host_os in
 
14614
    aix3* | aix4* | aix5*)
 
14615
      # On AIX/PPC, the GNU linker is very broken
 
14616
      if test "$host_cpu" != ia64; then
 
14617
        ld_shlibs_F77=no
 
14618
        cat <<EOF 1>&2
 
14619
 
 
14620
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14621
*** to be unable to reliably create shared libraries on AIX.
 
14622
*** Therefore, libtool is disabling shared libraries support.  If you
 
14623
*** really care for shared libraries, you may want to modify your PATH
 
14624
*** so that a non-GNU linker is found, and then restart.
 
14625
 
 
14626
EOF
 
14627
      fi
 
14628
      ;;
 
14629
 
 
14630
    amigaos*)
 
14631
      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)'
 
14632
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14633
      hardcode_minus_L_F77=yes
 
14634
 
 
14635
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14636
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14637
      # to version 4, is to share data among multiple programs linked
 
14638
      # with the same dynamic library.  Since this doesn't match the
 
14639
      # behavior of shared libraries on other platforms, we can't use
 
14640
      # them.
 
14641
      ld_shlibs_F77=no
 
14642
      ;;
 
14643
 
 
14644
    beos*)
 
14645
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14646
        allow_undefined_flag_F77=unsupported
 
14647
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14648
        # support --undefined.  This deserves some investigation.  FIXME
 
14649
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14650
      else
 
14651
        ld_shlibs_F77=no
 
14652
      fi
 
14653
      ;;
 
14654
 
 
14655
    cygwin* | mingw* | pw32*)
 
14656
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14657
      # as there is no search path for DLLs.
 
14658
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14659
      allow_undefined_flag_F77=unsupported
 
14660
      always_export_symbols_F77=no
 
14661
      enable_shared_with_static_runtimes_F77=yes
 
14662
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14663
 
 
14664
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14665
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14666
        # If the export-symbols file already is a .def file (1st line
 
14667
        # is EXPORTS), use it as is; otherwise, prepend...
 
14668
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14669
          cp $export_symbols $output_objdir/$soname.def;
 
14670
        else
 
14671
          echo EXPORTS > $output_objdir/$soname.def;
 
14672
          cat $export_symbols >> $output_objdir/$soname.def;
 
14673
        fi~
 
14674
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14675
      else
 
14676
        ld_shlibs_F77=no
 
14677
      fi
 
14678
      ;;
 
14679
 
 
14680
    interix3*)
 
14681
      hardcode_direct_F77=no
 
14682
      hardcode_shlibpath_var_F77=no
 
14683
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14684
      export_dynamic_flag_spec_F77='${wl}-E'
 
14685
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14686
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14687
      # default) and relocated if they conflict, which is a slow very memory
 
14688
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14689
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14690
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14691
      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'
 
14692
      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'
 
14693
      ;;
 
14694
 
 
14695
    linux*)
 
14696
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14697
        tmp_addflag=
 
14698
        case $cc_basename,$host_cpu in
 
14699
        pgcc*)                          # Portland Group C compiler
 
14700
          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'
 
14701
          tmp_addflag=' $pic_flag'
 
14702
          ;;
 
14703
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14704
          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'
 
14705
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14706
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14707
          tmp_addflag=' -i_dynamic' ;;
 
14708
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14709
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14710
        ifc* | ifort*)                  # Intel Fortran compiler
 
14711
          tmp_addflag=' -nofor_main' ;;
 
14712
        esac
 
14713
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14714
 
 
14715
        if test $supports_anon_versioning = yes; then
 
14716
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14717
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14718
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14719
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14720
        fi
 
14721
      else
 
14722
        ld_shlibs_F77=no
 
14723
      fi
 
14724
      ;;
 
14725
 
 
14726
    netbsd*)
 
14727
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14728
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14729
        wlarc=
 
14730
      else
 
14731
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14732
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14733
      fi
 
14734
      ;;
 
14735
 
 
14736
    solaris*)
 
14737
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14738
        ld_shlibs_F77=no
 
14739
        cat <<EOF 1>&2
 
14740
 
 
14741
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14742
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14743
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14744
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14745
*** your PATH or compiler configuration so that the native linker is
 
14746
*** used, and then restart.
 
14747
 
 
14748
EOF
 
14749
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14750
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14751
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14752
      else
 
14753
        ld_shlibs_F77=no
 
14754
      fi
 
14755
      ;;
 
14756
 
 
14757
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14758
      case `$LD -v 2>&1` in
 
14759
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14760
        ld_shlibs_F77=no
 
14761
        cat <<_LT_EOF 1>&2
 
14762
 
 
14763
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14764
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14765
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14766
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14767
*** your PATH or compiler configuration so that the native linker is
 
14768
*** used, and then restart.
 
14769
 
 
14770
_LT_EOF
 
14771
        ;;
 
14772
        *)
 
14773
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14774
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14775
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14776
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14777
          else
 
14778
            ld_shlibs_F77=no
 
14779
          fi
 
14780
        ;;
 
14781
      esac
 
14782
      ;;
 
14783
 
 
14784
    sunos4*)
 
14785
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14786
      wlarc=
 
14787
      hardcode_direct_F77=yes
 
14788
      hardcode_shlibpath_var_F77=no
 
14789
      ;;
 
14790
 
 
14791
    *)
 
14792
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14793
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14794
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14795
      else
 
14796
        ld_shlibs_F77=no
 
14797
      fi
 
14798
      ;;
 
14799
    esac
 
14800
 
 
14801
    if test "$ld_shlibs_F77" = no; then
 
14802
      runpath_var=
 
14803
      hardcode_libdir_flag_spec_F77=
 
14804
      export_dynamic_flag_spec_F77=
 
14805
      whole_archive_flag_spec_F77=
 
14806
    fi
 
14807
  else
 
14808
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14809
    case $host_os in
 
14810
    aix3*)
 
14811
      allow_undefined_flag_F77=unsupported
 
14812
      always_export_symbols_F77=yes
 
14813
      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'
 
14814
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14815
      # are no directories specified by -L.
 
14816
      hardcode_minus_L_F77=yes
 
14817
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14818
        # Neither direct hardcoding nor static linking is supported with a
 
14819
        # broken collect2.
 
14820
        hardcode_direct_F77=unsupported
 
14821
      fi
 
14822
      ;;
 
14823
 
 
14824
    aix4* | aix5*)
 
14825
      if test "$host_cpu" = ia64; then
 
14826
        # On IA64, the linker does run time linking by default, so we don't
 
14827
        # have to do anything special.
 
14828
        aix_use_runtimelinking=no
 
14829
        exp_sym_flag='-Bexport'
 
14830
        no_entry_flag=""
 
14831
      else
 
14832
        # If we're using GNU nm, then we don't want the "-C" option.
 
14833
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14834
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14835
          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'
 
14836
        else
 
14837
          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'
 
14838
        fi
 
14839
        aix_use_runtimelinking=no
 
14840
 
 
14841
        # Test if we are trying to use run time linking or normal
 
14842
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14843
        # need to do runtime linking.
 
14844
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14845
          for ld_flag in $LDFLAGS; do
 
14846
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14847
            aix_use_runtimelinking=yes
 
14848
            break
 
14849
          fi
 
14850
          done
 
14851
          ;;
 
14852
        esac
 
14853
 
 
14854
        exp_sym_flag='-bexport'
 
14855
        no_entry_flag='-bnoentry'
 
14856
      fi
 
14857
 
 
14858
      # When large executables or shared objects are built, AIX ld can
 
14859
      # have problems creating the table of contents.  If linking a library
 
14860
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14861
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14862
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14863
 
 
14864
      archive_cmds_F77=''
 
14865
      hardcode_direct_F77=yes
 
14866
      hardcode_libdir_separator_F77=':'
 
14867
      link_all_deplibs_F77=yes
 
14868
 
 
14869
      if test "$GCC" = yes; then
 
14870
        case $host_os in aix4.[012]|aix4.[012].*)
 
14871
        # We only want to do this on AIX 4.2 and lower, the check
 
14872
        # below for broken collect2 doesn't work under 4.3+
 
14873
          collect2name=`${CC} -print-prog-name=collect2`
 
14874
          if test -f "$collect2name" && \
 
14875
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14876
          then
 
14877
          # We have reworked collect2
 
14878
          hardcode_direct_F77=yes
 
14879
          else
 
14880
          # We have old collect2
 
14881
          hardcode_direct_F77=unsupported
 
14882
          # It fails to find uninstalled libraries when the uninstalled
 
14883
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14884
          # to unsupported forces relinking
 
14885
          hardcode_minus_L_F77=yes
 
14886
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14887
          hardcode_libdir_separator_F77=
 
14888
          fi
 
14889
          ;;
 
14890
        esac
 
14891
        shared_flag='-shared'
 
14892
        if test "$aix_use_runtimelinking" = yes; then
 
14893
          shared_flag="$shared_flag "'${wl}-G'
 
14894
        fi
 
14895
      else
 
14896
        # not using gcc
 
14897
        if test "$host_cpu" = ia64; then
 
14898
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14899
        # chokes on -Wl,-G. The following line is correct:
 
14900
          shared_flag='-G'
 
14901
        else
 
14902
          if test "$aix_use_runtimelinking" = yes; then
 
14903
            shared_flag='${wl}-G'
 
14904
          else
 
14905
            shared_flag='${wl}-bM:SRE'
 
14906
          fi
 
14907
        fi
 
14908
      fi
 
14909
 
 
14910
      # It seems that -bexpall does not export symbols beginning with
 
14911
      # underscore (_), so it is better to generate a list of symbols to export.
 
14912
      always_export_symbols_F77=yes
 
14913
      if test "$aix_use_runtimelinking" = yes; then
 
14914
        # Warning - without using the other runtime loading flags (-brtl),
 
14915
        # -berok will link without error, but may produce a broken library.
 
14916
        allow_undefined_flag_F77='-berok'
 
14917
       # Determine the default libpath from the value encoded in an empty executable.
 
14918
       cat >conftest.$ac_ext <<_ACEOF
 
14919
      program main
 
14920
 
 
14921
      end
 
14922
_ACEOF
 
14923
rm -f conftest.$ac_objext conftest$ac_exeext
 
14924
if { (ac_try="$ac_link"
 
14925
case "(($ac_try" in
 
14926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14927
  *) ac_try_echo=$ac_try;;
 
14928
esac
 
14929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14930
  (eval "$ac_link") 2>conftest.er1
 
14931
  ac_status=$?
 
14932
  grep -v '^ *+' conftest.er1 >conftest.err
 
14933
  rm -f conftest.er1
 
14934
  cat conftest.err >&5
 
14935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14936
  (exit $ac_status); } &&
 
14937
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
14938
  { (case "(($ac_try" in
 
14939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14940
  *) ac_try_echo=$ac_try;;
 
14941
esac
 
14942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14943
  (eval "$ac_try") 2>&5
 
14944
  ac_status=$?
 
14945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14946
  (exit $ac_status); }; } &&
 
14947
         { ac_try='test -s conftest$ac_exeext'
 
14948
  { (case "(($ac_try" in
 
14949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14950
  *) ac_try_echo=$ac_try;;
 
14951
esac
 
14952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14953
  (eval "$ac_try") 2>&5
 
14954
  ac_status=$?
 
14955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14956
  (exit $ac_status); }; }; then
 
14957
 
 
14958
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14959
}'`
 
14960
# Check for a 64-bit object if we didn't find anything.
 
14961
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14962
}'`; fi
 
14963
else
 
14964
  echo "$as_me: failed program was:" >&5
 
14965
sed 's/^/| /' conftest.$ac_ext >&5
 
14966
 
 
14967
 
 
14968
fi
 
14969
 
 
14970
rm -f core conftest.err conftest.$ac_objext \
 
14971
      conftest$ac_exeext conftest.$ac_ext
 
14972
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14973
 
 
14974
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14975
        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"
 
14976
       else
 
14977
        if test "$host_cpu" = ia64; then
 
14978
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14979
          allow_undefined_flag_F77="-z nodefs"
 
14980
          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"
 
14981
        else
 
14982
         # Determine the default libpath from the value encoded in an empty executable.
 
14983
         cat >conftest.$ac_ext <<_ACEOF
 
14984
      program main
 
14985
 
 
14986
      end
 
14987
_ACEOF
 
14988
rm -f conftest.$ac_objext conftest$ac_exeext
 
14989
if { (ac_try="$ac_link"
 
14990
case "(($ac_try" in
 
14991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14992
  *) ac_try_echo=$ac_try;;
 
14993
esac
 
14994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14995
  (eval "$ac_link") 2>conftest.er1
 
14996
  ac_status=$?
 
14997
  grep -v '^ *+' conftest.er1 >conftest.err
 
14998
  rm -f conftest.er1
 
14999
  cat conftest.err >&5
 
15000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15001
  (exit $ac_status); } &&
 
15002
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
15003
  { (case "(($ac_try" in
 
15004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15005
  *) ac_try_echo=$ac_try;;
 
15006
esac
 
15007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15008
  (eval "$ac_try") 2>&5
 
15009
  ac_status=$?
 
15010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15011
  (exit $ac_status); }; } &&
 
15012
         { ac_try='test -s conftest$ac_exeext'
 
15013
  { (case "(($ac_try" in
 
15014
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15015
  *) ac_try_echo=$ac_try;;
 
15016
esac
 
15017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15018
  (eval "$ac_try") 2>&5
 
15019
  ac_status=$?
 
15020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15021
  (exit $ac_status); }; }; then
 
15022
 
 
15023
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15024
}'`
 
15025
# Check for a 64-bit object if we didn't find anything.
 
15026
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15027
}'`; fi
 
15028
else
 
15029
  echo "$as_me: failed program was:" >&5
 
15030
sed 's/^/| /' conftest.$ac_ext >&5
 
15031
 
 
15032
 
 
15033
fi
 
15034
 
 
15035
rm -f core conftest.err conftest.$ac_objext \
 
15036
      conftest$ac_exeext conftest.$ac_ext
 
15037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15038
 
 
15039
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15040
          # Warning - without using the other run time loading flags,
 
15041
          # -berok will link without error, but may produce a broken library.
 
15042
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15043
          allow_undefined_flag_F77=' ${wl}-berok'
 
15044
          # Exported symbols can be pulled into shared objects from archives
 
15045
          whole_archive_flag_spec_F77='$convenience'
 
15046
          archive_cmds_need_lc_F77=yes
 
15047
          # This is similar to how AIX traditionally builds its shared libraries.
 
15048
          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'
 
15049
        fi
 
15050
      fi
 
15051
      ;;
 
15052
 
 
15053
    amigaos*)
 
15054
      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)'
 
15055
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15056
      hardcode_minus_L_F77=yes
 
15057
      # see comment about different semantics on the GNU ld section
 
15058
      ld_shlibs_F77=no
 
15059
      ;;
 
15060
 
 
15061
    bsdi[45]*)
 
15062
      export_dynamic_flag_spec_F77=-rdynamic
 
15063
      ;;
 
15064
 
 
15065
    cygwin* | mingw* | pw32*)
 
15066
      # When not using gcc, we currently assume that we are using
 
15067
      # Microsoft Visual C++.
 
15068
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15069
      # no search path for DLLs.
 
15070
      hardcode_libdir_flag_spec_F77=' '
 
15071
      allow_undefined_flag_F77=unsupported
 
15072
      # Tell ltmain to make .lib files, not .a files.
 
15073
      libext=lib
 
15074
      # Tell ltmain to make .dll files, not .so files.
 
15075
      shrext_cmds=".dll"
 
15076
      # FIXME: Setting linknames here is a bad hack.
 
15077
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15078
      # The linker will automatically build a .lib file if we build a DLL.
 
15079
      old_archive_From_new_cmds_F77='true'
 
15080
      # FIXME: Should let the user specify the lib program.
 
15081
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15082
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15083
      enable_shared_with_static_runtimes_F77=yes
 
15084
      ;;
 
15085
 
 
15086
    darwin* | rhapsody*)
 
15087
      case $host_os in
 
15088
        rhapsody* | darwin1.[012])
 
15089
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15090
         ;;
 
15091
       *) # Darwin 1.3 on
 
15092
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15093
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15094
         else
 
15095
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15096
             10.[012])
 
15097
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15098
               ;;
 
15099
             10.*)
 
15100
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15101
               ;;
 
15102
           esac
 
15103
         fi
 
15104
         ;;
 
15105
      esac
 
15106
      archive_cmds_need_lc_F77=no
 
15107
      hardcode_direct_F77=no
 
15108
      hardcode_automatic_F77=yes
 
15109
      hardcode_shlibpath_var_F77=unsupported
 
15110
      whole_archive_flag_spec_F77=''
 
15111
      link_all_deplibs_F77=yes
 
15112
    if test "$GCC" = yes ; then
 
15113
        output_verbose_link_cmd='echo'
 
15114
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15115
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15116
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15117
      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}'
 
15118
      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}'
 
15119
    else
 
15120
      case $cc_basename in
 
15121
        xlc*)
 
15122
         output_verbose_link_cmd='echo'
 
15123
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15124
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15125
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15126
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15127
          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}'
 
15128
          ;;
 
15129
       *)
 
15130
         ld_shlibs_F77=no
 
15131
          ;;
 
15132
      esac
 
15133
    fi
 
15134
      ;;
 
15135
 
 
15136
    dgux*)
 
15137
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15138
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15139
      hardcode_shlibpath_var_F77=no
 
15140
      ;;
 
15141
 
 
15142
    freebsd1*)
 
15143
      ld_shlibs_F77=no
 
15144
      ;;
 
15145
 
 
15146
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15147
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15148
    # does not break anything, and helps significantly (at the cost of a little
 
15149
    # extra space).
 
15150
    freebsd2.2*)
 
15151
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15152
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15153
      hardcode_direct_F77=yes
 
15154
      hardcode_shlibpath_var_F77=no
 
15155
      ;;
 
15156
 
 
15157
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15158
    freebsd2*)
 
15159
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15160
      hardcode_direct_F77=yes
 
15161
      hardcode_minus_L_F77=yes
 
15162
      hardcode_shlibpath_var_F77=no
 
15163
      ;;
 
15164
 
 
15165
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15166
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
15167
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15168
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15169
      hardcode_direct_F77=yes
 
15170
      hardcode_shlibpath_var_F77=no
 
15171
      ;;
 
15172
 
 
15173
    hpux9*)
 
15174
      if test "$GCC" = yes; then
 
15175
        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'
 
15176
      else
 
15177
        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'
 
15178
      fi
 
15179
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15180
      hardcode_libdir_separator_F77=:
 
15181
      hardcode_direct_F77=yes
 
15182
 
 
15183
      # hardcode_minus_L: Not really in the search PATH,
 
15184
      # but as the default location of the library.
 
15185
      hardcode_minus_L_F77=yes
 
15186
      export_dynamic_flag_spec_F77='${wl}-E'
 
15187
      ;;
 
15188
 
 
15189
    hpux10*)
 
15190
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15191
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15192
      else
 
15193
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15194
      fi
 
15195
      if test "$with_gnu_ld" = no; then
 
15196
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15197
        hardcode_libdir_separator_F77=:
 
15198
 
 
15199
        hardcode_direct_F77=yes
 
15200
        export_dynamic_flag_spec_F77='${wl}-E'
 
15201
 
 
15202
        # hardcode_minus_L: Not really in the search PATH,
 
15203
        # but as the default location of the library.
 
15204
        hardcode_minus_L_F77=yes
 
15205
      fi
 
15206
      ;;
 
15207
 
 
15208
    hpux11*)
 
15209
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15210
        case $host_cpu in
 
15211
        hppa*64*)
 
15212
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15213
          ;;
 
15214
        ia64*)
 
15215
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15216
          ;;
 
15217
        *)
 
15218
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15219
          ;;
 
15220
        esac
 
15221
      else
 
15222
        case $host_cpu in
 
15223
        hppa*64*)
 
15224
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15225
          ;;
 
15226
        ia64*)
 
15227
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15228
          ;;
 
15229
        *)
 
15230
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15231
          ;;
 
15232
        esac
 
15233
      fi
 
15234
      if test "$with_gnu_ld" = no; then
 
15235
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15236
        hardcode_libdir_separator_F77=:
 
15237
 
 
15238
        case $host_cpu in
 
15239
        hppa*64*|ia64*)
 
15240
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15241
          hardcode_direct_F77=no
 
15242
          hardcode_shlibpath_var_F77=no
 
15243
          ;;
 
15244
        *)
 
15245
          hardcode_direct_F77=yes
 
15246
          export_dynamic_flag_spec_F77='${wl}-E'
 
15247
 
 
15248
          # hardcode_minus_L: Not really in the search PATH,
 
15249
          # but as the default location of the library.
 
15250
          hardcode_minus_L_F77=yes
 
15251
          ;;
 
15252
        esac
 
15253
      fi
 
15254
      ;;
 
15255
 
 
15256
    irix5* | irix6* | nonstopux*)
 
15257
      if test "$GCC" = yes; then
 
15258
        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'
 
15259
      else
 
15260
        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'
 
15261
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15262
      fi
 
15263
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15264
      hardcode_libdir_separator_F77=:
 
15265
      link_all_deplibs_F77=yes
 
15266
      ;;
 
15267
 
 
15268
    netbsd*)
 
15269
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15270
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15271
      else
 
15272
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15273
      fi
 
15274
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15275
      hardcode_direct_F77=yes
 
15276
      hardcode_shlibpath_var_F77=no
 
15277
      ;;
 
15278
 
 
15279
    newsos6)
 
15280
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15281
      hardcode_direct_F77=yes
 
15282
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15283
      hardcode_libdir_separator_F77=:
 
15284
      hardcode_shlibpath_var_F77=no
 
15285
      ;;
 
15286
 
 
15287
    openbsd*)
 
15288
      hardcode_direct_F77=yes
 
15289
      hardcode_shlibpath_var_F77=no
 
15290
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15291
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15292
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15293
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15294
        export_dynamic_flag_spec_F77='${wl}-E'
 
15295
      else
 
15296
       case $host_os in
 
15297
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15298
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15299
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15300
           ;;
 
15301
         *)
 
15302
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15303
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15304
           ;;
 
15305
       esac
 
15306
      fi
 
15307
      ;;
 
15308
 
 
15309
    os2*)
 
15310
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15311
      hardcode_minus_L_F77=yes
 
15312
      allow_undefined_flag_F77=unsupported
 
15313
      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'
 
15314
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15315
      ;;
 
15316
 
 
15317
    osf3*)
 
15318
      if test "$GCC" = yes; then
 
15319
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15320
        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'
 
15321
      else
 
15322
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15323
        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'
 
15324
      fi
 
15325
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15326
      hardcode_libdir_separator_F77=:
 
15327
      ;;
 
15328
 
 
15329
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15330
      if test "$GCC" = yes; then
 
15331
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15332
        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'
 
15333
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15334
      else
 
15335
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15336
        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'
 
15337
        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~
 
15338
        $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'
 
15339
 
 
15340
        # Both c and cxx compiler support -rpath directly
 
15341
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15342
      fi
 
15343
      hardcode_libdir_separator_F77=:
 
15344
      ;;
 
15345
 
 
15346
    solaris*)
 
15347
      no_undefined_flag_F77=' -z text'
 
15348
      if test "$GCC" = yes; then
 
15349
        wlarc='${wl}'
 
15350
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15351
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15352
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15353
      else
 
15354
        wlarc=''
 
15355
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15356
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15357
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15358
      fi
 
15359
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15360
      hardcode_shlibpath_var_F77=no
 
15361
      case $host_os in
 
15362
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15363
      *)
 
15364
        # The compiler driver will combine linker options so we
 
15365
        # cannot just pass the convience library names through
 
15366
        # without $wl, iff we do not link with $LD.
 
15367
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15368
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15369
        case $wlarc in
 
15370
        '')
 
15371
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15372
        *)
 
15373
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
15374
        esac ;;
 
15375
      esac
 
15376
      link_all_deplibs_F77=yes
 
15377
      ;;
 
15378
 
 
15379
    sunos4*)
 
15380
      if test "x$host_vendor" = xsequent; then
 
15381
        # Use $CC to link under sequent, because it throws in some extra .o
 
15382
        # files that make .init and .fini sections work.
 
15383
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15384
      else
 
15385
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15386
      fi
 
15387
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15388
      hardcode_direct_F77=yes
 
15389
      hardcode_minus_L_F77=yes
 
15390
      hardcode_shlibpath_var_F77=no
 
15391
      ;;
 
15392
 
 
15393
    sysv4)
 
15394
      case $host_vendor in
 
15395
        sni)
 
15396
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15397
          hardcode_direct_F77=yes # is this really true???
 
15398
        ;;
 
15399
        siemens)
 
15400
          ## LD is ld it makes a PLAMLIB
 
15401
          ## CC just makes a GrossModule.
 
15402
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15403
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15404
          hardcode_direct_F77=no
 
15405
        ;;
 
15406
        motorola)
 
15407
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15408
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15409
        ;;
 
15410
      esac
 
15411
      runpath_var='LD_RUN_PATH'
 
15412
      hardcode_shlibpath_var_F77=no
 
15413
      ;;
 
15414
 
 
15415
    sysv4.3*)
 
15416
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15417
      hardcode_shlibpath_var_F77=no
 
15418
      export_dynamic_flag_spec_F77='-Bexport'
 
15419
      ;;
 
15420
 
 
15421
    sysv4*MP*)
 
15422
      if test -d /usr/nec; then
 
15423
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15424
        hardcode_shlibpath_var_F77=no
 
15425
        runpath_var=LD_RUN_PATH
 
15426
        hardcode_runpath_var=yes
 
15427
        ld_shlibs_F77=yes
 
15428
      fi
 
15429
      ;;
 
15430
 
 
15431
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15432
      no_undefined_flag_F77='${wl}-z,text'
 
15433
      archive_cmds_need_lc_F77=no
 
15434
      hardcode_shlibpath_var_F77=no
 
15435
      runpath_var='LD_RUN_PATH'
 
15436
 
 
15437
      if test "$GCC" = yes; then
 
15438
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15439
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15440
      else
 
15441
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15442
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15443
      fi
 
15444
      ;;
 
15445
 
 
15446
    sysv5* | sco3.2v5* | sco5v6*)
 
15447
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15448
      # link with -lc, and that would cause any symbols used from libc to
 
15449
      # always be unresolved, which means just about no library would
 
15450
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15451
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15452
      # as -z defs.
 
15453
      no_undefined_flag_F77='${wl}-z,text'
 
15454
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15455
      archive_cmds_need_lc_F77=no
 
15456
      hardcode_shlibpath_var_F77=no
 
15457
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15458
      hardcode_libdir_separator_F77=':'
 
15459
      link_all_deplibs_F77=yes
 
15460
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15461
      runpath_var='LD_RUN_PATH'
 
15462
 
 
15463
      if test "$GCC" = yes; then
 
15464
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15465
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15466
      else
 
15467
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15468
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15469
      fi
 
15470
      ;;
 
15471
 
 
15472
    uts4*)
 
15473
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15474
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15475
      hardcode_shlibpath_var_F77=no
 
15476
      ;;
 
15477
 
 
15478
    *)
 
15479
      ld_shlibs_F77=no
 
15480
      ;;
 
15481
    esac
 
15482
  fi
 
15483
 
 
15484
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15485
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15486
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15487
 
 
15488
#
 
15489
# Do we need to explicitly link libc?
 
15490
#
 
15491
case "x$archive_cmds_need_lc_F77" in
 
15492
x|xyes)
 
15493
  # Assume -lc should be added
 
15494
  archive_cmds_need_lc_F77=yes
 
15495
 
 
15496
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15497
    case $archive_cmds_F77 in
 
15498
    *'~'*)
 
15499
      # FIXME: we may have to deal with multi-command sequences.
 
15500
      ;;
 
15501
    '$CC '*)
 
15502
      # Test whether the compiler implicitly links with -lc since on some
 
15503
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15504
      # to ld, don't add -lc before -lgcc.
 
15505
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15506
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15507
      $rm conftest*
 
15508
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15509
 
 
15510
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15511
  (eval $ac_compile) 2>&5
 
15512
  ac_status=$?
 
15513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15514
  (exit $ac_status); } 2>conftest.err; then
 
15515
        soname=conftest
 
15516
        lib=conftest
 
15517
        libobjs=conftest.$ac_objext
 
15518
        deplibs=
 
15519
        wl=$lt_prog_compiler_wl_F77
 
15520
        pic_flag=$lt_prog_compiler_pic_F77
 
15521
        compiler_flags=-v
 
15522
        linker_flags=-v
 
15523
        verstring=
 
15524
        output_objdir=.
 
15525
        libname=conftest
 
15526
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15527
        allow_undefined_flag_F77=
 
15528
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15529
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15530
  ac_status=$?
 
15531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15532
  (exit $ac_status); }
 
15533
        then
 
15534
          archive_cmds_need_lc_F77=no
 
15535
        else
 
15536
          archive_cmds_need_lc_F77=yes
 
15537
        fi
 
15538
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15539
      else
 
15540
        cat conftest.err 1>&5
 
15541
      fi
 
15542
      $rm conftest*
 
15543
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15544
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15545
      ;;
 
15546
    esac
 
15547
  fi
 
15548
  ;;
 
15549
esac
 
15550
 
 
15551
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15552
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15553
library_names_spec=
 
15554
libname_spec='lib$name'
 
15555
soname_spec=
 
15556
shrext_cmds=".so"
 
15557
postinstall_cmds=
 
15558
postuninstall_cmds=
 
15559
finish_cmds=
 
15560
finish_eval=
 
15561
shlibpath_var=
 
15562
shlibpath_overrides_runpath=unknown
 
15563
version_type=none
 
15564
dynamic_linker="$host_os ld.so"
 
15565
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15566
if test "$GCC" = yes; then
 
15567
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15568
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15569
    # if the path contains ";" then we assume it to be the separator
 
15570
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15571
    # assumed that no part of a normal pathname contains ";" but that should
 
15572
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15573
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15574
  else
 
15575
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15576
  fi
 
15577
else
 
15578
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15579
fi
 
15580
need_lib_prefix=unknown
 
15581
hardcode_into_libs=no
 
15582
 
 
15583
# when you set need_version to no, make sure it does not cause -set_version
 
15584
# flags to be left without arguments
 
15585
need_version=unknown
 
15586
 
 
15587
case $host_os in
 
15588
aix3*)
 
15589
  version_type=linux
 
15590
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15591
  shlibpath_var=LIBPATH
 
15592
 
 
15593
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15594
  soname_spec='${libname}${release}${shared_ext}$major'
 
15595
  ;;
 
15596
 
 
15597
aix4* | aix5*)
 
15598
  version_type=linux
 
15599
  need_lib_prefix=no
 
15600
  need_version=no
 
15601
  hardcode_into_libs=yes
 
15602
  if test "$host_cpu" = ia64; then
 
15603
    # AIX 5 supports IA64
 
15604
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15605
    shlibpath_var=LD_LIBRARY_PATH
 
15606
  else
 
15607
    # With GCC up to 2.95.x, collect2 would create an import file
 
15608
    # for dependence libraries.  The import file would start with
 
15609
    # the line `#! .'.  This would cause the generated library to
 
15610
    # depend on `.', always an invalid library.  This was fixed in
 
15611
    # development snapshots of GCC prior to 3.0.
 
15612
    case $host_os in
 
15613
      aix4 | aix4.[01] | aix4.[01].*)
 
15614
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15615
           echo ' yes '
 
15616
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15617
        :
 
15618
      else
 
15619
        can_build_shared=no
 
15620
      fi
 
15621
      ;;
 
15622
    esac
 
15623
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15624
    # soname into executable. Probably we can add versioning support to
 
15625
    # collect2, so additional links can be useful in future.
 
15626
    if test "$aix_use_runtimelinking" = yes; then
 
15627
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15628
      # instead of lib<name>.a to let people know that these are not
 
15629
      # typical AIX shared libraries.
 
15630
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15631
    else
 
15632
      # We preserve .a as extension for shared libraries through AIX4.2
 
15633
      # and later when we are not doing run time linking.
 
15634
      library_names_spec='${libname}${release}.a $libname.a'
 
15635
      soname_spec='${libname}${release}${shared_ext}$major'
 
15636
    fi
 
15637
    shlibpath_var=LIBPATH
 
15638
  fi
 
15639
  ;;
 
15640
 
 
15641
amigaos*)
 
15642
  library_names_spec='$libname.ixlibrary $libname.a'
 
15643
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15644
  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'
 
15645
  ;;
 
15646
 
 
15647
beos*)
 
15648
  library_names_spec='${libname}${shared_ext}'
 
15649
  dynamic_linker="$host_os ld.so"
 
15650
  shlibpath_var=LIBRARY_PATH
 
15651
  ;;
 
15652
 
 
15653
bsdi[45]*)
 
15654
  version_type=linux
 
15655
  need_version=no
 
15656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15657
  soname_spec='${libname}${release}${shared_ext}$major'
 
15658
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15659
  shlibpath_var=LD_LIBRARY_PATH
 
15660
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15661
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15662
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15663
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15664
  # libtool to hard-code these into programs
 
15665
  ;;
 
15666
 
 
15667
cygwin* | mingw* | pw32*)
 
15668
  version_type=windows
 
15669
  shrext_cmds=".dll"
 
15670
  need_version=no
 
15671
  need_lib_prefix=no
 
15672
 
 
15673
  case $GCC,$host_os in
 
15674
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15675
    library_names_spec='$libname.dll.a'
 
15676
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15677
    postinstall_cmds='base_file=`basename \${file}`~
 
15678
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15679
      dldir=$destdir/`dirname \$dlpath`~
 
15680
      test -d \$dldir || mkdir -p \$dldir~
 
15681
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15682
      chmod a+x \$dldir/$dlname'
 
15683
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15684
      dlpath=$dir/\$dldll~
 
15685
       $rm \$dlpath'
 
15686
    shlibpath_overrides_runpath=yes
 
15687
 
 
15688
    case $host_os in
 
15689
    cygwin*)
 
15690
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15691
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15692
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15693
      ;;
 
15694
    mingw*)
 
15695
      # MinGW DLLs use traditional 'lib' prefix
 
15696
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15697
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15698
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15699
        # It is most probably a Windows format PATH printed by
 
15700
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15701
        # path with ; separators, and with drive letters. We can handle the
 
15702
        # drive letters (cygwin fileutils understands them), so leave them,
 
15703
        # especially as we might pass files found there to a mingw objdump,
 
15704
        # which wouldn't understand a cygwinified path. Ahh.
 
15705
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15706
      else
 
15707
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15708
      fi
 
15709
      ;;
 
15710
    pw32*)
 
15711
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15712
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15713
      ;;
 
15714
    esac
 
15715
    ;;
 
15716
 
 
15717
  *)
 
15718
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15719
    ;;
 
15720
  esac
 
15721
  dynamic_linker='Win32 ld.exe'
 
15722
  # FIXME: first we should search . and the directory the executable is in
 
15723
  shlibpath_var=PATH
 
15724
  ;;
 
15725
 
 
15726
darwin* | rhapsody*)
 
15727
  dynamic_linker="$host_os dyld"
 
15728
  version_type=darwin
 
15729
  need_lib_prefix=no
 
15730
  need_version=no
 
15731
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15732
  soname_spec='${libname}${release}${major}$shared_ext'
 
15733
  shlibpath_overrides_runpath=yes
 
15734
  shlibpath_var=DYLD_LIBRARY_PATH
 
15735
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15736
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15737
  if test "$GCC" = yes; then
 
15738
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
15739
  else
 
15740
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15741
  fi
 
15742
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15743
  ;;
 
15744
 
 
15745
dgux*)
 
15746
  version_type=linux
 
15747
  need_lib_prefix=no
 
15748
  need_version=no
 
15749
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15750
  soname_spec='${libname}${release}${shared_ext}$major'
 
15751
  shlibpath_var=LD_LIBRARY_PATH
 
15752
  ;;
 
15753
 
 
15754
freebsd1*)
 
15755
  dynamic_linker=no
 
15756
  ;;
 
15757
 
 
15758
kfreebsd*-gnu)
 
15759
  version_type=linux
 
15760
  need_lib_prefix=no
 
15761
  need_version=no
 
15762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15763
  soname_spec='${libname}${release}${shared_ext}$major'
 
15764
  shlibpath_var=LD_LIBRARY_PATH
 
15765
  shlibpath_overrides_runpath=no
 
15766
  hardcode_into_libs=yes
 
15767
  dynamic_linker='GNU ld.so'
 
15768
  ;;
 
15769
 
 
15770
freebsd* | dragonfly*)
 
15771
  # DragonFly does not have aout.  When/if they implement a new
 
15772
  # versioning mechanism, adjust this.
 
15773
  if test -x /usr/bin/objformat; then
 
15774
    objformat=`/usr/bin/objformat`
 
15775
  else
 
15776
    case $host_os in
 
15777
    freebsd[123]*) objformat=aout ;;
 
15778
    *) objformat=elf ;;
 
15779
    esac
 
15780
  fi
 
15781
  version_type=freebsd-$objformat
 
15782
  case $version_type in
 
15783
    freebsd-elf*)
 
15784
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15785
      need_version=no
 
15786
      need_lib_prefix=no
 
15787
      ;;
 
15788
    freebsd-*)
 
15789
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15790
      need_version=yes
 
15791
      ;;
 
15792
  esac
 
15793
  shlibpath_var=LD_LIBRARY_PATH
 
15794
  case $host_os in
 
15795
  freebsd2*)
 
15796
    shlibpath_overrides_runpath=yes
 
15797
    ;;
 
15798
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15799
    shlibpath_overrides_runpath=yes
 
15800
    hardcode_into_libs=yes
 
15801
    ;;
 
15802
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15803
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15804
    shlibpath_overrides_runpath=no
 
15805
    hardcode_into_libs=yes
 
15806
    ;;
 
15807
  freebsd*) # from 4.6 on
 
15808
    shlibpath_overrides_runpath=yes
 
15809
    hardcode_into_libs=yes
 
15810
    ;;
 
15811
  esac
 
15812
  ;;
 
15813
 
 
15814
gnu*)
 
15815
  version_type=linux
 
15816
  need_lib_prefix=no
 
15817
  need_version=no
 
15818
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15819
  soname_spec='${libname}${release}${shared_ext}$major'
 
15820
  shlibpath_var=LD_LIBRARY_PATH
 
15821
  hardcode_into_libs=yes
 
15822
  ;;
 
15823
 
 
15824
hpux9* | hpux10* | hpux11*)
 
15825
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15826
  # link against other versions.
 
15827
  version_type=sunos
 
15828
  need_lib_prefix=no
 
15829
  need_version=no
 
15830
  case $host_cpu in
 
15831
  ia64*)
 
15832
    shrext_cmds='.so'
 
15833
    hardcode_into_libs=yes
 
15834
    dynamic_linker="$host_os dld.so"
 
15835
    shlibpath_var=LD_LIBRARY_PATH
 
15836
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15837
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15838
    soname_spec='${libname}${release}${shared_ext}$major'
 
15839
    if test "X$HPUX_IA64_MODE" = X32; then
 
15840
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15841
    else
 
15842
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15843
    fi
 
15844
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15845
    ;;
 
15846
   hppa*64*)
 
15847
     shrext_cmds='.sl'
 
15848
     hardcode_into_libs=yes
 
15849
     dynamic_linker="$host_os dld.sl"
 
15850
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15851
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15852
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15853
     soname_spec='${libname}${release}${shared_ext}$major'
 
15854
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15855
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15856
     ;;
 
15857
   *)
 
15858
    shrext_cmds='.sl'
 
15859
    dynamic_linker="$host_os dld.sl"
 
15860
    shlibpath_var=SHLIB_PATH
 
15861
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15862
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15863
    soname_spec='${libname}${release}${shared_ext}$major'
 
15864
    ;;
 
15865
  esac
 
15866
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15867
  postinstall_cmds='chmod 555 $lib'
 
15868
  ;;
 
15869
 
 
15870
interix3*)
 
15871
  version_type=linux
 
15872
  need_lib_prefix=no
 
15873
  need_version=no
 
15874
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15875
  soname_spec='${libname}${release}${shared_ext}$major'
 
15876
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15877
  shlibpath_var=LD_LIBRARY_PATH
 
15878
  shlibpath_overrides_runpath=no
 
15879
  hardcode_into_libs=yes
 
15880
  ;;
 
15881
 
 
15882
irix5* | irix6* | nonstopux*)
 
15883
  case $host_os in
 
15884
    nonstopux*) version_type=nonstopux ;;
 
15885
    *)
 
15886
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15887
                version_type=linux
 
15888
        else
 
15889
                version_type=irix
 
15890
        fi ;;
 
15891
  esac
 
15892
  need_lib_prefix=no
 
15893
  need_version=no
 
15894
  soname_spec='${libname}${release}${shared_ext}$major'
 
15895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15896
  case $host_os in
 
15897
  irix5* | nonstopux*)
 
15898
    libsuff= shlibsuff=
 
15899
    ;;
 
15900
  *)
 
15901
    case $LD in # libtool.m4 will add one of these switches to LD
 
15902
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15903
      libsuff= shlibsuff= libmagic=32-bit;;
 
15904
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15905
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15906
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15907
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15908
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15909
    esac
 
15910
    ;;
 
15911
  esac
 
15912
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15913
  shlibpath_overrides_runpath=no
 
15914
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15915
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15916
  hardcode_into_libs=yes
 
15917
  ;;
 
15918
 
 
15919
# No shared lib support for Linux oldld, aout, or coff.
 
15920
linux*oldld* | linux*aout* | linux*coff*)
 
15921
  dynamic_linker=no
 
15922
  ;;
 
15923
 
 
15924
# This must be Linux ELF.
 
15925
linux*)
 
15926
  version_type=linux
 
15927
  need_lib_prefix=no
 
15928
  need_version=no
 
15929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15930
  soname_spec='${libname}${release}${shared_ext}$major'
 
15931
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15932
  shlibpath_var=LD_LIBRARY_PATH
 
15933
  shlibpath_overrides_runpath=no
 
15934
  # This implies no fast_install, which is unacceptable.
 
15935
  # Some rework will be needed to allow for fast_install
 
15936
  # before this can be enabled.
 
15937
  hardcode_into_libs=yes
 
15938
 
 
15939
  # Append ld.so.conf contents to the search path
 
15940
  if test -f /etc/ld.so.conf; then
 
15941
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15942
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15943
  fi
 
15944
 
 
15945
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15946
  # powerpc, because MkLinux only supported shared libraries with the
 
15947
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15948
  # most powerpc-linux boxes support dynamic linking these days and
 
15949
  # people can always --disable-shared, the test was removed, and we
 
15950
  # assume the GNU/Linux dynamic linker is in use.
 
15951
  dynamic_linker='GNU/Linux ld.so'
 
15952
  ;;
 
15953
 
 
15954
knetbsd*-gnu)
 
15955
  version_type=linux
 
15956
  need_lib_prefix=no
 
15957
  need_version=no
 
15958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15959
  soname_spec='${libname}${release}${shared_ext}$major'
 
15960
  shlibpath_var=LD_LIBRARY_PATH
 
15961
  shlibpath_overrides_runpath=no
 
15962
  hardcode_into_libs=yes
 
15963
  dynamic_linker='GNU ld.so'
 
15964
  ;;
 
15965
 
 
15966
netbsd*)
 
15967
  version_type=sunos
 
15968
  need_lib_prefix=no
 
15969
  need_version=no
 
15970
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15971
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15972
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15973
    dynamic_linker='NetBSD (a.out) ld.so'
 
15974
  else
 
15975
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15976
    soname_spec='${libname}${release}${shared_ext}$major'
 
15977
    dynamic_linker='NetBSD ld.elf_so'
 
15978
  fi
 
15979
  shlibpath_var=LD_LIBRARY_PATH
 
15980
  shlibpath_overrides_runpath=yes
 
15981
  hardcode_into_libs=yes
 
15982
  ;;
 
15983
 
 
15984
newsos6)
 
15985
  version_type=linux
 
15986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15987
  shlibpath_var=LD_LIBRARY_PATH
 
15988
  shlibpath_overrides_runpath=yes
 
15989
  ;;
 
15990
 
 
15991
nto-qnx*)
 
15992
  version_type=linux
 
15993
  need_lib_prefix=no
 
15994
  need_version=no
 
15995
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15996
  soname_spec='${libname}${release}${shared_ext}$major'
 
15997
  shlibpath_var=LD_LIBRARY_PATH
 
15998
  shlibpath_overrides_runpath=yes
 
15999
  ;;
 
16000
 
 
16001
openbsd*)
 
16002
  version_type=sunos
 
16003
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16004
  need_lib_prefix=no
 
16005
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16006
  case $host_os in
 
16007
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16008
    *)                         need_version=no  ;;
 
16009
  esac
 
16010
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16011
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16012
  shlibpath_var=LD_LIBRARY_PATH
 
16013
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16014
    case $host_os in
 
16015
      openbsd2.[89] | openbsd2.[89].*)
 
16016
        shlibpath_overrides_runpath=no
 
16017
        ;;
 
16018
      *)
 
16019
        shlibpath_overrides_runpath=yes
 
16020
        ;;
 
16021
      esac
 
16022
  else
 
16023
    shlibpath_overrides_runpath=yes
 
16024
  fi
 
16025
  ;;
 
16026
 
 
16027
os2*)
 
16028
  libname_spec='$name'
 
16029
  shrext_cmds=".dll"
 
16030
  need_lib_prefix=no
 
16031
  library_names_spec='$libname${shared_ext} $libname.a'
 
16032
  dynamic_linker='OS/2 ld.exe'
 
16033
  shlibpath_var=LIBPATH
 
16034
  ;;
 
16035
 
 
16036
osf3* | osf4* | osf5*)
 
16037
  version_type=osf
 
16038
  need_lib_prefix=no
 
16039
  need_version=no
 
16040
  soname_spec='${libname}${release}${shared_ext}$major'
 
16041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16042
  shlibpath_var=LD_LIBRARY_PATH
 
16043
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16044
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16045
  ;;
 
16046
 
 
16047
solaris*)
 
16048
  version_type=linux
 
16049
  need_lib_prefix=no
 
16050
  need_version=no
 
16051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16052
  soname_spec='${libname}${release}${shared_ext}$major'
 
16053
  shlibpath_var=LD_LIBRARY_PATH
 
16054
  shlibpath_overrides_runpath=yes
 
16055
  hardcode_into_libs=yes
 
16056
  # ldd complains unless libraries are executable
 
16057
  postinstall_cmds='chmod +x $lib'
 
16058
  ;;
 
16059
 
 
16060
sunos4*)
 
16061
  version_type=sunos
 
16062
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16063
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16064
  shlibpath_var=LD_LIBRARY_PATH
 
16065
  shlibpath_overrides_runpath=yes
 
16066
  if test "$with_gnu_ld" = yes; then
 
16067
    need_lib_prefix=no
 
16068
  fi
 
16069
  need_version=yes
 
16070
  ;;
 
16071
 
 
16072
sysv4 | sysv4.3*)
 
16073
  version_type=linux
 
16074
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16075
  soname_spec='${libname}${release}${shared_ext}$major'
 
16076
  shlibpath_var=LD_LIBRARY_PATH
 
16077
  case $host_vendor in
 
16078
    sni)
 
16079
      shlibpath_overrides_runpath=no
 
16080
      need_lib_prefix=no
 
16081
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16082
      runpath_var=LD_RUN_PATH
 
16083
      ;;
 
16084
    siemens)
 
16085
      need_lib_prefix=no
 
16086
      ;;
 
16087
    motorola)
 
16088
      need_lib_prefix=no
 
16089
      need_version=no
 
16090
      shlibpath_overrides_runpath=no
 
16091
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16092
      ;;
 
16093
  esac
 
16094
  ;;
 
16095
 
 
16096
sysv4*MP*)
 
16097
  if test -d /usr/nec ;then
 
16098
    version_type=linux
 
16099
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16100
    soname_spec='$libname${shared_ext}.$major'
 
16101
    shlibpath_var=LD_LIBRARY_PATH
 
16102
  fi
 
16103
  ;;
 
16104
 
 
16105
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16106
  version_type=freebsd-elf
 
16107
  need_lib_prefix=no
 
16108
  need_version=no
 
16109
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16110
  soname_spec='${libname}${release}${shared_ext}$major'
 
16111
  shlibpath_var=LD_LIBRARY_PATH
 
16112
  hardcode_into_libs=yes
 
16113
  if test "$with_gnu_ld" = yes; then
 
16114
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16115
    shlibpath_overrides_runpath=no
 
16116
  else
 
16117
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16118
    shlibpath_overrides_runpath=yes
 
16119
    case $host_os in
 
16120
      sco3.2v5*)
 
16121
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16122
        ;;
 
16123
    esac
 
16124
  fi
 
16125
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16126
  ;;
 
16127
 
 
16128
uts4*)
 
16129
  version_type=linux
 
16130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16131
  soname_spec='${libname}${release}${shared_ext}$major'
 
16132
  shlibpath_var=LD_LIBRARY_PATH
 
16133
  ;;
 
16134
 
 
16135
*)
 
16136
  dynamic_linker=no
 
16137
  ;;
 
16138
esac
 
16139
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16140
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16141
test "$dynamic_linker" = no && can_build_shared=no
 
16142
 
 
16143
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16144
if test "$GCC" = yes; then
 
16145
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16146
fi
 
16147
 
 
16148
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16149
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16150
hardcode_action_F77=
 
16151
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16152
   test -n "$runpath_var_F77" || \
 
16153
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16154
 
 
16155
  # We can hardcode non-existant directories.
 
16156
  if test "$hardcode_direct_F77" != no &&
 
16157
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16158
     # have to relink, otherwise we might link with an installed library
 
16159
     # when we should be linking with a yet-to-be-installed one
 
16160
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16161
     test "$hardcode_minus_L_F77" != no; then
 
16162
    # Linking always hardcodes the temporary library directory.
 
16163
    hardcode_action_F77=relink
 
16164
  else
 
16165
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16166
    hardcode_action_F77=immediate
 
16167
  fi
 
16168
else
 
16169
  # We cannot hardcode anything, or else we can only hardcode existing
 
16170
  # directories.
 
16171
  hardcode_action_F77=unsupported
 
16172
fi
 
16173
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16174
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16175
 
 
16176
if test "$hardcode_action_F77" = relink; then
 
16177
  # Fast installation is not supported
 
16178
  enable_fast_install=no
 
16179
elif test "$shlibpath_overrides_runpath" = yes ||
 
16180
     test "$enable_shared" = no; then
 
16181
  # Fast installation is not necessary
 
16182
  enable_fast_install=needless
 
16183
fi
 
16184
 
 
16185
 
 
16186
# The else clause should only fire when bootstrapping the
 
16187
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16188
# with your package, and you will get complaints that there are
 
16189
# no rules to generate ltmain.sh.
 
16190
if test -f "$ltmain"; then
 
16191
  # See if we are running on zsh, and set the options which allow our commands through
 
16192
  # without removal of \ escapes.
 
16193
  if test -n "${ZSH_VERSION+set}" ; then
 
16194
    setopt NO_GLOB_SUBST
 
16195
  fi
 
16196
  # Now quote all the things that may contain metacharacters while being
 
16197
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16198
  # variables and quote the copies for generation of the libtool script.
 
16199
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16200
    SED SHELL STRIP \
 
16201
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16202
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16203
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16204
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16205
    lt_cv_sys_global_symbol_to_c_name_address \
 
16206
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16207
    old_postinstall_cmds old_postuninstall_cmds \
 
16208
    compiler_F77 \
 
16209
    CC_F77 \
 
16210
    LD_F77 \
 
16211
    lt_prog_compiler_wl_F77 \
 
16212
    lt_prog_compiler_pic_F77 \
 
16213
    lt_prog_compiler_static_F77 \
 
16214
    lt_prog_compiler_no_builtin_flag_F77 \
 
16215
    export_dynamic_flag_spec_F77 \
 
16216
    thread_safe_flag_spec_F77 \
 
16217
    whole_archive_flag_spec_F77 \
 
16218
    enable_shared_with_static_runtimes_F77 \
 
16219
    old_archive_cmds_F77 \
 
16220
    old_archive_from_new_cmds_F77 \
 
16221
    predep_objects_F77 \
 
16222
    postdep_objects_F77 \
 
16223
    predeps_F77 \
 
16224
    postdeps_F77 \
 
16225
    compiler_lib_search_path_F77 \
 
16226
    archive_cmds_F77 \
 
16227
    archive_expsym_cmds_F77 \
 
16228
    postinstall_cmds_F77 \
 
16229
    postuninstall_cmds_F77 \
 
16230
    old_archive_from_expsyms_cmds_F77 \
 
16231
    allow_undefined_flag_F77 \
 
16232
    no_undefined_flag_F77 \
 
16233
    export_symbols_cmds_F77 \
 
16234
    hardcode_libdir_flag_spec_F77 \
 
16235
    hardcode_libdir_flag_spec_ld_F77 \
 
16236
    hardcode_libdir_separator_F77 \
 
16237
    hardcode_automatic_F77 \
 
16238
    module_cmds_F77 \
 
16239
    module_expsym_cmds_F77 \
 
16240
    lt_cv_prog_compiler_c_o_F77 \
 
16241
    exclude_expsyms_F77 \
 
16242
    include_expsyms_F77; do
 
16243
 
 
16244
    case $var in
 
16245
    old_archive_cmds_F77 | \
 
16246
    old_archive_from_new_cmds_F77 | \
 
16247
    archive_cmds_F77 | \
 
16248
    archive_expsym_cmds_F77 | \
 
16249
    module_cmds_F77 | \
 
16250
    module_expsym_cmds_F77 | \
 
16251
    old_archive_from_expsyms_cmds_F77 | \
 
16252
    export_symbols_cmds_F77 | \
 
16253
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16254
    postinstall_cmds | postuninstall_cmds | \
 
16255
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16256
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16257
      # Double-quote double-evaled strings.
 
16258
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16259
      ;;
 
16260
    *)
 
16261
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16262
      ;;
 
16263
    esac
 
16264
  done
 
16265
 
 
16266
  case $lt_echo in
 
16267
  *'\$0 --fallback-echo"')
 
16268
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16269
    ;;
 
16270
  esac
 
16271
 
 
16272
cfgfile="$ofile"
 
16273
 
 
16274
  cat <<__EOF__ >> "$cfgfile"
 
16275
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16276
 
 
16277
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16278
 
 
16279
# Shell to use when invoking shell scripts.
 
16280
SHELL=$lt_SHELL
 
16281
 
 
16282
# Whether or not to build shared libraries.
 
16283
build_libtool_libs=$enable_shared
 
16284
 
 
16285
# Whether or not to build static libraries.
 
16286
build_old_libs=$enable_static
 
16287
 
 
16288
# Whether or not to add -lc for building shared libraries.
 
16289
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16290
 
 
16291
# Whether or not to disallow shared libs when runtime libs are static
 
16292
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16293
 
 
16294
# Whether or not to optimize for fast installation.
 
16295
fast_install=$enable_fast_install
 
16296
 
 
16297
# The host system.
 
16298
host_alias=$host_alias
 
16299
host=$host
 
16300
host_os=$host_os
 
16301
 
 
16302
# The build system.
 
16303
build_alias=$build_alias
 
16304
build=$build
 
16305
build_os=$build_os
 
16306
 
 
16307
# An echo program that does not interpret backslashes.
 
16308
echo=$lt_echo
 
16309
 
 
16310
# The archiver.
 
16311
AR=$lt_AR
 
16312
AR_FLAGS=$lt_AR_FLAGS
 
16313
 
 
16314
# A C compiler.
 
16315
LTCC=$lt_LTCC
 
16316
 
 
16317
# LTCC compiler flags.
 
16318
LTCFLAGS=$lt_LTCFLAGS
 
16319
 
 
16320
# A language-specific compiler.
 
16321
CC=$lt_compiler_F77
 
16322
 
 
16323
# Is the compiler the GNU C compiler?
 
16324
with_gcc=$GCC_F77
 
16325
 
 
16326
# An ERE matcher.
 
16327
EGREP=$lt_EGREP
 
16328
 
 
16329
# The linker used to build libraries.
 
16330
LD=$lt_LD_F77
 
16331
 
 
16332
# Whether we need hard or soft links.
 
16333
LN_S=$lt_LN_S
 
16334
 
 
16335
# A BSD-compatible nm program.
 
16336
NM=$lt_NM
 
16337
 
 
16338
# A symbol stripping program
 
16339
STRIP=$lt_STRIP
 
16340
 
 
16341
# Used to examine libraries when file_magic_cmd begins "file"
 
16342
MAGIC_CMD=$MAGIC_CMD
 
16343
 
 
16344
# Used on cygwin: DLL creation program.
 
16345
DLLTOOL="$DLLTOOL"
 
16346
 
 
16347
# Used on cygwin: object dumper.
 
16348
OBJDUMP="$OBJDUMP"
 
16349
 
 
16350
# Used on cygwin: assembler.
 
16351
AS="$AS"
 
16352
 
 
16353
# The name of the directory that contains temporary libtool files.
 
16354
objdir=$objdir
 
16355
 
 
16356
# How to create reloadable object files.
 
16357
reload_flag=$lt_reload_flag
 
16358
reload_cmds=$lt_reload_cmds
 
16359
 
 
16360
# How to pass a linker flag through the compiler.
 
16361
wl=$lt_lt_prog_compiler_wl_F77
 
16362
 
 
16363
# Object file suffix (normally "o").
 
16364
objext="$ac_objext"
 
16365
 
 
16366
# Old archive suffix (normally "a").
 
16367
libext="$libext"
 
16368
 
 
16369
# Shared library suffix (normally ".so").
 
16370
shrext_cmds='$shrext_cmds'
 
16371
 
 
16372
# Executable file suffix (normally "").
 
16373
exeext="$exeext"
 
16374
 
 
16375
# Additional compiler flags for building library objects.
 
16376
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16377
pic_mode=$pic_mode
 
16378
 
 
16379
# What is the maximum length of a command?
 
16380
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16381
 
 
16382
# Does compiler simultaneously support -c and -o options?
 
16383
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16384
 
 
16385
# Must we lock files when doing compilation?
 
16386
need_locks=$lt_need_locks
 
16387
 
 
16388
# Do we need the lib prefix for modules?
 
16389
need_lib_prefix=$need_lib_prefix
 
16390
 
 
16391
# Do we need a version for libraries?
 
16392
need_version=$need_version
 
16393
 
 
16394
# Whether dlopen is supported.
 
16395
dlopen_support=$enable_dlopen
 
16396
 
 
16397
# Whether dlopen of programs is supported.
 
16398
dlopen_self=$enable_dlopen_self
 
16399
 
 
16400
# Whether dlopen of statically linked programs is supported.
 
16401
dlopen_self_static=$enable_dlopen_self_static
 
16402
 
 
16403
# Compiler flag to prevent dynamic linking.
 
16404
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16405
 
 
16406
# Compiler flag to turn off builtin functions.
 
16407
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16408
 
 
16409
# Compiler flag to allow reflexive dlopens.
 
16410
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16411
 
 
16412
# Compiler flag to generate shared objects directly from archives.
 
16413
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16414
 
 
16415
# Compiler flag to generate thread-safe objects.
 
16416
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16417
 
 
16418
# Library versioning type.
 
16419
version_type=$version_type
 
16420
 
 
16421
# Format of library name prefix.
 
16422
libname_spec=$lt_libname_spec
 
16423
 
 
16424
# List of archive names.  First name is the real one, the rest are links.
 
16425
# The last name is the one that the linker finds with -lNAME.
 
16426
library_names_spec=$lt_library_names_spec
 
16427
 
 
16428
# The coded name of the library, if different from the real name.
 
16429
soname_spec=$lt_soname_spec
 
16430
 
 
16431
# Commands used to build and install an old-style archive.
 
16432
RANLIB=$lt_RANLIB
 
16433
old_archive_cmds=$lt_old_archive_cmds_F77
 
16434
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16435
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16436
 
 
16437
# Create an old-style archive from a shared archive.
 
16438
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16439
 
 
16440
# Create a temporary old-style archive to link instead of a shared archive.
 
16441
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16442
 
 
16443
# Commands used to build and install a shared archive.
 
16444
archive_cmds=$lt_archive_cmds_F77
 
16445
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16446
postinstall_cmds=$lt_postinstall_cmds
 
16447
postuninstall_cmds=$lt_postuninstall_cmds
 
16448
 
 
16449
# Commands used to build a loadable module (assumed same as above if empty)
 
16450
module_cmds=$lt_module_cmds_F77
 
16451
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16452
 
 
16453
# Commands to strip libraries.
 
16454
old_striplib=$lt_old_striplib
 
16455
striplib=$lt_striplib
 
16456
 
 
16457
# Dependencies to place before the objects being linked to create a
 
16458
# shared library.
 
16459
predep_objects=$lt_predep_objects_F77
 
16460
 
 
16461
# Dependencies to place after the objects being linked to create a
 
16462
# shared library.
 
16463
postdep_objects=$lt_postdep_objects_F77
 
16464
 
 
16465
# Dependencies to place before the objects being linked to create a
 
16466
# shared library.
 
16467
predeps=$lt_predeps_F77
 
16468
 
 
16469
# Dependencies to place after the objects being linked to create a
 
16470
# shared library.
 
16471
postdeps=$lt_postdeps_F77
 
16472
 
 
16473
# The library search path used internally by the compiler when linking
 
16474
# a shared library.
 
16475
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16476
 
 
16477
# Method to check whether dependent libraries are shared objects.
 
16478
deplibs_check_method=$lt_deplibs_check_method
 
16479
 
 
16480
# Command to use when deplibs_check_method == file_magic.
 
16481
file_magic_cmd=$lt_file_magic_cmd
 
16482
 
 
16483
# Flag that allows shared libraries with undefined symbols to be built.
 
16484
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16485
 
 
16486
# Flag that forces no undefined symbols.
 
16487
no_undefined_flag=$lt_no_undefined_flag_F77
 
16488
 
 
16489
# Commands used to finish a libtool library installation in a directory.
 
16490
finish_cmds=$lt_finish_cmds
 
16491
 
 
16492
# Same as above, but a single script fragment to be evaled but not shown.
 
16493
finish_eval=$lt_finish_eval
 
16494
 
 
16495
# Take the output of nm and produce a listing of raw symbols and C names.
 
16496
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16497
 
 
16498
# Transform the output of nm in a proper C declaration
 
16499
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16500
 
 
16501
# Transform the output of nm in a C name address pair
 
16502
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16503
 
 
16504
# This is the shared library runtime path variable.
 
16505
runpath_var=$runpath_var
 
16506
 
 
16507
# This is the shared library path variable.
 
16508
shlibpath_var=$shlibpath_var
 
16509
 
 
16510
# Is shlibpath searched before the hard-coded library search path?
 
16511
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16512
 
 
16513
# How to hardcode a shared library path into an executable.
 
16514
hardcode_action=$hardcode_action_F77
 
16515
 
 
16516
# Whether we should hardcode library paths into libraries.
 
16517
hardcode_into_libs=$hardcode_into_libs
 
16518
 
 
16519
# Flag to hardcode \$libdir into a binary during linking.
 
16520
# This must work even if \$libdir does not exist.
 
16521
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16522
 
 
16523
# If ld is used when linking, flag to hardcode \$libdir into
 
16524
# a binary during linking. This must work even if \$libdir does
 
16525
# not exist.
 
16526
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16527
 
 
16528
# Whether we need a single -rpath flag with a separated argument.
 
16529
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16530
 
 
16531
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16532
# resulting binary.
 
16533
hardcode_direct=$hardcode_direct_F77
 
16534
 
 
16535
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16536
# resulting binary.
 
16537
hardcode_minus_L=$hardcode_minus_L_F77
 
16538
 
 
16539
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16540
# the resulting binary.
 
16541
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16542
 
 
16543
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16544
# and all subsequent libraries and executables linked against it.
 
16545
hardcode_automatic=$hardcode_automatic_F77
 
16546
 
 
16547
# Variables whose values should be saved in libtool wrapper scripts and
 
16548
# restored at relink time.
 
16549
variables_saved_for_relink="$variables_saved_for_relink"
 
16550
 
 
16551
# Whether libtool must link a program against all its dependency libraries.
 
16552
link_all_deplibs=$link_all_deplibs_F77
 
16553
 
 
16554
# Compile-time system search path for libraries
 
16555
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16556
 
 
16557
# Run-time system search path for libraries
 
16558
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16559
 
 
16560
# Fix the shell variable \$srcfile for the compiler.
 
16561
fix_srcfile_path="$fix_srcfile_path_F77"
 
16562
 
 
16563
# Set to yes if exported symbols are required.
 
16564
always_export_symbols=$always_export_symbols_F77
 
16565
 
 
16566
# The commands to list exported symbols.
 
16567
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16568
 
 
16569
# The commands to extract the exported symbol list from a shared archive.
 
16570
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16571
 
 
16572
# Symbols that should not be listed in the preloaded symbols.
 
16573
exclude_expsyms=$lt_exclude_expsyms_F77
 
16574
 
 
16575
# Symbols that must always be exported.
 
16576
include_expsyms=$lt_include_expsyms_F77
 
16577
 
 
16578
# ### END LIBTOOL TAG CONFIG: $tagname
 
16579
 
 
16580
__EOF__
 
16581
 
 
16582
 
 
16583
else
 
16584
  # If there is no Makefile yet, we rely on a make rule to execute
 
16585
  # `config.status --recheck' to rerun these tests and create the
 
16586
  # libtool script then.
 
16587
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16588
  if test -f "$ltmain_in"; then
 
16589
    test -f Makefile && make "$ltmain"
 
16590
  fi
 
16591
fi
 
16592
 
 
16593
 
 
16594
ac_ext=c
 
16595
ac_cpp='$CPP $CPPFLAGS'
 
16596
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16597
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16598
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16599
 
 
16600
CC="$lt_save_CC"
 
16601
 
 
16602
        else
 
16603
          tagname=""
 
16604
        fi
 
16605
        ;;
 
16606
 
 
16607
      GCJ)
 
16608
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16609
 
 
16610
 
 
16611
# Source file extension for Java test sources.
 
16612
ac_ext=java
 
16613
 
 
16614
# Object file extension for compiled Java test sources.
 
16615
objext=o
 
16616
objext_GCJ=$objext
 
16617
 
 
16618
# Code to be used in simple compile tests
 
16619
lt_simple_compile_test_code="class foo {}\n"
 
16620
 
 
16621
# Code to be used in simple link tests
 
16622
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16623
 
 
16624
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16625
 
 
16626
# If no C compiler was specified, use CC.
 
16627
LTCC=${LTCC-"$CC"}
 
16628
 
 
16629
# If no C compiler flags were specified, use CFLAGS.
 
16630
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16631
 
 
16632
# Allow CC to be a program name with arguments.
 
16633
compiler=$CC
 
16634
 
 
16635
 
 
16636
# save warnings/boilerplate of simple test code
 
16637
ac_outfile=conftest.$ac_objext
 
16638
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16639
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16640
_lt_compiler_boilerplate=`cat conftest.err`
 
16641
$rm conftest*
 
16642
 
 
16643
ac_outfile=conftest.$ac_objext
 
16644
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16645
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16646
_lt_linker_boilerplate=`cat conftest.err`
 
16647
$rm conftest*
 
16648
 
 
16649
 
 
16650
# Allow CC to be a program name with arguments.
 
16651
lt_save_CC="$CC"
 
16652
CC=${GCJ-"gcj"}
 
16653
compiler=$CC
 
16654
compiler_GCJ=$CC
 
16655
for cc_temp in $compiler""; do
 
16656
  case $cc_temp in
 
16657
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16658
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16659
    \-*) ;;
 
16660
    *) break;;
 
16661
  esac
 
16662
done
 
16663
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16664
 
 
16665
 
 
16666
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16667
archive_cmds_need_lc_GCJ=no
 
16668
 
 
16669
old_archive_cmds_GCJ=$old_archive_cmds
 
16670
 
 
16671
 
 
16672
lt_prog_compiler_no_builtin_flag_GCJ=
 
16673
 
 
16674
if test "$GCC" = yes; then
 
16675
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16676
 
 
16677
 
 
16678
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16679
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16680
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16682
else
 
16683
  lt_cv_prog_compiler_rtti_exceptions=no
 
16684
  ac_outfile=conftest.$ac_objext
 
16685
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16686
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16687
   # Insert the option either (1) after the last *FLAGS variable, or
 
16688
   # (2) before a word containing "conftest.", or (3) at the end.
 
16689
   # Note that $ac_compile itself does not contain backslashes and begins
 
16690
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16691
   # The option is referenced via a variable to avoid confusing sed.
 
16692
   lt_compile=`echo "$ac_compile" | $SED \
 
16693
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16694
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16695
   -e 's:$: $lt_compiler_flag:'`
 
16696
   (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
 
16697
   (eval "$lt_compile" 2>conftest.err)
 
16698
   ac_status=$?
 
16699
   cat conftest.err >&5
 
16700
   echo "$as_me:16700: \$? = $ac_status" >&5
 
16701
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16702
     # The compiler can only warn and ignore the option if not recognized
 
16703
     # So say no if there are warnings other than the usual output.
 
16704
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16705
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16706
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16707
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16708
     fi
 
16709
   fi
 
16710
   $rm conftest*
 
16711
 
 
16712
fi
 
16713
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16714
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16715
 
 
16716
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16717
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16718
else
 
16719
    :
 
16720
fi
 
16721
 
 
16722
fi
 
16723
 
 
16724
lt_prog_compiler_wl_GCJ=
 
16725
lt_prog_compiler_pic_GCJ=
 
16726
lt_prog_compiler_static_GCJ=
 
16727
 
 
16728
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16729
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16730
 
 
16731
  if test "$GCC" = yes; then
 
16732
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16733
    lt_prog_compiler_static_GCJ='-static'
 
16734
 
 
16735
    case $host_os in
 
16736
      aix*)
 
16737
      # All AIX code is PIC.
 
16738
      if test "$host_cpu" = ia64; then
 
16739
        # AIX 5 now supports IA64 processor
 
16740
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16741
      fi
 
16742
      ;;
 
16743
 
 
16744
    amigaos*)
 
16745
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16746
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16747
      # like `-m68040'.
 
16748
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16749
      ;;
 
16750
 
 
16751
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16752
      # PIC is the default for these OSes.
 
16753
      ;;
 
16754
 
 
16755
    mingw* | pw32* | os2*)
 
16756
      # This hack is so that the source file can tell whether it is being
 
16757
      # built for inclusion in a dll (and should export symbols for example).
 
16758
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16759
      ;;
 
16760
 
 
16761
    darwin* | rhapsody*)
 
16762
      # PIC is the default on this platform
 
16763
      # Common symbols not allowed in MH_DYLIB files
 
16764
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16765
      ;;
 
16766
 
 
16767
    interix3*)
 
16768
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16769
      # Instead, we relocate shared libraries at runtime.
 
16770
      ;;
 
16771
 
 
16772
    msdosdjgpp*)
 
16773
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16774
      # on systems that don't support them.
 
16775
      lt_prog_compiler_can_build_shared_GCJ=no
 
16776
      enable_shared=no
 
16777
      ;;
 
16778
 
 
16779
    sysv4*MP*)
 
16780
      if test -d /usr/nec; then
 
16781
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16782
      fi
 
16783
      ;;
 
16784
 
 
16785
    hpux*)
 
16786
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16787
      # not for PA HP-UX.
 
16788
      case $host_cpu in
 
16789
      hppa*64*|ia64*)
 
16790
        # +Z the default
 
16791
        ;;
 
16792
      *)
 
16793
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16794
        ;;
 
16795
      esac
 
16796
      ;;
 
16797
 
 
16798
    *)
 
16799
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16800
      ;;
 
16801
    esac
 
16802
  else
 
16803
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16804
    case $host_os in
 
16805
    aix*)
 
16806
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16807
      if test "$host_cpu" = ia64; then
 
16808
        # AIX 5 now supports IA64 processor
 
16809
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16810
      else
 
16811
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16812
      fi
 
16813
      ;;
 
16814
      darwin*)
 
16815
        # PIC is the default on this platform
 
16816
        # Common symbols not allowed in MH_DYLIB files
 
16817
       case $cc_basename in
 
16818
         xlc*)
 
16819
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16820
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16821
         ;;
 
16822
       esac
 
16823
       ;;
 
16824
 
 
16825
    mingw* | pw32* | os2*)
 
16826
      # This hack is so that the source file can tell whether it is being
 
16827
      # built for inclusion in a dll (and should export symbols for example).
 
16828
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16829
      ;;
 
16830
 
 
16831
    hpux9* | hpux10* | hpux11*)
 
16832
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16833
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16834
      # not for PA HP-UX.
 
16835
      case $host_cpu in
 
16836
      hppa*64*|ia64*)
 
16837
        # +Z the default
 
16838
        ;;
 
16839
      *)
 
16840
        lt_prog_compiler_pic_GCJ='+Z'
 
16841
        ;;
 
16842
      esac
 
16843
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16844
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16845
      ;;
 
16846
 
 
16847
    irix5* | irix6* | nonstopux*)
 
16848
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16849
      # PIC (with -KPIC) is the default.
 
16850
      lt_prog_compiler_static_GCJ='-non_shared'
 
16851
      ;;
 
16852
 
 
16853
    newsos6)
 
16854
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16855
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16856
      ;;
 
16857
 
 
16858
    linux*)
 
16859
      case $cc_basename in
 
16860
      icc* | ecc*)
 
16861
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16862
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16863
        lt_prog_compiler_static_GCJ='-static'
 
16864
        ;;
 
16865
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16866
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16867
        # which looks to be a dead project)
 
16868
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16869
        lt_prog_compiler_pic_GCJ='-fpic'
 
16870
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16871
        ;;
 
16872
      ccc*)
 
16873
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16874
        # All Alpha code is PIC.
 
16875
        lt_prog_compiler_static_GCJ='-non_shared'
 
16876
        ;;
 
16877
      esac
 
16878
      ;;
 
16879
 
 
16880
    osf3* | osf4* | osf5*)
 
16881
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16882
      # All OSF/1 code is PIC.
 
16883
      lt_prog_compiler_static_GCJ='-non_shared'
 
16884
      ;;
 
16885
 
 
16886
    solaris*)
 
16887
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16888
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16889
      case $cc_basename in
 
16890
      f77* | f90* | f95*)
 
16891
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16892
      *)
 
16893
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16894
      esac
 
16895
      ;;
 
16896
 
 
16897
    sunos4*)
 
16898
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16899
      lt_prog_compiler_pic_GCJ='-PIC'
 
16900
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16901
      ;;
 
16902
 
 
16903
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16904
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16905
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16906
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16907
      ;;
 
16908
 
 
16909
    sysv4*MP*)
 
16910
      if test -d /usr/nec ;then
 
16911
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16912
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16913
      fi
 
16914
      ;;
 
16915
 
 
16916
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16917
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16918
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16919
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16920
      ;;
 
16921
 
 
16922
    unicos*)
 
16923
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16924
      lt_prog_compiler_can_build_shared_GCJ=no
 
16925
      ;;
 
16926
 
 
16927
    uts4*)
 
16928
      lt_prog_compiler_pic_GCJ='-pic'
 
16929
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16930
      ;;
 
16931
 
 
16932
    *)
 
16933
      lt_prog_compiler_can_build_shared_GCJ=no
 
16934
      ;;
 
16935
    esac
 
16936
  fi
 
16937
 
 
16938
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16939
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16940
 
 
16941
#
 
16942
# Check to make sure the PIC flag actually works.
 
16943
#
 
16944
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16945
 
 
16946
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16947
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16948
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16950
else
 
16951
  lt_prog_compiler_pic_works_GCJ=no
 
16952
  ac_outfile=conftest.$ac_objext
 
16953
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16954
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16955
   # Insert the option either (1) after the last *FLAGS variable, or
 
16956
   # (2) before a word containing "conftest.", or (3) at the end.
 
16957
   # Note that $ac_compile itself does not contain backslashes and begins
 
16958
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16959
   # The option is referenced via a variable to avoid confusing sed.
 
16960
   lt_compile=`echo "$ac_compile" | $SED \
 
16961
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16962
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16963
   -e 's:$: $lt_compiler_flag:'`
 
16964
   (eval echo "\"\$as_me:16964: $lt_compile\"" >&5)
 
16965
   (eval "$lt_compile" 2>conftest.err)
 
16966
   ac_status=$?
 
16967
   cat conftest.err >&5
 
16968
   echo "$as_me:16968: \$? = $ac_status" >&5
 
16969
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16970
     # The compiler can only warn and ignore the option if not recognized
 
16971
     # So say no if there are warnings other than the usual output.
 
16972
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16973
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16974
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16975
       lt_prog_compiler_pic_works_GCJ=yes
 
16976
     fi
 
16977
   fi
 
16978
   $rm conftest*
 
16979
 
 
16980
fi
 
16981
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16982
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16983
 
 
16984
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16985
    case $lt_prog_compiler_pic_GCJ in
 
16986
     "" | " "*) ;;
 
16987
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16988
     esac
 
16989
else
 
16990
    lt_prog_compiler_pic_GCJ=
 
16991
     lt_prog_compiler_can_build_shared_GCJ=no
 
16992
fi
 
16993
 
 
16994
fi
 
16995
case $host_os in
 
16996
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16997
  *djgpp*)
 
16998
    lt_prog_compiler_pic_GCJ=
 
16999
    ;;
 
17000
  *)
 
17001
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17002
    ;;
 
17003
esac
 
17004
 
 
17005
#
 
17006
# Check to make sure the static flag actually works.
 
17007
#
 
17008
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17009
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17010
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17011
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17013
else
 
17014
  lt_prog_compiler_static_works_GCJ=no
 
17015
   save_LDFLAGS="$LDFLAGS"
 
17016
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17017
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17018
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17019
     # The linker can only warn and ignore the option if not recognized
 
17020
     # So say no if there are warnings
 
17021
     if test -s conftest.err; then
 
17022
       # Append any errors to the config.log.
 
17023
       cat conftest.err 1>&5
 
17024
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17025
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17026
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17027
         lt_prog_compiler_static_works_GCJ=yes
 
17028
       fi
 
17029
     else
 
17030
       lt_prog_compiler_static_works_GCJ=yes
 
17031
     fi
 
17032
   fi
 
17033
   $rm conftest*
 
17034
   LDFLAGS="$save_LDFLAGS"
 
17035
 
 
17036
fi
 
17037
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
17038
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
17039
 
 
17040
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17041
    :
 
17042
else
 
17043
    lt_prog_compiler_static_GCJ=
 
17044
fi
 
17045
 
 
17046
 
 
17047
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17048
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
17049
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17051
else
 
17052
  lt_cv_prog_compiler_c_o_GCJ=no
 
17053
   $rm -r conftest 2>/dev/null
 
17054
   mkdir conftest
 
17055
   cd conftest
 
17056
   mkdir out
 
17057
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17058
 
 
17059
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17060
   # Insert the option either (1) after the last *FLAGS variable, or
 
17061
   # (2) before a word containing "conftest.", or (3) at the end.
 
17062
   # Note that $ac_compile itself does not contain backslashes and begins
 
17063
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17064
   lt_compile=`echo "$ac_compile" | $SED \
 
17065
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17066
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17067
   -e 's:$: $lt_compiler_flag:'`
 
17068
   (eval echo "\"\$as_me:17068: $lt_compile\"" >&5)
 
17069
   (eval "$lt_compile" 2>out/conftest.err)
 
17070
   ac_status=$?
 
17071
   cat out/conftest.err >&5
 
17072
   echo "$as_me:17072: \$? = $ac_status" >&5
 
17073
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17074
   then
 
17075
     # The compiler can only warn and ignore the option if not recognized
 
17076
     # So say no if there are warnings
 
17077
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17078
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17079
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17080
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17081
     fi
 
17082
   fi
 
17083
   chmod u+w . 2>&5
 
17084
   $rm conftest*
 
17085
   # SGI C++ compiler will create directory out/ii_files/ for
 
17086
   # template instantiation
 
17087
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17088
   $rm out/* && rmdir out
 
17089
   cd ..
 
17090
   rmdir conftest
 
17091
   $rm conftest*
 
17092
 
 
17093
fi
 
17094
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17095
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17096
 
 
17097
 
 
17098
hard_links="nottested"
 
17099
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17100
  # do not overwrite the value of need_locks provided by the user
 
17101
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17102
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17103
  hard_links=yes
 
17104
  $rm conftest*
 
17105
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17106
  touch conftest.a
 
17107
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17108
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17109
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17110
echo "${ECHO_T}$hard_links" >&6; }
 
17111
  if test "$hard_links" = no; then
 
17112
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17113
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17114
    need_locks=warn
 
17115
  fi
 
17116
else
 
17117
  need_locks=no
 
17118
fi
 
17119
 
 
17120
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17121
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17122
 
 
17123
  runpath_var=
 
17124
  allow_undefined_flag_GCJ=
 
17125
  enable_shared_with_static_runtimes_GCJ=no
 
17126
  archive_cmds_GCJ=
 
17127
  archive_expsym_cmds_GCJ=
 
17128
  old_archive_From_new_cmds_GCJ=
 
17129
  old_archive_from_expsyms_cmds_GCJ=
 
17130
  export_dynamic_flag_spec_GCJ=
 
17131
  whole_archive_flag_spec_GCJ=
 
17132
  thread_safe_flag_spec_GCJ=
 
17133
  hardcode_libdir_flag_spec_GCJ=
 
17134
  hardcode_libdir_flag_spec_ld_GCJ=
 
17135
  hardcode_libdir_separator_GCJ=
 
17136
  hardcode_direct_GCJ=no
 
17137
  hardcode_minus_L_GCJ=no
 
17138
  hardcode_shlibpath_var_GCJ=unsupported
 
17139
  link_all_deplibs_GCJ=unknown
 
17140
  hardcode_automatic_GCJ=no
 
17141
  module_cmds_GCJ=
 
17142
  module_expsym_cmds_GCJ=
 
17143
  always_export_symbols_GCJ=no
 
17144
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17145
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17146
  # included in the symbol list
 
17147
  include_expsyms_GCJ=
 
17148
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17149
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17150
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17151
  # as well as any symbol that contains `d'.
 
17152
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17153
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17154
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17155
  # the symbol is explicitly referenced.  Since portable code cannot
 
17156
  # rely on this symbol name, it's probably fine to never include it in
 
17157
  # preloaded symbol tables.
 
17158
  extract_expsyms_cmds=
 
17159
  # Just being paranoid about ensuring that cc_basename is set.
 
17160
  for cc_temp in $compiler""; do
 
17161
  case $cc_temp in
 
17162
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17163
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17164
    \-*) ;;
 
17165
    *) break;;
 
17166
  esac
 
17167
done
 
17168
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17169
 
 
17170
  case $host_os in
 
17171
  cygwin* | mingw* | pw32*)
 
17172
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17173
    # When not using gcc, we currently assume that we are using
 
17174
    # Microsoft Visual C++.
 
17175
    if test "$GCC" != yes; then
 
17176
      with_gnu_ld=no
 
17177
    fi
 
17178
    ;;
 
17179
  interix*)
 
17180
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17181
    with_gnu_ld=yes
 
17182
    ;;
 
17183
  openbsd*)
 
17184
    with_gnu_ld=no
 
17185
    ;;
 
17186
  esac
 
17187
 
 
17188
  ld_shlibs_GCJ=yes
 
17189
  if test "$with_gnu_ld" = yes; then
 
17190
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17191
    wlarc='${wl}'
 
17192
 
 
17193
    # Set some defaults for GNU ld with shared library support. These
 
17194
    # are reset later if shared libraries are not supported. Putting them
 
17195
    # here allows them to be overridden if necessary.
 
17196
    runpath_var=LD_RUN_PATH
 
17197
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17198
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17199
    # ancient GNU ld didn't support --whole-archive et. al.
 
17200
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17201
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17202
      else
 
17203
        whole_archive_flag_spec_GCJ=
 
17204
    fi
 
17205
    supports_anon_versioning=no
 
17206
    case `$LD -v 2>/dev/null` in
 
17207
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17208
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17209
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17210
      *\ 2.11.*) ;; # other 2.11 versions
 
17211
      *) supports_anon_versioning=yes ;;
 
17212
    esac
 
17213
 
 
17214
    # See if GNU ld supports shared libraries.
 
17215
    case $host_os in
 
17216
    aix3* | aix4* | aix5*)
 
17217
      # On AIX/PPC, the GNU linker is very broken
 
17218
      if test "$host_cpu" != ia64; then
 
17219
        ld_shlibs_GCJ=no
 
17220
        cat <<EOF 1>&2
 
17221
 
 
17222
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17223
*** to be unable to reliably create shared libraries on AIX.
 
17224
*** Therefore, libtool is disabling shared libraries support.  If you
 
17225
*** really care for shared libraries, you may want to modify your PATH
 
17226
*** so that a non-GNU linker is found, and then restart.
 
17227
 
 
17228
EOF
 
17229
      fi
 
17230
      ;;
 
17231
 
 
17232
    amigaos*)
 
17233
      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)'
 
17234
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17235
      hardcode_minus_L_GCJ=yes
 
17236
 
 
17237
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17238
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17239
      # to version 4, is to share data among multiple programs linked
 
17240
      # with the same dynamic library.  Since this doesn't match the
 
17241
      # behavior of shared libraries on other platforms, we can't use
 
17242
      # them.
 
17243
      ld_shlibs_GCJ=no
 
17244
      ;;
 
17245
 
 
17246
    beos*)
 
17247
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17248
        allow_undefined_flag_GCJ=unsupported
 
17249
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17250
        # support --undefined.  This deserves some investigation.  FIXME
 
17251
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17252
      else
 
17253
        ld_shlibs_GCJ=no
 
17254
      fi
 
17255
      ;;
 
17256
 
 
17257
    cygwin* | mingw* | pw32*)
 
17258
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17259
      # as there is no search path for DLLs.
 
17260
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17261
      allow_undefined_flag_GCJ=unsupported
 
17262
      always_export_symbols_GCJ=no
 
17263
      enable_shared_with_static_runtimes_GCJ=yes
 
17264
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17265
 
 
17266
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17267
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17268
        # If the export-symbols file already is a .def file (1st line
 
17269
        # is EXPORTS), use it as is; otherwise, prepend...
 
17270
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17271
          cp $export_symbols $output_objdir/$soname.def;
 
17272
        else
 
17273
          echo EXPORTS > $output_objdir/$soname.def;
 
17274
          cat $export_symbols >> $output_objdir/$soname.def;
 
17275
        fi~
 
17276
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17277
      else
 
17278
        ld_shlibs_GCJ=no
 
17279
      fi
 
17280
      ;;
 
17281
 
 
17282
    interix3*)
 
17283
      hardcode_direct_GCJ=no
 
17284
      hardcode_shlibpath_var_GCJ=no
 
17285
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17286
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17287
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17288
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17289
      # default) and relocated if they conflict, which is a slow very memory
 
17290
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17291
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17292
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17293
      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'
 
17294
      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'
 
17295
      ;;
 
17296
 
 
17297
    linux*)
 
17298
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17299
        tmp_addflag=
 
17300
        case $cc_basename,$host_cpu in
 
17301
        pgcc*)                          # Portland Group C compiler
 
17302
          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'
 
17303
          tmp_addflag=' $pic_flag'
 
17304
          ;;
 
17305
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17306
          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'
 
17307
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17308
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17309
          tmp_addflag=' -i_dynamic' ;;
 
17310
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17311
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17312
        ifc* | ifort*)                  # Intel Fortran compiler
 
17313
          tmp_addflag=' -nofor_main' ;;
 
17314
        esac
 
17315
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17316
 
 
17317
        if test $supports_anon_versioning = yes; then
 
17318
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17319
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17320
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17321
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17322
        fi
 
17323
      else
 
17324
        ld_shlibs_GCJ=no
 
17325
      fi
 
17326
      ;;
 
17327
 
 
17328
    netbsd*)
 
17329
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17330
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17331
        wlarc=
 
17332
      else
 
17333
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17334
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17335
      fi
 
17336
      ;;
 
17337
 
 
17338
    solaris*)
 
17339
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17340
        ld_shlibs_GCJ=no
 
17341
        cat <<EOF 1>&2
 
17342
 
 
17343
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17344
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17345
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17346
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17347
*** your PATH or compiler configuration so that the native linker is
 
17348
*** used, and then restart.
 
17349
 
 
17350
EOF
 
17351
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17352
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17353
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17354
      else
 
17355
        ld_shlibs_GCJ=no
 
17356
      fi
 
17357
      ;;
 
17358
 
 
17359
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17360
      case `$LD -v 2>&1` in
 
17361
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17362
        ld_shlibs_GCJ=no
 
17363
        cat <<_LT_EOF 1>&2
 
17364
 
 
17365
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17366
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17367
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17368
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17369
*** your PATH or compiler configuration so that the native linker is
 
17370
*** used, and then restart.
 
17371
 
 
17372
_LT_EOF
 
17373
        ;;
 
17374
        *)
 
17375
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17376
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17377
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17378
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17379
          else
 
17380
            ld_shlibs_GCJ=no
 
17381
          fi
 
17382
        ;;
 
17383
      esac
 
17384
      ;;
 
17385
 
 
17386
    sunos4*)
 
17387
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17388
      wlarc=
 
17389
      hardcode_direct_GCJ=yes
 
17390
      hardcode_shlibpath_var_GCJ=no
 
17391
      ;;
 
17392
 
 
17393
    *)
 
17394
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17395
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17396
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17397
      else
 
17398
        ld_shlibs_GCJ=no
 
17399
      fi
 
17400
      ;;
 
17401
    esac
 
17402
 
 
17403
    if test "$ld_shlibs_GCJ" = no; then
 
17404
      runpath_var=
 
17405
      hardcode_libdir_flag_spec_GCJ=
 
17406
      export_dynamic_flag_spec_GCJ=
 
17407
      whole_archive_flag_spec_GCJ=
 
17408
    fi
 
17409
  else
 
17410
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17411
    case $host_os in
 
17412
    aix3*)
 
17413
      allow_undefined_flag_GCJ=unsupported
 
17414
      always_export_symbols_GCJ=yes
 
17415
      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'
 
17416
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17417
      # are no directories specified by -L.
 
17418
      hardcode_minus_L_GCJ=yes
 
17419
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17420
        # Neither direct hardcoding nor static linking is supported with a
 
17421
        # broken collect2.
 
17422
        hardcode_direct_GCJ=unsupported
 
17423
      fi
 
17424
      ;;
 
17425
 
 
17426
    aix4* | aix5*)
 
17427
      if test "$host_cpu" = ia64; then
 
17428
        # On IA64, the linker does run time linking by default, so we don't
 
17429
        # have to do anything special.
 
17430
        aix_use_runtimelinking=no
 
17431
        exp_sym_flag='-Bexport'
 
17432
        no_entry_flag=""
 
17433
      else
 
17434
        # If we're using GNU nm, then we don't want the "-C" option.
 
17435
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17436
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17437
          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'
 
17438
        else
 
17439
          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'
 
17440
        fi
 
17441
        aix_use_runtimelinking=no
 
17442
 
 
17443
        # Test if we are trying to use run time linking or normal
 
17444
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17445
        # need to do runtime linking.
 
17446
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17447
          for ld_flag in $LDFLAGS; do
 
17448
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17449
            aix_use_runtimelinking=yes
 
17450
            break
 
17451
          fi
 
17452
          done
 
17453
          ;;
 
17454
        esac
 
17455
 
 
17456
        exp_sym_flag='-bexport'
 
17457
        no_entry_flag='-bnoentry'
 
17458
      fi
 
17459
 
 
17460
      # When large executables or shared objects are built, AIX ld can
 
17461
      # have problems creating the table of contents.  If linking a library
 
17462
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17463
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17464
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17465
 
 
17466
      archive_cmds_GCJ=''
 
17467
      hardcode_direct_GCJ=yes
 
17468
      hardcode_libdir_separator_GCJ=':'
 
17469
      link_all_deplibs_GCJ=yes
 
17470
 
 
17471
      if test "$GCC" = yes; then
 
17472
        case $host_os in aix4.[012]|aix4.[012].*)
 
17473
        # We only want to do this on AIX 4.2 and lower, the check
 
17474
        # below for broken collect2 doesn't work under 4.3+
 
17475
          collect2name=`${CC} -print-prog-name=collect2`
 
17476
          if test -f "$collect2name" && \
 
17477
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17478
          then
 
17479
          # We have reworked collect2
 
17480
          hardcode_direct_GCJ=yes
 
17481
          else
 
17482
          # We have old collect2
 
17483
          hardcode_direct_GCJ=unsupported
 
17484
          # It fails to find uninstalled libraries when the uninstalled
 
17485
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17486
          # to unsupported forces relinking
 
17487
          hardcode_minus_L_GCJ=yes
 
17488
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17489
          hardcode_libdir_separator_GCJ=
 
17490
          fi
 
17491
          ;;
 
17492
        esac
 
17493
        shared_flag='-shared'
 
17494
        if test "$aix_use_runtimelinking" = yes; then
 
17495
          shared_flag="$shared_flag "'${wl}-G'
 
17496
        fi
 
17497
      else
 
17498
        # not using gcc
 
17499
        if test "$host_cpu" = ia64; then
 
17500
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17501
        # chokes on -Wl,-G. The following line is correct:
 
17502
          shared_flag='-G'
 
17503
        else
 
17504
          if test "$aix_use_runtimelinking" = yes; then
 
17505
            shared_flag='${wl}-G'
 
17506
          else
 
17507
            shared_flag='${wl}-bM:SRE'
 
17508
          fi
 
17509
        fi
 
17510
      fi
 
17511
 
 
17512
      # It seems that -bexpall does not export symbols beginning with
 
17513
      # underscore (_), so it is better to generate a list of symbols to export.
 
17514
      always_export_symbols_GCJ=yes
 
17515
      if test "$aix_use_runtimelinking" = yes; then
 
17516
        # Warning - without using the other runtime loading flags (-brtl),
 
17517
        # -berok will link without error, but may produce a broken library.
 
17518
        allow_undefined_flag_GCJ='-berok'
 
17519
       # Determine the default libpath from the value encoded in an empty executable.
 
17520
       cat >conftest.$ac_ext <<_ACEOF
 
17521
/* confdefs.h.  */
 
17522
_ACEOF
 
17523
cat confdefs.h >>conftest.$ac_ext
 
17524
cat >>conftest.$ac_ext <<_ACEOF
 
17525
/* end confdefs.h.  */
 
17526
 
 
17527
int
 
17528
main ()
 
17529
{
 
17530
 
 
17531
  ;
 
17532
  return 0;
 
17533
}
 
17534
_ACEOF
 
17535
rm -f conftest.$ac_objext conftest$ac_exeext
 
17536
if { (ac_try="$ac_link"
 
17537
case "(($ac_try" in
 
17538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17539
  *) ac_try_echo=$ac_try;;
 
17540
esac
 
17541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17542
  (eval "$ac_link") 2>conftest.er1
 
17543
  ac_status=$?
 
17544
  grep -v '^ *+' conftest.er1 >conftest.err
 
17545
  rm -f conftest.er1
 
17546
  cat conftest.err >&5
 
17547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17548
  (exit $ac_status); } &&
 
17549
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
17550
  { (case "(($ac_try" in
 
17551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17552
  *) ac_try_echo=$ac_try;;
 
17553
esac
 
17554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17555
  (eval "$ac_try") 2>&5
 
17556
  ac_status=$?
 
17557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17558
  (exit $ac_status); }; } &&
 
17559
         { ac_try='test -s conftest$ac_exeext'
 
17560
  { (case "(($ac_try" in
 
17561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17562
  *) ac_try_echo=$ac_try;;
 
17563
esac
 
17564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17565
  (eval "$ac_try") 2>&5
 
17566
  ac_status=$?
 
17567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17568
  (exit $ac_status); }; }; then
 
17569
 
 
17570
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17571
}'`
 
17572
# Check for a 64-bit object if we didn't find anything.
 
17573
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17574
}'`; fi
 
17575
else
 
17576
  echo "$as_me: failed program was:" >&5
 
17577
sed 's/^/| /' conftest.$ac_ext >&5
 
17578
 
 
17579
 
 
17580
fi
 
17581
 
 
17582
rm -f core conftest.err conftest.$ac_objext \
 
17583
      conftest$ac_exeext conftest.$ac_ext
 
17584
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17585
 
 
17586
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17587
        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"
 
17588
       else
 
17589
        if test "$host_cpu" = ia64; then
 
17590
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17591
          allow_undefined_flag_GCJ="-z nodefs"
 
17592
          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"
 
17593
        else
 
17594
         # Determine the default libpath from the value encoded in an empty executable.
 
17595
         cat >conftest.$ac_ext <<_ACEOF
 
17596
/* confdefs.h.  */
 
17597
_ACEOF
 
17598
cat confdefs.h >>conftest.$ac_ext
 
17599
cat >>conftest.$ac_ext <<_ACEOF
 
17600
/* end confdefs.h.  */
 
17601
 
 
17602
int
 
17603
main ()
 
17604
{
 
17605
 
 
17606
  ;
 
17607
  return 0;
 
17608
}
 
17609
_ACEOF
 
17610
rm -f conftest.$ac_objext conftest$ac_exeext
 
17611
if { (ac_try="$ac_link"
 
17612
case "(($ac_try" in
 
17613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17614
  *) ac_try_echo=$ac_try;;
 
17615
esac
 
17616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17617
  (eval "$ac_link") 2>conftest.er1
 
17618
  ac_status=$?
 
17619
  grep -v '^ *+' conftest.er1 >conftest.err
 
17620
  rm -f conftest.er1
 
17621
  cat conftest.err >&5
 
17622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17623
  (exit $ac_status); } &&
 
17624
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
17625
  { (case "(($ac_try" in
 
17626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17627
  *) ac_try_echo=$ac_try;;
 
17628
esac
 
17629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17630
  (eval "$ac_try") 2>&5
 
17631
  ac_status=$?
 
17632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17633
  (exit $ac_status); }; } &&
 
17634
         { ac_try='test -s conftest$ac_exeext'
 
17635
  { (case "(($ac_try" in
 
17636
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17637
  *) ac_try_echo=$ac_try;;
 
17638
esac
 
17639
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17640
  (eval "$ac_try") 2>&5
 
17641
  ac_status=$?
 
17642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17643
  (exit $ac_status); }; }; then
 
17644
 
 
17645
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17646
}'`
 
17647
# Check for a 64-bit object if we didn't find anything.
 
17648
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17649
}'`; fi
 
17650
else
 
17651
  echo "$as_me: failed program was:" >&5
 
17652
sed 's/^/| /' conftest.$ac_ext >&5
 
17653
 
 
17654
 
 
17655
fi
 
17656
 
 
17657
rm -f core conftest.err conftest.$ac_objext \
 
17658
      conftest$ac_exeext conftest.$ac_ext
 
17659
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17660
 
 
17661
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17662
          # Warning - without using the other run time loading flags,
 
17663
          # -berok will link without error, but may produce a broken library.
 
17664
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17665
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17666
          # Exported symbols can be pulled into shared objects from archives
 
17667
          whole_archive_flag_spec_GCJ='$convenience'
 
17668
          archive_cmds_need_lc_GCJ=yes
 
17669
          # This is similar to how AIX traditionally builds its shared libraries.
 
17670
          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'
 
17671
        fi
 
17672
      fi
 
17673
      ;;
 
17674
 
 
17675
    amigaos*)
 
17676
      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)'
 
17677
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17678
      hardcode_minus_L_GCJ=yes
 
17679
      # see comment about different semantics on the GNU ld section
 
17680
      ld_shlibs_GCJ=no
 
17681
      ;;
 
17682
 
 
17683
    bsdi[45]*)
 
17684
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17685
      ;;
 
17686
 
 
17687
    cygwin* | mingw* | pw32*)
 
17688
      # When not using gcc, we currently assume that we are using
 
17689
      # Microsoft Visual C++.
 
17690
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17691
      # no search path for DLLs.
 
17692
      hardcode_libdir_flag_spec_GCJ=' '
 
17693
      allow_undefined_flag_GCJ=unsupported
 
17694
      # Tell ltmain to make .lib files, not .a files.
 
17695
      libext=lib
 
17696
      # Tell ltmain to make .dll files, not .so files.
 
17697
      shrext_cmds=".dll"
 
17698
      # FIXME: Setting linknames here is a bad hack.
 
17699
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17700
      # The linker will automatically build a .lib file if we build a DLL.
 
17701
      old_archive_From_new_cmds_GCJ='true'
 
17702
      # FIXME: Should let the user specify the lib program.
 
17703
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17704
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17705
      enable_shared_with_static_runtimes_GCJ=yes
 
17706
      ;;
 
17707
 
 
17708
    darwin* | rhapsody*)
 
17709
      case $host_os in
 
17710
        rhapsody* | darwin1.[012])
 
17711
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17712
         ;;
 
17713
       *) # Darwin 1.3 on
 
17714
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17715
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17716
         else
 
17717
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17718
             10.[012])
 
17719
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17720
               ;;
 
17721
             10.*)
 
17722
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17723
               ;;
 
17724
           esac
 
17725
         fi
 
17726
         ;;
 
17727
      esac
 
17728
      archive_cmds_need_lc_GCJ=no
 
17729
      hardcode_direct_GCJ=no
 
17730
      hardcode_automatic_GCJ=yes
 
17731
      hardcode_shlibpath_var_GCJ=unsupported
 
17732
      whole_archive_flag_spec_GCJ=''
 
17733
      link_all_deplibs_GCJ=yes
 
17734
    if test "$GCC" = yes ; then
 
17735
        output_verbose_link_cmd='echo'
 
17736
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17737
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17738
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17739
      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}'
 
17740
      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}'
 
17741
    else
 
17742
      case $cc_basename in
 
17743
        xlc*)
 
17744
         output_verbose_link_cmd='echo'
 
17745
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17746
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17747
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17748
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17749
          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}'
 
17750
          ;;
 
17751
       *)
 
17752
         ld_shlibs_GCJ=no
 
17753
          ;;
 
17754
      esac
 
17755
    fi
 
17756
      ;;
 
17757
 
 
17758
    dgux*)
 
17759
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17760
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17761
      hardcode_shlibpath_var_GCJ=no
 
17762
      ;;
 
17763
 
 
17764
    freebsd1*)
 
17765
      ld_shlibs_GCJ=no
 
17766
      ;;
 
17767
 
 
17768
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17769
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17770
    # does not break anything, and helps significantly (at the cost of a little
 
17771
    # extra space).
 
17772
    freebsd2.2*)
 
17773
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17774
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17775
      hardcode_direct_GCJ=yes
 
17776
      hardcode_shlibpath_var_GCJ=no
 
17777
      ;;
 
17778
 
 
17779
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17780
    freebsd2*)
 
17781
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17782
      hardcode_direct_GCJ=yes
 
17783
      hardcode_minus_L_GCJ=yes
 
17784
      hardcode_shlibpath_var_GCJ=no
 
17785
      ;;
 
17786
 
 
17787
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17788
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
17789
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17790
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17791
      hardcode_direct_GCJ=yes
 
17792
      hardcode_shlibpath_var_GCJ=no
 
17793
      ;;
 
17794
 
 
17795
    hpux9*)
 
17796
      if test "$GCC" = yes; then
 
17797
        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'
 
17798
      else
 
17799
        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'
 
17800
      fi
 
17801
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17802
      hardcode_libdir_separator_GCJ=:
 
17803
      hardcode_direct_GCJ=yes
 
17804
 
 
17805
      # hardcode_minus_L: Not really in the search PATH,
 
17806
      # but as the default location of the library.
 
17807
      hardcode_minus_L_GCJ=yes
 
17808
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17809
      ;;
 
17810
 
 
17811
    hpux10*)
 
17812
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17813
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17814
      else
 
17815
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17816
      fi
 
17817
      if test "$with_gnu_ld" = no; then
 
17818
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17819
        hardcode_libdir_separator_GCJ=:
 
17820
 
 
17821
        hardcode_direct_GCJ=yes
 
17822
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17823
 
 
17824
        # hardcode_minus_L: Not really in the search PATH,
 
17825
        # but as the default location of the library.
 
17826
        hardcode_minus_L_GCJ=yes
 
17827
      fi
 
17828
      ;;
 
17829
 
 
17830
    hpux11*)
 
17831
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17832
        case $host_cpu in
 
17833
        hppa*64*)
 
17834
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17835
          ;;
 
17836
        ia64*)
 
17837
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17838
          ;;
 
17839
        *)
 
17840
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17841
          ;;
 
17842
        esac
 
17843
      else
 
17844
        case $host_cpu in
 
17845
        hppa*64*)
 
17846
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17847
          ;;
 
17848
        ia64*)
 
17849
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17850
          ;;
 
17851
        *)
 
17852
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17853
          ;;
 
17854
        esac
 
17855
      fi
 
17856
      if test "$with_gnu_ld" = no; then
 
17857
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17858
        hardcode_libdir_separator_GCJ=:
 
17859
 
 
17860
        case $host_cpu in
 
17861
        hppa*64*|ia64*)
 
17862
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17863
          hardcode_direct_GCJ=no
 
17864
          hardcode_shlibpath_var_GCJ=no
 
17865
          ;;
 
17866
        *)
 
17867
          hardcode_direct_GCJ=yes
 
17868
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17869
 
 
17870
          # hardcode_minus_L: Not really in the search PATH,
 
17871
          # but as the default location of the library.
 
17872
          hardcode_minus_L_GCJ=yes
 
17873
          ;;
 
17874
        esac
 
17875
      fi
 
17876
      ;;
 
17877
 
 
17878
    irix5* | irix6* | nonstopux*)
 
17879
      if test "$GCC" = yes; then
 
17880
        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'
 
17881
      else
 
17882
        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'
 
17883
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17884
      fi
 
17885
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17886
      hardcode_libdir_separator_GCJ=:
 
17887
      link_all_deplibs_GCJ=yes
 
17888
      ;;
 
17889
 
 
17890
    netbsd*)
 
17891
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17892
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17893
      else
 
17894
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17895
      fi
 
17896
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17897
      hardcode_direct_GCJ=yes
 
17898
      hardcode_shlibpath_var_GCJ=no
 
17899
      ;;
 
17900
 
 
17901
    newsos6)
 
17902
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17903
      hardcode_direct_GCJ=yes
 
17904
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17905
      hardcode_libdir_separator_GCJ=:
 
17906
      hardcode_shlibpath_var_GCJ=no
 
17907
      ;;
 
17908
 
 
17909
    openbsd*)
 
17910
      hardcode_direct_GCJ=yes
 
17911
      hardcode_shlibpath_var_GCJ=no
 
17912
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17913
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17914
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17915
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17916
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17917
      else
 
17918
       case $host_os in
 
17919
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17920
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17921
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17922
           ;;
 
17923
         *)
 
17924
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17925
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17926
           ;;
 
17927
       esac
 
17928
      fi
 
17929
      ;;
 
17930
 
 
17931
    os2*)
 
17932
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17933
      hardcode_minus_L_GCJ=yes
 
17934
      allow_undefined_flag_GCJ=unsupported
 
17935
      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'
 
17936
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17937
      ;;
 
17938
 
 
17939
    osf3*)
 
17940
      if test "$GCC" = yes; then
 
17941
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17942
        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'
 
17943
      else
 
17944
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17945
        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'
 
17946
      fi
 
17947
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17948
      hardcode_libdir_separator_GCJ=:
 
17949
      ;;
 
17950
 
 
17951
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17952
      if test "$GCC" = yes; then
 
17953
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17954
        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'
 
17955
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17956
      else
 
17957
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17958
        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'
 
17959
        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~
 
17960
        $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'
 
17961
 
 
17962
        # Both c and cxx compiler support -rpath directly
 
17963
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17964
      fi
 
17965
      hardcode_libdir_separator_GCJ=:
 
17966
      ;;
 
17967
 
 
17968
    solaris*)
 
17969
      no_undefined_flag_GCJ=' -z text'
 
17970
      if test "$GCC" = yes; then
 
17971
        wlarc='${wl}'
 
17972
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17973
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17974
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17975
      else
 
17976
        wlarc=''
 
17977
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17978
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17979
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17980
      fi
 
17981
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17982
      hardcode_shlibpath_var_GCJ=no
 
17983
      case $host_os in
 
17984
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17985
      *)
 
17986
        # The compiler driver will combine linker options so we
 
17987
        # cannot just pass the convience library names through
 
17988
        # without $wl, iff we do not link with $LD.
 
17989
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17990
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17991
        case $wlarc in
 
17992
        '')
 
17993
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17994
        *)
 
17995
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17996
        esac ;;
 
17997
      esac
 
17998
      link_all_deplibs_GCJ=yes
 
17999
      ;;
 
18000
 
 
18001
    sunos4*)
 
18002
      if test "x$host_vendor" = xsequent; then
 
18003
        # Use $CC to link under sequent, because it throws in some extra .o
 
18004
        # files that make .init and .fini sections work.
 
18005
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18006
      else
 
18007
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18008
      fi
 
18009
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18010
      hardcode_direct_GCJ=yes
 
18011
      hardcode_minus_L_GCJ=yes
 
18012
      hardcode_shlibpath_var_GCJ=no
 
18013
      ;;
 
18014
 
 
18015
    sysv4)
 
18016
      case $host_vendor in
 
18017
        sni)
 
18018
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18019
          hardcode_direct_GCJ=yes # is this really true???
 
18020
        ;;
 
18021
        siemens)
 
18022
          ## LD is ld it makes a PLAMLIB
 
18023
          ## CC just makes a GrossModule.
 
18024
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18025
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18026
          hardcode_direct_GCJ=no
 
18027
        ;;
 
18028
        motorola)
 
18029
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18030
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18031
        ;;
 
18032
      esac
 
18033
      runpath_var='LD_RUN_PATH'
 
18034
      hardcode_shlibpath_var_GCJ=no
 
18035
      ;;
 
18036
 
 
18037
    sysv4.3*)
 
18038
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18039
      hardcode_shlibpath_var_GCJ=no
 
18040
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18041
      ;;
 
18042
 
 
18043
    sysv4*MP*)
 
18044
      if test -d /usr/nec; then
 
18045
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18046
        hardcode_shlibpath_var_GCJ=no
 
18047
        runpath_var=LD_RUN_PATH
 
18048
        hardcode_runpath_var=yes
 
18049
        ld_shlibs_GCJ=yes
 
18050
      fi
 
18051
      ;;
 
18052
 
 
18053
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18054
      no_undefined_flag_GCJ='${wl}-z,text'
 
18055
      archive_cmds_need_lc_GCJ=no
 
18056
      hardcode_shlibpath_var_GCJ=no
 
18057
      runpath_var='LD_RUN_PATH'
 
18058
 
 
18059
      if test "$GCC" = yes; then
 
18060
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18061
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18062
      else
 
18063
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18064
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18065
      fi
 
18066
      ;;
 
18067
 
 
18068
    sysv5* | sco3.2v5* | sco5v6*)
 
18069
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18070
      # link with -lc, and that would cause any symbols used from libc to
 
18071
      # always be unresolved, which means just about no library would
 
18072
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18073
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18074
      # as -z defs.
 
18075
      no_undefined_flag_GCJ='${wl}-z,text'
 
18076
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18077
      archive_cmds_need_lc_GCJ=no
 
18078
      hardcode_shlibpath_var_GCJ=no
 
18079
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18080
      hardcode_libdir_separator_GCJ=':'
 
18081
      link_all_deplibs_GCJ=yes
 
18082
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18083
      runpath_var='LD_RUN_PATH'
 
18084
 
 
18085
      if test "$GCC" = yes; then
 
18086
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18087
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18088
      else
 
18089
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18090
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18091
      fi
 
18092
      ;;
 
18093
 
 
18094
    uts4*)
 
18095
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18096
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18097
      hardcode_shlibpath_var_GCJ=no
 
18098
      ;;
 
18099
 
 
18100
    *)
 
18101
      ld_shlibs_GCJ=no
 
18102
      ;;
 
18103
    esac
 
18104
  fi
 
18105
 
 
18106
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18107
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18108
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18109
 
 
18110
#
 
18111
# Do we need to explicitly link libc?
 
18112
#
 
18113
case "x$archive_cmds_need_lc_GCJ" in
 
18114
x|xyes)
 
18115
  # Assume -lc should be added
 
18116
  archive_cmds_need_lc_GCJ=yes
 
18117
 
 
18118
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18119
    case $archive_cmds_GCJ in
 
18120
    *'~'*)
 
18121
      # FIXME: we may have to deal with multi-command sequences.
 
18122
      ;;
 
18123
    '$CC '*)
 
18124
      # Test whether the compiler implicitly links with -lc since on some
 
18125
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18126
      # to ld, don't add -lc before -lgcc.
 
18127
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18128
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18129
      $rm conftest*
 
18130
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18131
 
 
18132
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18133
  (eval $ac_compile) 2>&5
 
18134
  ac_status=$?
 
18135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18136
  (exit $ac_status); } 2>conftest.err; then
 
18137
        soname=conftest
 
18138
        lib=conftest
 
18139
        libobjs=conftest.$ac_objext
 
18140
        deplibs=
 
18141
        wl=$lt_prog_compiler_wl_GCJ
 
18142
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18143
        compiler_flags=-v
 
18144
        linker_flags=-v
 
18145
        verstring=
 
18146
        output_objdir=.
 
18147
        libname=conftest
 
18148
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18149
        allow_undefined_flag_GCJ=
 
18150
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18151
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18152
  ac_status=$?
 
18153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18154
  (exit $ac_status); }
 
18155
        then
 
18156
          archive_cmds_need_lc_GCJ=no
 
18157
        else
 
18158
          archive_cmds_need_lc_GCJ=yes
 
18159
        fi
 
18160
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18161
      else
 
18162
        cat conftest.err 1>&5
 
18163
      fi
 
18164
      $rm conftest*
 
18165
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18166
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18167
      ;;
 
18168
    esac
 
18169
  fi
 
18170
  ;;
 
18171
esac
 
18172
 
 
18173
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18174
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18175
library_names_spec=
 
18176
libname_spec='lib$name'
 
18177
soname_spec=
 
18178
shrext_cmds=".so"
 
18179
postinstall_cmds=
 
18180
postuninstall_cmds=
 
18181
finish_cmds=
 
18182
finish_eval=
 
18183
shlibpath_var=
 
18184
shlibpath_overrides_runpath=unknown
 
18185
version_type=none
 
18186
dynamic_linker="$host_os ld.so"
 
18187
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18188
if test "$GCC" = yes; then
 
18189
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18190
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18191
    # if the path contains ";" then we assume it to be the separator
 
18192
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18193
    # assumed that no part of a normal pathname contains ";" but that should
 
18194
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18195
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18196
  else
 
18197
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18198
  fi
 
18199
else
 
18200
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18201
fi
 
18202
need_lib_prefix=unknown
 
18203
hardcode_into_libs=no
 
18204
 
 
18205
# when you set need_version to no, make sure it does not cause -set_version
 
18206
# flags to be left without arguments
 
18207
need_version=unknown
 
18208
 
 
18209
case $host_os in
 
18210
aix3*)
 
18211
  version_type=linux
 
18212
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18213
  shlibpath_var=LIBPATH
 
18214
 
 
18215
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18216
  soname_spec='${libname}${release}${shared_ext}$major'
 
18217
  ;;
 
18218
 
 
18219
aix4* | aix5*)
 
18220
  version_type=linux
 
18221
  need_lib_prefix=no
 
18222
  need_version=no
 
18223
  hardcode_into_libs=yes
 
18224
  if test "$host_cpu" = ia64; then
 
18225
    # AIX 5 supports IA64
 
18226
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18227
    shlibpath_var=LD_LIBRARY_PATH
 
18228
  else
 
18229
    # With GCC up to 2.95.x, collect2 would create an import file
 
18230
    # for dependence libraries.  The import file would start with
 
18231
    # the line `#! .'.  This would cause the generated library to
 
18232
    # depend on `.', always an invalid library.  This was fixed in
 
18233
    # development snapshots of GCC prior to 3.0.
 
18234
    case $host_os in
 
18235
      aix4 | aix4.[01] | aix4.[01].*)
 
18236
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18237
           echo ' yes '
 
18238
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18239
        :
 
18240
      else
 
18241
        can_build_shared=no
 
18242
      fi
 
18243
      ;;
 
18244
    esac
 
18245
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18246
    # soname into executable. Probably we can add versioning support to
 
18247
    # collect2, so additional links can be useful in future.
 
18248
    if test "$aix_use_runtimelinking" = yes; then
 
18249
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18250
      # instead of lib<name>.a to let people know that these are not
 
18251
      # typical AIX shared libraries.
 
18252
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18253
    else
 
18254
      # We preserve .a as extension for shared libraries through AIX4.2
 
18255
      # and later when we are not doing run time linking.
 
18256
      library_names_spec='${libname}${release}.a $libname.a'
 
18257
      soname_spec='${libname}${release}${shared_ext}$major'
 
18258
    fi
 
18259
    shlibpath_var=LIBPATH
 
18260
  fi
 
18261
  ;;
 
18262
 
 
18263
amigaos*)
 
18264
  library_names_spec='$libname.ixlibrary $libname.a'
 
18265
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18266
  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'
 
18267
  ;;
 
18268
 
 
18269
beos*)
 
18270
  library_names_spec='${libname}${shared_ext}'
 
18271
  dynamic_linker="$host_os ld.so"
 
18272
  shlibpath_var=LIBRARY_PATH
 
18273
  ;;
 
18274
 
 
18275
bsdi[45]*)
 
18276
  version_type=linux
 
18277
  need_version=no
 
18278
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18279
  soname_spec='${libname}${release}${shared_ext}$major'
 
18280
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18281
  shlibpath_var=LD_LIBRARY_PATH
 
18282
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18283
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18284
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18285
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18286
  # libtool to hard-code these into programs
 
18287
  ;;
 
18288
 
 
18289
cygwin* | mingw* | pw32*)
 
18290
  version_type=windows
 
18291
  shrext_cmds=".dll"
 
18292
  need_version=no
 
18293
  need_lib_prefix=no
 
18294
 
 
18295
  case $GCC,$host_os in
 
18296
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18297
    library_names_spec='$libname.dll.a'
 
18298
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18299
    postinstall_cmds='base_file=`basename \${file}`~
 
18300
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18301
      dldir=$destdir/`dirname \$dlpath`~
 
18302
      test -d \$dldir || mkdir -p \$dldir~
 
18303
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18304
      chmod a+x \$dldir/$dlname'
 
18305
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18306
      dlpath=$dir/\$dldll~
 
18307
       $rm \$dlpath'
 
18308
    shlibpath_overrides_runpath=yes
 
18309
 
 
18310
    case $host_os in
 
18311
    cygwin*)
 
18312
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18313
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18314
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18315
      ;;
 
18316
    mingw*)
 
18317
      # MinGW DLLs use traditional 'lib' prefix
 
18318
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18319
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18320
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18321
        # It is most probably a Windows format PATH printed by
 
18322
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18323
        # path with ; separators, and with drive letters. We can handle the
 
18324
        # drive letters (cygwin fileutils understands them), so leave them,
 
18325
        # especially as we might pass files found there to a mingw objdump,
 
18326
        # which wouldn't understand a cygwinified path. Ahh.
 
18327
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18328
      else
 
18329
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18330
      fi
 
18331
      ;;
 
18332
    pw32*)
 
18333
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18334
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18335
      ;;
 
18336
    esac
 
18337
    ;;
 
18338
 
 
18339
  *)
 
18340
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18341
    ;;
 
18342
  esac
 
18343
  dynamic_linker='Win32 ld.exe'
 
18344
  # FIXME: first we should search . and the directory the executable is in
 
18345
  shlibpath_var=PATH
 
18346
  ;;
 
18347
 
 
18348
darwin* | rhapsody*)
 
18349
  dynamic_linker="$host_os dyld"
 
18350
  version_type=darwin
 
18351
  need_lib_prefix=no
 
18352
  need_version=no
 
18353
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18354
  soname_spec='${libname}${release}${major}$shared_ext'
 
18355
  shlibpath_overrides_runpath=yes
 
18356
  shlibpath_var=DYLD_LIBRARY_PATH
 
18357
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18358
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18359
  if test "$GCC" = yes; then
 
18360
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
18361
  else
 
18362
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18363
  fi
 
18364
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18365
  ;;
 
18366
 
 
18367
dgux*)
 
18368
  version_type=linux
 
18369
  need_lib_prefix=no
 
18370
  need_version=no
 
18371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18372
  soname_spec='${libname}${release}${shared_ext}$major'
 
18373
  shlibpath_var=LD_LIBRARY_PATH
 
18374
  ;;
 
18375
 
 
18376
freebsd1*)
 
18377
  dynamic_linker=no
 
18378
  ;;
 
18379
 
 
18380
kfreebsd*-gnu)
 
18381
  version_type=linux
 
18382
  need_lib_prefix=no
 
18383
  need_version=no
 
18384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18385
  soname_spec='${libname}${release}${shared_ext}$major'
 
18386
  shlibpath_var=LD_LIBRARY_PATH
 
18387
  shlibpath_overrides_runpath=no
 
18388
  hardcode_into_libs=yes
 
18389
  dynamic_linker='GNU ld.so'
 
18390
  ;;
 
18391
 
 
18392
freebsd* | dragonfly*)
 
18393
  # DragonFly does not have aout.  When/if they implement a new
 
18394
  # versioning mechanism, adjust this.
 
18395
  if test -x /usr/bin/objformat; then
 
18396
    objformat=`/usr/bin/objformat`
 
18397
  else
 
18398
    case $host_os in
 
18399
    freebsd[123]*) objformat=aout ;;
 
18400
    *) objformat=elf ;;
 
18401
    esac
 
18402
  fi
 
18403
  version_type=freebsd-$objformat
 
18404
  case $version_type in
 
18405
    freebsd-elf*)
 
18406
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18407
      need_version=no
 
18408
      need_lib_prefix=no
 
18409
      ;;
 
18410
    freebsd-*)
 
18411
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18412
      need_version=yes
 
18413
      ;;
 
18414
  esac
 
18415
  shlibpath_var=LD_LIBRARY_PATH
 
18416
  case $host_os in
 
18417
  freebsd2*)
 
18418
    shlibpath_overrides_runpath=yes
 
18419
    ;;
 
18420
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18421
    shlibpath_overrides_runpath=yes
 
18422
    hardcode_into_libs=yes
 
18423
    ;;
 
18424
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18425
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18426
    shlibpath_overrides_runpath=no
 
18427
    hardcode_into_libs=yes
 
18428
    ;;
 
18429
  freebsd*) # from 4.6 on
 
18430
    shlibpath_overrides_runpath=yes
 
18431
    hardcode_into_libs=yes
 
18432
    ;;
 
18433
  esac
 
18434
  ;;
 
18435
 
 
18436
gnu*)
 
18437
  version_type=linux
 
18438
  need_lib_prefix=no
 
18439
  need_version=no
 
18440
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18441
  soname_spec='${libname}${release}${shared_ext}$major'
 
18442
  shlibpath_var=LD_LIBRARY_PATH
 
18443
  hardcode_into_libs=yes
 
18444
  ;;
 
18445
 
 
18446
hpux9* | hpux10* | hpux11*)
 
18447
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18448
  # link against other versions.
 
18449
  version_type=sunos
 
18450
  need_lib_prefix=no
 
18451
  need_version=no
 
18452
  case $host_cpu in
 
18453
  ia64*)
 
18454
    shrext_cmds='.so'
 
18455
    hardcode_into_libs=yes
 
18456
    dynamic_linker="$host_os dld.so"
 
18457
    shlibpath_var=LD_LIBRARY_PATH
 
18458
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18459
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18460
    soname_spec='${libname}${release}${shared_ext}$major'
 
18461
    if test "X$HPUX_IA64_MODE" = X32; then
 
18462
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18463
    else
 
18464
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18465
    fi
 
18466
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18467
    ;;
 
18468
   hppa*64*)
 
18469
     shrext_cmds='.sl'
 
18470
     hardcode_into_libs=yes
 
18471
     dynamic_linker="$host_os dld.sl"
 
18472
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18473
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18474
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18475
     soname_spec='${libname}${release}${shared_ext}$major'
 
18476
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18477
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18478
     ;;
 
18479
   *)
 
18480
    shrext_cmds='.sl'
 
18481
    dynamic_linker="$host_os dld.sl"
 
18482
    shlibpath_var=SHLIB_PATH
 
18483
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18484
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18485
    soname_spec='${libname}${release}${shared_ext}$major'
 
18486
    ;;
 
18487
  esac
 
18488
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18489
  postinstall_cmds='chmod 555 $lib'
 
18490
  ;;
 
18491
 
 
18492
interix3*)
 
18493
  version_type=linux
 
18494
  need_lib_prefix=no
 
18495
  need_version=no
 
18496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18497
  soname_spec='${libname}${release}${shared_ext}$major'
 
18498
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18499
  shlibpath_var=LD_LIBRARY_PATH
 
18500
  shlibpath_overrides_runpath=no
 
18501
  hardcode_into_libs=yes
 
18502
  ;;
 
18503
 
 
18504
irix5* | irix6* | nonstopux*)
 
18505
  case $host_os in
 
18506
    nonstopux*) version_type=nonstopux ;;
 
18507
    *)
 
18508
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18509
                version_type=linux
 
18510
        else
 
18511
                version_type=irix
 
18512
        fi ;;
 
18513
  esac
 
18514
  need_lib_prefix=no
 
18515
  need_version=no
 
18516
  soname_spec='${libname}${release}${shared_ext}$major'
 
18517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18518
  case $host_os in
 
18519
  irix5* | nonstopux*)
 
18520
    libsuff= shlibsuff=
 
18521
    ;;
 
18522
  *)
 
18523
    case $LD in # libtool.m4 will add one of these switches to LD
 
18524
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18525
      libsuff= shlibsuff= libmagic=32-bit;;
 
18526
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18527
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18528
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18529
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18530
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18531
    esac
 
18532
    ;;
 
18533
  esac
 
18534
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18535
  shlibpath_overrides_runpath=no
 
18536
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18537
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18538
  hardcode_into_libs=yes
 
18539
  ;;
 
18540
 
 
18541
# No shared lib support for Linux oldld, aout, or coff.
 
18542
linux*oldld* | linux*aout* | linux*coff*)
 
18543
  dynamic_linker=no
 
18544
  ;;
 
18545
 
 
18546
# This must be Linux ELF.
 
18547
linux*)
 
18548
  version_type=linux
 
18549
  need_lib_prefix=no
 
18550
  need_version=no
 
18551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18552
  soname_spec='${libname}${release}${shared_ext}$major'
 
18553
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18554
  shlibpath_var=LD_LIBRARY_PATH
 
18555
  shlibpath_overrides_runpath=no
 
18556
  # This implies no fast_install, which is unacceptable.
 
18557
  # Some rework will be needed to allow for fast_install
 
18558
  # before this can be enabled.
 
18559
  hardcode_into_libs=yes
 
18560
 
 
18561
  # Append ld.so.conf contents to the search path
 
18562
  if test -f /etc/ld.so.conf; then
 
18563
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18564
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18565
  fi
 
18566
 
 
18567
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18568
  # powerpc, because MkLinux only supported shared libraries with the
 
18569
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18570
  # most powerpc-linux boxes support dynamic linking these days and
 
18571
  # people can always --disable-shared, the test was removed, and we
 
18572
  # assume the GNU/Linux dynamic linker is in use.
 
18573
  dynamic_linker='GNU/Linux ld.so'
 
18574
  ;;
 
18575
 
 
18576
knetbsd*-gnu)
 
18577
  version_type=linux
 
18578
  need_lib_prefix=no
 
18579
  need_version=no
 
18580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18581
  soname_spec='${libname}${release}${shared_ext}$major'
 
18582
  shlibpath_var=LD_LIBRARY_PATH
 
18583
  shlibpath_overrides_runpath=no
 
18584
  hardcode_into_libs=yes
 
18585
  dynamic_linker='GNU ld.so'
 
18586
  ;;
 
18587
 
 
18588
netbsd*)
 
18589
  version_type=sunos
 
18590
  need_lib_prefix=no
 
18591
  need_version=no
 
18592
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18593
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18594
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18595
    dynamic_linker='NetBSD (a.out) ld.so'
 
18596
  else
 
18597
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18598
    soname_spec='${libname}${release}${shared_ext}$major'
 
18599
    dynamic_linker='NetBSD ld.elf_so'
 
18600
  fi
 
18601
  shlibpath_var=LD_LIBRARY_PATH
 
18602
  shlibpath_overrides_runpath=yes
 
18603
  hardcode_into_libs=yes
 
18604
  ;;
 
18605
 
 
18606
newsos6)
 
18607
  version_type=linux
 
18608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18609
  shlibpath_var=LD_LIBRARY_PATH
 
18610
  shlibpath_overrides_runpath=yes
 
18611
  ;;
 
18612
 
 
18613
nto-qnx*)
 
18614
  version_type=linux
 
18615
  need_lib_prefix=no
 
18616
  need_version=no
 
18617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18618
  soname_spec='${libname}${release}${shared_ext}$major'
 
18619
  shlibpath_var=LD_LIBRARY_PATH
 
18620
  shlibpath_overrides_runpath=yes
 
18621
  ;;
 
18622
 
 
18623
openbsd*)
 
18624
  version_type=sunos
 
18625
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18626
  need_lib_prefix=no
 
18627
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18628
  case $host_os in
 
18629
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18630
    *)                         need_version=no  ;;
 
18631
  esac
 
18632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18633
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18634
  shlibpath_var=LD_LIBRARY_PATH
 
18635
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18636
    case $host_os in
 
18637
      openbsd2.[89] | openbsd2.[89].*)
 
18638
        shlibpath_overrides_runpath=no
 
18639
        ;;
 
18640
      *)
 
18641
        shlibpath_overrides_runpath=yes
 
18642
        ;;
 
18643
      esac
 
18644
  else
 
18645
    shlibpath_overrides_runpath=yes
 
18646
  fi
 
18647
  ;;
 
18648
 
 
18649
os2*)
 
18650
  libname_spec='$name'
 
18651
  shrext_cmds=".dll"
 
18652
  need_lib_prefix=no
 
18653
  library_names_spec='$libname${shared_ext} $libname.a'
 
18654
  dynamic_linker='OS/2 ld.exe'
 
18655
  shlibpath_var=LIBPATH
 
18656
  ;;
 
18657
 
 
18658
osf3* | osf4* | osf5*)
 
18659
  version_type=osf
 
18660
  need_lib_prefix=no
 
18661
  need_version=no
 
18662
  soname_spec='${libname}${release}${shared_ext}$major'
 
18663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18664
  shlibpath_var=LD_LIBRARY_PATH
 
18665
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18666
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18667
  ;;
 
18668
 
 
18669
solaris*)
 
18670
  version_type=linux
 
18671
  need_lib_prefix=no
 
18672
  need_version=no
 
18673
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18674
  soname_spec='${libname}${release}${shared_ext}$major'
 
18675
  shlibpath_var=LD_LIBRARY_PATH
 
18676
  shlibpath_overrides_runpath=yes
 
18677
  hardcode_into_libs=yes
 
18678
  # ldd complains unless libraries are executable
 
18679
  postinstall_cmds='chmod +x $lib'
 
18680
  ;;
 
18681
 
 
18682
sunos4*)
 
18683
  version_type=sunos
 
18684
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18685
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18686
  shlibpath_var=LD_LIBRARY_PATH
 
18687
  shlibpath_overrides_runpath=yes
 
18688
  if test "$with_gnu_ld" = yes; then
 
18689
    need_lib_prefix=no
 
18690
  fi
 
18691
  need_version=yes
 
18692
  ;;
 
18693
 
 
18694
sysv4 | sysv4.3*)
 
18695
  version_type=linux
 
18696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18697
  soname_spec='${libname}${release}${shared_ext}$major'
 
18698
  shlibpath_var=LD_LIBRARY_PATH
 
18699
  case $host_vendor in
 
18700
    sni)
 
18701
      shlibpath_overrides_runpath=no
 
18702
      need_lib_prefix=no
 
18703
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18704
      runpath_var=LD_RUN_PATH
 
18705
      ;;
 
18706
    siemens)
 
18707
      need_lib_prefix=no
 
18708
      ;;
 
18709
    motorola)
 
18710
      need_lib_prefix=no
 
18711
      need_version=no
 
18712
      shlibpath_overrides_runpath=no
 
18713
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18714
      ;;
 
18715
  esac
 
18716
  ;;
 
18717
 
 
18718
sysv4*MP*)
 
18719
  if test -d /usr/nec ;then
 
18720
    version_type=linux
 
18721
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18722
    soname_spec='$libname${shared_ext}.$major'
 
18723
    shlibpath_var=LD_LIBRARY_PATH
 
18724
  fi
 
18725
  ;;
 
18726
 
 
18727
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18728
  version_type=freebsd-elf
 
18729
  need_lib_prefix=no
 
18730
  need_version=no
 
18731
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18732
  soname_spec='${libname}${release}${shared_ext}$major'
 
18733
  shlibpath_var=LD_LIBRARY_PATH
 
18734
  hardcode_into_libs=yes
 
18735
  if test "$with_gnu_ld" = yes; then
 
18736
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18737
    shlibpath_overrides_runpath=no
 
18738
  else
 
18739
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18740
    shlibpath_overrides_runpath=yes
 
18741
    case $host_os in
 
18742
      sco3.2v5*)
 
18743
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18744
        ;;
 
18745
    esac
 
18746
  fi
 
18747
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18748
  ;;
 
18749
 
 
18750
uts4*)
 
18751
  version_type=linux
 
18752
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18753
  soname_spec='${libname}${release}${shared_ext}$major'
 
18754
  shlibpath_var=LD_LIBRARY_PATH
 
18755
  ;;
 
18756
 
 
18757
*)
 
18758
  dynamic_linker=no
 
18759
  ;;
 
18760
esac
 
18761
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18762
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18763
test "$dynamic_linker" = no && can_build_shared=no
 
18764
 
 
18765
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18766
if test "$GCC" = yes; then
 
18767
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18768
fi
 
18769
 
 
18770
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18771
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18772
hardcode_action_GCJ=
 
18773
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18774
   test -n "$runpath_var_GCJ" || \
 
18775
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18776
 
 
18777
  # We can hardcode non-existant directories.
 
18778
  if test "$hardcode_direct_GCJ" != no &&
 
18779
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18780
     # have to relink, otherwise we might link with an installed library
 
18781
     # when we should be linking with a yet-to-be-installed one
 
18782
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18783
     test "$hardcode_minus_L_GCJ" != no; then
 
18784
    # Linking always hardcodes the temporary library directory.
 
18785
    hardcode_action_GCJ=relink
 
18786
  else
 
18787
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18788
    hardcode_action_GCJ=immediate
 
18789
  fi
 
18790
else
 
18791
  # We cannot hardcode anything, or else we can only hardcode existing
 
18792
  # directories.
 
18793
  hardcode_action_GCJ=unsupported
 
18794
fi
 
18795
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18796
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18797
 
 
18798
if test "$hardcode_action_GCJ" = relink; then
 
18799
  # Fast installation is not supported
 
18800
  enable_fast_install=no
 
18801
elif test "$shlibpath_overrides_runpath" = yes ||
 
18802
     test "$enable_shared" = no; then
 
18803
  # Fast installation is not necessary
 
18804
  enable_fast_install=needless
 
18805
fi
 
18806
 
 
18807
 
 
18808
# The else clause should only fire when bootstrapping the
 
18809
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18810
# with your package, and you will get complaints that there are
 
18811
# no rules to generate ltmain.sh.
 
18812
if test -f "$ltmain"; then
 
18813
  # See if we are running on zsh, and set the options which allow our commands through
 
18814
  # without removal of \ escapes.
 
18815
  if test -n "${ZSH_VERSION+set}" ; then
 
18816
    setopt NO_GLOB_SUBST
 
18817
  fi
 
18818
  # Now quote all the things that may contain metacharacters while being
 
18819
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18820
  # variables and quote the copies for generation of the libtool script.
 
18821
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18822
    SED SHELL STRIP \
 
18823
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18824
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18825
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18826
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18827
    lt_cv_sys_global_symbol_to_c_name_address \
 
18828
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18829
    old_postinstall_cmds old_postuninstall_cmds \
 
18830
    compiler_GCJ \
 
18831
    CC_GCJ \
 
18832
    LD_GCJ \
 
18833
    lt_prog_compiler_wl_GCJ \
 
18834
    lt_prog_compiler_pic_GCJ \
 
18835
    lt_prog_compiler_static_GCJ \
 
18836
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18837
    export_dynamic_flag_spec_GCJ \
 
18838
    thread_safe_flag_spec_GCJ \
 
18839
    whole_archive_flag_spec_GCJ \
 
18840
    enable_shared_with_static_runtimes_GCJ \
 
18841
    old_archive_cmds_GCJ \
 
18842
    old_archive_from_new_cmds_GCJ \
 
18843
    predep_objects_GCJ \
 
18844
    postdep_objects_GCJ \
 
18845
    predeps_GCJ \
 
18846
    postdeps_GCJ \
 
18847
    compiler_lib_search_path_GCJ \
 
18848
    archive_cmds_GCJ \
 
18849
    archive_expsym_cmds_GCJ \
 
18850
    postinstall_cmds_GCJ \
 
18851
    postuninstall_cmds_GCJ \
 
18852
    old_archive_from_expsyms_cmds_GCJ \
 
18853
    allow_undefined_flag_GCJ \
 
18854
    no_undefined_flag_GCJ \
 
18855
    export_symbols_cmds_GCJ \
 
18856
    hardcode_libdir_flag_spec_GCJ \
 
18857
    hardcode_libdir_flag_spec_ld_GCJ \
 
18858
    hardcode_libdir_separator_GCJ \
 
18859
    hardcode_automatic_GCJ \
 
18860
    module_cmds_GCJ \
 
18861
    module_expsym_cmds_GCJ \
 
18862
    lt_cv_prog_compiler_c_o_GCJ \
 
18863
    exclude_expsyms_GCJ \
 
18864
    include_expsyms_GCJ; do
 
18865
 
 
18866
    case $var in
 
18867
    old_archive_cmds_GCJ | \
 
18868
    old_archive_from_new_cmds_GCJ | \
 
18869
    archive_cmds_GCJ | \
 
18870
    archive_expsym_cmds_GCJ | \
 
18871
    module_cmds_GCJ | \
 
18872
    module_expsym_cmds_GCJ | \
 
18873
    old_archive_from_expsyms_cmds_GCJ | \
 
18874
    export_symbols_cmds_GCJ | \
 
18875
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18876
    postinstall_cmds | postuninstall_cmds | \
 
18877
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18878
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18879
      # Double-quote double-evaled strings.
 
18880
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18881
      ;;
 
18882
    *)
 
18883
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18884
      ;;
 
18885
    esac
 
18886
  done
 
18887
 
 
18888
  case $lt_echo in
 
18889
  *'\$0 --fallback-echo"')
 
18890
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18891
    ;;
 
18892
  esac
 
18893
 
 
18894
cfgfile="$ofile"
 
18895
 
 
18896
  cat <<__EOF__ >> "$cfgfile"
 
18897
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18898
 
 
18899
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18900
 
 
18901
# Shell to use when invoking shell scripts.
 
18902
SHELL=$lt_SHELL
 
18903
 
 
18904
# Whether or not to build shared libraries.
 
18905
build_libtool_libs=$enable_shared
 
18906
 
 
18907
# Whether or not to build static libraries.
 
18908
build_old_libs=$enable_static
 
18909
 
 
18910
# Whether or not to add -lc for building shared libraries.
 
18911
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18912
 
 
18913
# Whether or not to disallow shared libs when runtime libs are static
 
18914
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18915
 
 
18916
# Whether or not to optimize for fast installation.
 
18917
fast_install=$enable_fast_install
 
18918
 
 
18919
# The host system.
 
18920
host_alias=$host_alias
 
18921
host=$host
 
18922
host_os=$host_os
 
18923
 
 
18924
# The build system.
 
18925
build_alias=$build_alias
 
18926
build=$build
 
18927
build_os=$build_os
 
18928
 
 
18929
# An echo program that does not interpret backslashes.
 
18930
echo=$lt_echo
 
18931
 
 
18932
# The archiver.
 
18933
AR=$lt_AR
 
18934
AR_FLAGS=$lt_AR_FLAGS
 
18935
 
 
18936
# A C compiler.
 
18937
LTCC=$lt_LTCC
 
18938
 
 
18939
# LTCC compiler flags.
 
18940
LTCFLAGS=$lt_LTCFLAGS
 
18941
 
 
18942
# A language-specific compiler.
 
18943
CC=$lt_compiler_GCJ
 
18944
 
 
18945
# Is the compiler the GNU C compiler?
 
18946
with_gcc=$GCC_GCJ
 
18947
 
 
18948
# An ERE matcher.
 
18949
EGREP=$lt_EGREP
 
18950
 
 
18951
# The linker used to build libraries.
 
18952
LD=$lt_LD_GCJ
 
18953
 
 
18954
# Whether we need hard or soft links.
 
18955
LN_S=$lt_LN_S
 
18956
 
 
18957
# A BSD-compatible nm program.
 
18958
NM=$lt_NM
 
18959
 
 
18960
# A symbol stripping program
 
18961
STRIP=$lt_STRIP
 
18962
 
 
18963
# Used to examine libraries when file_magic_cmd begins "file"
 
18964
MAGIC_CMD=$MAGIC_CMD
 
18965
 
 
18966
# Used on cygwin: DLL creation program.
 
18967
DLLTOOL="$DLLTOOL"
 
18968
 
 
18969
# Used on cygwin: object dumper.
 
18970
OBJDUMP="$OBJDUMP"
 
18971
 
 
18972
# Used on cygwin: assembler.
 
18973
AS="$AS"
 
18974
 
 
18975
# The name of the directory that contains temporary libtool files.
 
18976
objdir=$objdir
 
18977
 
 
18978
# How to create reloadable object files.
 
18979
reload_flag=$lt_reload_flag
 
18980
reload_cmds=$lt_reload_cmds
 
18981
 
 
18982
# How to pass a linker flag through the compiler.
 
18983
wl=$lt_lt_prog_compiler_wl_GCJ
 
18984
 
 
18985
# Object file suffix (normally "o").
 
18986
objext="$ac_objext"
 
18987
 
 
18988
# Old archive suffix (normally "a").
 
18989
libext="$libext"
 
18990
 
 
18991
# Shared library suffix (normally ".so").
 
18992
shrext_cmds='$shrext_cmds'
 
18993
 
 
18994
# Executable file suffix (normally "").
 
18995
exeext="$exeext"
 
18996
 
 
18997
# Additional compiler flags for building library objects.
 
18998
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18999
pic_mode=$pic_mode
 
19000
 
 
19001
# What is the maximum length of a command?
 
19002
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19003
 
 
19004
# Does compiler simultaneously support -c and -o options?
 
19005
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19006
 
 
19007
# Must we lock files when doing compilation?
 
19008
need_locks=$lt_need_locks
 
19009
 
 
19010
# Do we need the lib prefix for modules?
 
19011
need_lib_prefix=$need_lib_prefix
 
19012
 
 
19013
# Do we need a version for libraries?
 
19014
need_version=$need_version
 
19015
 
 
19016
# Whether dlopen is supported.
 
19017
dlopen_support=$enable_dlopen
 
19018
 
 
19019
# Whether dlopen of programs is supported.
 
19020
dlopen_self=$enable_dlopen_self
 
19021
 
 
19022
# Whether dlopen of statically linked programs is supported.
 
19023
dlopen_self_static=$enable_dlopen_self_static
 
19024
 
 
19025
# Compiler flag to prevent dynamic linking.
 
19026
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19027
 
 
19028
# Compiler flag to turn off builtin functions.
 
19029
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19030
 
 
19031
# Compiler flag to allow reflexive dlopens.
 
19032
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19033
 
 
19034
# Compiler flag to generate shared objects directly from archives.
 
19035
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19036
 
 
19037
# Compiler flag to generate thread-safe objects.
 
19038
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19039
 
 
19040
# Library versioning type.
 
19041
version_type=$version_type
 
19042
 
 
19043
# Format of library name prefix.
 
19044
libname_spec=$lt_libname_spec
 
19045
 
 
19046
# List of archive names.  First name is the real one, the rest are links.
 
19047
# The last name is the one that the linker finds with -lNAME.
 
19048
library_names_spec=$lt_library_names_spec
 
19049
 
 
19050
# The coded name of the library, if different from the real name.
 
19051
soname_spec=$lt_soname_spec
 
19052
 
 
19053
# Commands used to build and install an old-style archive.
 
19054
RANLIB=$lt_RANLIB
 
19055
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19056
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19057
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19058
 
 
19059
# Create an old-style archive from a shared archive.
 
19060
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19061
 
 
19062
# Create a temporary old-style archive to link instead of a shared archive.
 
19063
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19064
 
 
19065
# Commands used to build and install a shared archive.
 
19066
archive_cmds=$lt_archive_cmds_GCJ
 
19067
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19068
postinstall_cmds=$lt_postinstall_cmds
 
19069
postuninstall_cmds=$lt_postuninstall_cmds
 
19070
 
 
19071
# Commands used to build a loadable module (assumed same as above if empty)
 
19072
module_cmds=$lt_module_cmds_GCJ
 
19073
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19074
 
 
19075
# Commands to strip libraries.
 
19076
old_striplib=$lt_old_striplib
 
19077
striplib=$lt_striplib
 
19078
 
 
19079
# Dependencies to place before the objects being linked to create a
 
19080
# shared library.
 
19081
predep_objects=$lt_predep_objects_GCJ
 
19082
 
 
19083
# Dependencies to place after the objects being linked to create a
 
19084
# shared library.
 
19085
postdep_objects=$lt_postdep_objects_GCJ
 
19086
 
 
19087
# Dependencies to place before the objects being linked to create a
 
19088
# shared library.
 
19089
predeps=$lt_predeps_GCJ
 
19090
 
 
19091
# Dependencies to place after the objects being linked to create a
 
19092
# shared library.
 
19093
postdeps=$lt_postdeps_GCJ
 
19094
 
 
19095
# The library search path used internally by the compiler when linking
 
19096
# a shared library.
 
19097
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19098
 
 
19099
# Method to check whether dependent libraries are shared objects.
 
19100
deplibs_check_method=$lt_deplibs_check_method
 
19101
 
 
19102
# Command to use when deplibs_check_method == file_magic.
 
19103
file_magic_cmd=$lt_file_magic_cmd
 
19104
 
 
19105
# Flag that allows shared libraries with undefined symbols to be built.
 
19106
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19107
 
 
19108
# Flag that forces no undefined symbols.
 
19109
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19110
 
 
19111
# Commands used to finish a libtool library installation in a directory.
 
19112
finish_cmds=$lt_finish_cmds
 
19113
 
 
19114
# Same as above, but a single script fragment to be evaled but not shown.
 
19115
finish_eval=$lt_finish_eval
 
19116
 
 
19117
# Take the output of nm and produce a listing of raw symbols and C names.
 
19118
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19119
 
 
19120
# Transform the output of nm in a proper C declaration
 
19121
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19122
 
 
19123
# Transform the output of nm in a C name address pair
 
19124
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19125
 
 
19126
# This is the shared library runtime path variable.
 
19127
runpath_var=$runpath_var
 
19128
 
 
19129
# This is the shared library path variable.
 
19130
shlibpath_var=$shlibpath_var
 
19131
 
 
19132
# Is shlibpath searched before the hard-coded library search path?
 
19133
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19134
 
 
19135
# How to hardcode a shared library path into an executable.
 
19136
hardcode_action=$hardcode_action_GCJ
 
19137
 
 
19138
# Whether we should hardcode library paths into libraries.
 
19139
hardcode_into_libs=$hardcode_into_libs
 
19140
 
 
19141
# Flag to hardcode \$libdir into a binary during linking.
 
19142
# This must work even if \$libdir does not exist.
 
19143
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19144
 
 
19145
# If ld is used when linking, flag to hardcode \$libdir into
 
19146
# a binary during linking. This must work even if \$libdir does
 
19147
# not exist.
 
19148
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19149
 
 
19150
# Whether we need a single -rpath flag with a separated argument.
 
19151
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19152
 
 
19153
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19154
# resulting binary.
 
19155
hardcode_direct=$hardcode_direct_GCJ
 
19156
 
 
19157
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19158
# resulting binary.
 
19159
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19160
 
 
19161
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19162
# the resulting binary.
 
19163
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19164
 
 
19165
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19166
# and all subsequent libraries and executables linked against it.
 
19167
hardcode_automatic=$hardcode_automatic_GCJ
 
19168
 
 
19169
# Variables whose values should be saved in libtool wrapper scripts and
 
19170
# restored at relink time.
 
19171
variables_saved_for_relink="$variables_saved_for_relink"
 
19172
 
 
19173
# Whether libtool must link a program against all its dependency libraries.
 
19174
link_all_deplibs=$link_all_deplibs_GCJ
 
19175
 
 
19176
# Compile-time system search path for libraries
 
19177
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19178
 
 
19179
# Run-time system search path for libraries
 
19180
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19181
 
 
19182
# Fix the shell variable \$srcfile for the compiler.
 
19183
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19184
 
 
19185
# Set to yes if exported symbols are required.
 
19186
always_export_symbols=$always_export_symbols_GCJ
 
19187
 
 
19188
# The commands to list exported symbols.
 
19189
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19190
 
 
19191
# The commands to extract the exported symbol list from a shared archive.
 
19192
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19193
 
 
19194
# Symbols that should not be listed in the preloaded symbols.
 
19195
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19196
 
 
19197
# Symbols that must always be exported.
 
19198
include_expsyms=$lt_include_expsyms_GCJ
 
19199
 
 
19200
# ### END LIBTOOL TAG CONFIG: $tagname
 
19201
 
 
19202
__EOF__
 
19203
 
 
19204
 
 
19205
else
 
19206
  # If there is no Makefile yet, we rely on a make rule to execute
 
19207
  # `config.status --recheck' to rerun these tests and create the
 
19208
  # libtool script then.
 
19209
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19210
  if test -f "$ltmain_in"; then
 
19211
    test -f Makefile && make "$ltmain"
 
19212
  fi
 
19213
fi
 
19214
 
 
19215
 
 
19216
ac_ext=c
 
19217
ac_cpp='$CPP $CPPFLAGS'
 
19218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19220
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19221
 
 
19222
CC="$lt_save_CC"
 
19223
 
 
19224
        else
 
19225
          tagname=""
 
19226
        fi
 
19227
        ;;
 
19228
 
 
19229
      RC)
 
19230
 
 
19231
 
 
19232
# Source file extension for RC test sources.
 
19233
ac_ext=rc
 
19234
 
 
19235
# Object file extension for compiled RC test sources.
 
19236
objext=o
 
19237
objext_RC=$objext
 
19238
 
 
19239
# Code to be used in simple compile tests
 
19240
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19241
 
 
19242
# Code to be used in simple link tests
 
19243
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19244
 
 
19245
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19246
 
 
19247
# If no C compiler was specified, use CC.
 
19248
LTCC=${LTCC-"$CC"}
 
19249
 
 
19250
# If no C compiler flags were specified, use CFLAGS.
 
19251
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19252
 
 
19253
# Allow CC to be a program name with arguments.
 
19254
compiler=$CC
 
19255
 
 
19256
 
 
19257
# save warnings/boilerplate of simple test code
 
19258
ac_outfile=conftest.$ac_objext
 
19259
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19260
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19261
_lt_compiler_boilerplate=`cat conftest.err`
 
19262
$rm conftest*
 
19263
 
 
19264
ac_outfile=conftest.$ac_objext
 
19265
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19266
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19267
_lt_linker_boilerplate=`cat conftest.err`
 
19268
$rm conftest*
 
19269
 
 
19270
 
 
19271
# Allow CC to be a program name with arguments.
 
19272
lt_save_CC="$CC"
 
19273
CC=${RC-"windres"}
 
19274
compiler=$CC
 
19275
compiler_RC=$CC
 
19276
for cc_temp in $compiler""; do
 
19277
  case $cc_temp in
 
19278
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19279
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19280
    \-*) ;;
 
19281
    *) break;;
 
19282
  esac
 
19283
done
 
19284
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19285
 
 
19286
lt_cv_prog_compiler_c_o_RC=yes
 
19287
 
 
19288
# The else clause should only fire when bootstrapping the
 
19289
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19290
# with your package, and you will get complaints that there are
 
19291
# no rules to generate ltmain.sh.
 
19292
if test -f "$ltmain"; then
 
19293
  # See if we are running on zsh, and set the options which allow our commands through
 
19294
  # without removal of \ escapes.
 
19295
  if test -n "${ZSH_VERSION+set}" ; then
 
19296
    setopt NO_GLOB_SUBST
 
19297
  fi
 
19298
  # Now quote all the things that may contain metacharacters while being
 
19299
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19300
  # variables and quote the copies for generation of the libtool script.
 
19301
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19302
    SED SHELL STRIP \
 
19303
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19304
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19305
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19306
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19307
    lt_cv_sys_global_symbol_to_c_name_address \
 
19308
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19309
    old_postinstall_cmds old_postuninstall_cmds \
 
19310
    compiler_RC \
 
19311
    CC_RC \
 
19312
    LD_RC \
 
19313
    lt_prog_compiler_wl_RC \
 
19314
    lt_prog_compiler_pic_RC \
 
19315
    lt_prog_compiler_static_RC \
 
19316
    lt_prog_compiler_no_builtin_flag_RC \
 
19317
    export_dynamic_flag_spec_RC \
 
19318
    thread_safe_flag_spec_RC \
 
19319
    whole_archive_flag_spec_RC \
 
19320
    enable_shared_with_static_runtimes_RC \
 
19321
    old_archive_cmds_RC \
 
19322
    old_archive_from_new_cmds_RC \
 
19323
    predep_objects_RC \
 
19324
    postdep_objects_RC \
 
19325
    predeps_RC \
 
19326
    postdeps_RC \
 
19327
    compiler_lib_search_path_RC \
 
19328
    archive_cmds_RC \
 
19329
    archive_expsym_cmds_RC \
 
19330
    postinstall_cmds_RC \
 
19331
    postuninstall_cmds_RC \
 
19332
    old_archive_from_expsyms_cmds_RC \
 
19333
    allow_undefined_flag_RC \
 
19334
    no_undefined_flag_RC \
 
19335
    export_symbols_cmds_RC \
 
19336
    hardcode_libdir_flag_spec_RC \
 
19337
    hardcode_libdir_flag_spec_ld_RC \
 
19338
    hardcode_libdir_separator_RC \
 
19339
    hardcode_automatic_RC \
 
19340
    module_cmds_RC \
 
19341
    module_expsym_cmds_RC \
 
19342
    lt_cv_prog_compiler_c_o_RC \
 
19343
    exclude_expsyms_RC \
 
19344
    include_expsyms_RC; do
 
19345
 
 
19346
    case $var in
 
19347
    old_archive_cmds_RC | \
 
19348
    old_archive_from_new_cmds_RC | \
 
19349
    archive_cmds_RC | \
 
19350
    archive_expsym_cmds_RC | \
 
19351
    module_cmds_RC | \
 
19352
    module_expsym_cmds_RC | \
 
19353
    old_archive_from_expsyms_cmds_RC | \
 
19354
    export_symbols_cmds_RC | \
 
19355
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19356
    postinstall_cmds | postuninstall_cmds | \
 
19357
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19358
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19359
      # Double-quote double-evaled strings.
 
19360
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19361
      ;;
 
19362
    *)
 
19363
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19364
      ;;
 
19365
    esac
 
19366
  done
 
19367
 
 
19368
  case $lt_echo in
 
19369
  *'\$0 --fallback-echo"')
 
19370
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19371
    ;;
 
19372
  esac
 
19373
 
 
19374
cfgfile="$ofile"
 
19375
 
 
19376
  cat <<__EOF__ >> "$cfgfile"
 
19377
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19378
 
 
19379
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19380
 
 
19381
# Shell to use when invoking shell scripts.
 
19382
SHELL=$lt_SHELL
 
19383
 
 
19384
# Whether or not to build shared libraries.
 
19385
build_libtool_libs=$enable_shared
 
19386
 
 
19387
# Whether or not to build static libraries.
 
19388
build_old_libs=$enable_static
 
19389
 
 
19390
# Whether or not to add -lc for building shared libraries.
 
19391
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19392
 
 
19393
# Whether or not to disallow shared libs when runtime libs are static
 
19394
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19395
 
 
19396
# Whether or not to optimize for fast installation.
 
19397
fast_install=$enable_fast_install
 
19398
 
 
19399
# The host system.
 
19400
host_alias=$host_alias
 
19401
host=$host
 
19402
host_os=$host_os
 
19403
 
 
19404
# The build system.
 
19405
build_alias=$build_alias
 
19406
build=$build
 
19407
build_os=$build_os
 
19408
 
 
19409
# An echo program that does not interpret backslashes.
 
19410
echo=$lt_echo
 
19411
 
 
19412
# The archiver.
 
19413
AR=$lt_AR
 
19414
AR_FLAGS=$lt_AR_FLAGS
 
19415
 
 
19416
# A C compiler.
 
19417
LTCC=$lt_LTCC
 
19418
 
 
19419
# LTCC compiler flags.
 
19420
LTCFLAGS=$lt_LTCFLAGS
 
19421
 
 
19422
# A language-specific compiler.
 
19423
CC=$lt_compiler_RC
 
19424
 
 
19425
# Is the compiler the GNU C compiler?
 
19426
with_gcc=$GCC_RC
 
19427
 
 
19428
# An ERE matcher.
 
19429
EGREP=$lt_EGREP
 
19430
 
 
19431
# The linker used to build libraries.
 
19432
LD=$lt_LD_RC
 
19433
 
 
19434
# Whether we need hard or soft links.
 
19435
LN_S=$lt_LN_S
 
19436
 
 
19437
# A BSD-compatible nm program.
 
19438
NM=$lt_NM
 
19439
 
 
19440
# A symbol stripping program
 
19441
STRIP=$lt_STRIP
 
19442
 
 
19443
# Used to examine libraries when file_magic_cmd begins "file"
 
19444
MAGIC_CMD=$MAGIC_CMD
 
19445
 
 
19446
# Used on cygwin: DLL creation program.
 
19447
DLLTOOL="$DLLTOOL"
 
19448
 
 
19449
# Used on cygwin: object dumper.
 
19450
OBJDUMP="$OBJDUMP"
 
19451
 
 
19452
# Used on cygwin: assembler.
 
19453
AS="$AS"
 
19454
 
 
19455
# The name of the directory that contains temporary libtool files.
 
19456
objdir=$objdir
 
19457
 
 
19458
# How to create reloadable object files.
 
19459
reload_flag=$lt_reload_flag
 
19460
reload_cmds=$lt_reload_cmds
 
19461
 
 
19462
# How to pass a linker flag through the compiler.
 
19463
wl=$lt_lt_prog_compiler_wl_RC
 
19464
 
 
19465
# Object file suffix (normally "o").
 
19466
objext="$ac_objext"
 
19467
 
 
19468
# Old archive suffix (normally "a").
 
19469
libext="$libext"
 
19470
 
 
19471
# Shared library suffix (normally ".so").
 
19472
shrext_cmds='$shrext_cmds'
 
19473
 
 
19474
# Executable file suffix (normally "").
 
19475
exeext="$exeext"
 
19476
 
 
19477
# Additional compiler flags for building library objects.
 
19478
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19479
pic_mode=$pic_mode
 
19480
 
 
19481
# What is the maximum length of a command?
 
19482
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19483
 
 
19484
# Does compiler simultaneously support -c and -o options?
 
19485
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19486
 
 
19487
# Must we lock files when doing compilation?
 
19488
need_locks=$lt_need_locks
 
19489
 
 
19490
# Do we need the lib prefix for modules?
 
19491
need_lib_prefix=$need_lib_prefix
 
19492
 
 
19493
# Do we need a version for libraries?
 
19494
need_version=$need_version
 
19495
 
 
19496
# Whether dlopen is supported.
 
19497
dlopen_support=$enable_dlopen
 
19498
 
 
19499
# Whether dlopen of programs is supported.
 
19500
dlopen_self=$enable_dlopen_self
 
19501
 
 
19502
# Whether dlopen of statically linked programs is supported.
 
19503
dlopen_self_static=$enable_dlopen_self_static
 
19504
 
 
19505
# Compiler flag to prevent dynamic linking.
 
19506
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19507
 
 
19508
# Compiler flag to turn off builtin functions.
 
19509
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19510
 
 
19511
# Compiler flag to allow reflexive dlopens.
 
19512
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19513
 
 
19514
# Compiler flag to generate shared objects directly from archives.
 
19515
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19516
 
 
19517
# Compiler flag to generate thread-safe objects.
 
19518
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19519
 
 
19520
# Library versioning type.
 
19521
version_type=$version_type
 
19522
 
 
19523
# Format of library name prefix.
 
19524
libname_spec=$lt_libname_spec
 
19525
 
 
19526
# List of archive names.  First name is the real one, the rest are links.
 
19527
# The last name is the one that the linker finds with -lNAME.
 
19528
library_names_spec=$lt_library_names_spec
 
19529
 
 
19530
# The coded name of the library, if different from the real name.
 
19531
soname_spec=$lt_soname_spec
 
19532
 
 
19533
# Commands used to build and install an old-style archive.
 
19534
RANLIB=$lt_RANLIB
 
19535
old_archive_cmds=$lt_old_archive_cmds_RC
 
19536
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19537
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19538
 
 
19539
# Create an old-style archive from a shared archive.
 
19540
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19541
 
 
19542
# Create a temporary old-style archive to link instead of a shared archive.
 
19543
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19544
 
 
19545
# Commands used to build and install a shared archive.
 
19546
archive_cmds=$lt_archive_cmds_RC
 
19547
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19548
postinstall_cmds=$lt_postinstall_cmds
 
19549
postuninstall_cmds=$lt_postuninstall_cmds
 
19550
 
 
19551
# Commands used to build a loadable module (assumed same as above if empty)
 
19552
module_cmds=$lt_module_cmds_RC
 
19553
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19554
 
 
19555
# Commands to strip libraries.
 
19556
old_striplib=$lt_old_striplib
 
19557
striplib=$lt_striplib
 
19558
 
 
19559
# Dependencies to place before the objects being linked to create a
 
19560
# shared library.
 
19561
predep_objects=$lt_predep_objects_RC
 
19562
 
 
19563
# Dependencies to place after the objects being linked to create a
 
19564
# shared library.
 
19565
postdep_objects=$lt_postdep_objects_RC
 
19566
 
 
19567
# Dependencies to place before the objects being linked to create a
 
19568
# shared library.
 
19569
predeps=$lt_predeps_RC
 
19570
 
 
19571
# Dependencies to place after the objects being linked to create a
 
19572
# shared library.
 
19573
postdeps=$lt_postdeps_RC
 
19574
 
 
19575
# The library search path used internally by the compiler when linking
 
19576
# a shared library.
 
19577
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19578
 
 
19579
# Method to check whether dependent libraries are shared objects.
 
19580
deplibs_check_method=$lt_deplibs_check_method
 
19581
 
 
19582
# Command to use when deplibs_check_method == file_magic.
 
19583
file_magic_cmd=$lt_file_magic_cmd
 
19584
 
 
19585
# Flag that allows shared libraries with undefined symbols to be built.
 
19586
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19587
 
 
19588
# Flag that forces no undefined symbols.
 
19589
no_undefined_flag=$lt_no_undefined_flag_RC
 
19590
 
 
19591
# Commands used to finish a libtool library installation in a directory.
 
19592
finish_cmds=$lt_finish_cmds
 
19593
 
 
19594
# Same as above, but a single script fragment to be evaled but not shown.
 
19595
finish_eval=$lt_finish_eval
 
19596
 
 
19597
# Take the output of nm and produce a listing of raw symbols and C names.
 
19598
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19599
 
 
19600
# Transform the output of nm in a proper C declaration
 
19601
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19602
 
 
19603
# Transform the output of nm in a C name address pair
 
19604
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19605
 
 
19606
# This is the shared library runtime path variable.
 
19607
runpath_var=$runpath_var
 
19608
 
 
19609
# This is the shared library path variable.
 
19610
shlibpath_var=$shlibpath_var
 
19611
 
 
19612
# Is shlibpath searched before the hard-coded library search path?
 
19613
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19614
 
 
19615
# How to hardcode a shared library path into an executable.
 
19616
hardcode_action=$hardcode_action_RC
 
19617
 
 
19618
# Whether we should hardcode library paths into libraries.
 
19619
hardcode_into_libs=$hardcode_into_libs
 
19620
 
 
19621
# Flag to hardcode \$libdir into a binary during linking.
 
19622
# This must work even if \$libdir does not exist.
 
19623
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19624
 
 
19625
# If ld is used when linking, flag to hardcode \$libdir into
 
19626
# a binary during linking. This must work even if \$libdir does
 
19627
# not exist.
 
19628
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19629
 
 
19630
# Whether we need a single -rpath flag with a separated argument.
 
19631
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19632
 
 
19633
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19634
# resulting binary.
 
19635
hardcode_direct=$hardcode_direct_RC
 
19636
 
 
19637
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19638
# resulting binary.
 
19639
hardcode_minus_L=$hardcode_minus_L_RC
 
19640
 
 
19641
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19642
# the resulting binary.
 
19643
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19644
 
 
19645
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19646
# and all subsequent libraries and executables linked against it.
 
19647
hardcode_automatic=$hardcode_automatic_RC
 
19648
 
 
19649
# Variables whose values should be saved in libtool wrapper scripts and
 
19650
# restored at relink time.
 
19651
variables_saved_for_relink="$variables_saved_for_relink"
 
19652
 
 
19653
# Whether libtool must link a program against all its dependency libraries.
 
19654
link_all_deplibs=$link_all_deplibs_RC
 
19655
 
 
19656
# Compile-time system search path for libraries
 
19657
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19658
 
 
19659
# Run-time system search path for libraries
 
19660
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19661
 
 
19662
# Fix the shell variable \$srcfile for the compiler.
 
19663
fix_srcfile_path="$fix_srcfile_path_RC"
 
19664
 
 
19665
# Set to yes if exported symbols are required.
 
19666
always_export_symbols=$always_export_symbols_RC
 
19667
 
 
19668
# The commands to list exported symbols.
 
19669
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19670
 
 
19671
# The commands to extract the exported symbol list from a shared archive.
 
19672
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19673
 
 
19674
# Symbols that should not be listed in the preloaded symbols.
 
19675
exclude_expsyms=$lt_exclude_expsyms_RC
 
19676
 
 
19677
# Symbols that must always be exported.
 
19678
include_expsyms=$lt_include_expsyms_RC
 
19679
 
 
19680
# ### END LIBTOOL TAG CONFIG: $tagname
 
19681
 
 
19682
__EOF__
 
19683
 
 
19684
 
 
19685
else
 
19686
  # If there is no Makefile yet, we rely on a make rule to execute
 
19687
  # `config.status --recheck' to rerun these tests and create the
 
19688
  # libtool script then.
 
19689
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19690
  if test -f "$ltmain_in"; then
 
19691
    test -f Makefile && make "$ltmain"
 
19692
  fi
 
19693
fi
 
19694
 
 
19695
 
 
19696
ac_ext=c
 
19697
ac_cpp='$CPP $CPPFLAGS'
 
19698
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19699
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19700
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19701
 
 
19702
CC="$lt_save_CC"
 
19703
 
 
19704
        ;;
 
19705
 
 
19706
      *)
 
19707
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19708
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19709
   { (exit 1); exit 1; }; }
 
19710
        ;;
 
19711
      esac
 
19712
 
 
19713
      # Append the new tag name to the list of available tags.
 
19714
      if test -n "$tagname" ; then
 
19715
      available_tags="$available_tags $tagname"
 
19716
    fi
 
19717
    fi
 
19718
  done
 
19719
  IFS="$lt_save_ifs"
 
19720
 
 
19721
  # Now substitute the updated list of available tags.
 
19722
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19723
    mv "${ofile}T" "$ofile"
 
19724
    chmod +x "$ofile"
 
19725
  else
 
19726
    rm -f "${ofile}T"
 
19727
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19728
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19729
   { (exit 1); exit 1; }; }
 
19730
  fi
 
19731
fi
 
19732
 
 
19733
 
 
19734
 
 
19735
# This can be used to rebuild libtool when needed
 
19736
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19737
 
 
19738
# Always use our own libtool.
 
19739
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19740
 
 
19741
# Prevent multiple expansion
 
19742
 
 
19743
 
 
19744
 
 
19745
 
 
19746
 
 
19747
 
 
19748
 
 
19749
 
 
19750
 
 
19751
 
 
19752
 
 
19753
 
 
19754
 
 
19755
 
 
19756
 
 
19757
 
 
19758
 
 
19759
 
 
19760
 
 
19761
 
 
19762
 
 
19763
# Extract the first word of "test", so it can be a program name with args.
 
19764
set dummy test; ac_word=$2
 
19765
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19767
if test "${ac_cv_path_TEST+set}" = set; then
 
19768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19769
else
 
19770
  case $TEST in
 
19771
  [\\/]* | ?:[\\/]*)
 
19772
  ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
 
19773
  ;;
 
19774
  *)
 
19775
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19776
for as_dir in $PATH
 
19777
do
 
19778
  IFS=$as_save_IFS
 
19779
  test -z "$as_dir" && as_dir=.
 
19780
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19781
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19782
    ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
 
19783
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19784
    break 2
 
19785
  fi
 
19786
done
 
19787
done
 
19788
IFS=$as_save_IFS
 
19789
 
 
19790
  test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="$PATH"
 
19791
  ;;
 
19792
esac
 
19793
fi
 
19794
TEST=$ac_cv_path_TEST
 
19795
if test -n "$TEST"; then
 
19796
  { echo "$as_me:$LINENO: result: $TEST" >&5
 
19797
echo "${ECHO_T}$TEST" >&6; }
 
19798
else
 
19799
  { echo "$as_me:$LINENO: result: no" >&5
 
19800
echo "${ECHO_T}no" >&6; }
 
19801
fi
 
19802
 
 
19803
 
 
19804
 
 
19805
# Extract the first word of "rm", so it can be a program name with args.
 
19806
set dummy rm; ac_word=$2
 
19807
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19808
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19809
if test "${ac_cv_path_RM+set}" = set; then
 
19810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19811
else
 
19812
  case $RM in
 
19813
  [\\/]* | ?:[\\/]*)
 
19814
  ac_cv_path_RM="$RM" # Let the user override the test with a path.
 
19815
  ;;
 
19816
  *)
 
19817
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19818
for as_dir in $PATH
 
19819
do
 
19820
  IFS=$as_save_IFS
 
19821
  test -z "$as_dir" && as_dir=.
 
19822
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19823
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19824
    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
 
19825
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19826
    break 2
 
19827
  fi
 
19828
done
 
19829
done
 
19830
IFS=$as_save_IFS
 
19831
 
 
19832
  test -z "$ac_cv_path_RM" && ac_cv_path_RM="$PATH"
 
19833
  ;;
 
19834
esac
 
19835
fi
 
19836
RM=$ac_cv_path_RM
 
19837
if test -n "$RM"; then
 
19838
  { echo "$as_me:$LINENO: result: $RM" >&5
 
19839
echo "${ECHO_T}$RM" >&6; }
 
19840
else
 
19841
  { echo "$as_me:$LINENO: result: no" >&5
 
19842
echo "${ECHO_T}no" >&6; }
 
19843
fi
 
19844
 
 
19845
 
 
19846
 
 
19847
# Extract the first word of "grep", so it can be a program name with args.
 
19848
set dummy grep; ac_word=$2
 
19849
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19850
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19851
if test "${ac_cv_path_GREP+set}" = set; then
 
19852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19853
else
 
19854
  case $GREP in
 
19855
  [\\/]* | ?:[\\/]*)
 
19856
  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
 
19857
  ;;
 
19858
  *)
 
19859
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19860
for as_dir in $PATH
 
19861
do
 
19862
  IFS=$as_save_IFS
 
19863
  test -z "$as_dir" && as_dir=.
 
19864
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19865
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19866
    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
 
19867
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19868
    break 2
 
19869
  fi
 
19870
done
 
19871
done
 
19872
IFS=$as_save_IFS
 
19873
 
 
19874
  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="$PATH"
 
19875
  ;;
 
19876
esac
 
19877
fi
 
19878
GREP=$ac_cv_path_GREP
 
19879
if test -n "$GREP"; then
 
19880
  { echo "$as_me:$LINENO: result: $GREP" >&5
 
19881
echo "${ECHO_T}$GREP" >&6; }
 
19882
else
 
19883
  { echo "$as_me:$LINENO: result: no" >&5
 
19884
echo "${ECHO_T}no" >&6; }
 
19885
fi
 
19886
 
 
19887
 
 
19888
 
 
19889
# Extract the first word of "echo", so it can be a program name with args.
 
19890
set dummy echo; ac_word=$2
 
19891
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19893
if test "${ac_cv_path_ECHO+set}" = set; then
 
19894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19895
else
 
19896
  case $ECHO in
 
19897
  [\\/]* | ?:[\\/]*)
 
19898
  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
 
19899
  ;;
 
19900
  *)
 
19901
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19902
for as_dir in $PATH
 
19903
do
 
19904
  IFS=$as_save_IFS
 
19905
  test -z "$as_dir" && as_dir=.
 
19906
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19907
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19908
    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
 
19909
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19910
    break 2
 
19911
  fi
 
19912
done
 
19913
done
 
19914
IFS=$as_save_IFS
 
19915
 
 
19916
  test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
 
19917
  ;;
 
19918
esac
 
19919
fi
 
19920
ECHO=$ac_cv_path_ECHO
 
19921
if test -n "$ECHO"; then
 
19922
  { echo "$as_me:$LINENO: result: $ECHO" >&5
 
19923
echo "${ECHO_T}$ECHO" >&6; }
 
19924
else
 
19925
  { echo "$as_me:$LINENO: result: no" >&5
 
19926
echo "${ECHO_T}no" >&6; }
 
19927
fi
 
19928
 
 
19929
 
 
19930
 
 
19931
# Extract the first word of "sed", so it can be a program name with args.
 
19932
set dummy sed; ac_word=$2
 
19933
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19935
if test "${ac_cv_path_SED+set}" = set; then
 
19936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19937
else
 
19938
  case $SED in
 
19939
  [\\/]* | ?:[\\/]*)
 
19940
  ac_cv_path_SED="$SED" # Let the user override the test with a path.
 
19941
  ;;
 
19942
  *)
 
19943
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19944
for as_dir in $PATH
 
19945
do
 
19946
  IFS=$as_save_IFS
 
19947
  test -z "$as_dir" && as_dir=.
 
19948
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19949
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19950
    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
 
19951
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19952
    break 2
 
19953
  fi
 
19954
done
 
19955
done
 
19956
IFS=$as_save_IFS
 
19957
 
 
19958
  test -z "$ac_cv_path_SED" && ac_cv_path_SED="$PATH"
 
19959
  ;;
 
19960
esac
 
19961
fi
 
19962
SED=$ac_cv_path_SED
 
19963
if test -n "$SED"; then
 
19964
  { echo "$as_me:$LINENO: result: $SED" >&5
 
19965
echo "${ECHO_T}$SED" >&6; }
 
19966
else
 
19967
  { echo "$as_me:$LINENO: result: no" >&5
 
19968
echo "${ECHO_T}no" >&6; }
 
19969
fi
 
19970
 
 
19971
 
 
19972
 
 
19973
# Extract the first word of "cp", so it can be a program name with args.
 
19974
set dummy cp; ac_word=$2
 
19975
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19977
if test "${ac_cv_path_CP+set}" = set; then
 
19978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19979
else
 
19980
  case $CP in
 
19981
  [\\/]* | ?:[\\/]*)
 
19982
  ac_cv_path_CP="$CP" # Let the user override the test with a path.
 
19983
  ;;
 
19984
  *)
 
19985
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19986
for as_dir in $PATH
 
19987
do
 
19988
  IFS=$as_save_IFS
 
19989
  test -z "$as_dir" && as_dir=.
 
19990
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19991
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19992
    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
 
19993
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19994
    break 2
 
19995
  fi
 
19996
done
 
19997
done
 
19998
IFS=$as_save_IFS
 
19999
 
 
20000
  test -z "$ac_cv_path_CP" && ac_cv_path_CP="$PATH"
 
20001
  ;;
 
20002
esac
 
20003
fi
 
20004
CP=$ac_cv_path_CP
 
20005
if test -n "$CP"; then
 
20006
  { echo "$as_me:$LINENO: result: $CP" >&5
 
20007
echo "${ECHO_T}$CP" >&6; }
 
20008
else
 
20009
  { echo "$as_me:$LINENO: result: no" >&5
 
20010
echo "${ECHO_T}no" >&6; }
 
20011
fi
 
20012
 
 
20013
 
 
20014
 
 
20015
# Extract the first word of "mkdir", so it can be a program name with args.
 
20016
set dummy mkdir; ac_word=$2
 
20017
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20018
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20019
if test "${ac_cv_path_MKDIR+set}" = set; then
 
20020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20021
else
 
20022
  case $MKDIR in
 
20023
  [\\/]* | ?:[\\/]*)
 
20024
  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
 
20025
  ;;
 
20026
  *)
 
20027
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20028
for as_dir in $PATH
 
20029
do
 
20030
  IFS=$as_save_IFS
 
20031
  test -z "$as_dir" && as_dir=.
 
20032
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20033
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20034
    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
 
20035
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20036
    break 2
 
20037
  fi
 
20038
done
 
20039
done
 
20040
IFS=$as_save_IFS
 
20041
 
 
20042
  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$PATH"
 
20043
  ;;
 
20044
esac
 
20045
fi
 
20046
MKDIR=$ac_cv_path_MKDIR
 
20047
if test -n "$MKDIR"; then
 
20048
  { echo "$as_me:$LINENO: result: $MKDIR" >&5
 
20049
echo "${ECHO_T}$MKDIR" >&6; }
 
20050
else
 
20051
  { echo "$as_me:$LINENO: result: no" >&5
 
20052
echo "${ECHO_T}no" >&6; }
 
20053
fi
 
20054
 
 
20055
 
 
20056
 
 
20057
 
 
20058
 
 
20059
 
 
20060
{ echo "$as_me:$LINENO: checking for char" >&5
 
20061
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
 
20062
if test "${ac_cv_type_char+set}" = set; then
 
20063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20064
else
 
20065
  cat >conftest.$ac_ext <<_ACEOF
 
20066
/* confdefs.h.  */
 
20067
_ACEOF
 
20068
cat confdefs.h >>conftest.$ac_ext
 
20069
cat >>conftest.$ac_ext <<_ACEOF
 
20070
/* end confdefs.h.  */
 
20071
$ac_includes_default
 
20072
typedef char ac__type_new_;
 
20073
int
 
20074
main ()
 
20075
{
 
20076
if ((ac__type_new_ *) 0)
 
20077
  return 0;
 
20078
if (sizeof (ac__type_new_))
 
20079
  return 0;
 
20080
  ;
 
20081
  return 0;
 
20082
}
 
20083
_ACEOF
 
20084
rm -f conftest.$ac_objext
 
20085
if { (ac_try="$ac_compile"
 
20086
case "(($ac_try" in
 
20087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20088
  *) ac_try_echo=$ac_try;;
 
20089
esac
 
20090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20091
  (eval "$ac_compile") 2>conftest.er1
 
20092
  ac_status=$?
 
20093
  grep -v '^ *+' conftest.er1 >conftest.err
 
20094
  rm -f conftest.er1
 
20095
  cat conftest.err >&5
 
20096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20097
  (exit $ac_status); } &&
 
20098
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20099
  { (case "(($ac_try" in
 
20100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20101
  *) ac_try_echo=$ac_try;;
 
20102
esac
 
20103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20104
  (eval "$ac_try") 2>&5
 
20105
  ac_status=$?
 
20106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20107
  (exit $ac_status); }; } &&
 
20108
         { ac_try='test -s conftest.$ac_objext'
 
20109
  { (case "(($ac_try" in
 
20110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20111
  *) ac_try_echo=$ac_try;;
 
20112
esac
 
20113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20114
  (eval "$ac_try") 2>&5
 
20115
  ac_status=$?
 
20116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20117
  (exit $ac_status); }; }; then
 
20118
  ac_cv_type_char=yes
 
20119
else
 
20120
  echo "$as_me: failed program was:" >&5
 
20121
sed 's/^/| /' conftest.$ac_ext >&5
 
20122
 
 
20123
        ac_cv_type_char=no
 
20124
fi
 
20125
 
 
20126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20127
fi
 
20128
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
 
20129
echo "${ECHO_T}$ac_cv_type_char" >&6; }
 
20130
 
 
20131
{ echo "$as_me:$LINENO: checking size of char" >&5
 
20132
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
 
20133
if test "${ac_cv_sizeof_char+set}" = set; then
 
20134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20135
else
 
20136
  if test "$ac_cv_type_char" = yes; then
 
20137
  # The cast to long int works around a bug in the HP C Compiler
 
20138
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
20139
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
20140
  # This bug is HP SR number 8606223364.
 
20141
  if test "$cross_compiling" = yes; then
 
20142
  # Depending upon the size, compute the lo and hi bounds.
 
20143
cat >conftest.$ac_ext <<_ACEOF
 
20144
/* confdefs.h.  */
 
20145
_ACEOF
 
20146
cat confdefs.h >>conftest.$ac_ext
 
20147
cat >>conftest.$ac_ext <<_ACEOF
 
20148
/* end confdefs.h.  */
 
20149
$ac_includes_default
 
20150
                   typedef char ac__type_sizeof_;
 
20151
int
 
20152
main ()
 
20153
{
 
20154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
20155
test_array [0] = 0
 
20156
 
 
20157
  ;
 
20158
  return 0;
 
20159
}
 
20160
_ACEOF
 
20161
rm -f conftest.$ac_objext
 
20162
if { (ac_try="$ac_compile"
 
20163
case "(($ac_try" in
 
20164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20165
  *) ac_try_echo=$ac_try;;
 
20166
esac
 
20167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20168
  (eval "$ac_compile") 2>conftest.er1
 
20169
  ac_status=$?
 
20170
  grep -v '^ *+' conftest.er1 >conftest.err
 
20171
  rm -f conftest.er1
 
20172
  cat conftest.err >&5
 
20173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20174
  (exit $ac_status); } &&
 
20175
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20176
  { (case "(($ac_try" in
 
20177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20178
  *) ac_try_echo=$ac_try;;
 
20179
esac
 
20180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20181
  (eval "$ac_try") 2>&5
 
20182
  ac_status=$?
 
20183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20184
  (exit $ac_status); }; } &&
 
20185
         { ac_try='test -s conftest.$ac_objext'
 
20186
  { (case "(($ac_try" in
 
20187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20188
  *) ac_try_echo=$ac_try;;
 
20189
esac
 
20190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20191
  (eval "$ac_try") 2>&5
 
20192
  ac_status=$?
 
20193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20194
  (exit $ac_status); }; }; then
 
20195
  ac_lo=0 ac_mid=0
 
20196
  while :; do
 
20197
    cat >conftest.$ac_ext <<_ACEOF
 
20198
/* confdefs.h.  */
 
20199
_ACEOF
 
20200
cat confdefs.h >>conftest.$ac_ext
 
20201
cat >>conftest.$ac_ext <<_ACEOF
 
20202
/* end confdefs.h.  */
 
20203
$ac_includes_default
 
20204
                   typedef char ac__type_sizeof_;
 
20205
int
 
20206
main ()
 
20207
{
 
20208
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20209
test_array [0] = 0
 
20210
 
 
20211
  ;
 
20212
  return 0;
 
20213
}
 
20214
_ACEOF
 
20215
rm -f conftest.$ac_objext
 
20216
if { (ac_try="$ac_compile"
 
20217
case "(($ac_try" in
 
20218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20219
  *) ac_try_echo=$ac_try;;
 
20220
esac
 
20221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20222
  (eval "$ac_compile") 2>conftest.er1
 
20223
  ac_status=$?
 
20224
  grep -v '^ *+' conftest.er1 >conftest.err
 
20225
  rm -f conftest.er1
 
20226
  cat conftest.err >&5
 
20227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20228
  (exit $ac_status); } &&
 
20229
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20230
  { (case "(($ac_try" in
 
20231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20232
  *) ac_try_echo=$ac_try;;
 
20233
esac
 
20234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20235
  (eval "$ac_try") 2>&5
 
20236
  ac_status=$?
 
20237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20238
  (exit $ac_status); }; } &&
 
20239
         { ac_try='test -s conftest.$ac_objext'
 
20240
  { (case "(($ac_try" in
 
20241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20242
  *) ac_try_echo=$ac_try;;
 
20243
esac
 
20244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20245
  (eval "$ac_try") 2>&5
 
20246
  ac_status=$?
 
20247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20248
  (exit $ac_status); }; }; then
 
20249
  ac_hi=$ac_mid; break
 
20250
else
 
20251
  echo "$as_me: failed program was:" >&5
 
20252
sed 's/^/| /' conftest.$ac_ext >&5
 
20253
 
 
20254
        ac_lo=`expr $ac_mid + 1`
 
20255
                        if test $ac_lo -le $ac_mid; then
 
20256
                          ac_lo= ac_hi=
 
20257
                          break
 
20258
                        fi
 
20259
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
20260
fi
 
20261
 
 
20262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20263
  done
 
20264
else
 
20265
  echo "$as_me: failed program was:" >&5
 
20266
sed 's/^/| /' conftest.$ac_ext >&5
 
20267
 
 
20268
        cat >conftest.$ac_ext <<_ACEOF
 
20269
/* confdefs.h.  */
 
20270
_ACEOF
 
20271
cat confdefs.h >>conftest.$ac_ext
 
20272
cat >>conftest.$ac_ext <<_ACEOF
 
20273
/* end confdefs.h.  */
 
20274
$ac_includes_default
 
20275
                   typedef char ac__type_sizeof_;
 
20276
int
 
20277
main ()
 
20278
{
 
20279
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
20280
test_array [0] = 0
 
20281
 
 
20282
  ;
 
20283
  return 0;
 
20284
}
 
20285
_ACEOF
 
20286
rm -f conftest.$ac_objext
 
20287
if { (ac_try="$ac_compile"
 
20288
case "(($ac_try" in
 
20289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20290
  *) ac_try_echo=$ac_try;;
 
20291
esac
 
20292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20293
  (eval "$ac_compile") 2>conftest.er1
 
20294
  ac_status=$?
 
20295
  grep -v '^ *+' conftest.er1 >conftest.err
 
20296
  rm -f conftest.er1
 
20297
  cat conftest.err >&5
 
20298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20299
  (exit $ac_status); } &&
 
20300
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20301
  { (case "(($ac_try" in
 
20302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20303
  *) ac_try_echo=$ac_try;;
 
20304
esac
 
20305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20306
  (eval "$ac_try") 2>&5
 
20307
  ac_status=$?
 
20308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20309
  (exit $ac_status); }; } &&
 
20310
         { ac_try='test -s conftest.$ac_objext'
 
20311
  { (case "(($ac_try" in
 
20312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20313
  *) ac_try_echo=$ac_try;;
 
20314
esac
 
20315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20316
  (eval "$ac_try") 2>&5
 
20317
  ac_status=$?
 
20318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20319
  (exit $ac_status); }; }; then
 
20320
  ac_hi=-1 ac_mid=-1
 
20321
  while :; do
 
20322
    cat >conftest.$ac_ext <<_ACEOF
 
20323
/* confdefs.h.  */
 
20324
_ACEOF
 
20325
cat confdefs.h >>conftest.$ac_ext
 
20326
cat >>conftest.$ac_ext <<_ACEOF
 
20327
/* end confdefs.h.  */
 
20328
$ac_includes_default
 
20329
                   typedef char ac__type_sizeof_;
 
20330
int
 
20331
main ()
 
20332
{
 
20333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
20334
test_array [0] = 0
 
20335
 
 
20336
  ;
 
20337
  return 0;
 
20338
}
 
20339
_ACEOF
 
20340
rm -f conftest.$ac_objext
 
20341
if { (ac_try="$ac_compile"
 
20342
case "(($ac_try" in
 
20343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20344
  *) ac_try_echo=$ac_try;;
 
20345
esac
 
20346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20347
  (eval "$ac_compile") 2>conftest.er1
 
20348
  ac_status=$?
 
20349
  grep -v '^ *+' conftest.er1 >conftest.err
 
20350
  rm -f conftest.er1
 
20351
  cat conftest.err >&5
 
20352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20353
  (exit $ac_status); } &&
 
20354
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20355
  { (case "(($ac_try" in
 
20356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20357
  *) ac_try_echo=$ac_try;;
 
20358
esac
 
20359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20360
  (eval "$ac_try") 2>&5
 
20361
  ac_status=$?
 
20362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20363
  (exit $ac_status); }; } &&
 
20364
         { ac_try='test -s conftest.$ac_objext'
 
20365
  { (case "(($ac_try" in
 
20366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20367
  *) ac_try_echo=$ac_try;;
 
20368
esac
 
20369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20370
  (eval "$ac_try") 2>&5
 
20371
  ac_status=$?
 
20372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20373
  (exit $ac_status); }; }; then
 
20374
  ac_lo=$ac_mid; break
 
20375
else
 
20376
  echo "$as_me: failed program was:" >&5
 
20377
sed 's/^/| /' conftest.$ac_ext >&5
 
20378
 
 
20379
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
20380
                        if test $ac_mid -le $ac_hi; then
 
20381
                          ac_lo= ac_hi=
 
20382
                          break
 
20383
                        fi
 
20384
                        ac_mid=`expr 2 '*' $ac_mid`
 
20385
fi
 
20386
 
 
20387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20388
  done
 
20389
else
 
20390
  echo "$as_me: failed program was:" >&5
 
20391
sed 's/^/| /' conftest.$ac_ext >&5
 
20392
 
 
20393
        ac_lo= ac_hi=
 
20394
fi
 
20395
 
 
20396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20397
fi
 
20398
 
 
20399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20400
# Binary search between lo and hi bounds.
 
20401
while test "x$ac_lo" != "x$ac_hi"; do
 
20402
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
20403
  cat >conftest.$ac_ext <<_ACEOF
 
20404
/* confdefs.h.  */
 
20405
_ACEOF
 
20406
cat confdefs.h >>conftest.$ac_ext
 
20407
cat >>conftest.$ac_ext <<_ACEOF
 
20408
/* end confdefs.h.  */
 
20409
$ac_includes_default
 
20410
                   typedef char ac__type_sizeof_;
 
20411
int
 
20412
main ()
 
20413
{
 
20414
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20415
test_array [0] = 0
 
20416
 
 
20417
  ;
 
20418
  return 0;
 
20419
}
 
20420
_ACEOF
 
20421
rm -f conftest.$ac_objext
 
20422
if { (ac_try="$ac_compile"
 
20423
case "(($ac_try" in
 
20424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20425
  *) ac_try_echo=$ac_try;;
 
20426
esac
 
20427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20428
  (eval "$ac_compile") 2>conftest.er1
 
20429
  ac_status=$?
 
20430
  grep -v '^ *+' conftest.er1 >conftest.err
 
20431
  rm -f conftest.er1
 
20432
  cat conftest.err >&5
 
20433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20434
  (exit $ac_status); } &&
 
20435
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20436
  { (case "(($ac_try" in
 
20437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20438
  *) ac_try_echo=$ac_try;;
 
20439
esac
 
20440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20441
  (eval "$ac_try") 2>&5
 
20442
  ac_status=$?
 
20443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20444
  (exit $ac_status); }; } &&
 
20445
         { ac_try='test -s conftest.$ac_objext'
 
20446
  { (case "(($ac_try" in
 
20447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20448
  *) ac_try_echo=$ac_try;;
 
20449
esac
 
20450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20451
  (eval "$ac_try") 2>&5
 
20452
  ac_status=$?
 
20453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20454
  (exit $ac_status); }; }; then
 
20455
  ac_hi=$ac_mid
 
20456
else
 
20457
  echo "$as_me: failed program was:" >&5
 
20458
sed 's/^/| /' conftest.$ac_ext >&5
 
20459
 
 
20460
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
20461
fi
 
20462
 
 
20463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20464
done
 
20465
case $ac_lo in
 
20466
?*) ac_cv_sizeof_char=$ac_lo;;
 
20467
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
 
20468
See \`config.log' for more details." >&5
 
20469
echo "$as_me: error: cannot compute sizeof (char)
 
20470
See \`config.log' for more details." >&2;}
 
20471
   { (exit 77); exit 77; }; } ;;
 
20472
esac
 
20473
else
 
20474
  cat >conftest.$ac_ext <<_ACEOF
 
20475
/* confdefs.h.  */
 
20476
_ACEOF
 
20477
cat confdefs.h >>conftest.$ac_ext
 
20478
cat >>conftest.$ac_ext <<_ACEOF
 
20479
/* end confdefs.h.  */
 
20480
$ac_includes_default
 
20481
                   typedef char ac__type_sizeof_;
 
20482
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
20483
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
20484
#include <stdio.h>
 
20485
#include <stdlib.h>
 
20486
int
 
20487
main ()
 
20488
{
 
20489
 
 
20490
  FILE *f = fopen ("conftest.val", "w");
 
20491
  if (! f)
 
20492
    return 1;
 
20493
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
20494
    {
 
20495
      long int i = longval ();
 
20496
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
20497
        return 1;
 
20498
      fprintf (f, "%ld\n", i);
 
20499
    }
 
20500
  else
 
20501
    {
 
20502
      unsigned long int i = ulongval ();
 
20503
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
20504
        return 1;
 
20505
      fprintf (f, "%lu\n", i);
 
20506
    }
 
20507
  return ferror (f) || fclose (f) != 0;
 
20508
 
 
20509
  ;
 
20510
  return 0;
 
20511
}
 
20512
_ACEOF
 
20513
rm -f conftest$ac_exeext
 
20514
if { (ac_try="$ac_link"
 
20515
case "(($ac_try" in
 
20516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20517
  *) ac_try_echo=$ac_try;;
 
20518
esac
 
20519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20520
  (eval "$ac_link") 2>&5
 
20521
  ac_status=$?
 
20522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20523
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20524
  { (case "(($ac_try" in
 
20525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20526
  *) ac_try_echo=$ac_try;;
 
20527
esac
 
20528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20529
  (eval "$ac_try") 2>&5
 
20530
  ac_status=$?
 
20531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20532
  (exit $ac_status); }; }; then
 
20533
  ac_cv_sizeof_char=`cat conftest.val`
 
20534
else
 
20535
  echo "$as_me: program exited with status $ac_status" >&5
 
20536
echo "$as_me: failed program was:" >&5
 
20537
sed 's/^/| /' conftest.$ac_ext >&5
 
20538
 
 
20539
( exit $ac_status )
 
20540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
 
20541
See \`config.log' for more details." >&5
 
20542
echo "$as_me: error: cannot compute sizeof (char)
 
20543
See \`config.log' for more details." >&2;}
 
20544
   { (exit 77); exit 77; }; }
 
20545
fi
 
20546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20547
fi
 
20548
rm -f conftest.val
 
20549
else
 
20550
  ac_cv_sizeof_char=0
 
20551
fi
 
20552
fi
 
20553
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
 
20554
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
 
20555
cat >>confdefs.h <<_ACEOF
 
20556
#define SIZEOF_CHAR $ac_cv_sizeof_char
 
20557
_ACEOF
 
20558
 
 
20559
 
 
20560
{ echo "$as_me:$LINENO: checking for int" >&5
 
20561
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
 
20562
if test "${ac_cv_type_int+set}" = set; then
 
20563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20564
else
 
20565
  cat >conftest.$ac_ext <<_ACEOF
 
20566
/* confdefs.h.  */
 
20567
_ACEOF
 
20568
cat confdefs.h >>conftest.$ac_ext
 
20569
cat >>conftest.$ac_ext <<_ACEOF
 
20570
/* end confdefs.h.  */
 
20571
$ac_includes_default
 
20572
typedef int ac__type_new_;
 
20573
int
 
20574
main ()
 
20575
{
 
20576
if ((ac__type_new_ *) 0)
 
20577
  return 0;
 
20578
if (sizeof (ac__type_new_))
 
20579
  return 0;
 
20580
  ;
 
20581
  return 0;
 
20582
}
 
20583
_ACEOF
 
20584
rm -f conftest.$ac_objext
 
20585
if { (ac_try="$ac_compile"
 
20586
case "(($ac_try" in
 
20587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20588
  *) ac_try_echo=$ac_try;;
 
20589
esac
 
20590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20591
  (eval "$ac_compile") 2>conftest.er1
 
20592
  ac_status=$?
 
20593
  grep -v '^ *+' conftest.er1 >conftest.err
 
20594
  rm -f conftest.er1
 
20595
  cat conftest.err >&5
 
20596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20597
  (exit $ac_status); } &&
 
20598
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20599
  { (case "(($ac_try" in
 
20600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20601
  *) ac_try_echo=$ac_try;;
 
20602
esac
 
20603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20604
  (eval "$ac_try") 2>&5
 
20605
  ac_status=$?
 
20606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20607
  (exit $ac_status); }; } &&
 
20608
         { ac_try='test -s conftest.$ac_objext'
 
20609
  { (case "(($ac_try" in
 
20610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20611
  *) ac_try_echo=$ac_try;;
 
20612
esac
 
20613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20614
  (eval "$ac_try") 2>&5
 
20615
  ac_status=$?
 
20616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20617
  (exit $ac_status); }; }; then
 
20618
  ac_cv_type_int=yes
 
20619
else
 
20620
  echo "$as_me: failed program was:" >&5
 
20621
sed 's/^/| /' conftest.$ac_ext >&5
 
20622
 
 
20623
        ac_cv_type_int=no
 
20624
fi
 
20625
 
 
20626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20627
fi
 
20628
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
20629
echo "${ECHO_T}$ac_cv_type_int" >&6; }
 
20630
 
 
20631
{ echo "$as_me:$LINENO: checking size of int" >&5
 
20632
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
 
20633
if test "${ac_cv_sizeof_int+set}" = set; then
 
20634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20635
else
 
20636
  if test "$ac_cv_type_int" = yes; then
 
20637
  # The cast to long int works around a bug in the HP C Compiler
 
20638
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
20639
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
20640
  # This bug is HP SR number 8606223364.
 
20641
  if test "$cross_compiling" = yes; then
 
20642
  # Depending upon the size, compute the lo and hi bounds.
 
20643
cat >conftest.$ac_ext <<_ACEOF
 
20644
/* confdefs.h.  */
 
20645
_ACEOF
 
20646
cat confdefs.h >>conftest.$ac_ext
 
20647
cat >>conftest.$ac_ext <<_ACEOF
 
20648
/* end confdefs.h.  */
 
20649
$ac_includes_default
 
20650
                   typedef int ac__type_sizeof_;
 
20651
int
 
20652
main ()
 
20653
{
 
20654
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
20655
test_array [0] = 0
 
20656
 
 
20657
  ;
 
20658
  return 0;
 
20659
}
 
20660
_ACEOF
 
20661
rm -f conftest.$ac_objext
 
20662
if { (ac_try="$ac_compile"
 
20663
case "(($ac_try" in
 
20664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20665
  *) ac_try_echo=$ac_try;;
 
20666
esac
 
20667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20668
  (eval "$ac_compile") 2>conftest.er1
 
20669
  ac_status=$?
 
20670
  grep -v '^ *+' conftest.er1 >conftest.err
 
20671
  rm -f conftest.er1
 
20672
  cat conftest.err >&5
 
20673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20674
  (exit $ac_status); } &&
 
20675
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20676
  { (case "(($ac_try" in
 
20677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20678
  *) ac_try_echo=$ac_try;;
 
20679
esac
 
20680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20681
  (eval "$ac_try") 2>&5
 
20682
  ac_status=$?
 
20683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20684
  (exit $ac_status); }; } &&
 
20685
         { ac_try='test -s conftest.$ac_objext'
 
20686
  { (case "(($ac_try" in
 
20687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20688
  *) ac_try_echo=$ac_try;;
 
20689
esac
 
20690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20691
  (eval "$ac_try") 2>&5
 
20692
  ac_status=$?
 
20693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20694
  (exit $ac_status); }; }; then
 
20695
  ac_lo=0 ac_mid=0
 
20696
  while :; do
 
20697
    cat >conftest.$ac_ext <<_ACEOF
 
20698
/* confdefs.h.  */
 
20699
_ACEOF
 
20700
cat confdefs.h >>conftest.$ac_ext
 
20701
cat >>conftest.$ac_ext <<_ACEOF
 
20702
/* end confdefs.h.  */
 
20703
$ac_includes_default
 
20704
                   typedef int ac__type_sizeof_;
 
20705
int
 
20706
main ()
 
20707
{
 
20708
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20709
test_array [0] = 0
 
20710
 
 
20711
  ;
 
20712
  return 0;
 
20713
}
 
20714
_ACEOF
 
20715
rm -f conftest.$ac_objext
 
20716
if { (ac_try="$ac_compile"
 
20717
case "(($ac_try" in
 
20718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20719
  *) ac_try_echo=$ac_try;;
 
20720
esac
 
20721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20722
  (eval "$ac_compile") 2>conftest.er1
 
20723
  ac_status=$?
 
20724
  grep -v '^ *+' conftest.er1 >conftest.err
 
20725
  rm -f conftest.er1
 
20726
  cat conftest.err >&5
 
20727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20728
  (exit $ac_status); } &&
 
20729
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20730
  { (case "(($ac_try" in
 
20731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20732
  *) ac_try_echo=$ac_try;;
 
20733
esac
 
20734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20735
  (eval "$ac_try") 2>&5
 
20736
  ac_status=$?
 
20737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20738
  (exit $ac_status); }; } &&
 
20739
         { ac_try='test -s conftest.$ac_objext'
 
20740
  { (case "(($ac_try" in
 
20741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20742
  *) ac_try_echo=$ac_try;;
 
20743
esac
 
20744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20745
  (eval "$ac_try") 2>&5
 
20746
  ac_status=$?
 
20747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20748
  (exit $ac_status); }; }; then
 
20749
  ac_hi=$ac_mid; break
 
20750
else
 
20751
  echo "$as_me: failed program was:" >&5
 
20752
sed 's/^/| /' conftest.$ac_ext >&5
 
20753
 
 
20754
        ac_lo=`expr $ac_mid + 1`
 
20755
                        if test $ac_lo -le $ac_mid; then
 
20756
                          ac_lo= ac_hi=
 
20757
                          break
 
20758
                        fi
 
20759
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
20760
fi
 
20761
 
 
20762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20763
  done
 
20764
else
 
20765
  echo "$as_me: failed program was:" >&5
 
20766
sed 's/^/| /' conftest.$ac_ext >&5
 
20767
 
 
20768
        cat >conftest.$ac_ext <<_ACEOF
 
20769
/* confdefs.h.  */
 
20770
_ACEOF
 
20771
cat confdefs.h >>conftest.$ac_ext
 
20772
cat >>conftest.$ac_ext <<_ACEOF
 
20773
/* end confdefs.h.  */
 
20774
$ac_includes_default
 
20775
                   typedef int ac__type_sizeof_;
 
20776
int
 
20777
main ()
 
20778
{
 
20779
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
20780
test_array [0] = 0
 
20781
 
 
20782
  ;
 
20783
  return 0;
 
20784
}
 
20785
_ACEOF
 
20786
rm -f conftest.$ac_objext
 
20787
if { (ac_try="$ac_compile"
 
20788
case "(($ac_try" in
 
20789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20790
  *) ac_try_echo=$ac_try;;
 
20791
esac
 
20792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20793
  (eval "$ac_compile") 2>conftest.er1
 
20794
  ac_status=$?
 
20795
  grep -v '^ *+' conftest.er1 >conftest.err
 
20796
  rm -f conftest.er1
 
20797
  cat conftest.err >&5
 
20798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20799
  (exit $ac_status); } &&
 
20800
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20801
  { (case "(($ac_try" in
 
20802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20803
  *) ac_try_echo=$ac_try;;
 
20804
esac
 
20805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20806
  (eval "$ac_try") 2>&5
 
20807
  ac_status=$?
 
20808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20809
  (exit $ac_status); }; } &&
 
20810
         { ac_try='test -s conftest.$ac_objext'
 
20811
  { (case "(($ac_try" in
 
20812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20813
  *) ac_try_echo=$ac_try;;
 
20814
esac
 
20815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20816
  (eval "$ac_try") 2>&5
 
20817
  ac_status=$?
 
20818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20819
  (exit $ac_status); }; }; then
 
20820
  ac_hi=-1 ac_mid=-1
 
20821
  while :; do
 
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
                   typedef int ac__type_sizeof_;
 
20830
int
 
20831
main ()
 
20832
{
 
20833
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
20834
test_array [0] = 0
 
20835
 
 
20836
  ;
 
20837
  return 0;
 
20838
}
 
20839
_ACEOF
 
20840
rm -f conftest.$ac_objext
 
20841
if { (ac_try="$ac_compile"
 
20842
case "(($ac_try" in
 
20843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20844
  *) ac_try_echo=$ac_try;;
 
20845
esac
 
20846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20847
  (eval "$ac_compile") 2>conftest.er1
 
20848
  ac_status=$?
 
20849
  grep -v '^ *+' conftest.er1 >conftest.err
 
20850
  rm -f conftest.er1
 
20851
  cat conftest.err >&5
 
20852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20853
  (exit $ac_status); } &&
 
20854
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20855
  { (case "(($ac_try" in
 
20856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20857
  *) ac_try_echo=$ac_try;;
 
20858
esac
 
20859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20860
  (eval "$ac_try") 2>&5
 
20861
  ac_status=$?
 
20862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20863
  (exit $ac_status); }; } &&
 
20864
         { ac_try='test -s conftest.$ac_objext'
 
20865
  { (case "(($ac_try" in
 
20866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20867
  *) ac_try_echo=$ac_try;;
 
20868
esac
 
20869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20870
  (eval "$ac_try") 2>&5
 
20871
  ac_status=$?
 
20872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20873
  (exit $ac_status); }; }; then
 
20874
  ac_lo=$ac_mid; break
 
20875
else
 
20876
  echo "$as_me: failed program was:" >&5
 
20877
sed 's/^/| /' conftest.$ac_ext >&5
 
20878
 
 
20879
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
20880
                        if test $ac_mid -le $ac_hi; then
 
20881
                          ac_lo= ac_hi=
 
20882
                          break
 
20883
                        fi
 
20884
                        ac_mid=`expr 2 '*' $ac_mid`
 
20885
fi
 
20886
 
 
20887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20888
  done
 
20889
else
 
20890
  echo "$as_me: failed program was:" >&5
 
20891
sed 's/^/| /' conftest.$ac_ext >&5
 
20892
 
 
20893
        ac_lo= ac_hi=
 
20894
fi
 
20895
 
 
20896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20897
fi
 
20898
 
 
20899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20900
# Binary search between lo and hi bounds.
 
20901
while test "x$ac_lo" != "x$ac_hi"; do
 
20902
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
20903
  cat >conftest.$ac_ext <<_ACEOF
 
20904
/* confdefs.h.  */
 
20905
_ACEOF
 
20906
cat confdefs.h >>conftest.$ac_ext
 
20907
cat >>conftest.$ac_ext <<_ACEOF
 
20908
/* end confdefs.h.  */
 
20909
$ac_includes_default
 
20910
                   typedef int ac__type_sizeof_;
 
20911
int
 
20912
main ()
 
20913
{
 
20914
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20915
test_array [0] = 0
 
20916
 
 
20917
  ;
 
20918
  return 0;
 
20919
}
 
20920
_ACEOF
 
20921
rm -f conftest.$ac_objext
 
20922
if { (ac_try="$ac_compile"
 
20923
case "(($ac_try" in
 
20924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20925
  *) ac_try_echo=$ac_try;;
 
20926
esac
 
20927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20928
  (eval "$ac_compile") 2>conftest.er1
 
20929
  ac_status=$?
 
20930
  grep -v '^ *+' conftest.er1 >conftest.err
 
20931
  rm -f conftest.er1
 
20932
  cat conftest.err >&5
 
20933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20934
  (exit $ac_status); } &&
 
20935
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20936
  { (case "(($ac_try" in
 
20937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20938
  *) ac_try_echo=$ac_try;;
 
20939
esac
 
20940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20941
  (eval "$ac_try") 2>&5
 
20942
  ac_status=$?
 
20943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20944
  (exit $ac_status); }; } &&
 
20945
         { ac_try='test -s conftest.$ac_objext'
 
20946
  { (case "(($ac_try" in
 
20947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20948
  *) ac_try_echo=$ac_try;;
 
20949
esac
 
20950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20951
  (eval "$ac_try") 2>&5
 
20952
  ac_status=$?
 
20953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20954
  (exit $ac_status); }; }; then
 
20955
  ac_hi=$ac_mid
 
20956
else
 
20957
  echo "$as_me: failed program was:" >&5
 
20958
sed 's/^/| /' conftest.$ac_ext >&5
 
20959
 
 
20960
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
20961
fi
 
20962
 
 
20963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20964
done
 
20965
case $ac_lo in
 
20966
?*) ac_cv_sizeof_int=$ac_lo;;
 
20967
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
20968
See \`config.log' for more details." >&5
 
20969
echo "$as_me: error: cannot compute sizeof (int)
 
20970
See \`config.log' for more details." >&2;}
 
20971
   { (exit 77); exit 77; }; } ;;
 
20972
esac
 
20973
else
 
20974
  cat >conftest.$ac_ext <<_ACEOF
 
20975
/* confdefs.h.  */
 
20976
_ACEOF
 
20977
cat confdefs.h >>conftest.$ac_ext
 
20978
cat >>conftest.$ac_ext <<_ACEOF
 
20979
/* end confdefs.h.  */
 
20980
$ac_includes_default
 
20981
                   typedef int ac__type_sizeof_;
 
20982
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
20983
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
20984
#include <stdio.h>
 
20985
#include <stdlib.h>
 
20986
int
 
20987
main ()
 
20988
{
 
20989
 
 
20990
  FILE *f = fopen ("conftest.val", "w");
 
20991
  if (! f)
 
20992
    return 1;
 
20993
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
20994
    {
 
20995
      long int i = longval ();
 
20996
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
20997
        return 1;
 
20998
      fprintf (f, "%ld\n", i);
 
20999
    }
 
21000
  else
 
21001
    {
 
21002
      unsigned long int i = ulongval ();
 
21003
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21004
        return 1;
 
21005
      fprintf (f, "%lu\n", i);
 
21006
    }
 
21007
  return ferror (f) || fclose (f) != 0;
 
21008
 
 
21009
  ;
 
21010
  return 0;
 
21011
}
 
21012
_ACEOF
 
21013
rm -f conftest$ac_exeext
 
21014
if { (ac_try="$ac_link"
 
21015
case "(($ac_try" in
 
21016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21017
  *) ac_try_echo=$ac_try;;
 
21018
esac
 
21019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21020
  (eval "$ac_link") 2>&5
 
21021
  ac_status=$?
 
21022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21023
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21024
  { (case "(($ac_try" in
 
21025
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21026
  *) ac_try_echo=$ac_try;;
 
21027
esac
 
21028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21029
  (eval "$ac_try") 2>&5
 
21030
  ac_status=$?
 
21031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21032
  (exit $ac_status); }; }; then
 
21033
  ac_cv_sizeof_int=`cat conftest.val`
 
21034
else
 
21035
  echo "$as_me: program exited with status $ac_status" >&5
 
21036
echo "$as_me: failed program was:" >&5
 
21037
sed 's/^/| /' conftest.$ac_ext >&5
 
21038
 
 
21039
( exit $ac_status )
 
21040
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
21041
See \`config.log' for more details." >&5
 
21042
echo "$as_me: error: cannot compute sizeof (int)
 
21043
See \`config.log' for more details." >&2;}
 
21044
   { (exit 77); exit 77; }; }
 
21045
fi
 
21046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21047
fi
 
21048
rm -f conftest.val
 
21049
else
 
21050
  ac_cv_sizeof_int=0
 
21051
fi
 
21052
fi
 
21053
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
21054
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
21055
cat >>confdefs.h <<_ACEOF
 
21056
#define SIZEOF_INT $ac_cv_sizeof_int
 
21057
_ACEOF
 
21058
 
 
21059
 
 
21060
{ echo "$as_me:$LINENO: checking for long" >&5
 
21061
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
 
21062
if test "${ac_cv_type_long+set}" = set; then
 
21063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21064
else
 
21065
  cat >conftest.$ac_ext <<_ACEOF
 
21066
/* confdefs.h.  */
 
21067
_ACEOF
 
21068
cat confdefs.h >>conftest.$ac_ext
 
21069
cat >>conftest.$ac_ext <<_ACEOF
 
21070
/* end confdefs.h.  */
 
21071
$ac_includes_default
 
21072
typedef long ac__type_new_;
 
21073
int
 
21074
main ()
 
21075
{
 
21076
if ((ac__type_new_ *) 0)
 
21077
  return 0;
 
21078
if (sizeof (ac__type_new_))
 
21079
  return 0;
 
21080
  ;
 
21081
  return 0;
 
21082
}
 
21083
_ACEOF
 
21084
rm -f conftest.$ac_objext
 
21085
if { (ac_try="$ac_compile"
 
21086
case "(($ac_try" in
 
21087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21088
  *) ac_try_echo=$ac_try;;
 
21089
esac
 
21090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21091
  (eval "$ac_compile") 2>conftest.er1
 
21092
  ac_status=$?
 
21093
  grep -v '^ *+' conftest.er1 >conftest.err
 
21094
  rm -f conftest.er1
 
21095
  cat conftest.err >&5
 
21096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21097
  (exit $ac_status); } &&
 
21098
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21099
  { (case "(($ac_try" in
 
21100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21101
  *) ac_try_echo=$ac_try;;
 
21102
esac
 
21103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21104
  (eval "$ac_try") 2>&5
 
21105
  ac_status=$?
 
21106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21107
  (exit $ac_status); }; } &&
 
21108
         { ac_try='test -s conftest.$ac_objext'
 
21109
  { (case "(($ac_try" in
 
21110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21111
  *) ac_try_echo=$ac_try;;
 
21112
esac
 
21113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21114
  (eval "$ac_try") 2>&5
 
21115
  ac_status=$?
 
21116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21117
  (exit $ac_status); }; }; then
 
21118
  ac_cv_type_long=yes
 
21119
else
 
21120
  echo "$as_me: failed program was:" >&5
 
21121
sed 's/^/| /' conftest.$ac_ext >&5
 
21122
 
 
21123
        ac_cv_type_long=no
 
21124
fi
 
21125
 
 
21126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21127
fi
 
21128
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
21129
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
21130
 
 
21131
{ echo "$as_me:$LINENO: checking size of long" >&5
 
21132
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
 
21133
if test "${ac_cv_sizeof_long+set}" = set; then
 
21134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21135
else
 
21136
  if test "$ac_cv_type_long" = yes; then
 
21137
  # The cast to long int works around a bug in the HP C Compiler
 
21138
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21139
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21140
  # This bug is HP SR number 8606223364.
 
21141
  if test "$cross_compiling" = yes; then
 
21142
  # Depending upon the size, compute the lo and hi bounds.
 
21143
cat >conftest.$ac_ext <<_ACEOF
 
21144
/* confdefs.h.  */
 
21145
_ACEOF
 
21146
cat confdefs.h >>conftest.$ac_ext
 
21147
cat >>conftest.$ac_ext <<_ACEOF
 
21148
/* end confdefs.h.  */
 
21149
$ac_includes_default
 
21150
                   typedef long ac__type_sizeof_;
 
21151
int
 
21152
main ()
 
21153
{
 
21154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
21155
test_array [0] = 0
 
21156
 
 
21157
  ;
 
21158
  return 0;
 
21159
}
 
21160
_ACEOF
 
21161
rm -f conftest.$ac_objext
 
21162
if { (ac_try="$ac_compile"
 
21163
case "(($ac_try" in
 
21164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21165
  *) ac_try_echo=$ac_try;;
 
21166
esac
 
21167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21168
  (eval "$ac_compile") 2>conftest.er1
 
21169
  ac_status=$?
 
21170
  grep -v '^ *+' conftest.er1 >conftest.err
 
21171
  rm -f conftest.er1
 
21172
  cat conftest.err >&5
 
21173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21174
  (exit $ac_status); } &&
 
21175
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21176
  { (case "(($ac_try" in
 
21177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21178
  *) ac_try_echo=$ac_try;;
 
21179
esac
 
21180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21181
  (eval "$ac_try") 2>&5
 
21182
  ac_status=$?
 
21183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21184
  (exit $ac_status); }; } &&
 
21185
         { ac_try='test -s conftest.$ac_objext'
 
21186
  { (case "(($ac_try" in
 
21187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21188
  *) ac_try_echo=$ac_try;;
 
21189
esac
 
21190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21191
  (eval "$ac_try") 2>&5
 
21192
  ac_status=$?
 
21193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21194
  (exit $ac_status); }; }; then
 
21195
  ac_lo=0 ac_mid=0
 
21196
  while :; do
 
21197
    cat >conftest.$ac_ext <<_ACEOF
 
21198
/* confdefs.h.  */
 
21199
_ACEOF
 
21200
cat confdefs.h >>conftest.$ac_ext
 
21201
cat >>conftest.$ac_ext <<_ACEOF
 
21202
/* end confdefs.h.  */
 
21203
$ac_includes_default
 
21204
                   typedef long ac__type_sizeof_;
 
21205
int
 
21206
main ()
 
21207
{
 
21208
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21209
test_array [0] = 0
 
21210
 
 
21211
  ;
 
21212
  return 0;
 
21213
}
 
21214
_ACEOF
 
21215
rm -f conftest.$ac_objext
 
21216
if { (ac_try="$ac_compile"
 
21217
case "(($ac_try" in
 
21218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21219
  *) ac_try_echo=$ac_try;;
 
21220
esac
 
21221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21222
  (eval "$ac_compile") 2>conftest.er1
 
21223
  ac_status=$?
 
21224
  grep -v '^ *+' conftest.er1 >conftest.err
 
21225
  rm -f conftest.er1
 
21226
  cat conftest.err >&5
 
21227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21228
  (exit $ac_status); } &&
 
21229
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21230
  { (case "(($ac_try" in
 
21231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21232
  *) ac_try_echo=$ac_try;;
 
21233
esac
 
21234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21235
  (eval "$ac_try") 2>&5
 
21236
  ac_status=$?
 
21237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21238
  (exit $ac_status); }; } &&
 
21239
         { ac_try='test -s conftest.$ac_objext'
 
21240
  { (case "(($ac_try" in
 
21241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21242
  *) ac_try_echo=$ac_try;;
 
21243
esac
 
21244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21245
  (eval "$ac_try") 2>&5
 
21246
  ac_status=$?
 
21247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21248
  (exit $ac_status); }; }; then
 
21249
  ac_hi=$ac_mid; break
 
21250
else
 
21251
  echo "$as_me: failed program was:" >&5
 
21252
sed 's/^/| /' conftest.$ac_ext >&5
 
21253
 
 
21254
        ac_lo=`expr $ac_mid + 1`
 
21255
                        if test $ac_lo -le $ac_mid; then
 
21256
                          ac_lo= ac_hi=
 
21257
                          break
 
21258
                        fi
 
21259
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
21260
fi
 
21261
 
 
21262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21263
  done
 
21264
else
 
21265
  echo "$as_me: failed program was:" >&5
 
21266
sed 's/^/| /' conftest.$ac_ext >&5
 
21267
 
 
21268
        cat >conftest.$ac_ext <<_ACEOF
 
21269
/* confdefs.h.  */
 
21270
_ACEOF
 
21271
cat confdefs.h >>conftest.$ac_ext
 
21272
cat >>conftest.$ac_ext <<_ACEOF
 
21273
/* end confdefs.h.  */
 
21274
$ac_includes_default
 
21275
                   typedef long ac__type_sizeof_;
 
21276
int
 
21277
main ()
 
21278
{
 
21279
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
21280
test_array [0] = 0
 
21281
 
 
21282
  ;
 
21283
  return 0;
 
21284
}
 
21285
_ACEOF
 
21286
rm -f conftest.$ac_objext
 
21287
if { (ac_try="$ac_compile"
 
21288
case "(($ac_try" in
 
21289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21290
  *) ac_try_echo=$ac_try;;
 
21291
esac
 
21292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21293
  (eval "$ac_compile") 2>conftest.er1
 
21294
  ac_status=$?
 
21295
  grep -v '^ *+' conftest.er1 >conftest.err
 
21296
  rm -f conftest.er1
 
21297
  cat conftest.err >&5
 
21298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21299
  (exit $ac_status); } &&
 
21300
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21301
  { (case "(($ac_try" in
 
21302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21303
  *) ac_try_echo=$ac_try;;
 
21304
esac
 
21305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21306
  (eval "$ac_try") 2>&5
 
21307
  ac_status=$?
 
21308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21309
  (exit $ac_status); }; } &&
 
21310
         { ac_try='test -s conftest.$ac_objext'
 
21311
  { (case "(($ac_try" in
 
21312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21313
  *) ac_try_echo=$ac_try;;
 
21314
esac
 
21315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21316
  (eval "$ac_try") 2>&5
 
21317
  ac_status=$?
 
21318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21319
  (exit $ac_status); }; }; then
 
21320
  ac_hi=-1 ac_mid=-1
 
21321
  while :; do
 
21322
    cat >conftest.$ac_ext <<_ACEOF
 
21323
/* confdefs.h.  */
 
21324
_ACEOF
 
21325
cat confdefs.h >>conftest.$ac_ext
 
21326
cat >>conftest.$ac_ext <<_ACEOF
 
21327
/* end confdefs.h.  */
 
21328
$ac_includes_default
 
21329
                   typedef long ac__type_sizeof_;
 
21330
int
 
21331
main ()
 
21332
{
 
21333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
21334
test_array [0] = 0
 
21335
 
 
21336
  ;
 
21337
  return 0;
 
21338
}
 
21339
_ACEOF
 
21340
rm -f conftest.$ac_objext
 
21341
if { (ac_try="$ac_compile"
 
21342
case "(($ac_try" in
 
21343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21344
  *) ac_try_echo=$ac_try;;
 
21345
esac
 
21346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21347
  (eval "$ac_compile") 2>conftest.er1
 
21348
  ac_status=$?
 
21349
  grep -v '^ *+' conftest.er1 >conftest.err
 
21350
  rm -f conftest.er1
 
21351
  cat conftest.err >&5
 
21352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21353
  (exit $ac_status); } &&
 
21354
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21355
  { (case "(($ac_try" in
 
21356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21357
  *) ac_try_echo=$ac_try;;
 
21358
esac
 
21359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21360
  (eval "$ac_try") 2>&5
 
21361
  ac_status=$?
 
21362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21363
  (exit $ac_status); }; } &&
 
21364
         { ac_try='test -s conftest.$ac_objext'
 
21365
  { (case "(($ac_try" in
 
21366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21367
  *) ac_try_echo=$ac_try;;
 
21368
esac
 
21369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21370
  (eval "$ac_try") 2>&5
 
21371
  ac_status=$?
 
21372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21373
  (exit $ac_status); }; }; then
 
21374
  ac_lo=$ac_mid; break
 
21375
else
 
21376
  echo "$as_me: failed program was:" >&5
 
21377
sed 's/^/| /' conftest.$ac_ext >&5
 
21378
 
 
21379
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
21380
                        if test $ac_mid -le $ac_hi; then
 
21381
                          ac_lo= ac_hi=
 
21382
                          break
 
21383
                        fi
 
21384
                        ac_mid=`expr 2 '*' $ac_mid`
 
21385
fi
 
21386
 
 
21387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21388
  done
 
21389
else
 
21390
  echo "$as_me: failed program was:" >&5
 
21391
sed 's/^/| /' conftest.$ac_ext >&5
 
21392
 
 
21393
        ac_lo= ac_hi=
 
21394
fi
 
21395
 
 
21396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21397
fi
 
21398
 
 
21399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21400
# Binary search between lo and hi bounds.
 
21401
while test "x$ac_lo" != "x$ac_hi"; do
 
21402
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21403
  cat >conftest.$ac_ext <<_ACEOF
 
21404
/* confdefs.h.  */
 
21405
_ACEOF
 
21406
cat confdefs.h >>conftest.$ac_ext
 
21407
cat >>conftest.$ac_ext <<_ACEOF
 
21408
/* end confdefs.h.  */
 
21409
$ac_includes_default
 
21410
                   typedef long ac__type_sizeof_;
 
21411
int
 
21412
main ()
 
21413
{
 
21414
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21415
test_array [0] = 0
 
21416
 
 
21417
  ;
 
21418
  return 0;
 
21419
}
 
21420
_ACEOF
 
21421
rm -f conftest.$ac_objext
 
21422
if { (ac_try="$ac_compile"
 
21423
case "(($ac_try" in
 
21424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21425
  *) ac_try_echo=$ac_try;;
 
21426
esac
 
21427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21428
  (eval "$ac_compile") 2>conftest.er1
 
21429
  ac_status=$?
 
21430
  grep -v '^ *+' conftest.er1 >conftest.err
 
21431
  rm -f conftest.er1
 
21432
  cat conftest.err >&5
 
21433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21434
  (exit $ac_status); } &&
 
21435
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21436
  { (case "(($ac_try" in
 
21437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21438
  *) ac_try_echo=$ac_try;;
 
21439
esac
 
21440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21441
  (eval "$ac_try") 2>&5
 
21442
  ac_status=$?
 
21443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21444
  (exit $ac_status); }; } &&
 
21445
         { ac_try='test -s conftest.$ac_objext'
 
21446
  { (case "(($ac_try" in
 
21447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21448
  *) ac_try_echo=$ac_try;;
 
21449
esac
 
21450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21451
  (eval "$ac_try") 2>&5
 
21452
  ac_status=$?
 
21453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21454
  (exit $ac_status); }; }; then
 
21455
  ac_hi=$ac_mid
 
21456
else
 
21457
  echo "$as_me: failed program was:" >&5
 
21458
sed 's/^/| /' conftest.$ac_ext >&5
 
21459
 
 
21460
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
21461
fi
 
21462
 
 
21463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21464
done
 
21465
case $ac_lo in
 
21466
?*) ac_cv_sizeof_long=$ac_lo;;
 
21467
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
21468
See \`config.log' for more details." >&5
 
21469
echo "$as_me: error: cannot compute sizeof (long)
 
21470
See \`config.log' for more details." >&2;}
 
21471
   { (exit 77); exit 77; }; } ;;
 
21472
esac
 
21473
else
 
21474
  cat >conftest.$ac_ext <<_ACEOF
 
21475
/* confdefs.h.  */
 
21476
_ACEOF
 
21477
cat confdefs.h >>conftest.$ac_ext
 
21478
cat >>conftest.$ac_ext <<_ACEOF
 
21479
/* end confdefs.h.  */
 
21480
$ac_includes_default
 
21481
                   typedef long ac__type_sizeof_;
 
21482
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21483
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21484
#include <stdio.h>
 
21485
#include <stdlib.h>
 
21486
int
 
21487
main ()
 
21488
{
 
21489
 
 
21490
  FILE *f = fopen ("conftest.val", "w");
 
21491
  if (! f)
 
21492
    return 1;
 
21493
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
21494
    {
 
21495
      long int i = longval ();
 
21496
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21497
        return 1;
 
21498
      fprintf (f, "%ld\n", i);
 
21499
    }
 
21500
  else
 
21501
    {
 
21502
      unsigned long int i = ulongval ();
 
21503
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21504
        return 1;
 
21505
      fprintf (f, "%lu\n", i);
 
21506
    }
 
21507
  return ferror (f) || fclose (f) != 0;
 
21508
 
 
21509
  ;
 
21510
  return 0;
 
21511
}
 
21512
_ACEOF
 
21513
rm -f conftest$ac_exeext
 
21514
if { (ac_try="$ac_link"
 
21515
case "(($ac_try" in
 
21516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21517
  *) ac_try_echo=$ac_try;;
 
21518
esac
 
21519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21520
  (eval "$ac_link") 2>&5
 
21521
  ac_status=$?
 
21522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21523
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21524
  { (case "(($ac_try" in
 
21525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21526
  *) ac_try_echo=$ac_try;;
 
21527
esac
 
21528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21529
  (eval "$ac_try") 2>&5
 
21530
  ac_status=$?
 
21531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21532
  (exit $ac_status); }; }; then
 
21533
  ac_cv_sizeof_long=`cat conftest.val`
 
21534
else
 
21535
  echo "$as_me: program exited with status $ac_status" >&5
 
21536
echo "$as_me: failed program was:" >&5
 
21537
sed 's/^/| /' conftest.$ac_ext >&5
 
21538
 
 
21539
( exit $ac_status )
 
21540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
21541
See \`config.log' for more details." >&5
 
21542
echo "$as_me: error: cannot compute sizeof (long)
 
21543
See \`config.log' for more details." >&2;}
 
21544
   { (exit 77); exit 77; }; }
 
21545
fi
 
21546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21547
fi
 
21548
rm -f conftest.val
 
21549
else
 
21550
  ac_cv_sizeof_long=0
 
21551
fi
 
21552
fi
 
21553
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
21554
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
21555
cat >>confdefs.h <<_ACEOF
 
21556
#define SIZEOF_LONG $ac_cv_sizeof_long
 
21557
_ACEOF
 
21558
 
 
21559
 
 
21560
{ echo "$as_me:$LINENO: checking for short" >&5
 
21561
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
 
21562
if test "${ac_cv_type_short+set}" = set; then
 
21563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21564
else
 
21565
  cat >conftest.$ac_ext <<_ACEOF
 
21566
/* confdefs.h.  */
 
21567
_ACEOF
 
21568
cat confdefs.h >>conftest.$ac_ext
 
21569
cat >>conftest.$ac_ext <<_ACEOF
 
21570
/* end confdefs.h.  */
 
21571
$ac_includes_default
 
21572
typedef short ac__type_new_;
 
21573
int
 
21574
main ()
 
21575
{
 
21576
if ((ac__type_new_ *) 0)
 
21577
  return 0;
 
21578
if (sizeof (ac__type_new_))
 
21579
  return 0;
 
21580
  ;
 
21581
  return 0;
 
21582
}
 
21583
_ACEOF
 
21584
rm -f conftest.$ac_objext
 
21585
if { (ac_try="$ac_compile"
 
21586
case "(($ac_try" in
 
21587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21588
  *) ac_try_echo=$ac_try;;
 
21589
esac
 
21590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21591
  (eval "$ac_compile") 2>conftest.er1
 
21592
  ac_status=$?
 
21593
  grep -v '^ *+' conftest.er1 >conftest.err
 
21594
  rm -f conftest.er1
 
21595
  cat conftest.err >&5
 
21596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21597
  (exit $ac_status); } &&
 
21598
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
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_try") 2>&5
 
21605
  ac_status=$?
 
21606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21607
  (exit $ac_status); }; } &&
 
21608
         { ac_try='test -s conftest.$ac_objext'
 
21609
  { (case "(($ac_try" in
 
21610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21611
  *) ac_try_echo=$ac_try;;
 
21612
esac
 
21613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21614
  (eval "$ac_try") 2>&5
 
21615
  ac_status=$?
 
21616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21617
  (exit $ac_status); }; }; then
 
21618
  ac_cv_type_short=yes
 
21619
else
 
21620
  echo "$as_me: failed program was:" >&5
 
21621
sed 's/^/| /' conftest.$ac_ext >&5
 
21622
 
 
21623
        ac_cv_type_short=no
 
21624
fi
 
21625
 
 
21626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21627
fi
 
21628
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
21629
echo "${ECHO_T}$ac_cv_type_short" >&6; }
 
21630
 
 
21631
{ echo "$as_me:$LINENO: checking size of short" >&5
 
21632
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
 
21633
if test "${ac_cv_sizeof_short+set}" = set; then
 
21634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21635
else
 
21636
  if test "$ac_cv_type_short" = yes; then
 
21637
  # The cast to long int works around a bug in the HP C Compiler
 
21638
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21639
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21640
  # This bug is HP SR number 8606223364.
 
21641
  if test "$cross_compiling" = yes; then
 
21642
  # Depending upon the size, compute the lo and hi bounds.
 
21643
cat >conftest.$ac_ext <<_ACEOF
 
21644
/* confdefs.h.  */
 
21645
_ACEOF
 
21646
cat confdefs.h >>conftest.$ac_ext
 
21647
cat >>conftest.$ac_ext <<_ACEOF
 
21648
/* end confdefs.h.  */
 
21649
$ac_includes_default
 
21650
                   typedef short ac__type_sizeof_;
 
21651
int
 
21652
main ()
 
21653
{
 
21654
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
21655
test_array [0] = 0
 
21656
 
 
21657
  ;
 
21658
  return 0;
 
21659
}
 
21660
_ACEOF
 
21661
rm -f conftest.$ac_objext
 
21662
if { (ac_try="$ac_compile"
 
21663
case "(($ac_try" in
 
21664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21665
  *) ac_try_echo=$ac_try;;
 
21666
esac
 
21667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21668
  (eval "$ac_compile") 2>conftest.er1
 
21669
  ac_status=$?
 
21670
  grep -v '^ *+' conftest.er1 >conftest.err
 
21671
  rm -f conftest.er1
 
21672
  cat conftest.err >&5
 
21673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21674
  (exit $ac_status); } &&
 
21675
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21676
  { (case "(($ac_try" in
 
21677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21678
  *) ac_try_echo=$ac_try;;
 
21679
esac
 
21680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21681
  (eval "$ac_try") 2>&5
 
21682
  ac_status=$?
 
21683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21684
  (exit $ac_status); }; } &&
 
21685
         { ac_try='test -s conftest.$ac_objext'
 
21686
  { (case "(($ac_try" in
 
21687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21688
  *) ac_try_echo=$ac_try;;
 
21689
esac
 
21690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21691
  (eval "$ac_try") 2>&5
 
21692
  ac_status=$?
 
21693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21694
  (exit $ac_status); }; }; then
 
21695
  ac_lo=0 ac_mid=0
 
21696
  while :; do
 
21697
    cat >conftest.$ac_ext <<_ACEOF
 
21698
/* confdefs.h.  */
 
21699
_ACEOF
 
21700
cat confdefs.h >>conftest.$ac_ext
 
21701
cat >>conftest.$ac_ext <<_ACEOF
 
21702
/* end confdefs.h.  */
 
21703
$ac_includes_default
 
21704
                   typedef short ac__type_sizeof_;
 
21705
int
 
21706
main ()
 
21707
{
 
21708
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21709
test_array [0] = 0
 
21710
 
 
21711
  ;
 
21712
  return 0;
 
21713
}
 
21714
_ACEOF
 
21715
rm -f conftest.$ac_objext
 
21716
if { (ac_try="$ac_compile"
 
21717
case "(($ac_try" in
 
21718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21719
  *) ac_try_echo=$ac_try;;
 
21720
esac
 
21721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21722
  (eval "$ac_compile") 2>conftest.er1
 
21723
  ac_status=$?
 
21724
  grep -v '^ *+' conftest.er1 >conftest.err
 
21725
  rm -f conftest.er1
 
21726
  cat conftest.err >&5
 
21727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21728
  (exit $ac_status); } &&
 
21729
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21730
  { (case "(($ac_try" in
 
21731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21732
  *) ac_try_echo=$ac_try;;
 
21733
esac
 
21734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21735
  (eval "$ac_try") 2>&5
 
21736
  ac_status=$?
 
21737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21738
  (exit $ac_status); }; } &&
 
21739
         { ac_try='test -s conftest.$ac_objext'
 
21740
  { (case "(($ac_try" in
 
21741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21742
  *) ac_try_echo=$ac_try;;
 
21743
esac
 
21744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21745
  (eval "$ac_try") 2>&5
 
21746
  ac_status=$?
 
21747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21748
  (exit $ac_status); }; }; then
 
21749
  ac_hi=$ac_mid; break
 
21750
else
 
21751
  echo "$as_me: failed program was:" >&5
 
21752
sed 's/^/| /' conftest.$ac_ext >&5
 
21753
 
 
21754
        ac_lo=`expr $ac_mid + 1`
 
21755
                        if test $ac_lo -le $ac_mid; then
 
21756
                          ac_lo= ac_hi=
 
21757
                          break
 
21758
                        fi
 
21759
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
21760
fi
 
21761
 
 
21762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21763
  done
 
21764
else
 
21765
  echo "$as_me: failed program was:" >&5
 
21766
sed 's/^/| /' conftest.$ac_ext >&5
 
21767
 
 
21768
        cat >conftest.$ac_ext <<_ACEOF
 
21769
/* confdefs.h.  */
 
21770
_ACEOF
 
21771
cat confdefs.h >>conftest.$ac_ext
 
21772
cat >>conftest.$ac_ext <<_ACEOF
 
21773
/* end confdefs.h.  */
 
21774
$ac_includes_default
 
21775
                   typedef short ac__type_sizeof_;
 
21776
int
 
21777
main ()
 
21778
{
 
21779
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
21780
test_array [0] = 0
 
21781
 
 
21782
  ;
 
21783
  return 0;
 
21784
}
 
21785
_ACEOF
 
21786
rm -f conftest.$ac_objext
 
21787
if { (ac_try="$ac_compile"
 
21788
case "(($ac_try" in
 
21789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21790
  *) ac_try_echo=$ac_try;;
 
21791
esac
 
21792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21793
  (eval "$ac_compile") 2>conftest.er1
 
21794
  ac_status=$?
 
21795
  grep -v '^ *+' conftest.er1 >conftest.err
 
21796
  rm -f conftest.er1
 
21797
  cat conftest.err >&5
 
21798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21799
  (exit $ac_status); } &&
 
21800
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21801
  { (case "(($ac_try" in
 
21802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21803
  *) ac_try_echo=$ac_try;;
 
21804
esac
 
21805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21806
  (eval "$ac_try") 2>&5
 
21807
  ac_status=$?
 
21808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21809
  (exit $ac_status); }; } &&
 
21810
         { ac_try='test -s conftest.$ac_objext'
 
21811
  { (case "(($ac_try" in
 
21812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21813
  *) ac_try_echo=$ac_try;;
 
21814
esac
 
21815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21816
  (eval "$ac_try") 2>&5
 
21817
  ac_status=$?
 
21818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21819
  (exit $ac_status); }; }; then
 
21820
  ac_hi=-1 ac_mid=-1
 
21821
  while :; do
 
21822
    cat >conftest.$ac_ext <<_ACEOF
 
21823
/* confdefs.h.  */
 
21824
_ACEOF
 
21825
cat confdefs.h >>conftest.$ac_ext
 
21826
cat >>conftest.$ac_ext <<_ACEOF
 
21827
/* end confdefs.h.  */
 
21828
$ac_includes_default
 
21829
                   typedef short ac__type_sizeof_;
 
21830
int
 
21831
main ()
 
21832
{
 
21833
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
21834
test_array [0] = 0
 
21835
 
 
21836
  ;
 
21837
  return 0;
 
21838
}
 
21839
_ACEOF
 
21840
rm -f conftest.$ac_objext
 
21841
if { (ac_try="$ac_compile"
 
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_compile") 2>conftest.er1
 
21848
  ac_status=$?
 
21849
  grep -v '^ *+' conftest.er1 >conftest.err
 
21850
  rm -f conftest.er1
 
21851
  cat conftest.err >&5
 
21852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21853
  (exit $ac_status); } &&
 
21854
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21855
  { (case "(($ac_try" in
 
21856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21857
  *) ac_try_echo=$ac_try;;
 
21858
esac
 
21859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21860
  (eval "$ac_try") 2>&5
 
21861
  ac_status=$?
 
21862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21863
  (exit $ac_status); }; } &&
 
21864
         { ac_try='test -s conftest.$ac_objext'
 
21865
  { (case "(($ac_try" in
 
21866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21867
  *) ac_try_echo=$ac_try;;
 
21868
esac
 
21869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21870
  (eval "$ac_try") 2>&5
 
21871
  ac_status=$?
 
21872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21873
  (exit $ac_status); }; }; then
 
21874
  ac_lo=$ac_mid; break
 
21875
else
 
21876
  echo "$as_me: failed program was:" >&5
 
21877
sed 's/^/| /' conftest.$ac_ext >&5
 
21878
 
 
21879
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
21880
                        if test $ac_mid -le $ac_hi; then
 
21881
                          ac_lo= ac_hi=
 
21882
                          break
 
21883
                        fi
 
21884
                        ac_mid=`expr 2 '*' $ac_mid`
 
21885
fi
 
21886
 
 
21887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21888
  done
 
21889
else
 
21890
  echo "$as_me: failed program was:" >&5
 
21891
sed 's/^/| /' conftest.$ac_ext >&5
 
21892
 
 
21893
        ac_lo= ac_hi=
 
21894
fi
 
21895
 
 
21896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21897
fi
 
21898
 
 
21899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21900
# Binary search between lo and hi bounds.
 
21901
while test "x$ac_lo" != "x$ac_hi"; do
 
21902
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21903
  cat >conftest.$ac_ext <<_ACEOF
 
21904
/* confdefs.h.  */
 
21905
_ACEOF
 
21906
cat confdefs.h >>conftest.$ac_ext
 
21907
cat >>conftest.$ac_ext <<_ACEOF
 
21908
/* end confdefs.h.  */
 
21909
$ac_includes_default
 
21910
                   typedef short ac__type_sizeof_;
 
21911
int
 
21912
main ()
 
21913
{
 
21914
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21915
test_array [0] = 0
 
21916
 
 
21917
  ;
 
21918
  return 0;
 
21919
}
 
21920
_ACEOF
 
21921
rm -f conftest.$ac_objext
 
21922
if { (ac_try="$ac_compile"
 
21923
case "(($ac_try" in
 
21924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21925
  *) ac_try_echo=$ac_try;;
 
21926
esac
 
21927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21928
  (eval "$ac_compile") 2>conftest.er1
 
21929
  ac_status=$?
 
21930
  grep -v '^ *+' conftest.er1 >conftest.err
 
21931
  rm -f conftest.er1
 
21932
  cat conftest.err >&5
 
21933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21934
  (exit $ac_status); } &&
 
21935
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21936
  { (case "(($ac_try" in
 
21937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21938
  *) ac_try_echo=$ac_try;;
 
21939
esac
 
21940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21941
  (eval "$ac_try") 2>&5
 
21942
  ac_status=$?
 
21943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21944
  (exit $ac_status); }; } &&
 
21945
         { ac_try='test -s conftest.$ac_objext'
 
21946
  { (case "(($ac_try" in
 
21947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21948
  *) ac_try_echo=$ac_try;;
 
21949
esac
 
21950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21951
  (eval "$ac_try") 2>&5
 
21952
  ac_status=$?
 
21953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21954
  (exit $ac_status); }; }; then
 
21955
  ac_hi=$ac_mid
 
21956
else
 
21957
  echo "$as_me: failed program was:" >&5
 
21958
sed 's/^/| /' conftest.$ac_ext >&5
 
21959
 
 
21960
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
21961
fi
 
21962
 
 
21963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21964
done
 
21965
case $ac_lo in
 
21966
?*) ac_cv_sizeof_short=$ac_lo;;
 
21967
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
21968
See \`config.log' for more details." >&5
 
21969
echo "$as_me: error: cannot compute sizeof (short)
 
21970
See \`config.log' for more details." >&2;}
 
21971
   { (exit 77); exit 77; }; } ;;
 
21972
esac
 
21973
else
 
21974
  cat >conftest.$ac_ext <<_ACEOF
 
21975
/* confdefs.h.  */
 
21976
_ACEOF
 
21977
cat confdefs.h >>conftest.$ac_ext
 
21978
cat >>conftest.$ac_ext <<_ACEOF
 
21979
/* end confdefs.h.  */
 
21980
$ac_includes_default
 
21981
                   typedef short ac__type_sizeof_;
 
21982
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21983
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21984
#include <stdio.h>
 
21985
#include <stdlib.h>
 
21986
int
 
21987
main ()
 
21988
{
 
21989
 
 
21990
  FILE *f = fopen ("conftest.val", "w");
 
21991
  if (! f)
 
21992
    return 1;
 
21993
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
21994
    {
 
21995
      long int i = longval ();
 
21996
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21997
        return 1;
 
21998
      fprintf (f, "%ld\n", i);
 
21999
    }
 
22000
  else
 
22001
    {
 
22002
      unsigned long int i = ulongval ();
 
22003
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22004
        return 1;
 
22005
      fprintf (f, "%lu\n", i);
 
22006
    }
 
22007
  return ferror (f) || fclose (f) != 0;
 
22008
 
 
22009
  ;
 
22010
  return 0;
 
22011
}
 
22012
_ACEOF
 
22013
rm -f conftest$ac_exeext
 
22014
if { (ac_try="$ac_link"
 
22015
case "(($ac_try" in
 
22016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22017
  *) ac_try_echo=$ac_try;;
 
22018
esac
 
22019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22020
  (eval "$ac_link") 2>&5
 
22021
  ac_status=$?
 
22022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22023
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22024
  { (case "(($ac_try" in
 
22025
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22026
  *) ac_try_echo=$ac_try;;
 
22027
esac
 
22028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22029
  (eval "$ac_try") 2>&5
 
22030
  ac_status=$?
 
22031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22032
  (exit $ac_status); }; }; then
 
22033
  ac_cv_sizeof_short=`cat conftest.val`
 
22034
else
 
22035
  echo "$as_me: program exited with status $ac_status" >&5
 
22036
echo "$as_me: failed program was:" >&5
 
22037
sed 's/^/| /' conftest.$ac_ext >&5
 
22038
 
 
22039
( exit $ac_status )
 
22040
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
22041
See \`config.log' for more details." >&5
 
22042
echo "$as_me: error: cannot compute sizeof (short)
 
22043
See \`config.log' for more details." >&2;}
 
22044
   { (exit 77); exit 77; }; }
 
22045
fi
 
22046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22047
fi
 
22048
rm -f conftest.val
 
22049
else
 
22050
  ac_cv_sizeof_short=0
 
22051
fi
 
22052
fi
 
22053
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
22054
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
 
22055
cat >>confdefs.h <<_ACEOF
 
22056
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
22057
_ACEOF
 
22058
 
 
22059
 
 
22060
{ echo "$as_me:$LINENO: checking for long double" >&5
 
22061
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
 
22062
if test "${ac_cv_type_long_double+set}" = set; then
 
22063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22064
else
 
22065
  cat >conftest.$ac_ext <<_ACEOF
 
22066
/* confdefs.h.  */
 
22067
_ACEOF
 
22068
cat confdefs.h >>conftest.$ac_ext
 
22069
cat >>conftest.$ac_ext <<_ACEOF
 
22070
/* end confdefs.h.  */
 
22071
$ac_includes_default
 
22072
typedef long double ac__type_new_;
 
22073
int
 
22074
main ()
 
22075
{
 
22076
if ((ac__type_new_ *) 0)
 
22077
  return 0;
 
22078
if (sizeof (ac__type_new_))
 
22079
  return 0;
 
22080
  ;
 
22081
  return 0;
 
22082
}
 
22083
_ACEOF
 
22084
rm -f conftest.$ac_objext
 
22085
if { (ac_try="$ac_compile"
 
22086
case "(($ac_try" in
 
22087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22088
  *) ac_try_echo=$ac_try;;
 
22089
esac
 
22090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22091
  (eval "$ac_compile") 2>conftest.er1
 
22092
  ac_status=$?
 
22093
  grep -v '^ *+' conftest.er1 >conftest.err
 
22094
  rm -f conftest.er1
 
22095
  cat conftest.err >&5
 
22096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22097
  (exit $ac_status); } &&
 
22098
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22099
  { (case "(($ac_try" in
 
22100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22101
  *) ac_try_echo=$ac_try;;
 
22102
esac
 
22103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22104
  (eval "$ac_try") 2>&5
 
22105
  ac_status=$?
 
22106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22107
  (exit $ac_status); }; } &&
 
22108
         { ac_try='test -s conftest.$ac_objext'
 
22109
  { (case "(($ac_try" in
 
22110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22111
  *) ac_try_echo=$ac_try;;
 
22112
esac
 
22113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22114
  (eval "$ac_try") 2>&5
 
22115
  ac_status=$?
 
22116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22117
  (exit $ac_status); }; }; then
 
22118
  ac_cv_type_long_double=yes
 
22119
else
 
22120
  echo "$as_me: failed program was:" >&5
 
22121
sed 's/^/| /' conftest.$ac_ext >&5
 
22122
 
 
22123
        ac_cv_type_long_double=no
 
22124
fi
 
22125
 
 
22126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22127
fi
 
22128
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
 
22129
echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
 
22130
 
 
22131
{ echo "$as_me:$LINENO: checking size of long double" >&5
 
22132
echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
 
22133
if test "${ac_cv_sizeof_long_double+set}" = set; then
 
22134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22135
else
 
22136
  if test "$ac_cv_type_long_double" = yes; then
 
22137
  # The cast to long int works around a bug in the HP C Compiler
 
22138
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22139
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22140
  # This bug is HP SR number 8606223364.
 
22141
  if test "$cross_compiling" = yes; then
 
22142
  # Depending upon the size, compute the lo and hi bounds.
 
22143
cat >conftest.$ac_ext <<_ACEOF
 
22144
/* confdefs.h.  */
 
22145
_ACEOF
 
22146
cat confdefs.h >>conftest.$ac_ext
 
22147
cat >>conftest.$ac_ext <<_ACEOF
 
22148
/* end confdefs.h.  */
 
22149
$ac_includes_default
 
22150
                   typedef long double ac__type_sizeof_;
 
22151
int
 
22152
main ()
 
22153
{
 
22154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
22155
test_array [0] = 0
 
22156
 
 
22157
  ;
 
22158
  return 0;
 
22159
}
 
22160
_ACEOF
 
22161
rm -f conftest.$ac_objext
 
22162
if { (ac_try="$ac_compile"
 
22163
case "(($ac_try" in
 
22164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22165
  *) ac_try_echo=$ac_try;;
 
22166
esac
 
22167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22168
  (eval "$ac_compile") 2>conftest.er1
 
22169
  ac_status=$?
 
22170
  grep -v '^ *+' conftest.er1 >conftest.err
 
22171
  rm -f conftest.er1
 
22172
  cat conftest.err >&5
 
22173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22174
  (exit $ac_status); } &&
 
22175
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22176
  { (case "(($ac_try" in
 
22177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22178
  *) ac_try_echo=$ac_try;;
 
22179
esac
 
22180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22181
  (eval "$ac_try") 2>&5
 
22182
  ac_status=$?
 
22183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22184
  (exit $ac_status); }; } &&
 
22185
         { ac_try='test -s conftest.$ac_objext'
 
22186
  { (case "(($ac_try" in
 
22187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22188
  *) ac_try_echo=$ac_try;;
 
22189
esac
 
22190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22191
  (eval "$ac_try") 2>&5
 
22192
  ac_status=$?
 
22193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22194
  (exit $ac_status); }; }; then
 
22195
  ac_lo=0 ac_mid=0
 
22196
  while :; do
 
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 double ac__type_sizeof_;
 
22205
int
 
22206
main ()
 
22207
{
 
22208
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22209
test_array [0] = 0
 
22210
 
 
22211
  ;
 
22212
  return 0;
 
22213
}
 
22214
_ACEOF
 
22215
rm -f conftest.$ac_objext
 
22216
if { (ac_try="$ac_compile"
 
22217
case "(($ac_try" in
 
22218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22219
  *) ac_try_echo=$ac_try;;
 
22220
esac
 
22221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22222
  (eval "$ac_compile") 2>conftest.er1
 
22223
  ac_status=$?
 
22224
  grep -v '^ *+' conftest.er1 >conftest.err
 
22225
  rm -f conftest.er1
 
22226
  cat conftest.err >&5
 
22227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22228
  (exit $ac_status); } &&
 
22229
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22230
  { (case "(($ac_try" in
 
22231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22232
  *) ac_try_echo=$ac_try;;
 
22233
esac
 
22234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22235
  (eval "$ac_try") 2>&5
 
22236
  ac_status=$?
 
22237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22238
  (exit $ac_status); }; } &&
 
22239
         { ac_try='test -s conftest.$ac_objext'
 
22240
  { (case "(($ac_try" in
 
22241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22242
  *) ac_try_echo=$ac_try;;
 
22243
esac
 
22244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22245
  (eval "$ac_try") 2>&5
 
22246
  ac_status=$?
 
22247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22248
  (exit $ac_status); }; }; then
 
22249
  ac_hi=$ac_mid; break
 
22250
else
 
22251
  echo "$as_me: failed program was:" >&5
 
22252
sed 's/^/| /' conftest.$ac_ext >&5
 
22253
 
 
22254
        ac_lo=`expr $ac_mid + 1`
 
22255
                        if test $ac_lo -le $ac_mid; then
 
22256
                          ac_lo= ac_hi=
 
22257
                          break
 
22258
                        fi
 
22259
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22260
fi
 
22261
 
 
22262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22263
  done
 
22264
else
 
22265
  echo "$as_me: failed program was:" >&5
 
22266
sed 's/^/| /' conftest.$ac_ext >&5
 
22267
 
 
22268
        cat >conftest.$ac_ext <<_ACEOF
 
22269
/* confdefs.h.  */
 
22270
_ACEOF
 
22271
cat confdefs.h >>conftest.$ac_ext
 
22272
cat >>conftest.$ac_ext <<_ACEOF
 
22273
/* end confdefs.h.  */
 
22274
$ac_includes_default
 
22275
                   typedef long double ac__type_sizeof_;
 
22276
int
 
22277
main ()
 
22278
{
 
22279
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
22280
test_array [0] = 0
 
22281
 
 
22282
  ;
 
22283
  return 0;
 
22284
}
 
22285
_ACEOF
 
22286
rm -f conftest.$ac_objext
 
22287
if { (ac_try="$ac_compile"
 
22288
case "(($ac_try" in
 
22289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22290
  *) ac_try_echo=$ac_try;;
 
22291
esac
 
22292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22293
  (eval "$ac_compile") 2>conftest.er1
 
22294
  ac_status=$?
 
22295
  grep -v '^ *+' conftest.er1 >conftest.err
 
22296
  rm -f conftest.er1
 
22297
  cat conftest.err >&5
 
22298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22299
  (exit $ac_status); } &&
 
22300
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22301
  { (case "(($ac_try" in
 
22302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22303
  *) ac_try_echo=$ac_try;;
 
22304
esac
 
22305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22306
  (eval "$ac_try") 2>&5
 
22307
  ac_status=$?
 
22308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22309
  (exit $ac_status); }; } &&
 
22310
         { ac_try='test -s conftest.$ac_objext'
 
22311
  { (case "(($ac_try" in
 
22312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22313
  *) ac_try_echo=$ac_try;;
 
22314
esac
 
22315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22316
  (eval "$ac_try") 2>&5
 
22317
  ac_status=$?
 
22318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22319
  (exit $ac_status); }; }; then
 
22320
  ac_hi=-1 ac_mid=-1
 
22321
  while :; do
 
22322
    cat >conftest.$ac_ext <<_ACEOF
 
22323
/* confdefs.h.  */
 
22324
_ACEOF
 
22325
cat confdefs.h >>conftest.$ac_ext
 
22326
cat >>conftest.$ac_ext <<_ACEOF
 
22327
/* end confdefs.h.  */
 
22328
$ac_includes_default
 
22329
                   typedef long double ac__type_sizeof_;
 
22330
int
 
22331
main ()
 
22332
{
 
22333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
22334
test_array [0] = 0
 
22335
 
 
22336
  ;
 
22337
  return 0;
 
22338
}
 
22339
_ACEOF
 
22340
rm -f conftest.$ac_objext
 
22341
if { (ac_try="$ac_compile"
 
22342
case "(($ac_try" in
 
22343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22344
  *) ac_try_echo=$ac_try;;
 
22345
esac
 
22346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22347
  (eval "$ac_compile") 2>conftest.er1
 
22348
  ac_status=$?
 
22349
  grep -v '^ *+' conftest.er1 >conftest.err
 
22350
  rm -f conftest.er1
 
22351
  cat conftest.err >&5
 
22352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22353
  (exit $ac_status); } &&
 
22354
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22355
  { (case "(($ac_try" in
 
22356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22357
  *) ac_try_echo=$ac_try;;
 
22358
esac
 
22359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22360
  (eval "$ac_try") 2>&5
 
22361
  ac_status=$?
 
22362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22363
  (exit $ac_status); }; } &&
 
22364
         { ac_try='test -s conftest.$ac_objext'
 
22365
  { (case "(($ac_try" in
 
22366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22367
  *) ac_try_echo=$ac_try;;
 
22368
esac
 
22369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22370
  (eval "$ac_try") 2>&5
 
22371
  ac_status=$?
 
22372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22373
  (exit $ac_status); }; }; then
 
22374
  ac_lo=$ac_mid; break
 
22375
else
 
22376
  echo "$as_me: failed program was:" >&5
 
22377
sed 's/^/| /' conftest.$ac_ext >&5
 
22378
 
 
22379
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22380
                        if test $ac_mid -le $ac_hi; then
 
22381
                          ac_lo= ac_hi=
 
22382
                          break
 
22383
                        fi
 
22384
                        ac_mid=`expr 2 '*' $ac_mid`
 
22385
fi
 
22386
 
 
22387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22388
  done
 
22389
else
 
22390
  echo "$as_me: failed program was:" >&5
 
22391
sed 's/^/| /' conftest.$ac_ext >&5
 
22392
 
 
22393
        ac_lo= ac_hi=
 
22394
fi
 
22395
 
 
22396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22397
fi
 
22398
 
 
22399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22400
# Binary search between lo and hi bounds.
 
22401
while test "x$ac_lo" != "x$ac_hi"; do
 
22402
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22403
  cat >conftest.$ac_ext <<_ACEOF
 
22404
/* confdefs.h.  */
 
22405
_ACEOF
 
22406
cat confdefs.h >>conftest.$ac_ext
 
22407
cat >>conftest.$ac_ext <<_ACEOF
 
22408
/* end confdefs.h.  */
 
22409
$ac_includes_default
 
22410
                   typedef long double ac__type_sizeof_;
 
22411
int
 
22412
main ()
 
22413
{
 
22414
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22415
test_array [0] = 0
 
22416
 
 
22417
  ;
 
22418
  return 0;
 
22419
}
 
22420
_ACEOF
 
22421
rm -f conftest.$ac_objext
 
22422
if { (ac_try="$ac_compile"
 
22423
case "(($ac_try" in
 
22424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22425
  *) ac_try_echo=$ac_try;;
 
22426
esac
 
22427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22428
  (eval "$ac_compile") 2>conftest.er1
 
22429
  ac_status=$?
 
22430
  grep -v '^ *+' conftest.er1 >conftest.err
 
22431
  rm -f conftest.er1
 
22432
  cat conftest.err >&5
 
22433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22434
  (exit $ac_status); } &&
 
22435
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22436
  { (case "(($ac_try" in
 
22437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22438
  *) ac_try_echo=$ac_try;;
 
22439
esac
 
22440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22441
  (eval "$ac_try") 2>&5
 
22442
  ac_status=$?
 
22443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22444
  (exit $ac_status); }; } &&
 
22445
         { ac_try='test -s conftest.$ac_objext'
 
22446
  { (case "(($ac_try" in
 
22447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22448
  *) ac_try_echo=$ac_try;;
 
22449
esac
 
22450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22451
  (eval "$ac_try") 2>&5
 
22452
  ac_status=$?
 
22453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22454
  (exit $ac_status); }; }; then
 
22455
  ac_hi=$ac_mid
 
22456
else
 
22457
  echo "$as_me: failed program was:" >&5
 
22458
sed 's/^/| /' conftest.$ac_ext >&5
 
22459
 
 
22460
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22461
fi
 
22462
 
 
22463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22464
done
 
22465
case $ac_lo in
 
22466
?*) ac_cv_sizeof_long_double=$ac_lo;;
 
22467
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
 
22468
See \`config.log' for more details." >&5
 
22469
echo "$as_me: error: cannot compute sizeof (long double)
 
22470
See \`config.log' for more details." >&2;}
 
22471
   { (exit 77); exit 77; }; } ;;
 
22472
esac
 
22473
else
 
22474
  cat >conftest.$ac_ext <<_ACEOF
 
22475
/* confdefs.h.  */
 
22476
_ACEOF
 
22477
cat confdefs.h >>conftest.$ac_ext
 
22478
cat >>conftest.$ac_ext <<_ACEOF
 
22479
/* end confdefs.h.  */
 
22480
$ac_includes_default
 
22481
                   typedef long double ac__type_sizeof_;
 
22482
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22483
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22484
#include <stdio.h>
 
22485
#include <stdlib.h>
 
22486
int
 
22487
main ()
 
22488
{
 
22489
 
 
22490
  FILE *f = fopen ("conftest.val", "w");
 
22491
  if (! f)
 
22492
    return 1;
 
22493
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
22494
    {
 
22495
      long int i = longval ();
 
22496
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22497
        return 1;
 
22498
      fprintf (f, "%ld\n", i);
 
22499
    }
 
22500
  else
 
22501
    {
 
22502
      unsigned long int i = ulongval ();
 
22503
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22504
        return 1;
 
22505
      fprintf (f, "%lu\n", i);
 
22506
    }
 
22507
  return ferror (f) || fclose (f) != 0;
 
22508
 
 
22509
  ;
 
22510
  return 0;
 
22511
}
 
22512
_ACEOF
 
22513
rm -f conftest$ac_exeext
 
22514
if { (ac_try="$ac_link"
 
22515
case "(($ac_try" in
 
22516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22517
  *) ac_try_echo=$ac_try;;
 
22518
esac
 
22519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22520
  (eval "$ac_link") 2>&5
 
22521
  ac_status=$?
 
22522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22523
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22524
  { (case "(($ac_try" in
 
22525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22526
  *) ac_try_echo=$ac_try;;
 
22527
esac
 
22528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22529
  (eval "$ac_try") 2>&5
 
22530
  ac_status=$?
 
22531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22532
  (exit $ac_status); }; }; then
 
22533
  ac_cv_sizeof_long_double=`cat conftest.val`
 
22534
else
 
22535
  echo "$as_me: program exited with status $ac_status" >&5
 
22536
echo "$as_me: failed program was:" >&5
 
22537
sed 's/^/| /' conftest.$ac_ext >&5
 
22538
 
 
22539
( exit $ac_status )
 
22540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
 
22541
See \`config.log' for more details." >&5
 
22542
echo "$as_me: error: cannot compute sizeof (long double)
 
22543
See \`config.log' for more details." >&2;}
 
22544
   { (exit 77); exit 77; }; }
 
22545
fi
 
22546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22547
fi
 
22548
rm -f conftest.val
 
22549
else
 
22550
  ac_cv_sizeof_long_double=0
 
22551
fi
 
22552
fi
 
22553
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
 
22554
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
 
22555
cat >>confdefs.h <<_ACEOF
 
22556
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
 
22557
_ACEOF
 
22558
 
 
22559
 
 
22560
{ echo "$as_me:$LINENO: checking for long long" >&5
 
22561
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
 
22562
if test "${ac_cv_type_long_long+set}" = set; then
 
22563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22564
else
 
22565
  cat >conftest.$ac_ext <<_ACEOF
 
22566
/* confdefs.h.  */
 
22567
_ACEOF
 
22568
cat confdefs.h >>conftest.$ac_ext
 
22569
cat >>conftest.$ac_ext <<_ACEOF
 
22570
/* end confdefs.h.  */
 
22571
$ac_includes_default
 
22572
typedef long long ac__type_new_;
 
22573
int
 
22574
main ()
 
22575
{
 
22576
if ((ac__type_new_ *) 0)
 
22577
  return 0;
 
22578
if (sizeof (ac__type_new_))
 
22579
  return 0;
 
22580
  ;
 
22581
  return 0;
 
22582
}
 
22583
_ACEOF
 
22584
rm -f conftest.$ac_objext
 
22585
if { (ac_try="$ac_compile"
 
22586
case "(($ac_try" in
 
22587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22588
  *) ac_try_echo=$ac_try;;
 
22589
esac
 
22590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22591
  (eval "$ac_compile") 2>conftest.er1
 
22592
  ac_status=$?
 
22593
  grep -v '^ *+' conftest.er1 >conftest.err
 
22594
  rm -f conftest.er1
 
22595
  cat conftest.err >&5
 
22596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22597
  (exit $ac_status); } &&
 
22598
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22599
  { (case "(($ac_try" in
 
22600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22601
  *) ac_try_echo=$ac_try;;
 
22602
esac
 
22603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22604
  (eval "$ac_try") 2>&5
 
22605
  ac_status=$?
 
22606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22607
  (exit $ac_status); }; } &&
 
22608
         { ac_try='test -s conftest.$ac_objext'
 
22609
  { (case "(($ac_try" in
 
22610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22611
  *) ac_try_echo=$ac_try;;
 
22612
esac
 
22613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22614
  (eval "$ac_try") 2>&5
 
22615
  ac_status=$?
 
22616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22617
  (exit $ac_status); }; }; then
 
22618
  ac_cv_type_long_long=yes
 
22619
else
 
22620
  echo "$as_me: failed program was:" >&5
 
22621
sed 's/^/| /' conftest.$ac_ext >&5
 
22622
 
 
22623
        ac_cv_type_long_long=no
 
22624
fi
 
22625
 
 
22626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22627
fi
 
22628
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
22629
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
 
22630
 
 
22631
{ echo "$as_me:$LINENO: checking size of long long" >&5
 
22632
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
 
22633
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
22634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22635
else
 
22636
  if test "$ac_cv_type_long_long" = yes; then
 
22637
  # The cast to long int works around a bug in the HP C Compiler
 
22638
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22639
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22640
  # This bug is HP SR number 8606223364.
 
22641
  if test "$cross_compiling" = yes; then
 
22642
  # Depending upon the size, compute the lo and hi bounds.
 
22643
cat >conftest.$ac_ext <<_ACEOF
 
22644
/* confdefs.h.  */
 
22645
_ACEOF
 
22646
cat confdefs.h >>conftest.$ac_ext
 
22647
cat >>conftest.$ac_ext <<_ACEOF
 
22648
/* end confdefs.h.  */
 
22649
$ac_includes_default
 
22650
                   typedef long long ac__type_sizeof_;
 
22651
int
 
22652
main ()
 
22653
{
 
22654
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
22655
test_array [0] = 0
 
22656
 
 
22657
  ;
 
22658
  return 0;
 
22659
}
 
22660
_ACEOF
 
22661
rm -f conftest.$ac_objext
 
22662
if { (ac_try="$ac_compile"
 
22663
case "(($ac_try" in
 
22664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22665
  *) ac_try_echo=$ac_try;;
 
22666
esac
 
22667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22668
  (eval "$ac_compile") 2>conftest.er1
 
22669
  ac_status=$?
 
22670
  grep -v '^ *+' conftest.er1 >conftest.err
 
22671
  rm -f conftest.er1
 
22672
  cat conftest.err >&5
 
22673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22674
  (exit $ac_status); } &&
 
22675
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22676
  { (case "(($ac_try" in
 
22677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22678
  *) ac_try_echo=$ac_try;;
 
22679
esac
 
22680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22681
  (eval "$ac_try") 2>&5
 
22682
  ac_status=$?
 
22683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22684
  (exit $ac_status); }; } &&
 
22685
         { ac_try='test -s conftest.$ac_objext'
 
22686
  { (case "(($ac_try" in
 
22687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22688
  *) ac_try_echo=$ac_try;;
 
22689
esac
 
22690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22691
  (eval "$ac_try") 2>&5
 
22692
  ac_status=$?
 
22693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22694
  (exit $ac_status); }; }; then
 
22695
  ac_lo=0 ac_mid=0
 
22696
  while :; do
 
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 long long ac__type_sizeof_;
 
22705
int
 
22706
main ()
 
22707
{
 
22708
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22709
test_array [0] = 0
 
22710
 
 
22711
  ;
 
22712
  return 0;
 
22713
}
 
22714
_ACEOF
 
22715
rm -f conftest.$ac_objext
 
22716
if { (ac_try="$ac_compile"
 
22717
case "(($ac_try" in
 
22718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22719
  *) ac_try_echo=$ac_try;;
 
22720
esac
 
22721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22722
  (eval "$ac_compile") 2>conftest.er1
 
22723
  ac_status=$?
 
22724
  grep -v '^ *+' conftest.er1 >conftest.err
 
22725
  rm -f conftest.er1
 
22726
  cat conftest.err >&5
 
22727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22728
  (exit $ac_status); } &&
 
22729
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22730
  { (case "(($ac_try" in
 
22731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22732
  *) ac_try_echo=$ac_try;;
 
22733
esac
 
22734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22735
  (eval "$ac_try") 2>&5
 
22736
  ac_status=$?
 
22737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22738
  (exit $ac_status); }; } &&
 
22739
         { ac_try='test -s conftest.$ac_objext'
 
22740
  { (case "(($ac_try" in
 
22741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22742
  *) ac_try_echo=$ac_try;;
 
22743
esac
 
22744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22745
  (eval "$ac_try") 2>&5
 
22746
  ac_status=$?
 
22747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22748
  (exit $ac_status); }; }; then
 
22749
  ac_hi=$ac_mid; break
 
22750
else
 
22751
  echo "$as_me: failed program was:" >&5
 
22752
sed 's/^/| /' conftest.$ac_ext >&5
 
22753
 
 
22754
        ac_lo=`expr $ac_mid + 1`
 
22755
                        if test $ac_lo -le $ac_mid; then
 
22756
                          ac_lo= ac_hi=
 
22757
                          break
 
22758
                        fi
 
22759
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22760
fi
 
22761
 
 
22762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22763
  done
 
22764
else
 
22765
  echo "$as_me: failed program was:" >&5
 
22766
sed 's/^/| /' conftest.$ac_ext >&5
 
22767
 
 
22768
        cat >conftest.$ac_ext <<_ACEOF
 
22769
/* confdefs.h.  */
 
22770
_ACEOF
 
22771
cat confdefs.h >>conftest.$ac_ext
 
22772
cat >>conftest.$ac_ext <<_ACEOF
 
22773
/* end confdefs.h.  */
 
22774
$ac_includes_default
 
22775
                   typedef long long ac__type_sizeof_;
 
22776
int
 
22777
main ()
 
22778
{
 
22779
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
22780
test_array [0] = 0
 
22781
 
 
22782
  ;
 
22783
  return 0;
 
22784
}
 
22785
_ACEOF
 
22786
rm -f conftest.$ac_objext
 
22787
if { (ac_try="$ac_compile"
 
22788
case "(($ac_try" in
 
22789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22790
  *) ac_try_echo=$ac_try;;
 
22791
esac
 
22792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22793
  (eval "$ac_compile") 2>conftest.er1
 
22794
  ac_status=$?
 
22795
  grep -v '^ *+' conftest.er1 >conftest.err
 
22796
  rm -f conftest.er1
 
22797
  cat conftest.err >&5
 
22798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22799
  (exit $ac_status); } &&
 
22800
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22801
  { (case "(($ac_try" in
 
22802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22803
  *) ac_try_echo=$ac_try;;
 
22804
esac
 
22805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22806
  (eval "$ac_try") 2>&5
 
22807
  ac_status=$?
 
22808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22809
  (exit $ac_status); }; } &&
 
22810
         { ac_try='test -s conftest.$ac_objext'
 
22811
  { (case "(($ac_try" in
 
22812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22813
  *) ac_try_echo=$ac_try;;
 
22814
esac
 
22815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22816
  (eval "$ac_try") 2>&5
 
22817
  ac_status=$?
 
22818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22819
  (exit $ac_status); }; }; then
 
22820
  ac_hi=-1 ac_mid=-1
 
22821
  while :; do
 
22822
    cat >conftest.$ac_ext <<_ACEOF
 
22823
/* confdefs.h.  */
 
22824
_ACEOF
 
22825
cat confdefs.h >>conftest.$ac_ext
 
22826
cat >>conftest.$ac_ext <<_ACEOF
 
22827
/* end confdefs.h.  */
 
22828
$ac_includes_default
 
22829
                   typedef long long ac__type_sizeof_;
 
22830
int
 
22831
main ()
 
22832
{
 
22833
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
22834
test_array [0] = 0
 
22835
 
 
22836
  ;
 
22837
  return 0;
 
22838
}
 
22839
_ACEOF
 
22840
rm -f conftest.$ac_objext
 
22841
if { (ac_try="$ac_compile"
 
22842
case "(($ac_try" in
 
22843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22844
  *) ac_try_echo=$ac_try;;
 
22845
esac
 
22846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22847
  (eval "$ac_compile") 2>conftest.er1
 
22848
  ac_status=$?
 
22849
  grep -v '^ *+' conftest.er1 >conftest.err
 
22850
  rm -f conftest.er1
 
22851
  cat conftest.err >&5
 
22852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22853
  (exit $ac_status); } &&
 
22854
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22855
  { (case "(($ac_try" in
 
22856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22857
  *) ac_try_echo=$ac_try;;
 
22858
esac
 
22859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22860
  (eval "$ac_try") 2>&5
 
22861
  ac_status=$?
 
22862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22863
  (exit $ac_status); }; } &&
 
22864
         { ac_try='test -s conftest.$ac_objext'
 
22865
  { (case "(($ac_try" in
 
22866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22867
  *) ac_try_echo=$ac_try;;
 
22868
esac
 
22869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22870
  (eval "$ac_try") 2>&5
 
22871
  ac_status=$?
 
22872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22873
  (exit $ac_status); }; }; then
 
22874
  ac_lo=$ac_mid; break
 
22875
else
 
22876
  echo "$as_me: failed program was:" >&5
 
22877
sed 's/^/| /' conftest.$ac_ext >&5
 
22878
 
 
22879
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22880
                        if test $ac_mid -le $ac_hi; then
 
22881
                          ac_lo= ac_hi=
 
22882
                          break
 
22883
                        fi
 
22884
                        ac_mid=`expr 2 '*' $ac_mid`
 
22885
fi
 
22886
 
 
22887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22888
  done
 
22889
else
 
22890
  echo "$as_me: failed program was:" >&5
 
22891
sed 's/^/| /' conftest.$ac_ext >&5
 
22892
 
 
22893
        ac_lo= ac_hi=
 
22894
fi
 
22895
 
 
22896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22897
fi
 
22898
 
 
22899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22900
# Binary search between lo and hi bounds.
 
22901
while test "x$ac_lo" != "x$ac_hi"; do
 
22902
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22903
  cat >conftest.$ac_ext <<_ACEOF
 
22904
/* confdefs.h.  */
 
22905
_ACEOF
 
22906
cat confdefs.h >>conftest.$ac_ext
 
22907
cat >>conftest.$ac_ext <<_ACEOF
 
22908
/* end confdefs.h.  */
 
22909
$ac_includes_default
 
22910
                   typedef long long ac__type_sizeof_;
 
22911
int
 
22912
main ()
 
22913
{
 
22914
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
22915
test_array [0] = 0
 
22916
 
 
22917
  ;
 
22918
  return 0;
 
22919
}
 
22920
_ACEOF
 
22921
rm -f conftest.$ac_objext
 
22922
if { (ac_try="$ac_compile"
 
22923
case "(($ac_try" in
 
22924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22925
  *) ac_try_echo=$ac_try;;
 
22926
esac
 
22927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22928
  (eval "$ac_compile") 2>conftest.er1
 
22929
  ac_status=$?
 
22930
  grep -v '^ *+' conftest.er1 >conftest.err
 
22931
  rm -f conftest.er1
 
22932
  cat conftest.err >&5
 
22933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22934
  (exit $ac_status); } &&
 
22935
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22936
  { (case "(($ac_try" in
 
22937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22938
  *) ac_try_echo=$ac_try;;
 
22939
esac
 
22940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22941
  (eval "$ac_try") 2>&5
 
22942
  ac_status=$?
 
22943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22944
  (exit $ac_status); }; } &&
 
22945
         { ac_try='test -s conftest.$ac_objext'
 
22946
  { (case "(($ac_try" in
 
22947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22948
  *) ac_try_echo=$ac_try;;
 
22949
esac
 
22950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22951
  (eval "$ac_try") 2>&5
 
22952
  ac_status=$?
 
22953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22954
  (exit $ac_status); }; }; then
 
22955
  ac_hi=$ac_mid
 
22956
else
 
22957
  echo "$as_me: failed program was:" >&5
 
22958
sed 's/^/| /' conftest.$ac_ext >&5
 
22959
 
 
22960
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22961
fi
 
22962
 
 
22963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22964
done
 
22965
case $ac_lo in
 
22966
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
22967
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
 
22968
See \`config.log' for more details." >&5
 
22969
echo "$as_me: error: cannot compute sizeof (long long)
 
22970
See \`config.log' for more details." >&2;}
 
22971
   { (exit 77); exit 77; }; } ;;
 
22972
esac
 
22973
else
 
22974
  cat >conftest.$ac_ext <<_ACEOF
 
22975
/* confdefs.h.  */
 
22976
_ACEOF
 
22977
cat confdefs.h >>conftest.$ac_ext
 
22978
cat >>conftest.$ac_ext <<_ACEOF
 
22979
/* end confdefs.h.  */
 
22980
$ac_includes_default
 
22981
                   typedef long long ac__type_sizeof_;
 
22982
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22983
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
22984
#include <stdio.h>
 
22985
#include <stdlib.h>
 
22986
int
 
22987
main ()
 
22988
{
 
22989
 
 
22990
  FILE *f = fopen ("conftest.val", "w");
 
22991
  if (! f)
 
22992
    return 1;
 
22993
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
22994
    {
 
22995
      long int i = longval ();
 
22996
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
22997
        return 1;
 
22998
      fprintf (f, "%ld\n", i);
 
22999
    }
 
23000
  else
 
23001
    {
 
23002
      unsigned long int i = ulongval ();
 
23003
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23004
        return 1;
 
23005
      fprintf (f, "%lu\n", i);
 
23006
    }
 
23007
  return ferror (f) || fclose (f) != 0;
 
23008
 
 
23009
  ;
 
23010
  return 0;
 
23011
}
 
23012
_ACEOF
 
23013
rm -f conftest$ac_exeext
 
23014
if { (ac_try="$ac_link"
 
23015
case "(($ac_try" in
 
23016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23017
  *) ac_try_echo=$ac_try;;
 
23018
esac
 
23019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23020
  (eval "$ac_link") 2>&5
 
23021
  ac_status=$?
 
23022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23023
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23024
  { (case "(($ac_try" in
 
23025
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23026
  *) ac_try_echo=$ac_try;;
 
23027
esac
 
23028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23029
  (eval "$ac_try") 2>&5
 
23030
  ac_status=$?
 
23031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23032
  (exit $ac_status); }; }; then
 
23033
  ac_cv_sizeof_long_long=`cat conftest.val`
 
23034
else
 
23035
  echo "$as_me: program exited with status $ac_status" >&5
 
23036
echo "$as_me: failed program was:" >&5
 
23037
sed 's/^/| /' conftest.$ac_ext >&5
 
23038
 
 
23039
( exit $ac_status )
 
23040
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
 
23041
See \`config.log' for more details." >&5
 
23042
echo "$as_me: error: cannot compute sizeof (long long)
 
23043
See \`config.log' for more details." >&2;}
 
23044
   { (exit 77); exit 77; }; }
 
23045
fi
 
23046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23047
fi
 
23048
rm -f conftest.val
 
23049
else
 
23050
  ac_cv_sizeof_long_long=0
 
23051
fi
 
23052
fi
 
23053
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
23054
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
 
23055
cat >>confdefs.h <<_ACEOF
 
23056
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
23057
_ACEOF
 
23058
 
 
23059
 
 
23060
{ echo "$as_me:$LINENO: checking for longlong" >&5
 
23061
echo $ECHO_N "checking for longlong... $ECHO_C" >&6; }
 
23062
if test "${ac_cv_type_longlong+set}" = set; then
 
23063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23064
else
 
23065
  cat >conftest.$ac_ext <<_ACEOF
 
23066
/* confdefs.h.  */
 
23067
_ACEOF
 
23068
cat confdefs.h >>conftest.$ac_ext
 
23069
cat >>conftest.$ac_ext <<_ACEOF
 
23070
/* end confdefs.h.  */
 
23071
$ac_includes_default
 
23072
typedef longlong ac__type_new_;
 
23073
int
 
23074
main ()
 
23075
{
 
23076
if ((ac__type_new_ *) 0)
 
23077
  return 0;
 
23078
if (sizeof (ac__type_new_))
 
23079
  return 0;
 
23080
  ;
 
23081
  return 0;
 
23082
}
 
23083
_ACEOF
 
23084
rm -f conftest.$ac_objext
 
23085
if { (ac_try="$ac_compile"
 
23086
case "(($ac_try" in
 
23087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23088
  *) ac_try_echo=$ac_try;;
 
23089
esac
 
23090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23091
  (eval "$ac_compile") 2>conftest.er1
 
23092
  ac_status=$?
 
23093
  grep -v '^ *+' conftest.er1 >conftest.err
 
23094
  rm -f conftest.er1
 
23095
  cat conftest.err >&5
 
23096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23097
  (exit $ac_status); } &&
 
23098
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23099
  { (case "(($ac_try" in
 
23100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23101
  *) ac_try_echo=$ac_try;;
 
23102
esac
 
23103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23104
  (eval "$ac_try") 2>&5
 
23105
  ac_status=$?
 
23106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23107
  (exit $ac_status); }; } &&
 
23108
         { ac_try='test -s conftest.$ac_objext'
 
23109
  { (case "(($ac_try" in
 
23110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23111
  *) ac_try_echo=$ac_try;;
 
23112
esac
 
23113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23114
  (eval "$ac_try") 2>&5
 
23115
  ac_status=$?
 
23116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23117
  (exit $ac_status); }; }; then
 
23118
  ac_cv_type_longlong=yes
 
23119
else
 
23120
  echo "$as_me: failed program was:" >&5
 
23121
sed 's/^/| /' conftest.$ac_ext >&5
 
23122
 
 
23123
        ac_cv_type_longlong=no
 
23124
fi
 
23125
 
 
23126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23127
fi
 
23128
{ echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5
 
23129
echo "${ECHO_T}$ac_cv_type_longlong" >&6; }
 
23130
 
 
23131
{ echo "$as_me:$LINENO: checking size of longlong" >&5
 
23132
echo $ECHO_N "checking size of longlong... $ECHO_C" >&6; }
 
23133
if test "${ac_cv_sizeof_longlong+set}" = set; then
 
23134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23135
else
 
23136
  if test "$ac_cv_type_longlong" = yes; then
 
23137
  # The cast to long int works around a bug in the HP C Compiler
 
23138
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
23139
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
23140
  # This bug is HP SR number 8606223364.
 
23141
  if test "$cross_compiling" = yes; then
 
23142
  # Depending upon the size, compute the lo and hi bounds.
 
23143
cat >conftest.$ac_ext <<_ACEOF
 
23144
/* confdefs.h.  */
 
23145
_ACEOF
 
23146
cat confdefs.h >>conftest.$ac_ext
 
23147
cat >>conftest.$ac_ext <<_ACEOF
 
23148
/* end confdefs.h.  */
 
23149
$ac_includes_default
 
23150
                   typedef longlong ac__type_sizeof_;
 
23151
int
 
23152
main ()
 
23153
{
 
23154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
23155
test_array [0] = 0
 
23156
 
 
23157
  ;
 
23158
  return 0;
 
23159
}
 
23160
_ACEOF
 
23161
rm -f conftest.$ac_objext
 
23162
if { (ac_try="$ac_compile"
 
23163
case "(($ac_try" in
 
23164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23165
  *) ac_try_echo=$ac_try;;
 
23166
esac
 
23167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23168
  (eval "$ac_compile") 2>conftest.er1
 
23169
  ac_status=$?
 
23170
  grep -v '^ *+' conftest.er1 >conftest.err
 
23171
  rm -f conftest.er1
 
23172
  cat conftest.err >&5
 
23173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23174
  (exit $ac_status); } &&
 
23175
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23176
  { (case "(($ac_try" in
 
23177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23178
  *) ac_try_echo=$ac_try;;
 
23179
esac
 
23180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23181
  (eval "$ac_try") 2>&5
 
23182
  ac_status=$?
 
23183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23184
  (exit $ac_status); }; } &&
 
23185
         { ac_try='test -s conftest.$ac_objext'
 
23186
  { (case "(($ac_try" in
 
23187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23188
  *) ac_try_echo=$ac_try;;
 
23189
esac
 
23190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23191
  (eval "$ac_try") 2>&5
 
23192
  ac_status=$?
 
23193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23194
  (exit $ac_status); }; }; then
 
23195
  ac_lo=0 ac_mid=0
 
23196
  while :; do
 
23197
    cat >conftest.$ac_ext <<_ACEOF
 
23198
/* confdefs.h.  */
 
23199
_ACEOF
 
23200
cat confdefs.h >>conftest.$ac_ext
 
23201
cat >>conftest.$ac_ext <<_ACEOF
 
23202
/* end confdefs.h.  */
 
23203
$ac_includes_default
 
23204
                   typedef longlong ac__type_sizeof_;
 
23205
int
 
23206
main ()
 
23207
{
 
23208
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
23209
test_array [0] = 0
 
23210
 
 
23211
  ;
 
23212
  return 0;
 
23213
}
 
23214
_ACEOF
 
23215
rm -f conftest.$ac_objext
 
23216
if { (ac_try="$ac_compile"
 
23217
case "(($ac_try" in
 
23218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23219
  *) ac_try_echo=$ac_try;;
 
23220
esac
 
23221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23222
  (eval "$ac_compile") 2>conftest.er1
 
23223
  ac_status=$?
 
23224
  grep -v '^ *+' conftest.er1 >conftest.err
 
23225
  rm -f conftest.er1
 
23226
  cat conftest.err >&5
 
23227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23228
  (exit $ac_status); } &&
 
23229
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23230
  { (case "(($ac_try" in
 
23231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23232
  *) ac_try_echo=$ac_try;;
 
23233
esac
 
23234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23235
  (eval "$ac_try") 2>&5
 
23236
  ac_status=$?
 
23237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23238
  (exit $ac_status); }; } &&
 
23239
         { ac_try='test -s conftest.$ac_objext'
 
23240
  { (case "(($ac_try" in
 
23241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23242
  *) ac_try_echo=$ac_try;;
 
23243
esac
 
23244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23245
  (eval "$ac_try") 2>&5
 
23246
  ac_status=$?
 
23247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23248
  (exit $ac_status); }; }; then
 
23249
  ac_hi=$ac_mid; break
 
23250
else
 
23251
  echo "$as_me: failed program was:" >&5
 
23252
sed 's/^/| /' conftest.$ac_ext >&5
 
23253
 
 
23254
        ac_lo=`expr $ac_mid + 1`
 
23255
                        if test $ac_lo -le $ac_mid; then
 
23256
                          ac_lo= ac_hi=
 
23257
                          break
 
23258
                        fi
 
23259
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
23260
fi
 
23261
 
 
23262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23263
  done
 
23264
else
 
23265
  echo "$as_me: failed program was:" >&5
 
23266
sed 's/^/| /' conftest.$ac_ext >&5
 
23267
 
 
23268
        cat >conftest.$ac_ext <<_ACEOF
 
23269
/* confdefs.h.  */
 
23270
_ACEOF
 
23271
cat confdefs.h >>conftest.$ac_ext
 
23272
cat >>conftest.$ac_ext <<_ACEOF
 
23273
/* end confdefs.h.  */
 
23274
$ac_includes_default
 
23275
                   typedef longlong ac__type_sizeof_;
 
23276
int
 
23277
main ()
 
23278
{
 
23279
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
23280
test_array [0] = 0
 
23281
 
 
23282
  ;
 
23283
  return 0;
 
23284
}
 
23285
_ACEOF
 
23286
rm -f conftest.$ac_objext
 
23287
if { (ac_try="$ac_compile"
 
23288
case "(($ac_try" in
 
23289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23290
  *) ac_try_echo=$ac_try;;
 
23291
esac
 
23292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23293
  (eval "$ac_compile") 2>conftest.er1
 
23294
  ac_status=$?
 
23295
  grep -v '^ *+' conftest.er1 >conftest.err
 
23296
  rm -f conftest.er1
 
23297
  cat conftest.err >&5
 
23298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23299
  (exit $ac_status); } &&
 
23300
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23301
  { (case "(($ac_try" in
 
23302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23303
  *) ac_try_echo=$ac_try;;
 
23304
esac
 
23305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23306
  (eval "$ac_try") 2>&5
 
23307
  ac_status=$?
 
23308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23309
  (exit $ac_status); }; } &&
 
23310
         { ac_try='test -s conftest.$ac_objext'
 
23311
  { (case "(($ac_try" in
 
23312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23313
  *) ac_try_echo=$ac_try;;
 
23314
esac
 
23315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23316
  (eval "$ac_try") 2>&5
 
23317
  ac_status=$?
 
23318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23319
  (exit $ac_status); }; }; then
 
23320
  ac_hi=-1 ac_mid=-1
 
23321
  while :; do
 
23322
    cat >conftest.$ac_ext <<_ACEOF
 
23323
/* confdefs.h.  */
 
23324
_ACEOF
 
23325
cat confdefs.h >>conftest.$ac_ext
 
23326
cat >>conftest.$ac_ext <<_ACEOF
 
23327
/* end confdefs.h.  */
 
23328
$ac_includes_default
 
23329
                   typedef longlong ac__type_sizeof_;
 
23330
int
 
23331
main ()
 
23332
{
 
23333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
23334
test_array [0] = 0
 
23335
 
 
23336
  ;
 
23337
  return 0;
 
23338
}
 
23339
_ACEOF
 
23340
rm -f conftest.$ac_objext
 
23341
if { (ac_try="$ac_compile"
 
23342
case "(($ac_try" in
 
23343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23344
  *) ac_try_echo=$ac_try;;
 
23345
esac
 
23346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23347
  (eval "$ac_compile") 2>conftest.er1
 
23348
  ac_status=$?
 
23349
  grep -v '^ *+' conftest.er1 >conftest.err
 
23350
  rm -f conftest.er1
 
23351
  cat conftest.err >&5
 
23352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23353
  (exit $ac_status); } &&
 
23354
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23355
  { (case "(($ac_try" in
 
23356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23357
  *) ac_try_echo=$ac_try;;
 
23358
esac
 
23359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23360
  (eval "$ac_try") 2>&5
 
23361
  ac_status=$?
 
23362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23363
  (exit $ac_status); }; } &&
 
23364
         { ac_try='test -s conftest.$ac_objext'
 
23365
  { (case "(($ac_try" in
 
23366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23367
  *) ac_try_echo=$ac_try;;
 
23368
esac
 
23369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23370
  (eval "$ac_try") 2>&5
 
23371
  ac_status=$?
 
23372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23373
  (exit $ac_status); }; }; then
 
23374
  ac_lo=$ac_mid; break
 
23375
else
 
23376
  echo "$as_me: failed program was:" >&5
 
23377
sed 's/^/| /' conftest.$ac_ext >&5
 
23378
 
 
23379
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
23380
                        if test $ac_mid -le $ac_hi; then
 
23381
                          ac_lo= ac_hi=
 
23382
                          break
 
23383
                        fi
 
23384
                        ac_mid=`expr 2 '*' $ac_mid`
 
23385
fi
 
23386
 
 
23387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23388
  done
 
23389
else
 
23390
  echo "$as_me: failed program was:" >&5
 
23391
sed 's/^/| /' conftest.$ac_ext >&5
 
23392
 
 
23393
        ac_lo= ac_hi=
 
23394
fi
 
23395
 
 
23396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23397
fi
 
23398
 
 
23399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23400
# Binary search between lo and hi bounds.
 
23401
while test "x$ac_lo" != "x$ac_hi"; do
 
23402
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
23403
  cat >conftest.$ac_ext <<_ACEOF
 
23404
/* confdefs.h.  */
 
23405
_ACEOF
 
23406
cat confdefs.h >>conftest.$ac_ext
 
23407
cat >>conftest.$ac_ext <<_ACEOF
 
23408
/* end confdefs.h.  */
 
23409
$ac_includes_default
 
23410
                   typedef longlong ac__type_sizeof_;
 
23411
int
 
23412
main ()
 
23413
{
 
23414
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
23415
test_array [0] = 0
 
23416
 
 
23417
  ;
 
23418
  return 0;
 
23419
}
 
23420
_ACEOF
 
23421
rm -f conftest.$ac_objext
 
23422
if { (ac_try="$ac_compile"
 
23423
case "(($ac_try" in
 
23424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23425
  *) ac_try_echo=$ac_try;;
 
23426
esac
 
23427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23428
  (eval "$ac_compile") 2>conftest.er1
 
23429
  ac_status=$?
 
23430
  grep -v '^ *+' conftest.er1 >conftest.err
 
23431
  rm -f conftest.er1
 
23432
  cat conftest.err >&5
 
23433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23434
  (exit $ac_status); } &&
 
23435
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23436
  { (case "(($ac_try" in
 
23437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23438
  *) ac_try_echo=$ac_try;;
 
23439
esac
 
23440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23441
  (eval "$ac_try") 2>&5
 
23442
  ac_status=$?
 
23443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23444
  (exit $ac_status); }; } &&
 
23445
         { ac_try='test -s conftest.$ac_objext'
 
23446
  { (case "(($ac_try" in
 
23447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23448
  *) ac_try_echo=$ac_try;;
 
23449
esac
 
23450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23451
  (eval "$ac_try") 2>&5
 
23452
  ac_status=$?
 
23453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23454
  (exit $ac_status); }; }; then
 
23455
  ac_hi=$ac_mid
 
23456
else
 
23457
  echo "$as_me: failed program was:" >&5
 
23458
sed 's/^/| /' conftest.$ac_ext >&5
 
23459
 
 
23460
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
23461
fi
 
23462
 
 
23463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23464
done
 
23465
case $ac_lo in
 
23466
?*) ac_cv_sizeof_longlong=$ac_lo;;
 
23467
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (longlong)
 
23468
See \`config.log' for more details." >&5
 
23469
echo "$as_me: error: cannot compute sizeof (longlong)
 
23470
See \`config.log' for more details." >&2;}
 
23471
   { (exit 77); exit 77; }; } ;;
 
23472
esac
 
23473
else
 
23474
  cat >conftest.$ac_ext <<_ACEOF
 
23475
/* confdefs.h.  */
 
23476
_ACEOF
 
23477
cat confdefs.h >>conftest.$ac_ext
 
23478
cat >>conftest.$ac_ext <<_ACEOF
 
23479
/* end confdefs.h.  */
 
23480
$ac_includes_default
 
23481
                   typedef longlong ac__type_sizeof_;
 
23482
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
23483
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
23484
#include <stdio.h>
 
23485
#include <stdlib.h>
 
23486
int
 
23487
main ()
 
23488
{
 
23489
 
 
23490
  FILE *f = fopen ("conftest.val", "w");
 
23491
  if (! f)
 
23492
    return 1;
 
23493
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
23494
    {
 
23495
      long int i = longval ();
 
23496
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23497
        return 1;
 
23498
      fprintf (f, "%ld\n", i);
 
23499
    }
 
23500
  else
 
23501
    {
 
23502
      unsigned long int i = ulongval ();
 
23503
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
23504
        return 1;
 
23505
      fprintf (f, "%lu\n", i);
 
23506
    }
 
23507
  return ferror (f) || fclose (f) != 0;
 
23508
 
 
23509
  ;
 
23510
  return 0;
 
23511
}
 
23512
_ACEOF
 
23513
rm -f conftest$ac_exeext
 
23514
if { (ac_try="$ac_link"
 
23515
case "(($ac_try" in
 
23516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23517
  *) ac_try_echo=$ac_try;;
 
23518
esac
 
23519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23520
  (eval "$ac_link") 2>&5
 
23521
  ac_status=$?
 
23522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23523
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23524
  { (case "(($ac_try" in
 
23525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23526
  *) ac_try_echo=$ac_try;;
 
23527
esac
 
23528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23529
  (eval "$ac_try") 2>&5
 
23530
  ac_status=$?
 
23531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23532
  (exit $ac_status); }; }; then
 
23533
  ac_cv_sizeof_longlong=`cat conftest.val`
 
23534
else
 
23535
  echo "$as_me: program exited with status $ac_status" >&5
 
23536
echo "$as_me: failed program was:" >&5
 
23537
sed 's/^/| /' conftest.$ac_ext >&5
 
23538
 
 
23539
( exit $ac_status )
 
23540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (longlong)
 
23541
See \`config.log' for more details." >&5
 
23542
echo "$as_me: error: cannot compute sizeof (longlong)
 
23543
See \`config.log' for more details." >&2;}
 
23544
   { (exit 77); exit 77; }; }
 
23545
fi
 
23546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23547
fi
 
23548
rm -f conftest.val
 
23549
else
 
23550
  ac_cv_sizeof_longlong=0
 
23551
fi
 
23552
fi
 
23553
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_longlong" >&5
 
23554
echo "${ECHO_T}$ac_cv_sizeof_longlong" >&6; }
 
23555
cat >>confdefs.h <<_ACEOF
 
23556
#define SIZEOF_LONGLONG $ac_cv_sizeof_longlong
 
23557
_ACEOF
 
23558
 
 
23559
 
 
23560
 
 
23561
# Now we need to find what jk_uint32_t (sizeof == 4) will be.
 
23562
# The first match is our preference.
 
23563
if test "$ac_cv_sizeof_int" = "4"; then
 
23564
    int32_t_fmt='#define JK_INT32_T_FMT "d"'
 
23565
    uint32_t_fmt='#define JK_UINT32_T_FMT "u"'
 
23566
    uint32_t_hex_fmt='#define JK_UINT32_T_HEX_FMT "x"'
 
23567
    int32_value="int"
 
23568
elif test "$ac_cv_sizeof_long" = "4"; then
 
23569
    int32_t_fmt='#define JK_INT32_T_FMT "ld"'
 
23570
    uint32_t_fmt='#define JK_UINT32_T_FMT "lu"'
 
23571
    uint32_t_hex_fmt='#define JK_UINT32_T_HEX_FMT "lx"'
 
23572
    int32_value="long"
 
23573
else
 
23574
    int32_t_fmt='#error could not detect a 32-bit integer type'
 
23575
    uint32_t_fmt='#error could not detect a 32-bit integer type'
 
23576
    uint32_t_hex_fmt='#error could not detect a 32-bit integer type'
 
23577
    { { echo "$as_me:$LINENO: error: could not detect a 32-bit integer type" >&5
 
23578
echo "$as_me: error: could not detect a 32-bit integer type" >&2;}
 
23579
   { (exit 1); exit 1; }; }
 
23580
fi
 
23581
 
 
23582
# Now we need to find what jk_uint64_t (sizeof == 8) will be.
 
23583
# The first match is our preference.
 
23584
if test "$ac_cv_sizeof_int" = "8"; then
 
23585
    int64_t_fmt='#define JK_INT64_T_FMT "d"'
 
23586
    uint64_t_fmt='#define JK_UINT64_T_FMT "u"'
 
23587
    uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "x"'
 
23588
    int64_value="int"
 
23589
elif test "$ac_cv_sizeof_long" = "8"; then
 
23590
    int64_t_fmt='#define JK_INT64_T_FMT "ld"'
 
23591
    uint64_t_fmt='#define JK_UINT64_T_FMT "lu"'
 
23592
    uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "lx"'
 
23593
    int64_value="long"
 
23594
elif test "$ac_cv_sizeof_long_long" = "8"; then
 
23595
    # Linux, Solaris, FreeBSD all support ll with printf.
 
23596
    # BSD 4.4 originated 'q'.  Solaris is more popular and
 
23597
    # doesn't support 'q'.  Solaris wins.  Exceptions can
 
23598
    # go to the OS-dependent section.
 
23599
    int64_t_fmt='#define JK_INT64_T_FMT "lld"'
 
23600
    uint64_t_fmt='#define JK_UINT64_T_FMT "llu"'
 
23601
    uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "llx"'
 
23602
    int64_value="long long"
 
23603
elif test "$ac_cv_sizeof_long_double" = "8"; then
 
23604
    int64_t_fmt='#define JK_INT64_T_FMT "Ld"'
 
23605
    uint64_t_fmt='#define JK_UINT64_T_FMT "Lu"'
 
23606
    uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "Lx"'
 
23607
    int64_value="long double"
 
23608
elif test "$ac_cv_sizeof_longlong" = "8"; then
 
23609
    int64_t_fmt='#define JK_INT64_T_FMT "qd"'
 
23610
    uint64_t_fmt='#define JK_UINT64_T_FMT "qu"'
 
23611
    uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "qx"'
 
23612
    int64_value="__int64"
 
23613
else
 
23614
    int64_t_fmt='#error could not detect a 64-bit integer type'
 
23615
    uint64_t_fmt='#error could not detect a 64-bit integer type'
 
23616
    uint64_t_hex_fmt='#error could not detect a 64-bit integer type'
 
23617
    { { echo "$as_me:$LINENO: error: could not detect a 64-bit integer type" >&5
 
23618
echo "$as_me: error: could not detect a 64-bit integer type" >&2;}
 
23619
   { (exit 1); exit 1; }; }
 
23620
fi
 
23621
 
 
23622
 
 
23623
 
 
23624
 
 
23625
 
 
23626
 
 
23627
 
 
23628
 
 
23629
 
 
23630
 
 
23631
{ echo "$as_me:$LINENO: checking for snprintf" >&5
 
23632
echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
 
23633
if test "${ac_cv_func_snprintf+set}" = set; then
 
23634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23635
else
 
23636
  cat >conftest.$ac_ext <<_ACEOF
 
23637
/* confdefs.h.  */
 
23638
_ACEOF
 
23639
cat confdefs.h >>conftest.$ac_ext
 
23640
cat >>conftest.$ac_ext <<_ACEOF
 
23641
/* end confdefs.h.  */
 
23642
/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
 
23643
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23644
#define snprintf innocuous_snprintf
 
23645
 
 
23646
/* System header to define __stub macros and hopefully few prototypes,
 
23647
    which can conflict with char snprintf (); below.
 
23648
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23649
    <limits.h> exists even on freestanding compilers.  */
 
23650
 
 
23651
#ifdef __STDC__
 
23652
# include <limits.h>
 
23653
#else
 
23654
# include <assert.h>
 
23655
#endif
 
23656
 
 
23657
#undef snprintf
 
23658
 
 
23659
/* Override any GCC internal prototype to avoid an error.
 
23660
   Use char because int might match the return type of a GCC
 
23661
   builtin and then its argument prototype would still apply.  */
 
23662
#ifdef __cplusplus
 
23663
extern "C"
 
23664
#endif
 
23665
char snprintf ();
 
23666
/* The GNU C library defines this for functions which it implements
 
23667
    to always fail with ENOSYS.  Some functions are actually named
 
23668
    something starting with __ and the normal name is an alias.  */
 
23669
#if defined __stub_snprintf || defined __stub___snprintf
 
23670
choke me
 
23671
#endif
 
23672
 
 
23673
int
 
23674
main ()
 
23675
{
 
23676
return snprintf ();
 
23677
  ;
 
23678
  return 0;
 
23679
}
 
23680
_ACEOF
 
23681
rm -f conftest.$ac_objext conftest$ac_exeext
 
23682
if { (ac_try="$ac_link"
 
23683
case "(($ac_try" in
 
23684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23685
  *) ac_try_echo=$ac_try;;
 
23686
esac
 
23687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23688
  (eval "$ac_link") 2>conftest.er1
 
23689
  ac_status=$?
 
23690
  grep -v '^ *+' conftest.er1 >conftest.err
 
23691
  rm -f conftest.er1
 
23692
  cat conftest.err >&5
 
23693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23694
  (exit $ac_status); } &&
 
23695
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23696
  { (case "(($ac_try" in
 
23697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23698
  *) ac_try_echo=$ac_try;;
 
23699
esac
 
23700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23701
  (eval "$ac_try") 2>&5
 
23702
  ac_status=$?
 
23703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23704
  (exit $ac_status); }; } &&
 
23705
         { ac_try='test -s conftest$ac_exeext'
 
23706
  { (case "(($ac_try" in
 
23707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23708
  *) ac_try_echo=$ac_try;;
 
23709
esac
 
23710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23711
  (eval "$ac_try") 2>&5
 
23712
  ac_status=$?
 
23713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23714
  (exit $ac_status); }; }; then
 
23715
  ac_cv_func_snprintf=yes
 
23716
else
 
23717
  echo "$as_me: failed program was:" >&5
 
23718
sed 's/^/| /' conftest.$ac_ext >&5
 
23719
 
 
23720
        ac_cv_func_snprintf=no
 
23721
fi
 
23722
 
 
23723
rm -f core conftest.err conftest.$ac_objext \
 
23724
      conftest$ac_exeext conftest.$ac_ext
 
23725
fi
 
23726
{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
 
23727
echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
 
23728
if test $ac_cv_func_snprintf = yes; then
 
23729
 
 
23730
cat >>confdefs.h <<\_ACEOF
 
23731
#define HAVE_SNPRINTF 1
 
23732
_ACEOF
 
23733
 
 
23734
fi
 
23735
 
 
23736
{ echo "$as_me:$LINENO: checking for vsnprintf" >&5
 
23737
echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
 
23738
if test "${ac_cv_func_vsnprintf+set}" = set; then
 
23739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23740
else
 
23741
  cat >conftest.$ac_ext <<_ACEOF
 
23742
/* confdefs.h.  */
 
23743
_ACEOF
 
23744
cat confdefs.h >>conftest.$ac_ext
 
23745
cat >>conftest.$ac_ext <<_ACEOF
 
23746
/* end confdefs.h.  */
 
23747
/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
 
23748
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23749
#define vsnprintf innocuous_vsnprintf
 
23750
 
 
23751
/* System header to define __stub macros and hopefully few prototypes,
 
23752
    which can conflict with char vsnprintf (); below.
 
23753
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23754
    <limits.h> exists even on freestanding compilers.  */
 
23755
 
 
23756
#ifdef __STDC__
 
23757
# include <limits.h>
 
23758
#else
 
23759
# include <assert.h>
 
23760
#endif
 
23761
 
 
23762
#undef vsnprintf
 
23763
 
 
23764
/* Override any GCC internal prototype to avoid an error.
 
23765
   Use char because int might match the return type of a GCC
 
23766
   builtin and then its argument prototype would still apply.  */
 
23767
#ifdef __cplusplus
 
23768
extern "C"
 
23769
#endif
 
23770
char vsnprintf ();
 
23771
/* The GNU C library defines this for functions which it implements
 
23772
    to always fail with ENOSYS.  Some functions are actually named
 
23773
    something starting with __ and the normal name is an alias.  */
 
23774
#if defined __stub_vsnprintf || defined __stub___vsnprintf
 
23775
choke me
 
23776
#endif
 
23777
 
 
23778
int
 
23779
main ()
 
23780
{
 
23781
return vsnprintf ();
 
23782
  ;
 
23783
  return 0;
 
23784
}
 
23785
_ACEOF
 
23786
rm -f conftest.$ac_objext conftest$ac_exeext
 
23787
if { (ac_try="$ac_link"
 
23788
case "(($ac_try" in
 
23789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23790
  *) ac_try_echo=$ac_try;;
 
23791
esac
 
23792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23793
  (eval "$ac_link") 2>conftest.er1
 
23794
  ac_status=$?
 
23795
  grep -v '^ *+' conftest.er1 >conftest.err
 
23796
  rm -f conftest.er1
 
23797
  cat conftest.err >&5
 
23798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23799
  (exit $ac_status); } &&
 
23800
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23801
  { (case "(($ac_try" in
 
23802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23803
  *) ac_try_echo=$ac_try;;
 
23804
esac
 
23805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23806
  (eval "$ac_try") 2>&5
 
23807
  ac_status=$?
 
23808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23809
  (exit $ac_status); }; } &&
 
23810
         { ac_try='test -s conftest$ac_exeext'
 
23811
  { (case "(($ac_try" in
 
23812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23813
  *) ac_try_echo=$ac_try;;
 
23814
esac
 
23815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23816
  (eval "$ac_try") 2>&5
 
23817
  ac_status=$?
 
23818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23819
  (exit $ac_status); }; }; then
 
23820
  ac_cv_func_vsnprintf=yes
 
23821
else
 
23822
  echo "$as_me: failed program was:" >&5
 
23823
sed 's/^/| /' conftest.$ac_ext >&5
 
23824
 
 
23825
        ac_cv_func_vsnprintf=no
 
23826
fi
 
23827
 
 
23828
rm -f core conftest.err conftest.$ac_objext \
 
23829
      conftest$ac_exeext conftest.$ac_ext
 
23830
fi
 
23831
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
 
23832
echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
 
23833
if test $ac_cv_func_vsnprintf = yes; then
 
23834
 
 
23835
cat >>confdefs.h <<\_ACEOF
 
23836
#define HAVE_VSNPRINTF 1
 
23837
_ACEOF
 
23838
 
 
23839
fi
 
23840
 
 
23841
{ echo "$as_me:$LINENO: checking for flock" >&5
 
23842
echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
 
23843
if test "${ac_cv_func_flock+set}" = set; then
 
23844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23845
else
 
23846
  cat >conftest.$ac_ext <<_ACEOF
 
23847
/* confdefs.h.  */
 
23848
_ACEOF
 
23849
cat confdefs.h >>conftest.$ac_ext
 
23850
cat >>conftest.$ac_ext <<_ACEOF
 
23851
/* end confdefs.h.  */
 
23852
/* Define flock to an innocuous variant, in case <limits.h> declares flock.
 
23853
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23854
#define flock innocuous_flock
 
23855
 
 
23856
/* System header to define __stub macros and hopefully few prototypes,
 
23857
    which can conflict with char flock (); below.
 
23858
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23859
    <limits.h> exists even on freestanding compilers.  */
 
23860
 
 
23861
#ifdef __STDC__
 
23862
# include <limits.h>
 
23863
#else
 
23864
# include <assert.h>
 
23865
#endif
 
23866
 
 
23867
#undef flock
 
23868
 
 
23869
/* Override any GCC internal prototype to avoid an error.
 
23870
   Use char because int might match the return type of a GCC
 
23871
   builtin and then its argument prototype would still apply.  */
 
23872
#ifdef __cplusplus
 
23873
extern "C"
 
23874
#endif
 
23875
char flock ();
 
23876
/* The GNU C library defines this for functions which it implements
 
23877
    to always fail with ENOSYS.  Some functions are actually named
 
23878
    something starting with __ and the normal name is an alias.  */
 
23879
#if defined __stub_flock || defined __stub___flock
 
23880
choke me
 
23881
#endif
 
23882
 
 
23883
int
 
23884
main ()
 
23885
{
 
23886
return flock ();
 
23887
  ;
 
23888
  return 0;
 
23889
}
 
23890
_ACEOF
 
23891
rm -f conftest.$ac_objext conftest$ac_exeext
 
23892
if { (ac_try="$ac_link"
 
23893
case "(($ac_try" in
 
23894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23895
  *) ac_try_echo=$ac_try;;
 
23896
esac
 
23897
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23898
  (eval "$ac_link") 2>conftest.er1
 
23899
  ac_status=$?
 
23900
  grep -v '^ *+' conftest.er1 >conftest.err
 
23901
  rm -f conftest.er1
 
23902
  cat conftest.err >&5
 
23903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23904
  (exit $ac_status); } &&
 
23905
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23906
  { (case "(($ac_try" in
 
23907
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23908
  *) ac_try_echo=$ac_try;;
 
23909
esac
 
23910
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23911
  (eval "$ac_try") 2>&5
 
23912
  ac_status=$?
 
23913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23914
  (exit $ac_status); }; } &&
 
23915
         { ac_try='test -s conftest$ac_exeext'
 
23916
  { (case "(($ac_try" in
 
23917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23918
  *) ac_try_echo=$ac_try;;
 
23919
esac
 
23920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23921
  (eval "$ac_try") 2>&5
 
23922
  ac_status=$?
 
23923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23924
  (exit $ac_status); }; }; then
 
23925
  ac_cv_func_flock=yes
 
23926
else
 
23927
  echo "$as_me: failed program was:" >&5
 
23928
sed 's/^/| /' conftest.$ac_ext >&5
 
23929
 
 
23930
        ac_cv_func_flock=no
 
23931
fi
 
23932
 
 
23933
rm -f core conftest.err conftest.$ac_objext \
 
23934
      conftest$ac_exeext conftest.$ac_ext
 
23935
fi
 
23936
{ echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
 
23937
echo "${ECHO_T}$ac_cv_func_flock" >&6; }
 
23938
if test $ac_cv_func_flock = yes; then
 
23939
 
 
23940
cat >>confdefs.h <<\_ACEOF
 
23941
#define HAVE_FLOCK 1
 
23942
_ACEOF
 
23943
 
 
23944
fi
 
23945
 
 
23946
{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
 
23947
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
 
23948
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
 
23949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23950
else
 
23951
  ac_check_lib_save_LIBS=$LIBS
 
23952
LIBS="-lsocket  $LIBS"
 
23953
cat >conftest.$ac_ext <<_ACEOF
 
23954
/* confdefs.h.  */
 
23955
_ACEOF
 
23956
cat confdefs.h >>conftest.$ac_ext
 
23957
cat >>conftest.$ac_ext <<_ACEOF
 
23958
/* end confdefs.h.  */
 
23959
 
 
23960
/* Override any GCC internal prototype to avoid an error.
 
23961
   Use char because int might match the return type of a GCC
 
23962
   builtin and then its argument prototype would still apply.  */
 
23963
#ifdef __cplusplus
 
23964
extern "C"
 
23965
#endif
 
23966
char setsockopt ();
 
23967
int
 
23968
main ()
 
23969
{
 
23970
return setsockopt ();
 
23971
  ;
 
23972
  return 0;
 
23973
}
 
23974
_ACEOF
 
23975
rm -f conftest.$ac_objext conftest$ac_exeext
 
23976
if { (ac_try="$ac_link"
 
23977
case "(($ac_try" in
 
23978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23979
  *) ac_try_echo=$ac_try;;
 
23980
esac
 
23981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23982
  (eval "$ac_link") 2>conftest.er1
 
23983
  ac_status=$?
 
23984
  grep -v '^ *+' conftest.er1 >conftest.err
 
23985
  rm -f conftest.er1
 
23986
  cat conftest.err >&5
 
23987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23988
  (exit $ac_status); } &&
 
23989
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23990
  { (case "(($ac_try" in
 
23991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23992
  *) ac_try_echo=$ac_try;;
 
23993
esac
 
23994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23995
  (eval "$ac_try") 2>&5
 
23996
  ac_status=$?
 
23997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23998
  (exit $ac_status); }; } &&
 
23999
         { ac_try='test -s conftest$ac_exeext'
 
24000
  { (case "(($ac_try" in
 
24001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24002
  *) ac_try_echo=$ac_try;;
 
24003
esac
 
24004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24005
  (eval "$ac_try") 2>&5
 
24006
  ac_status=$?
 
24007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24008
  (exit $ac_status); }; }; then
 
24009
  ac_cv_lib_socket_setsockopt=yes
 
24010
else
 
24011
  echo "$as_me: failed program was:" >&5
 
24012
sed 's/^/| /' conftest.$ac_ext >&5
 
24013
 
 
24014
        ac_cv_lib_socket_setsockopt=no
 
24015
fi
 
24016
 
 
24017
rm -f core conftest.err conftest.$ac_objext \
 
24018
      conftest$ac_exeext conftest.$ac_ext
 
24019
LIBS=$ac_check_lib_save_LIBS
 
24020
fi
 
24021
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
 
24022
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
 
24023
if test $ac_cv_lib_socket_setsockopt = yes; then
 
24024
  LIBS="$LIBS -lsocket"
 
24025
fi
 
24026
 
 
24027
 
 
24028
 
 
24029
 
 
24030
{ echo "$as_me:$LINENO: checking whether to use SO_RCVTIMEO with setsockopt()" >&5
 
24031
echo $ECHO_N "checking whether to use SO_RCVTIMEO with setsockopt()... $ECHO_C" >&6; }
 
24032
if test "$cross_compiling" = yes; then
 
24033
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24034
See \`config.log' for more details." >&5
 
24035
echo "$as_me: error: cannot run test program while cross compiling
 
24036
See \`config.log' for more details." >&2;}
 
24037
   { (exit 1); exit 1; }; }
 
24038
else
 
24039
  cat >conftest.$ac_ext <<_ACEOF
 
24040
/* confdefs.h.  */
 
24041
_ACEOF
 
24042
cat confdefs.h >>conftest.$ac_ext
 
24043
cat >>conftest.$ac_ext <<_ACEOF
 
24044
/* end confdefs.h.  */
 
24045
 
 
24046
#include <sys/types.h>
 
24047
#include <sys/socket.h>
 
24048
#include <sys/time.h>
 
24049
 
 
24050
int main(void)
 
24051
{
 
24052
    int s;
 
24053
    struct timeval tv;
 
24054
    tv.tv_sec  = 3;
 
24055
    tv.tv_usec = 0;
 
24056
 
 
24057
#ifndef SO_RCVTIMEO
 
24058
    exit(3);
 
24059
#else
 
24060
    if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
 
24061
        exit(2);
 
24062
 
 
24063
    /* fails on Solaris 2.6,8,9,10 and some Linuxes because
 
24064
       SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
 
24065
    if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const void *)&tv, sizeof(tv)) == -1)
 
24066
        exit(1);
 
24067
 
 
24068
    exit(0);
 
24069
#endif
 
24070
}
 
24071
 
 
24072
 
 
24073
_ACEOF
 
24074
rm -f conftest$ac_exeext
 
24075
if { (ac_try="$ac_link"
 
24076
case "(($ac_try" in
 
24077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24078
  *) ac_try_echo=$ac_try;;
 
24079
esac
 
24080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24081
  (eval "$ac_link") 2>&5
 
24082
  ac_status=$?
 
24083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24084
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24085
  { (case "(($ac_try" in
 
24086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24087
  *) ac_try_echo=$ac_try;;
 
24088
esac
 
24089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24090
  (eval "$ac_try") 2>&5
 
24091
  ac_status=$?
 
24092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24093
  (exit $ac_status); }; }; then
 
24094
   { echo "$as_me:$LINENO: result: yes" >&5
 
24095
echo "${ECHO_T}yes" >&6; }
 
24096
cat >>confdefs.h <<\_ACEOF
 
24097
#define USE_SO_RCVTIMEO 1
 
24098
_ACEOF
 
24099
 
 
24100
 
 
24101
else
 
24102
  echo "$as_me: program exited with status $ac_status" >&5
 
24103
echo "$as_me: failed program was:" >&5
 
24104
sed 's/^/| /' conftest.$ac_ext >&5
 
24105
 
 
24106
( exit $ac_status )
 
24107
 { echo "$as_me:$LINENO: result: no" >&5
 
24108
echo "${ECHO_T}no" >&6; }
 
24109
 
 
24110
fi
 
24111
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24112
fi
 
24113
 
 
24114
 
 
24115
 
 
24116
 
 
24117
{ echo "$as_me:$LINENO: checking whether to use SO_SNDTIMEO with setsockopt()" >&5
 
24118
echo $ECHO_N "checking whether to use SO_SNDTIMEO with setsockopt()... $ECHO_C" >&6; }
 
24119
if test "$cross_compiling" = yes; then
 
24120
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24121
See \`config.log' for more details." >&5
 
24122
echo "$as_me: error: cannot run test program while cross compiling
 
24123
See \`config.log' for more details." >&2;}
 
24124
   { (exit 1); exit 1; }; }
 
24125
else
 
24126
  cat >conftest.$ac_ext <<_ACEOF
 
24127
/* confdefs.h.  */
 
24128
_ACEOF
 
24129
cat confdefs.h >>conftest.$ac_ext
 
24130
cat >>conftest.$ac_ext <<_ACEOF
 
24131
/* end confdefs.h.  */
 
24132
 
 
24133
#include <sys/types.h>
 
24134
#include <sys/socket.h>
 
24135
#include <sys/time.h>
 
24136
 
 
24137
int main(void)
 
24138
{
 
24139
    int s;
 
24140
    struct timeval tv;
 
24141
    tv.tv_sec  = 3;
 
24142
    tv.tv_usec = 0;
 
24143
 
 
24144
#ifndef SO_SNDTIMEO
 
24145
    exit(3);
 
24146
#else
 
24147
    if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
 
24148
        exit(2);
 
24149
 
 
24150
    /* fails on Solaris 2.6,8,9,10 and some Linuxes because
 
24151
       SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
 
24152
    if (setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (const void *)&tv, sizeof(tv)) == -1)
 
24153
        exit(1);
 
24154
 
 
24155
    exit(0);
 
24156
#endif
 
24157
}
 
24158
 
 
24159
 
 
24160
_ACEOF
 
24161
rm -f conftest$ac_exeext
 
24162
if { (ac_try="$ac_link"
 
24163
case "(($ac_try" in
 
24164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24165
  *) ac_try_echo=$ac_try;;
 
24166
esac
 
24167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24168
  (eval "$ac_link") 2>&5
 
24169
  ac_status=$?
 
24170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24171
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24172
  { (case "(($ac_try" in
 
24173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24174
  *) ac_try_echo=$ac_try;;
 
24175
esac
 
24176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24177
  (eval "$ac_try") 2>&5
 
24178
  ac_status=$?
 
24179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24180
  (exit $ac_status); }; }; then
 
24181
   { echo "$as_me:$LINENO: result: yes" >&5
 
24182
echo "${ECHO_T}yes" >&6; }
 
24183
cat >>confdefs.h <<\_ACEOF
 
24184
#define USE_SO_SNDTIMEO 1
 
24185
_ACEOF
 
24186
 
 
24187
 
 
24188
else
 
24189
  echo "$as_me: program exited with status $ac_status" >&5
 
24190
echo "$as_me: failed program was:" >&5
 
24191
sed 's/^/| /' conftest.$ac_ext >&5
 
24192
 
 
24193
( exit $ac_status )
 
24194
 { echo "$as_me:$LINENO: result: no" >&5
 
24195
echo "${ECHO_T}no" >&6; }
 
24196
 
 
24197
fi
 
24198
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24199
fi
 
24200
 
 
24201
 
 
24202
 
 
24203
 
 
24204
APACHE_CONFIG_VARS=`pwd`/scripts/build/config_vars.mk
 
24205
WEBSERVER=""
 
24206
apache_dir=""
 
24207
apache_include=""
 
24208
APXS="apxs"
 
24209
 
 
24210
# Check whether --with-apxs was given.
 
24211
if test "${with_apxs+set}" = set; then
 
24212
  withval=$with_apxs;
 
24213
    case "${withval}" in
 
24214
        y | yes | true) find_apxs=true ;;
 
24215
        n | no | false) find_apxs=false ;;
 
24216
        *) find_apxs=false ;;
 
24217
    esac
 
24218
 
 
24219
    if ${TEST} ${find_apxs} ; then
 
24220
        { echo "$as_me:$LINENO: result: need to check for Perl first, apxs depends on it..." >&5
 
24221
echo "${ECHO_T}need to check for Perl first, apxs depends on it..." >&6; }
 
24222
        # Extract the first word of "perl", so it can be a program name with args.
 
24223
set dummy perl; ac_word=$2
 
24224
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24225
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
24226
if test "${ac_cv_path_PERL+set}" = set; then
 
24227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24228
else
 
24229
  case $PERL in
 
24230
  [\\/]* | ?:[\\/]*)
 
24231
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
24232
  ;;
 
24233
  *)
 
24234
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24235
for as_dir in $PATH
 
24236
do
 
24237
  IFS=$as_save_IFS
 
24238
  test -z "$as_dir" && as_dir=.
 
24239
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24241
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
24242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24243
    break 2
 
24244
  fi
 
24245
done
 
24246
done
 
24247
IFS=$as_save_IFS
 
24248
 
 
24249
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$PATH"
 
24250
  ;;
 
24251
esac
 
24252
fi
 
24253
PERL=$ac_cv_path_PERL
 
24254
if test -n "$PERL"; then
 
24255
  { echo "$as_me:$LINENO: result: $PERL" >&5
 
24256
echo "${ECHO_T}$PERL" >&6; }
 
24257
else
 
24258
  { echo "$as_me:$LINENO: result: no" >&5
 
24259
echo "${ECHO_T}no" >&6; }
 
24260
fi
 
24261
 
 
24262
 
 
24263
        if ${TEST} ${find_apxs} ; then
 
24264
            APXS=${withval}
 
24265
        else
 
24266
            # Extract the first word of "apxs", so it can be a program name with args.
 
24267
set dummy apxs; ac_word=$2
 
24268
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
24270
if test "${ac_cv_path_APXS+set}" = set; then
 
24271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24272
else
 
24273
  case $APXS in
 
24274
  [\\/]* | ?:[\\/]*)
 
24275
  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
 
24276
  ;;
 
24277
  *)
 
24278
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24279
for as_dir in $PATH
 
24280
do
 
24281
  IFS=$as_save_IFS
 
24282
  test -z "$as_dir" && as_dir=.
 
24283
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24284
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24285
    ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
 
24286
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24287
    break 2
 
24288
  fi
 
24289
done
 
24290
done
 
24291
IFS=$as_save_IFS
 
24292
 
 
24293
  test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="$PATH"
 
24294
  ;;
 
24295
esac
 
24296
fi
 
24297
APXS=$ac_cv_path_APXS
 
24298
if test -n "$APXS"; then
 
24299
  { echo "$as_me:$LINENO: result: $APXS" >&5
 
24300
echo "${ECHO_T}$APXS" >&6; }
 
24301
else
 
24302
  { echo "$as_me:$LINENO: result: no" >&5
 
24303
echo "${ECHO_T}no" >&6; }
 
24304
fi
 
24305
 
 
24306
        fi
 
24307
 
 
24308
        if ${TEST} -n "${APXS}" ; then
 
24309
                        if ${TEST} ! -x "${APXS}" ; then
 
24310
                { { echo "$as_me:$LINENO: error: Invalid location for apxs: '${APXS}'" >&5
 
24311
echo "$as_me: error: Invalid location for apxs: '${APXS}'" >&2;}
 
24312
   { (exit 1); exit 1; }; }
 
24313
            fi
 
24314
 
 
24315
            ${APXS} -q PREFIX >/dev/null 2>/dev/null || apxs_support=false
 
24316
 
 
24317
            if ${TEST} "${apxs_support}" = "false" ; then
 
24318
                { echo "$as_me:$LINENO: result: could not find ${APXS}" >&5
 
24319
echo "${ECHO_T}could not find ${APXS}" >&6; }
 
24320
                { { echo "$as_me:$LINENO: error: You must specify a valid --with-apxs path" >&5
 
24321
echo "$as_me: error: You must specify a valid --with-apxs path" >&2;}
 
24322
   { (exit 1); exit 1; }; }
 
24323
            fi
 
24324
 
 
24325
                        apache_dir=`$APXS -q PREFIX`
 
24326
            apache_include="-I`$APXS -q INCLUDEDIR`"
 
24327
 
 
24328
                        APA=`${GREP} STANDARD20 ${APXS}`
 
24329
            if ${TEST} -z "$APA" ; then
 
24330
                WEBSERVER="apache-1.3"
 
24331
                APXSCFLAGS="`$APXS -q CFLAGS` -DJK_PREFORK"
 
24332
                APXS_CPPFLAGS=""
 
24333
            else
 
24334
                WEBSERVER="apache-2.0"
 
24335
                APRINCLUDEDIR=""
 
24336
                INCTEMP="`$APXS -q APR_INCLUDEDIR` `$APXS -q APU_INCLUDEDIR`"
 
24337
                for INC in ${INCTEMP}; do
 
24338
                    APRINCLUDEDIR="${APRINCLUDEDIR} -I${INC}"
 
24339
                done
 
24340
                { echo "$as_me:$LINENO: result: APRINCLUDEDIR is $APRINCLUDEDIR" >&5
 
24341
echo "${ECHO_T}APRINCLUDEDIR is $APRINCLUDEDIR" >&6; }
 
24342
                APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS` -DHAVE_APR ${APRINCLUDEDIR}"
 
24343
                APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`"
 
24344
                APACHE_CONFIG_VARS="`${APXS} -q exp_installbuilddir`/config_vars.mk"
 
24345
                LIBTOOL=`$APXS -q LIBTOOL`
 
24346
            fi
 
24347
            { echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
 
24348
echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6; }
 
24349
 
 
24350
 
 
24351
        fi
 
24352
    fi
 
24353
 
 
24354
else
 
24355
 
 
24356
        { echo "$as_me:$LINENO: result: no apxs given" >&5
 
24357
echo "${ECHO_T}no apxs given" >&6; }
 
24358
 
 
24359
fi
 
24360
 
 
24361
 
 
24362
 
 
24363
 
 
24364
{ echo "$as_me:$LINENO: checking for target platform" >&5
 
24365
echo $ECHO_N "checking for target platform... $ECHO_C" >&6; }
 
24366
 
 
24367
#PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`
 
24368
PLATFORM=$host
 
24369
 
 
24370
case "$PLATFORM" in
 
24371
*beos*)
 
24372
  OS_APACHE="beos"
 
24373
  OS_APACHE_DIR=$OS_APACHE
 
24374
  ;;
 
24375
*pc-os2_emx*)
 
24376
  OS_APACHE="os2"
 
24377
  OS_APACHE_DIR=$OS_APACHE
 
24378
  ;;
 
24379
bs2000*)
 
24380
  OS_APACHE="unix"
 
24381
  OS_APACHE_DIR=bs2000  # only the OS_APACHE_DIR is platform specific.
 
24382
  ;;
 
24383
*)
 
24384
  OS_APACHE="unix"
 
24385
  OS_APACHE_DIR=$OS_APACHE;;
 
24386
esac
 
24387
 
 
24388
{ echo "$as_me:$LINENO: result: $OS_APACHE" >&5
 
24389
echo "${ECHO_T}$OS_APACHE" >&6; }
 
24390
 
 
24391
 
 
24392
 
 
24393
apache_dir_is_src="false"
 
24394
 
 
24395
# Check whether --with-apache was given.
 
24396
if test "${with_apache+set}" = set; then
 
24397
  withval=$with_apache;
 
24398
    if ${TEST} ! -z "$WEBSERVER" ; then
 
24399
        { { echo "$as_me:$LINENO: error: Sorry cannot use --with-apxs=${APXS} and --with-apache=${withval} togother, please choose one of both" >&5
 
24400
echo "$as_me: error: Sorry cannot use --with-apxs=${APXS} and --with-apache=${withval} togother, please choose one of both" >&2;}
 
24401
   { (exit 1); exit 1; }; }
 
24402
    fi
 
24403
 
 
24404
    { echo "$as_me:$LINENO: checking for Apache source directory (assume static build)" >&5
 
24405
echo $ECHO_N "checking for Apache source directory (assume static build)... $ECHO_C" >&6; }
 
24406
 
 
24407
    if ${TEST} -n "${withval}" && ${TEST} -d "${withval}" ; then
 
24408
        if ${TEST} -d "${withval}/src" ; then
 
24409
           # handle the case where people use relative paths to
 
24410
           # the apache source directory by pre-pending the current
 
24411
           # build directory to the path. there are probably
 
24412
           # errors with this if configure is run while in a
 
24413
           # different directory than what you are in at the time
 
24414
           if ${TEST} -n "`${ECHO} ${withval}|${GREP} \"^\.\.\"`" ; then
 
24415
               withval=`pwd`/${withval}
 
24416
           fi
 
24417
 
 
24418
           apache_dir=${withval}
 
24419
           apache_dir_is_src="true"
 
24420
           { echo "$as_me:$LINENO: result: ${apache_dir}" >&5
 
24421
echo "${ECHO_T}${apache_dir}" >&6; }
 
24422
 
 
24423
           { echo "$as_me:$LINENO: checking for Apache include directory" >&5
 
24424
echo $ECHO_N "checking for Apache include directory... $ECHO_C" >&6; }
 
24425
 
 
24426
           if ${TEST} -d "${withval}/src/include" ; then
 
24427
               # read osdir from the existing apache.
 
24428
               osdir=`${GREP} '^OSDIR=' ${withval}/src/Makefile.config | ${SED} -e 's:^OSDIR=.*/os:os:'`
 
24429
               if ${TEST} -z "${osdir}" ; then
 
24430
                   osdir=os/unix
 
24431
               fi
 
24432
               apache_include="-I${withval}/src/include \
 
24433
                   -I${withval}/src/${osdir}"
 
24434
               WEBSERVER="apache-1.3"
 
24435
               LIB_JK_TYPE=mod_jk.a
 
24436
               CFLAGS="${CFLAGS} -DJK_PREFORK"
 
24437
               { echo "$as_me:$LINENO: result: ${apache_include}, version 1.3" >&5
 
24438
echo "${ECHO_T}${apache_include}, version 1.3" >&6; }
 
24439
           else
 
24440
               { { echo "$as_me:$LINENO: error: Sorry Apache 1.2.x is no longer supported." >&5
 
24441
echo "$as_me: error: Sorry Apache 1.2.x is no longer supported." >&2;}
 
24442
   { (exit 1); exit 1; }; }
 
24443
           fi
 
24444
        else
 
24445
           if ${TEST} -d "${withval}/include" ; then
 
24446
              # osdir for Apache20.
 
24447
              WEBSERVER="apache-2.0"
 
24448
              apache_dir=${withval}
 
24449
              apache_dir_is_src="true"
 
24450
              LIB_JK_TYPE=lib_jk.la
 
24451
              apache_include="-I${withval}/include -I${withval}/srclib/apr/include -I${withval}/os/${OS_APACHE_DIR} -I${withval}/srclib/apr-util/include"
 
24452
              { echo "$as_me:$LINENO: result: ${apache_dir}" >&5
 
24453
echo "${ECHO_T}${apache_dir}" >&6; }
 
24454
           fi
 
24455
        fi
 
24456
    fi
 
24457
 
 
24458
        if ${TEST} -z "$WEBSERVER" ; then
 
24459
        { { echo "$as_me:$LINENO: error: Directory $apache_dir is not a valid Apache source distribution" >&5
 
24460
echo "$as_me: error: Directory $apache_dir is not a valid Apache source distribution" >&2;}
 
24461
   { (exit 1); exit 1; }; }
 
24462
    fi
 
24463
 
 
24464
# VT: Now, which one I'm supposed to use? Let's figure it out later
 
24465
 
 
24466
    configure_apache=true
 
24467
    configure_src=true
 
24468
 
 
24469
    { echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
 
24470
echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6; }
 
24471
 
 
24472
else
 
24473
 
 
24474
        { echo "$as_me:$LINENO: result: no apache given" >&5
 
24475
echo "${ECHO_T}no apache given" >&6; }
 
24476
 
 
24477
fi
 
24478
 
 
24479
 
 
24480
APACHE_DIR=${apache_dir}
 
24481
 
 
24482
 
 
24483
JK_JNI_WORKER=""
 
24484
# Check whether --enable-jni was given.
 
24485
if test "${enable_jni+set}" = set; then
 
24486
  enableval=$enable_jni;
 
24487
    { echo "$as_me:$LINENO: result: jni enable (need JDK)" >&5
 
24488
echo "${ECHO_T}jni enable (need JDK)" >&6; }
 
24489
    CFLAGS="${CFLAGS} -DHAVE_JNI"
 
24490
    JK_JNI_WORKER="\${JK}jk_jni_worker\${OEXT}"
 
24491
 
 
24492
fi
 
24493
 
 
24494
 
 
24495
CFLAGS="${CFLAGS}"
 
24496
# Check whether --enable-EAPI was given.
 
24497
if test "${enable_EAPI+set}" = set; then
 
24498
  enableval=$enable_EAPI;
 
24499
case "${enableval}" in
 
24500
    y | Y | YES | yes | TRUE | true )
 
24501
        CFLAGS="${CFLAGS} -DEAPI"
 
24502
        { echo "$as_me:$LINENO: result: ...Enabling EAPI Support..." >&5
 
24503
echo "${ECHO_T}...Enabling EAPI Support..." >&6; }
 
24504
        ;;
 
24505
esac
 
24506
 
 
24507
fi
 
24508
 
 
24509
 
 
24510
 
 
24511
CFLAGS="${CFLAGS}"
 
24512
# Check whether --enable-maintainer-mode was given.
 
24513
if test "${enable_maintainer_mode+set}" = set; then
 
24514
  enableval=$enable_maintainer_mode;
 
24515
case "${enableval}" in
 
24516
    y | Y | YES | yes | TRUE | true )
 
24517
        CFLAGS="${CFLAGS} -DDEBUG -Wall"
 
24518
        { echo "$as_me:$LINENO: result: ...Enabling Maintainer mode..." >&5
 
24519
echo "${ECHO_T}...Enabling Maintainer mode..." >&6; }
 
24520
        ;;
 
24521
esac
 
24522
 
 
24523
fi
 
24524
 
 
24525
 
 
24526
 
 
24527
CFLAGS="${CFLAGS}"
 
24528
# Check whether --enable-prefork was given.
 
24529
if test "${enable_prefork+set}" = set; then
 
24530
  enableval=$enable_prefork;
 
24531
case "${enableval}" in
 
24532
    y | Y | YES | yes | TRUE | true )
 
24533
        CFLAGS="${CFLAGS} -DJK_PREFORK"
 
24534
        { echo "$as_me:$LINENO: result: ...Enabling Prefork mode..." >&5
 
24535
echo "${ECHO_T}...Enabling Prefork mode..." >&6; }
 
24536
        ;;
 
24537
esac
 
24538
 
 
24539
fi
 
24540
 
 
24541
 
 
24542
 
 
24543
if ${TEST} -n "${CFLAGS}" ; then
 
24544
        APXSCFLAGS="${APXSCFLAGS} ${CFLAGS}"
 
24545
fi
 
24546
if ${TEST} -n "${LDFLAGS}" ; then
 
24547
        APXSLDFLAGS="-Wl,${LDFLAGS}"
 
24548
fi
 
24549
 
 
24550
 
 
24551
 
 
24552
 
 
24553
if ${TEST} -n "${JK_JNI_WORKER}" ; then
 
24554
 
 
24555
WEBSERVER="jni ${WEBSERVER}"
 
24556
 
 
24557
 
 
24558
{ echo "$as_me:$LINENO: checking for JDK location (please wait)" >&5
 
24559
echo $ECHO_N "checking for JDK location (please wait)... $ECHO_C" >&6; }
 
24560
 
 
24561
 
 
24562
 
 
24563
if ${TEST} -n "${JAVA_HOME}" ; then
 
24564
        JAVA_HOME_ENV="${JAVA_HOME}"
 
24565
else
 
24566
        JAVA_HOME_ENV=""
 
24567
fi
 
24568
JAVA_HOME=""
 
24569
JAVA_PLATFORM="1"
 
24570
 
 
24571
 
 
24572
# Check whether --with-java-home was given.
 
24573
if test "${with_java_home+set}" = set; then
 
24574
  withval=$with_java_home;
 
24575
 
 
24576
    # This stuff works if the command line parameter --with-java-home was
 
24577
    # specified, so it takes priority rightfully.
 
24578
 
 
24579
    JAVA_HOME=${withval}
 
24580
 
 
24581
    if ${TEST} ! -d "${JAVA_HOME}" ; then
 
24582
        { { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}" >&5
 
24583
echo "$as_me: error: Not a directory: ${JAVA_HOME}" >&2;}
 
24584
   { (exit 1); exit 1; }; }
 
24585
    fi
 
24586
 
 
24587
    { echo "$as_me:$LINENO: result: ${JAVA_HOME}" >&5
 
24588
echo "${ECHO_T}${JAVA_HOME}" >&6; }
 
24589
 
 
24590
 
 
24591
else
 
24592
 
 
24593
    # This works if the parameter was NOT specified, so it's a good time
 
24594
    # to see what the enviroment says.
 
24595
 
 
24596
    # Since Sun uses JAVA_HOME a lot, we check it first and ignore the
 
24597
    # JAVA_HOME, otherwise just use whatever JAVA_HOME was specified.
 
24598
 
 
24599
    if ${TEST} -n "${JAVA_HOME_ENV}" ; then
 
24600
 
 
24601
        JAVA_HOME=${JAVA_HOME_ENV}
 
24602
        { echo "$as_me:$LINENO: result: ${JAVA_HOME_ENV} from environment" >&5
 
24603
echo "${ECHO_T}${JAVA_HOME_ENV} from environment" >&6; }
 
24604
    fi
 
24605
 
 
24606
fi
 
24607
 
 
24608
 
 
24609
if ${TEST} -z "${JAVA_HOME}" ; then
 
24610
 
 
24611
    # Oh well, nobody set neither JAVA_HOME nor JAVA_HOME, have to guess
 
24612
 
 
24613
    # The following code is based on the code submitted by Henner Zeller
 
24614
    # for ${srcdir}/src/scripts/package/rpm/ApacheJServ.spec
 
24615
 
 
24616
    # Two variables will be set as a result:
 
24617
    #
 
24618
    # JAVA_HOME
 
24619
    # JAVA_PLATFORM
 
24620
    { echo "$as_me:$LINENO: checking Try to guess JDK location" >&5
 
24621
echo $ECHO_N "checking Try to guess JDK location... $ECHO_C" >&6; }
 
24622
 
 
24623
 
 
24624
    for JAVA_PREFIX in \
 
24625
            /usr/local \
 
24626
            /usr/local/lib \
 
24627
            /usr \
 
24628
            /usr/lib \
 
24629
            /opt  \
 
24630
            /
 
24631
    do
 
24632
        for JAVA_PLATFORM in 3 2 1 ;
 
24633
        do
 
24634
 
 
24635
            for subversion in .9 .8 .7 .6 .5 .4 .3 .2 .1 "" ;
 
24636
                do
 
24637
                    for VARIANT in IBMJava2- java java- jdk jdk-;
 
24638
                    do
 
24639
                        GUESS="${JAVA_PREFIX}/${VARIANT}1.${JAVA_PLATFORM}${subversion}"
 
24640
                        if ${TEST} -d "${GUESS}/bin" \
 
24641
                        && ${TEST} -d "${GUESS}/include" ; then
 
24642
 
 
24643
                            JAVA_HOME="${GUESS}"
 
24644
                            { echo "$as_me:$LINENO: result: ${GUESS}" >&5
 
24645
echo "${ECHO_T}${GUESS}" >&6; }
 
24646
                            break
 
24647
                        fi
 
24648
 
 
24649
                    done
 
24650
 
 
24651
                    if ${TEST} -n "${JAVA_HOME}" ; then
 
24652
                        break;
 
24653
                    fi
 
24654
 
 
24655
                done
 
24656
 
 
24657
                if ${TEST} -n "${JAVA_HOME}" ; then
 
24658
                    break;
 
24659
                fi
 
24660
 
 
24661
            done
 
24662
 
 
24663
            if ${TEST} -n "${JAVA_HOME}" ; then
 
24664
                break;
 
24665
            fi
 
24666
 
 
24667
        done
 
24668
 
 
24669
        if ${TEST} -n "${JAVA_HOME}" ; then
 
24670
 
 
24671
 
 
24672
            { echo "$as_me:$LINENO: checking Java platform" >&5
 
24673
echo $ECHO_N "checking Java platform... $ECHO_C" >&6; }
 
24674
            { echo "$as_me:$LINENO: result: guess ${JAVA_PLATFORM}" >&5
 
24675
echo "${ECHO_T}guess ${JAVA_PLATFORM}" >&6; }
 
24676
        fi
 
24677
 
 
24678
 
 
24679
else
 
24680
 
 
24681
        { echo "$as_me:$LINENO: checking Java platform" >&5
 
24682
echo $ECHO_N "checking Java platform... $ECHO_C" >&6; }
 
24683
 
 
24684
 
 
24685
# Check whether --with-java-platform was given.
 
24686
if test "${with_java_platform+set}" = set; then
 
24687
  withval=$with_java_platform;
 
24688
 
 
24689
            JAVA_PLATFORM="2"
 
24690
 
 
24691
fi
 
24692
 
 
24693
 
 
24694
        { echo "$as_me:$LINENO: result: forced Java ${JAVA_PLATFORM}" >&5
 
24695
echo "${ECHO_T}forced Java ${JAVA_PLATFORM}" >&6; }
 
24696
 
 
24697
fi
 
24698
 
 
24699
if ${TEST} -z "${JAVA_HOME}" ; then
 
24700
    { { echo "$as_me:$LINENO: error: JDK home not found, please specify one with --with-java-home option (run ./configure --help for more options)" >&5
 
24701
echo "$as_me: error: JDK home not found, please specify one with --with-java-home option (run ./configure --help for more options)" >&2;}
 
24702
   { (exit 1); exit 1; }; }
 
24703
fi
 
24704
 
 
24705
OS=""
 
24706
 
 
24707
# Check whether --with-os-type was given.
 
24708
if test "${with_os_type+set}" = set; then
 
24709
  withval=$with_os_type;
 
24710
    OS=${withval}
 
24711
 
 
24712
    if ${TEST} ! -d "${JAVA_HOME}/${OS}" ; then
 
24713
        { { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}/${OS}" >&5
 
24714
echo "$as_me: error: Not a directory: ${JAVA_HOME}/${OS}" >&2;}
 
24715
   { (exit 1); exit 1; }; }
 
24716
    fi
 
24717
 
 
24718
else
 
24719
 
 
24720
    { echo "$as_me:$LINENO: checking os_type directory" >&5
 
24721
echo $ECHO_N "checking os_type directory... $ECHO_C" >&6; }
 
24722
    if ${TEST} -f ${JAVA_HOME}/include/jni_md.h; then
 
24723
        OS=""
 
24724
    else
 
24725
        for f in ${JAVA_HOME}/include/*/jni_md.h; do
 
24726
            if ${TEST} -f $f; then
 
24727
                OS=`dirname ${f}`
 
24728
                OS=`basename ${OS}`
 
24729
                echo " ${OS}"
 
24730
            fi
 
24731
        done
 
24732
        if ${TEST} -z "${OS}"; then
 
24733
            { echo "$as_me:$LINENO: result: Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&5
 
24734
echo "${ECHO_T}Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&6; }
 
24735
            { { echo "$as_me:$LINENO: error: You should retry --with-os-type=SUBDIR" >&5
 
24736
echo "$as_me: error: You should retry --with-os-type=SUBDIR" >&2;}
 
24737
   { (exit 1); exit 1; }; }
 
24738
        fi
 
24739
    fi
 
24740
 
 
24741
fi
 
24742
 
 
24743
fi
 
24744
 
 
24745
 
 
24746
 
 
24747
 
 
24748
if ${TEST} -z "$WEBSERVER" ; then
 
24749
        { { echo "$as_me:$LINENO: error: Cannot find the WebServer" >&5
 
24750
echo "$as_me: error: Cannot find the WebServer" >&2;}
 
24751
   { (exit 1); exit 1; }; }
 
24752
fi
 
24753
 
 
24754
WEBSERVER="common ${WEBSERVER}"
 
24755
 
 
24756
 
 
24757
 
 
24758
 
 
24759
 
 
24760
if ${TEST} "${apache_dir_is_src}" = "false"; then
 
24761
  MAKE_DYNAMIC_APACHE_TRUE=
 
24762
  MAKE_DYNAMIC_APACHE_FALSE='#'
 
24763
else
 
24764
  MAKE_DYNAMIC_APACHE_TRUE='#'
 
24765
  MAKE_DYNAMIC_APACHE_FALSE=
 
24766
fi
 
24767
 
 
24768
 
 
24769
if ${TEST} "${apache_dir_is_src}" = "false" ; then
 
24770
        APACHE20_OEXT=.c
 
24771
        LIB_JK_TYPE=mod_jk.so
 
24772
        INSTALL_TYPE=install_dynamic
 
24773
else
 
24774
        APACHE20_OEXT=.lo
 
24775
        INSTALL_TYPE=install_static
 
24776
fi
 
24777
 
 
24778
 
 
24779
 
 
24780
 
 
24781
ac_config_files="$ac_config_files Makefile apache-1.3/Makefile apache-1.3/Makefile.apxs apache-2.0/Makefile apache-2.0/Makefile.apxs common/Makefile common/list.mk common/jk_types.h jni/Makefile"
 
24782
 
 
24783
cat >confcache <<\_ACEOF
 
24784
# This file is a shell script that caches the results of configure
 
24785
# tests run on this system so they can be shared between configure
 
24786
# scripts and configure runs, see configure's option --config-cache.
 
24787
# It is not useful on other systems.  If it contains results you don't
 
24788
# want to keep, you may remove or edit it.
 
24789
#
 
24790
# config.status only pays attention to the cache file if you give it
 
24791
# the --recheck option to rerun configure.
 
24792
#
 
24793
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24794
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24795
# following values.
 
24796
 
 
24797
_ACEOF
 
24798
 
 
24799
# The following way of writing the cache mishandles newlines in values,
 
24800
# but we know of no workaround that is simple, portable, and efficient.
 
24801
# So, we kill variables containing newlines.
 
24802
# Ultrix sh set writes to stderr and can't be redirected directly,
 
24803
# and sets the high bit in the cache file unless we assign to the vars.
 
24804
(
 
24805
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
24806
    eval ac_val=\$$ac_var
 
24807
    case $ac_val in #(
 
24808
    *${as_nl}*)
 
24809
      case $ac_var in #(
 
24810
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
24811
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
24812
      esac
 
24813
      case $ac_var in #(
 
24814
      _ | IFS | as_nl) ;; #(
 
24815
      *) $as_unset $ac_var ;;
 
24816
      esac ;;
 
24817
    esac
 
24818
  done
 
24819
 
 
24820
  (set) 2>&1 |
 
24821
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
24822
    *${as_nl}ac_space=\ *)
 
24823
      # `set' does not quote correctly, so add quotes (double-quote
 
24824
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24825
      sed -n \
 
24826
        "s/'/'\\\\''/g;
 
24827
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24828
      ;; #(
 
24829
    *)
 
24830
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24831
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
24832
      ;;
 
24833
    esac |
 
24834
    sort
 
24835
) |
 
24836
  sed '
 
24837
     /^ac_cv_env_/b end
 
24838
     t clear
 
24839
     :clear
 
24840
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24841
     t end
 
24842
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24843
     :end' >>confcache
 
24844
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
24845
  if test -w "$cache_file"; then
 
24846
    test "x$cache_file" != "x/dev/null" &&
 
24847
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
24848
echo "$as_me: updating cache $cache_file" >&6;}
 
24849
    cat confcache >$cache_file
 
24850
  else
 
24851
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
24852
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
24853
  fi
 
24854
fi
 
24855
rm -f confcache
 
24856
 
 
24857
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24858
# Let make expand exec_prefix.
 
24859
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24860
 
 
24861
DEFS=-DHAVE_CONFIG_H
 
24862
 
 
24863
ac_libobjs=
 
24864
ac_ltlibobjs=
 
24865
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24866
  # 1. Remove the extension, and $U if already installed.
 
24867
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
24868
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
24869
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
24870
  #    will be set to the directory where LIBOBJS objects are built.
 
24871
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
24872
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
24873
done
 
24874
LIBOBJS=$ac_libobjs
 
24875
 
 
24876
LTLIBOBJS=$ac_ltlibobjs
 
24877
 
 
24878
 
 
24879
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24880
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24881
Usually this means the macro was only invoked conditionally." >&5
 
24882
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24883
Usually this means the macro was only invoked conditionally." >&2;}
 
24884
   { (exit 1); exit 1; }; }
 
24885
fi
 
24886
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24887
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24888
Usually this means the macro was only invoked conditionally." >&5
 
24889
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24890
Usually this means the macro was only invoked conditionally." >&2;}
 
24891
   { (exit 1); exit 1; }; }
 
24892
fi
 
24893
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24894
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24895
Usually this means the macro was only invoked conditionally." >&5
 
24896
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24897
Usually this means the macro was only invoked conditionally." >&2;}
 
24898
   { (exit 1); exit 1; }; }
 
24899
fi
 
24900
if test -z "${MAKE_DYNAMIC_APACHE_TRUE}" && test -z "${MAKE_DYNAMIC_APACHE_FALSE}"; then
 
24901
  { { echo "$as_me:$LINENO: error: conditional \"MAKE_DYNAMIC_APACHE\" was never defined.
 
24902
Usually this means the macro was only invoked conditionally." >&5
 
24903
echo "$as_me: error: conditional \"MAKE_DYNAMIC_APACHE\" was never defined.
 
24904
Usually this means the macro was only invoked conditionally." >&2;}
 
24905
   { (exit 1); exit 1; }; }
 
24906
fi
 
24907
 
 
24908
: ${CONFIG_STATUS=./config.status}
 
24909
ac_clean_files_save=$ac_clean_files
 
24910
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24911
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24912
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24913
cat >$CONFIG_STATUS <<_ACEOF
 
24914
#! $SHELL
 
24915
# Generated by $as_me.
 
24916
# Run this file to recreate the current configuration.
 
24917
# Compiler output produced by configure, useful for debugging
 
24918
# configure, is in config.log if it exists.
 
24919
 
 
24920
debug=false
 
24921
ac_cs_recheck=false
 
24922
ac_cs_silent=false
 
24923
SHELL=\${CONFIG_SHELL-$SHELL}
 
24924
_ACEOF
 
24925
 
 
24926
cat >>$CONFIG_STATUS <<\_ACEOF
 
24927
## --------------------- ##
 
24928
## M4sh Initialization.  ##
 
24929
## --------------------- ##
 
24930
 
 
24931
# Be Bourne compatible
 
24932
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24933
  emulate sh
 
24934
  NULLCMD=:
 
24935
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24936
  # is contrary to our usage.  Disable this feature.
 
24937
  alias -g '${1+"$@"}'='"$@"'
 
24938
  setopt NO_GLOB_SUBST
 
24939
else
 
24940
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
24941
fi
 
24942
BIN_SH=xpg4; export BIN_SH # for Tru64
 
24943
DUALCASE=1; export DUALCASE # for MKS sh
 
24944
 
 
24945
 
 
24946
# PATH needs CR
 
24947
# Avoid depending upon Character Ranges.
 
24948
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24949
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24950
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24951
as_cr_digits='0123456789'
 
24952
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24953
 
 
24954
# The user is always right.
 
24955
if test "${PATH_SEPARATOR+set}" != set; then
 
24956
  echo "#! /bin/sh" >conf$$.sh
 
24957
  echo  "exit 0"   >>conf$$.sh
 
24958
  chmod +x conf$$.sh
 
24959
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24960
    PATH_SEPARATOR=';'
 
24961
  else
 
24962
    PATH_SEPARATOR=:
 
24963
  fi
 
24964
  rm -f conf$$.sh
 
24965
fi
 
24966
 
 
24967
# Support unset when possible.
 
24968
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24969
  as_unset=unset
 
24970
else
 
24971
  as_unset=false
 
24972
fi
 
24973
 
 
24974
 
 
24975
# IFS
 
24976
# We need space, tab and new line, in precisely that order.  Quoting is
 
24977
# there to prevent editors from complaining about space-tab.
 
24978
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
24979
# splitting by setting IFS to empty value.)
 
24980
as_nl='
 
24981
'
 
24982
IFS=" ""        $as_nl"
 
24983
 
 
24984
# Find who we are.  Look in the path if we contain no directory separator.
 
24985
case $0 in
 
24986
  *[\\/]* ) as_myself=$0 ;;
 
24987
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24988
for as_dir in $PATH
 
24989
do
 
24990
  IFS=$as_save_IFS
 
24991
  test -z "$as_dir" && as_dir=.
 
24992
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24993
done
 
24994
IFS=$as_save_IFS
 
24995
 
 
24996
     ;;
 
24997
esac
 
24998
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
24999
# in which case we are not to be found in the path.
 
25000
if test "x$as_myself" = x; then
 
25001
  as_myself=$0
 
25002
fi
 
25003
if test ! -f "$as_myself"; then
 
25004
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
25005
  { (exit 1); exit 1; }
 
25006
fi
 
25007
 
 
25008
# Work around bugs in pre-3.0 UWIN ksh.
 
25009
for as_var in ENV MAIL MAILPATH
 
25010
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
25011
done
 
25012
PS1='$ '
 
25013
PS2='> '
 
25014
PS4='+ '
 
25015
 
 
25016
# NLS nuisances.
 
25017
for as_var in \
 
25018
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
25019
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
25020
  LC_TELEPHONE LC_TIME
 
25021
do
 
25022
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
25023
    eval $as_var=C; export $as_var
 
25024
  else
 
25025
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
25026
  fi
 
25027
done
 
25028
 
 
25029
# Required to use basename.
 
25030
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
25031
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
25032
  as_expr=expr
 
25033
else
 
25034
  as_expr=false
 
25035
fi
 
25036
 
 
25037
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
25038
  as_basename=basename
 
25039
else
 
25040
  as_basename=false
 
25041
fi
 
25042
 
 
25043
 
 
25044
# Name of the executable.
 
25045
as_me=`$as_basename -- "$0" ||
 
25046
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
25047
         X"$0" : 'X\(//\)$' \| \
 
25048
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
25049
echo X/"$0" |
 
25050
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
25051
            s//\1/
 
25052
            q
 
25053
          }
 
25054
          /^X\/\(\/\/\)$/{
 
25055
            s//\1/
 
25056
            q
 
25057
          }
 
25058
          /^X\/\(\/\).*/{
 
25059
            s//\1/
 
25060
            q
 
25061
          }
 
25062
          s/.*/./; q'`
 
25063
 
 
25064
# CDPATH.
 
25065
$as_unset CDPATH
 
25066
 
 
25067
 
 
25068
 
 
25069
  as_lineno_1=$LINENO
 
25070
  as_lineno_2=$LINENO
 
25071
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
25072
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
25073
 
 
25074
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
25075
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
25076
  # line-number line after each line using $LINENO; the second 'sed'
 
25077
  # does the real work.  The second script uses 'N' to pair each
 
25078
  # line-number line with the line containing $LINENO, and appends
 
25079
  # trailing '-' during substitution so that $LINENO is not a special
 
25080
  # case at line end.
 
25081
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
25082
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
25083
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
25084
  sed -n '
 
25085
    p
 
25086
    /[$]LINENO/=
 
25087
  ' <$as_myself |
 
25088
    sed '
 
25089
      s/[$]LINENO.*/&-/
 
25090
      t lineno
 
25091
      b
 
25092
      :lineno
 
25093
      N
 
25094
      :loop
 
25095
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
25096
      t loop
 
25097
      s/-\n.*//
 
25098
    ' >$as_me.lineno &&
 
25099
  chmod +x "$as_me.lineno" ||
 
25100
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
25101
   { (exit 1); exit 1; }; }
 
25102
 
 
25103
  # Don't try to exec as it changes $[0], causing all sort of problems
 
25104
  # (the dirname of $[0] is not the place where we might find the
 
25105
  # original and so on.  Autoconf is especially sensitive to this).
 
25106
  . "./$as_me.lineno"
 
25107
  # Exit status is that of the last command.
 
25108
  exit
 
25109
}
 
25110
 
 
25111
 
 
25112
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
25113
  as_dirname=dirname
 
25114
else
 
25115
  as_dirname=false
 
25116
fi
 
25117
 
 
25118
ECHO_C= ECHO_N= ECHO_T=
 
25119
case `echo -n x` in
 
25120
-n*)
 
25121
  case `echo 'x\c'` in
 
25122
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
25123
  *)   ECHO_C='\c';;
 
25124
  esac;;
 
25125
*)
 
25126
  ECHO_N='-n';;
 
25127
esac
 
25128
 
 
25129
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
25130
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
25131
  as_expr=expr
 
25132
else
 
25133
  as_expr=false
 
25134
fi
 
25135
 
 
25136
rm -f conf$$ conf$$.exe conf$$.file
 
25137
if test -d conf$$.dir; then
 
25138
  rm -f conf$$.dir/conf$$.file
 
25139
else
 
25140
  rm -f conf$$.dir
 
25141
  mkdir conf$$.dir
 
25142
fi
 
25143
echo >conf$$.file
 
25144
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
25145
  as_ln_s='ln -s'
 
25146
  # ... but there are two gotchas:
 
25147
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
25148
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
25149
  # In both cases, we have to default to `cp -p'.
 
25150
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
25151
    as_ln_s='cp -p'
 
25152
elif ln conf$$.file conf$$ 2>/dev/null; then
 
25153
  as_ln_s=ln
 
25154
else
 
25155
  as_ln_s='cp -p'
 
25156
fi
 
25157
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
25158
rmdir conf$$.dir 2>/dev/null
 
25159
 
 
25160
if mkdir -p . 2>/dev/null; then
 
25161
  as_mkdir_p=:
 
25162
else
 
25163
  test -d ./-p && rmdir ./-p
 
25164
  as_mkdir_p=false
 
25165
fi
 
25166
 
 
25167
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
25168
# systems may use methods other than mode bits to determine executability.
 
25169
cat >conf$$.file <<_ASEOF
 
25170
#! /bin/sh
 
25171
exit 0
 
25172
_ASEOF
 
25173
chmod +x conf$$.file
 
25174
if test -x conf$$.file >/dev/null 2>&1; then
 
25175
  as_executable_p="test -x"
 
25176
else
 
25177
  as_executable_p=:
 
25178
fi
 
25179
rm -f conf$$.file
 
25180
 
 
25181
# Sed expression to map a string onto a valid CPP name.
 
25182
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
25183
 
 
25184
# Sed expression to map a string onto a valid variable name.
 
25185
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
25186
 
 
25187
 
 
25188
exec 6>&1
 
25189
 
 
25190
# Save the log message, to keep $[0] and so on meaningful, and to
 
25191
# report actual input values of CONFIG_FILES etc. instead of their
 
25192
# values after options handling.
 
25193
ac_log="
 
25194
This file was extended by $as_me, which was
 
25195
generated by GNU Autoconf 2.60.  Invocation command line was
 
25196
 
 
25197
  CONFIG_FILES    = $CONFIG_FILES
 
25198
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
25199
  CONFIG_LINKS    = $CONFIG_LINKS
 
25200
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
25201
  $ $0 $@
 
25202
 
 
25203
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
25204
"
 
25205
 
 
25206
_ACEOF
 
25207
 
 
25208
cat >>$CONFIG_STATUS <<_ACEOF
 
25209
# Files that config.status was made for.
 
25210
config_files="$ac_config_files"
 
25211
config_headers="$ac_config_headers"
 
25212
config_commands="$ac_config_commands"
 
25213
 
 
25214
_ACEOF
 
25215
 
 
25216
cat >>$CONFIG_STATUS <<\_ACEOF
 
25217
ac_cs_usage="\
 
25218
\`$as_me' instantiates files from templates according to the
 
25219
current configuration.
 
25220
 
 
25221
Usage: $0 [OPTIONS] [FILE]...
 
25222
 
 
25223
  -h, --help       print this help, then exit
 
25224
  -V, --version    print version number, then exit
 
25225
  -q, --quiet      do not print progress messages
 
25226
  -d, --debug      don't remove temporary files
 
25227
      --recheck    update $as_me by reconfiguring in the same conditions
 
25228
  --file=FILE[:TEMPLATE]
 
25229
                   instantiate the configuration file FILE
 
25230
  --header=FILE[:TEMPLATE]
 
25231
                   instantiate the configuration header FILE
 
25232
 
 
25233
Configuration files:
 
25234
$config_files
 
25235
 
 
25236
Configuration headers:
 
25237
$config_headers
 
25238
 
 
25239
Configuration commands:
 
25240
$config_commands
 
25241
 
 
25242
Report bugs to <bug-autoconf@gnu.org>."
 
25243
 
 
25244
_ACEOF
 
25245
cat >>$CONFIG_STATUS <<_ACEOF
 
25246
ac_cs_version="\\
 
25247
config.status
 
25248
configured by $0, generated by GNU Autoconf 2.60,
 
25249
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
25250
 
 
25251
Copyright (C) 2006 Free Software Foundation, Inc.
 
25252
This config.status script is free software; the Free Software Foundation
 
25253
gives unlimited permission to copy, distribute and modify it."
 
25254
 
 
25255
ac_pwd='$ac_pwd'
 
25256
srcdir='$srcdir'
 
25257
INSTALL='$INSTALL'
 
25258
_ACEOF
 
25259
 
 
25260
cat >>$CONFIG_STATUS <<\_ACEOF
 
25261
# If no file are specified by the user, then we need to provide default
 
25262
# value.  By we need to know if files were specified by the user.
 
25263
ac_need_defaults=:
 
25264
while test $# != 0
 
25265
do
 
25266
  case $1 in
 
25267
  --*=*)
 
25268
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
25269
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
25270
    ac_shift=:
 
25271
    ;;
 
25272
  *)
 
25273
    ac_option=$1
 
25274
    ac_optarg=$2
 
25275
    ac_shift=shift
 
25276
    ;;
 
25277
  esac
 
25278
 
 
25279
  case $ac_option in
 
25280
  # Handling of the options.
 
25281
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
25282
    ac_cs_recheck=: ;;
 
25283
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
25284
    echo "$ac_cs_version"; exit ;;
 
25285
  --debug | --debu | --deb | --de | --d | -d )
 
25286
    debug=: ;;
 
25287
  --file | --fil | --fi | --f )
 
25288
    $ac_shift
 
25289
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
25290
    ac_need_defaults=false;;
 
25291
  --header | --heade | --head | --hea )
 
25292
    $ac_shift
 
25293
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
25294
    ac_need_defaults=false;;
 
25295
  --he | --h)
 
25296
    # Conflict between --help and --header
 
25297
    { echo "$as_me: error: ambiguous option: $1
 
25298
Try \`$0 --help' for more information." >&2
 
25299
   { (exit 1); exit 1; }; };;
 
25300
  --help | --hel | -h )
 
25301
    echo "$ac_cs_usage"; exit ;;
 
25302
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
25303
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
25304
    ac_cs_silent=: ;;
 
25305
 
 
25306
  # This is an error.
 
25307
  -*) { echo "$as_me: error: unrecognized option: $1
 
25308
Try \`$0 --help' for more information." >&2
 
25309
   { (exit 1); exit 1; }; } ;;
 
25310
 
 
25311
  *) ac_config_targets="$ac_config_targets $1"
 
25312
     ac_need_defaults=false ;;
 
25313
 
 
25314
  esac
 
25315
  shift
 
25316
done
 
25317
 
 
25318
ac_configure_extra_args=
 
25319
 
 
25320
if $ac_cs_silent; then
 
25321
  exec 6>/dev/null
 
25322
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25323
fi
 
25324
 
 
25325
_ACEOF
 
25326
cat >>$CONFIG_STATUS <<_ACEOF
 
25327
if \$ac_cs_recheck; then
 
25328
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
25329
  CONFIG_SHELL=$SHELL
 
25330
  export CONFIG_SHELL
 
25331
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25332
fi
 
25333
 
 
25334
_ACEOF
 
25335
cat >>$CONFIG_STATUS <<\_ACEOF
 
25336
exec 5>>config.log
 
25337
{
 
25338
  echo
 
25339
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25340
## Running $as_me. ##
 
25341
_ASBOX
 
25342
  echo "$ac_log"
 
25343
} >&5
 
25344
 
 
25345
_ACEOF
 
25346
cat >>$CONFIG_STATUS <<_ACEOF
 
25347
#
 
25348
# INIT-COMMANDS
 
25349
#
 
25350
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
25351
 
 
25352
_ACEOF
 
25353
 
 
25354
cat >>$CONFIG_STATUS <<\_ACEOF
 
25355
 
 
25356
# Handling of arguments.
 
25357
for ac_config_target in $ac_config_targets
 
25358
do
 
25359
  case $ac_config_target in
 
25360
    "common/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS common/portable.h" ;;
 
25361
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
25362
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
25363
    "apache-1.3/Makefile") CONFIG_FILES="$CONFIG_FILES apache-1.3/Makefile" ;;
 
25364
    "apache-1.3/Makefile.apxs") CONFIG_FILES="$CONFIG_FILES apache-1.3/Makefile.apxs" ;;
 
25365
    "apache-2.0/Makefile") CONFIG_FILES="$CONFIG_FILES apache-2.0/Makefile" ;;
 
25366
    "apache-2.0/Makefile.apxs") CONFIG_FILES="$CONFIG_FILES apache-2.0/Makefile.apxs" ;;
 
25367
    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
 
25368
    "common/list.mk") CONFIG_FILES="$CONFIG_FILES common/list.mk" ;;
 
25369
    "common/jk_types.h") CONFIG_FILES="$CONFIG_FILES common/jk_types.h" ;;
 
25370
    "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
 
25371
 
 
25372
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25373
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25374
   { (exit 1); exit 1; }; };;
 
25375
  esac
 
25376
done
 
25377
 
 
25378
 
 
25379
# If the user did not use the arguments to specify the items to instantiate,
 
25380
# then the envvar interface is used.  Set only those that are not.
 
25381
# We use the long form for the default assignment because of an extremely
 
25382
# bizarre bug on SunOS 4.1.3.
 
25383
if $ac_need_defaults; then
 
25384
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25385
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
25386
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
25387
fi
 
25388
 
 
25389
# Have a temporary directory for convenience.  Make it in the build tree
 
25390
# simply because there is no reason against having it here, and in addition,
 
25391
# creating and moving files from /tmp can sometimes cause problems.
 
25392
# Hook for its removal unless debugging.
 
25393
# Note that there is a small window in which the directory will not be cleaned:
 
25394
# after its creation but before its name has been assigned to `$tmp'.
 
25395
$debug ||
 
25396
{
 
25397
  tmp=
 
25398
  trap 'exit_status=$?
 
25399
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
25400
' 0
 
25401
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25402
}
 
25403
# Create a (secure) tmp directory for tmp files.
 
25404
 
 
25405
{
 
25406
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
25407
  test -n "$tmp" && test -d "$tmp"
 
25408
}  ||
 
25409
{
 
25410
  tmp=./conf$$-$RANDOM
 
25411
  (umask 077 && mkdir "$tmp")
 
25412
} ||
 
25413
{
 
25414
   echo "$me: cannot create a temporary directory in ." >&2
 
25415
   { (exit 1); exit 1; }
 
25416
}
 
25417
 
 
25418
#
 
25419
# Set up the sed scripts for CONFIG_FILES section.
 
25420
#
 
25421
 
 
25422
# No need to generate the scripts if there are no CONFIG_FILES.
 
25423
# This happens for instance when ./config.status config.h
 
25424
if test -n "$CONFIG_FILES"; then
 
25425
 
 
25426
_ACEOF
 
25427
 
 
25428
 
 
25429
 
 
25430
ac_delim='%!_!# '
 
25431
for ac_last_try in false false false false false :; do
 
25432
  cat >conf$$subs.sed <<_ACEOF
 
25433
SHELL!$SHELL$ac_delim
 
25434
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
25435
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
25436
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
25437
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
25438
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
25439
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
25440
exec_prefix!$exec_prefix$ac_delim
 
25441
prefix!$prefix$ac_delim
 
25442
program_transform_name!$program_transform_name$ac_delim
 
25443
bindir!$bindir$ac_delim
 
25444
sbindir!$sbindir$ac_delim
 
25445
libexecdir!$libexecdir$ac_delim
 
25446
datarootdir!$datarootdir$ac_delim
 
25447
datadir!$datadir$ac_delim
 
25448
sysconfdir!$sysconfdir$ac_delim
 
25449
sharedstatedir!$sharedstatedir$ac_delim
 
25450
localstatedir!$localstatedir$ac_delim
 
25451
includedir!$includedir$ac_delim
 
25452
oldincludedir!$oldincludedir$ac_delim
 
25453
docdir!$docdir$ac_delim
 
25454
infodir!$infodir$ac_delim
 
25455
htmldir!$htmldir$ac_delim
 
25456
dvidir!$dvidir$ac_delim
 
25457
pdfdir!$pdfdir$ac_delim
 
25458
psdir!$psdir$ac_delim
 
25459
libdir!$libdir$ac_delim
 
25460
localedir!$localedir$ac_delim
 
25461
mandir!$mandir$ac_delim
 
25462
DEFS!$DEFS$ac_delim
 
25463
ECHO_C!$ECHO_C$ac_delim
 
25464
ECHO_N!$ECHO_N$ac_delim
 
25465
ECHO_T!$ECHO_T$ac_delim
 
25466
LIBS!$LIBS$ac_delim
 
25467
build_alias!$build_alias$ac_delim
 
25468
host_alias!$host_alias$ac_delim
 
25469
target_alias!$target_alias$ac_delim
 
25470
build!$build$ac_delim
 
25471
build_cpu!$build_cpu$ac_delim
 
25472
build_vendor!$build_vendor$ac_delim
 
25473
build_os!$build_os$ac_delim
 
25474
host!$host$ac_delim
 
25475
host_cpu!$host_cpu$ac_delim
 
25476
host_vendor!$host_vendor$ac_delim
 
25477
host_os!$host_os$ac_delim
 
25478
target!$target$ac_delim
 
25479
target_cpu!$target_cpu$ac_delim
 
25480
target_vendor!$target_vendor$ac_delim
 
25481
target_os!$target_os$ac_delim
 
25482
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
25483
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
25484
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
25485
CYGPATH_W!$CYGPATH_W$ac_delim
 
25486
PACKAGE!$PACKAGE$ac_delim
 
25487
VERSION!$VERSION$ac_delim
 
25488
ACLOCAL!$ACLOCAL$ac_delim
 
25489
AUTOCONF!$AUTOCONF$ac_delim
 
25490
AUTOMAKE!$AUTOMAKE$ac_delim
 
25491
AUTOHEADER!$AUTOHEADER$ac_delim
 
25492
MAKEINFO!$MAKEINFO$ac_delim
 
25493
install_sh!$install_sh$ac_delim
 
25494
STRIP!$STRIP$ac_delim
 
25495
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
25496
mkdir_p!$mkdir_p$ac_delim
 
25497
AWK!$AWK$ac_delim
 
25498
SET_MAKE!$SET_MAKE$ac_delim
 
25499
am__leading_dot!$am__leading_dot$ac_delim
 
25500
AMTAR!$AMTAR$ac_delim
 
25501
am__tar!$am__tar$ac_delim
 
25502
am__untar!$am__untar$ac_delim
 
25503
CC!$CC$ac_delim
 
25504
CFLAGS!$CFLAGS$ac_delim
 
25505
LDFLAGS!$LDFLAGS$ac_delim
 
25506
CPPFLAGS!$CPPFLAGS$ac_delim
 
25507
ac_ct_CC!$ac_ct_CC$ac_delim
 
25508
EXEEXT!$EXEEXT$ac_delim
 
25509
OBJEXT!$OBJEXT$ac_delim
 
25510
DEPDIR!$DEPDIR$ac_delim
 
25511
am__include!$am__include$ac_delim
 
25512
am__quote!$am__quote$ac_delim
 
25513
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
25514
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
25515
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
25516
CCDEPMODE!$CCDEPMODE$ac_delim
 
25517
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
25518
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
25519
GREP!$GREP$ac_delim
 
25520
EGREP!$EGREP$ac_delim
 
25521
LN_S!$LN_S$ac_delim
 
25522
ECHO!$ECHO$ac_delim
 
25523
AR!$AR$ac_delim
 
25524
RANLIB!$RANLIB$ac_delim
 
25525
CPP!$CPP$ac_delim
 
25526
CXX!$CXX$ac_delim
 
25527
CXXFLAGS!$CXXFLAGS$ac_delim
 
25528
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
25529
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
25530
_ACEOF
 
25531
 
 
25532
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
25533
    break
 
25534
  elif $ac_last_try; then
 
25535
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25536
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25537
   { (exit 1); exit 1; }; }
 
25538
  else
 
25539
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25540
  fi
 
25541
done
 
25542
 
 
25543
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25544
if test -n "$ac_eof"; then
 
25545
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25546
  ac_eof=`expr $ac_eof + 1`
 
25547
fi
 
25548
 
 
25549
cat >>$CONFIG_STATUS <<_ACEOF
 
25550
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
25551
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25552
_ACEOF
 
25553
sed '
 
25554
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25555
s/^/s,@/; s/!/@,|#_!!_#|/
 
25556
:n
 
25557
t n
 
25558
s/'"$ac_delim"'$/,g/; t
 
25559
s/$/\\/; p
 
25560
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25561
' >>$CONFIG_STATUS <conf$$subs.sed
 
25562
rm -f conf$$subs.sed
 
25563
cat >>$CONFIG_STATUS <<_ACEOF
 
25564
CEOF$ac_eof
 
25565
_ACEOF
 
25566
 
 
25567
 
 
25568
ac_delim='%!_!# '
 
25569
for ac_last_try in false false false false false :; do
 
25570
  cat >conf$$subs.sed <<_ACEOF
 
25571
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
25572
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
25573
CXXCPP!$CXXCPP$ac_delim
 
25574
F77!$F77$ac_delim
 
25575
FFLAGS!$FFLAGS$ac_delim
 
25576
ac_ct_F77!$ac_ct_F77$ac_delim
 
25577
LIBTOOL!$LIBTOOL$ac_delim
 
25578
TEST!$TEST$ac_delim
 
25579
RM!$RM$ac_delim
 
25580
SED!$SED$ac_delim
 
25581
CP!$CP$ac_delim
 
25582
MKDIR!$MKDIR$ac_delim
 
25583
int32_value!$int32_value$ac_delim
 
25584
int32_t_fmt!$int32_t_fmt$ac_delim
 
25585
uint32_t_fmt!$uint32_t_fmt$ac_delim
 
25586
uint32_t_hex_fmt!$uint32_t_hex_fmt$ac_delim
 
25587
int64_value!$int64_value$ac_delim
 
25588
int64_t_fmt!$int64_t_fmt$ac_delim
 
25589
uint64_t_fmt!$uint64_t_fmt$ac_delim
 
25590
uint64_t_hex_fmt!$uint64_t_hex_fmt$ac_delim
 
25591
PERL!$PERL$ac_delim
 
25592
APXS!$APXS$ac_delim
 
25593
APACHE_CONFIG_VARS!$APACHE_CONFIG_VARS$ac_delim
 
25594
apache_include!$apache_include$ac_delim
 
25595
APACHE_DIR!$APACHE_DIR$ac_delim
 
25596
JK_JNI_WORKER!$JK_JNI_WORKER$ac_delim
 
25597
APXSCFLAGS!$APXSCFLAGS$ac_delim
 
25598
APXSCPPFLAGS!$APXSCPPFLAGS$ac_delim
 
25599
APXSLDFLAGS!$APXSLDFLAGS$ac_delim
 
25600
JAVA_HOME!$JAVA_HOME$ac_delim
 
25601
OS!$OS$ac_delim
 
25602
WEBSERVER!$WEBSERVER$ac_delim
 
25603
MAKE_DYNAMIC_APACHE_TRUE!$MAKE_DYNAMIC_APACHE_TRUE$ac_delim
 
25604
MAKE_DYNAMIC_APACHE_FALSE!$MAKE_DYNAMIC_APACHE_FALSE$ac_delim
 
25605
APACHE20_OEXT!$APACHE20_OEXT$ac_delim
 
25606
LIB_JK_TYPE!$LIB_JK_TYPE$ac_delim
 
25607
INSTALL_TYPE!$INSTALL_TYPE$ac_delim
 
25608
LIBOBJS!$LIBOBJS$ac_delim
 
25609
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
25610
_ACEOF
 
25611
 
 
25612
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
 
25613
    break
 
25614
  elif $ac_last_try; then
 
25615
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25616
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25617
   { (exit 1); exit 1; }; }
 
25618
  else
 
25619
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25620
  fi
 
25621
done
 
25622
 
 
25623
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25624
if test -n "$ac_eof"; then
 
25625
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25626
  ac_eof=`expr $ac_eof + 1`
 
25627
fi
 
25628
 
 
25629
cat >>$CONFIG_STATUS <<_ACEOF
 
25630
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
25631
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
25632
_ACEOF
 
25633
sed '
 
25634
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25635
s/^/s,@/; s/!/@,|#_!!_#|/
 
25636
:n
 
25637
t n
 
25638
s/'"$ac_delim"'$/,g/; t
 
25639
s/$/\\/; p
 
25640
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25641
' >>$CONFIG_STATUS <conf$$subs.sed
 
25642
rm -f conf$$subs.sed
 
25643
cat >>$CONFIG_STATUS <<_ACEOF
 
25644
:end
 
25645
s/|#_!!_#|//g
 
25646
CEOF$ac_eof
 
25647
_ACEOF
 
25648
 
 
25649
 
 
25650
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
25651
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
25652
# trailing colons and then remove the whole line if VPATH becomes empty
 
25653
# (actually we leave an empty line to preserve line numbers).
 
25654
if test "x$srcdir" = x.; then
 
25655
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
25656
s/:*\$(srcdir):*/:/
 
25657
s/:*\${srcdir}:*/:/
 
25658
s/:*@srcdir@:*/:/
 
25659
s/^\([^=]*=[     ]*\):*/\1/
 
25660
s/:*$//
 
25661
s/^[^=]*=[       ]*$//
 
25662
}'
 
25663
fi
 
25664
 
 
25665
cat >>$CONFIG_STATUS <<\_ACEOF
 
25666
fi # test -n "$CONFIG_FILES"
 
25667
 
 
25668
 
 
25669
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
25670
do
 
25671
  case $ac_tag in
 
25672
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
25673
  esac
 
25674
  case $ac_mode$ac_tag in
 
25675
  :[FHL]*:*);;
 
25676
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
25677
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
25678
   { (exit 1); exit 1; }; };;
 
25679
  :[FH]-) ac_tag=-:-;;
 
25680
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
25681
  esac
 
25682
  ac_save_IFS=$IFS
 
25683
  IFS=:
 
25684
  set x $ac_tag
 
25685
  IFS=$ac_save_IFS
 
25686
  shift
 
25687
  ac_file=$1
 
25688
  shift
 
25689
 
 
25690
  case $ac_mode in
 
25691
  :L) ac_source=$1;;
 
25692
  :[FH])
 
25693
    ac_file_inputs=
 
25694
    for ac_f
 
25695
    do
 
25696
      case $ac_f in
 
25697
      -) ac_f="$tmp/stdin";;
 
25698
      *) # Look for the file first in the build tree, then in the source tree
 
25699
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
25700
         # because $ac_f cannot contain `:'.
 
25701
         test -f "$ac_f" ||
 
25702
           case $ac_f in
 
25703
           [\\/$]*) false;;
 
25704
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
25705
           esac ||
 
25706
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
25707
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
25708
   { (exit 1); exit 1; }; };;
 
25709
      esac
 
25710
      ac_file_inputs="$ac_file_inputs $ac_f"
 
25711
    done
 
25712
 
 
25713
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25714
    # use $as_me), people would be surprised to read:
 
25715
    #    /* config.h.  Generated by config.status.  */
 
25716
    configure_input="Generated from "`IFS=:
 
25717
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
25718
    if test x"$ac_file" != x-; then
 
25719
      configure_input="$ac_file.  $configure_input"
 
25720
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25721
echo "$as_me: creating $ac_file" >&6;}
 
25722
    fi
 
25723
 
 
25724
    case $ac_tag in
 
25725
    *:-:* | *:-) cat >"$tmp/stdin";;
 
25726
    esac
 
25727
    ;;
 
25728
  esac
 
25729
 
 
25730
  ac_dir=`$as_dirname -- "$ac_file" ||
 
25731
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25732
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25733
         X"$ac_file" : 'X\(//\)$' \| \
 
25734
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
25735
echo X"$ac_file" |
 
25736
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25737
            s//\1/
 
25738
            q
 
25739
          }
 
25740
          /^X\(\/\/\)[^/].*/{
 
25741
            s//\1/
 
25742
            q
 
25743
          }
 
25744
          /^X\(\/\/\)$/{
 
25745
            s//\1/
 
25746
            q
 
25747
          }
 
25748
          /^X\(\/\).*/{
 
25749
            s//\1/
 
25750
            q
 
25751
          }
 
25752
          s/.*/./; q'`
 
25753
  { as_dir="$ac_dir"
 
25754
  case $as_dir in #(
 
25755
  -*) as_dir=./$as_dir;;
 
25756
  esac
 
25757
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25758
    as_dirs=
 
25759
    while :; do
 
25760
      case $as_dir in #(
 
25761
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
25762
      *) as_qdir=$as_dir;;
 
25763
      esac
 
25764
      as_dirs="'$as_qdir' $as_dirs"
 
25765
      as_dir=`$as_dirname -- "$as_dir" ||
 
25766
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25767
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25768
         X"$as_dir" : 'X\(//\)$' \| \
 
25769
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25770
echo X"$as_dir" |
 
25771
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25772
            s//\1/
 
25773
            q
 
25774
          }
 
25775
          /^X\(\/\/\)[^/].*/{
 
25776
            s//\1/
 
25777
            q
 
25778
          }
 
25779
          /^X\(\/\/\)$/{
 
25780
            s//\1/
 
25781
            q
 
25782
          }
 
25783
          /^X\(\/\).*/{
 
25784
            s//\1/
 
25785
            q
 
25786
          }
 
25787
          s/.*/./; q'`
 
25788
      test -d "$as_dir" && break
 
25789
    done
 
25790
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25791
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25792
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25793
   { (exit 1); exit 1; }; }; }
 
25794
  ac_builddir=.
 
25795
 
 
25796
case "$ac_dir" in
 
25797
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25798
*)
 
25799
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25800
  # A ".." for each directory in $ac_dir_suffix.
 
25801
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
25802
  case $ac_top_builddir_sub in
 
25803
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25804
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
25805
  esac ;;
 
25806
esac
 
25807
ac_abs_top_builddir=$ac_pwd
 
25808
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
25809
# for backward compatibility:
 
25810
ac_top_builddir=$ac_top_build_prefix
 
25811
 
 
25812
case $srcdir in
 
25813
  .)  # We are building in place.
 
25814
    ac_srcdir=.
 
25815
    ac_top_srcdir=$ac_top_builddir_sub
 
25816
    ac_abs_top_srcdir=$ac_pwd ;;
 
25817
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
25818
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25819
    ac_top_srcdir=$srcdir
 
25820
    ac_abs_top_srcdir=$srcdir ;;
 
25821
  *) # Relative name.
 
25822
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
25823
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
25824
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
25825
esac
 
25826
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
25827
 
 
25828
 
 
25829
  case $ac_mode in
 
25830
  :F)
 
25831
  #
 
25832
  # CONFIG_FILE
 
25833
  #
 
25834
 
 
25835
  case $INSTALL in
 
25836
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25837
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
25838
  esac
 
25839
_ACEOF
 
25840
 
 
25841
cat >>$CONFIG_STATUS <<\_ACEOF
 
25842
# If the template does not know about datarootdir, expand it.
 
25843
# FIXME: This hack should be removed a few years after 2.60.
 
25844
ac_datarootdir_hack=; ac_datarootdir_seen=
 
25845
 
 
25846
case `sed -n '/datarootdir/ {
 
25847
  p
 
25848
  q
 
25849
}
 
25850
/@datadir@/p
 
25851
/@docdir@/p
 
25852
/@infodir@/p
 
25853
/@localedir@/p
 
25854
/@mandir@/p
 
25855
' $ac_file_inputs` in
 
25856
*datarootdir*) ac_datarootdir_seen=yes;;
 
25857
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
25858
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
25859
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
25860
_ACEOF
 
25861
cat >>$CONFIG_STATUS <<_ACEOF
 
25862
  ac_datarootdir_hack='
 
25863
  s&@datadir@&$datadir&g
 
25864
  s&@docdir@&$docdir&g
 
25865
  s&@infodir@&$infodir&g
 
25866
  s&@localedir@&$localedir&g
 
25867
  s&@mandir@&$mandir&g
 
25868
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
25869
esac
 
25870
_ACEOF
 
25871
 
 
25872
# Neutralize VPATH when `$srcdir' = `.'.
 
25873
# Shell code in configure.ac might set extrasub.
 
25874
# FIXME: do we really want to maintain this feature?
 
25875
cat >>$CONFIG_STATUS <<_ACEOF
 
25876
  sed "$ac_vpsub
 
25877
$extrasub
 
25878
_ACEOF
 
25879
cat >>$CONFIG_STATUS <<\_ACEOF
 
25880
:t
 
25881
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25882
s&@configure_input@&$configure_input&;t t
 
25883
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
25884
s&@srcdir@&$ac_srcdir&;t t
 
25885
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
25886
s&@top_srcdir@&$ac_top_srcdir&;t t
 
25887
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
25888
s&@builddir@&$ac_builddir&;t t
 
25889
s&@abs_builddir@&$ac_abs_builddir&;t t
 
25890
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
25891
s&@INSTALL@&$ac_INSTALL&;t t
 
25892
$ac_datarootdir_hack
 
25893
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
25894
 
 
25895
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
25896
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
25897
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
25898
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25899
which seems to be undefined.  Please make sure it is defined." >&5
 
25900
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25901
which seems to be undefined.  Please make sure it is defined." >&2;}
 
25902
 
 
25903
  rm -f "$tmp/stdin"
 
25904
  case $ac_file in
 
25905
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
25906
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
25907
  esac
 
25908
 ;;
 
25909
  :H)
 
25910
  #
 
25911
  # CONFIG_HEADER
 
25912
  #
 
25913
_ACEOF
 
25914
 
 
25915
# Transform confdefs.h into a sed script `conftest.defines', that
 
25916
# substitutes the proper values into config.h.in to produce config.h.
 
25917
rm -f conftest.defines conftest.tail
 
25918
# First, append a space to every undef/define line, to ease matching.
 
25919
echo 's/$/ /' >conftest.defines
 
25920
# Then, protect against being on the right side of a sed subst, or in
 
25921
# an unquoted here document, in config.status.  If some macros were
 
25922
# called several times there might be several #defines for the same
 
25923
# symbol, which is useless.  But do not sort them, since the last
 
25924
# AC_DEFINE must be honored.
 
25925
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
25926
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
25927
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
25928
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
25929
# just an empty string.
 
25930
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
25931
ac_dB='\\)[      (].*,\\1define\\2'
 
25932
ac_dC=' '
 
25933
ac_dD=' ,'
 
25934
 
 
25935
uniq confdefs.h |
 
25936
  sed -n '
 
25937
        t rset
 
25938
        :rset
 
25939
        s/^[     ]*#[    ]*define[       ][      ]*//
 
25940
        t ok
 
25941
        d
 
25942
        :ok
 
25943
        s/[\\&,]/\\&/g
 
25944
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
25945
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
25946
  ' >>conftest.defines
 
25947
 
 
25948
# Remove the space that was appended to ease matching.
 
25949
# Then replace #undef with comments.  This is necessary, for
 
25950
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
25951
# on some systems where configure will not decide to define it.
 
25952
# (The regexp can be short, since the line contains either #define or #undef.)
 
25953
echo 's/ $//
 
25954
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
25955
 
 
25956
# Break up conftest.defines:
 
25957
ac_max_sed_lines=50
 
25958
 
 
25959
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
25960
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
25961
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
25962
# et cetera.
 
25963
ac_in='$ac_file_inputs'
 
25964
ac_out='"$tmp/out1"'
 
25965
ac_nxt='"$tmp/out2"'
 
25966
 
 
25967
while :
 
25968
do
 
25969
  # Write a here document:
 
25970
    cat >>$CONFIG_STATUS <<_ACEOF
 
25971
    # First, check the format of the line:
 
25972
    cat >"\$tmp/defines.sed" <<\\CEOF
 
25973
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
25974
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
25975
b
 
25976
:def
 
25977
_ACEOF
 
25978
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
25979
  echo 'CEOF
 
25980
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
25981
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
25982
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
25983
  grep . conftest.tail >/dev/null || break
 
25984
  rm -f conftest.defines
 
25985
  mv conftest.tail conftest.defines
 
25986
done
 
25987
rm -f conftest.defines conftest.tail
 
25988
 
 
25989
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
25990
cat >>$CONFIG_STATUS <<\_ACEOF
 
25991
  if test x"$ac_file" != x-; then
 
25992
    echo "/* $configure_input  */" >"$tmp/config.h"
 
25993
    cat "$ac_result" >>"$tmp/config.h"
 
25994
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
25995
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
25996
echo "$as_me: $ac_file is unchanged" >&6;}
 
25997
    else
 
25998
      rm -f $ac_file
 
25999
      mv "$tmp/config.h" $ac_file
 
26000
    fi
 
26001
  else
 
26002
    echo "/* $configure_input  */"
 
26003
    cat "$ac_result"
 
26004
  fi
 
26005
  rm -f "$tmp/out12"
 
26006
# Compute $ac_file's index in $config_headers.
 
26007
_am_stamp_count=1
 
26008
for _am_header in $config_headers :; do
 
26009
  case $_am_header in
 
26010
    $ac_file | $ac_file:* )
 
26011
      break ;;
 
26012
    * )
 
26013
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
26014
  esac
 
26015
done
 
26016
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
26017
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26018
         X$ac_file : 'X\(//\)[^/]' \| \
 
26019
         X$ac_file : 'X\(//\)$' \| \
 
26020
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
26021
echo X$ac_file |
 
26022
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26023
            s//\1/
 
26024
            q
 
26025
          }
 
26026
          /^X\(\/\/\)[^/].*/{
 
26027
            s//\1/
 
26028
            q
 
26029
          }
 
26030
          /^X\(\/\/\)$/{
 
26031
            s//\1/
 
26032
            q
 
26033
          }
 
26034
          /^X\(\/\).*/{
 
26035
            s//\1/
 
26036
            q
 
26037
          }
 
26038
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
26039
 ;;
 
26040
 
 
26041
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
26042
echo "$as_me: executing $ac_file commands" >&6;}
 
26043
 ;;
 
26044
  esac
 
26045
 
 
26046
 
 
26047
  case $ac_file$ac_mode in
 
26048
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
26049
  # Strip MF so we end up with the name of the file.
 
26050
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
26051
  # Check whether this is an Automake generated Makefile or not.
 
26052
  # We used to match only the files named `Makefile.in', but
 
26053
  # some people rename them; so instead we look at the file content.
 
26054
  # Grep'ing the first line is not enough: some people post-process
 
26055
  # each Makefile.in and add a new line on top of each file to say so.
 
26056
  # So let's grep whole file.
 
26057
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
26058
    dirpart=`$as_dirname -- "$mf" ||
 
26059
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26060
         X"$mf" : 'X\(//\)[^/]' \| \
 
26061
         X"$mf" : 'X\(//\)$' \| \
 
26062
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
26063
echo X"$mf" |
 
26064
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26065
            s//\1/
 
26066
            q
 
26067
          }
 
26068
          /^X\(\/\/\)[^/].*/{
 
26069
            s//\1/
 
26070
            q
 
26071
          }
 
26072
          /^X\(\/\/\)$/{
 
26073
            s//\1/
 
26074
            q
 
26075
          }
 
26076
          /^X\(\/\).*/{
 
26077
            s//\1/
 
26078
            q
 
26079
          }
 
26080
          s/.*/./; q'`
 
26081
  else
 
26082
    continue
 
26083
  fi
 
26084
  # Extract the definition of DEPDIR, am__include, and am__quote
 
26085
  # from the Makefile without running `make'.
 
26086
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
26087
  test -z "$DEPDIR" && continue
 
26088
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
26089
  test -z "am__include" && continue
 
26090
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
26091
  # When using ansi2knr, U may be empty or an underscore; expand it
 
26092
  U=`sed -n 's/^U = //p' < "$mf"`
 
26093
  # Find all dependency output files, they are included files with
 
26094
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
26095
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
26096
  # expansion.
 
26097
  for file in `sed -n "
 
26098
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
26099
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
26100
    # Make sure the directory exists.
 
26101
    test -f "$dirpart/$file" && continue
 
26102
    fdir=`$as_dirname -- "$file" ||
 
26103
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26104
         X"$file" : 'X\(//\)[^/]' \| \
 
26105
         X"$file" : 'X\(//\)$' \| \
 
26106
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
26107
echo X"$file" |
 
26108
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26109
            s//\1/
 
26110
            q
 
26111
          }
 
26112
          /^X\(\/\/\)[^/].*/{
 
26113
            s//\1/
 
26114
            q
 
26115
          }
 
26116
          /^X\(\/\/\)$/{
 
26117
            s//\1/
 
26118
            q
 
26119
          }
 
26120
          /^X\(\/\).*/{
 
26121
            s//\1/
 
26122
            q
 
26123
          }
 
26124
          s/.*/./; q'`
 
26125
    { as_dir=$dirpart/$fdir
 
26126
  case $as_dir in #(
 
26127
  -*) as_dir=./$as_dir;;
 
26128
  esac
 
26129
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
26130
    as_dirs=
 
26131
    while :; do
 
26132
      case $as_dir in #(
 
26133
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
26134
      *) as_qdir=$as_dir;;
 
26135
      esac
 
26136
      as_dirs="'$as_qdir' $as_dirs"
 
26137
      as_dir=`$as_dirname -- "$as_dir" ||
 
26138
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26139
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
26140
         X"$as_dir" : 'X\(//\)$' \| \
 
26141
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
26142
echo X"$as_dir" |
 
26143
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26144
            s//\1/
 
26145
            q
 
26146
          }
 
26147
          /^X\(\/\/\)[^/].*/{
 
26148
            s//\1/
 
26149
            q
 
26150
          }
 
26151
          /^X\(\/\/\)$/{
 
26152
            s//\1/
 
26153
            q
 
26154
          }
 
26155
          /^X\(\/\).*/{
 
26156
            s//\1/
 
26157
            q
 
26158
          }
 
26159
          s/.*/./; q'`
 
26160
      test -d "$as_dir" && break
 
26161
    done
 
26162
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
26163
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
26164
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
26165
   { (exit 1); exit 1; }; }; }
 
26166
    # echo "creating $dirpart/$file"
 
26167
    echo '# dummy' > "$dirpart/$file"
 
26168
  done
 
26169
done
 
26170
 ;;
 
26171
 
 
26172
  esac
 
26173
done # for ac_tag
 
26174
 
 
26175
 
 
26176
{ (exit 0); exit 0; }
 
26177
_ACEOF
 
26178
chmod +x $CONFIG_STATUS
 
26179
ac_clean_files=$ac_clean_files_save
 
26180
 
 
26181
 
 
26182
# configure is writing to config.log, and then calls config.status.
 
26183
# config.status does its own redirection, appending to config.log.
 
26184
# Unfortunately, on DOS this fails, as config.log is still kept open
 
26185
# by configure, so config.status won't be able to write to it; its
 
26186
# output is simply discarded.  So we exec the FD to /dev/null,
 
26187
# effectively closing config.log, so it can be properly (re)opened and
 
26188
# appended to by config.status.  When coming back to configure, we
 
26189
# need to make the FD available again.
 
26190
if test "$no_create" != yes; then
 
26191
  ac_cs_success=:
 
26192
  ac_config_status_args=
 
26193
  test "$silent" = yes &&
 
26194
    ac_config_status_args="$ac_config_status_args --quiet"
 
26195
  exec 5>/dev/null
 
26196
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
26197
  exec 5>>config.log
 
26198
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
26199
  # would make configure fail if this is the last instruction.
 
26200
  $ac_cs_success || { (exit 1); exit 1; }
 
26201
fi
 
26202