~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to callback/configure

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.63 for libffcall/callback 0x010B.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
as_nl='
 
41
'
 
42
export as_nl
 
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
48
  as_echo='printf %s\n'
 
49
  as_echo_n='printf %s'
 
50
else
 
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
53
    as_echo_n='/usr/ucb/echo -n'
 
54
  else
 
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
56
    as_echo_n_body='eval
 
57
      arg=$1;
 
58
      case $arg in
 
59
      *"$as_nl"*)
 
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
62
      esac;
 
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
64
    '
 
65
    export as_echo_n_body
 
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
67
  fi
 
68
  export as_echo_body
 
69
  as_echo='sh -c $as_echo_body as_echo'
 
70
fi
 
71
 
 
72
# The user is always right.
 
73
if test "${PATH_SEPARATOR+set}" != set; then
 
74
  PATH_SEPARATOR=:
 
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
77
      PATH_SEPARATOR=';'
 
78
  }
 
79
fi
 
80
 
 
81
# Support unset when possible.
 
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
83
  as_unset=unset
 
84
else
 
85
  as_unset=false
 
86
fi
 
87
 
 
88
 
 
89
# IFS
 
90
# We need space, tab and new line, in precisely that order.  Quoting is
 
91
# there to prevent editors from complaining about space-tab.
 
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
93
# splitting by setting IFS to empty value.)
 
94
IFS=" ""        $as_nl"
 
95
 
 
96
# Find who we are.  Look in the path if we contain no directory separator.
 
97
case $0 in
 
98
  *[\\/]* ) as_myself=$0 ;;
 
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
100
for as_dir in $PATH
 
101
do
 
102
  IFS=$as_save_IFS
 
103
  test -z "$as_dir" && as_dir=.
 
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
105
done
 
106
IFS=$as_save_IFS
 
107
 
 
108
     ;;
 
109
esac
 
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
111
# in which case we are not to be found in the path.
 
112
if test "x$as_myself" = x; then
 
113
  as_myself=$0
 
114
fi
 
115
if test ! -f "$as_myself"; then
 
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
117
  { (exit 1); exit 1; }
 
118
fi
 
119
 
 
120
# Work around bugs in pre-3.0 UWIN ksh.
 
121
for as_var in ENV MAIL MAILPATH
 
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# Required to use basename.
 
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
137
  as_expr=expr
 
138
else
 
139
  as_expr=false
 
140
fi
 
141
 
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
143
  as_basename=basename
 
144
else
 
145
  as_basename=false
 
146
fi
 
147
 
 
148
 
 
149
# Name of the executable.
 
150
as_me=`$as_basename -- "$0" ||
 
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
152
         X"$0" : 'X\(//\)$' \| \
 
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
154
$as_echo X/"$0" |
 
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
156
            s//\1/
 
157
            q
 
158
          }
 
159
          /^X\/\(\/\/\)$/{
 
160
            s//\1/
 
161
            q
 
162
          }
 
163
          /^X\/\(\/\).*/{
 
164
            s//\1/
 
165
            q
 
166
          }
 
167
          s/.*/./; q'`
 
168
 
 
169
# CDPATH.
 
170
$as_unset CDPATH
 
171
 
 
172
 
 
173
if test "x$CONFIG_SHELL" = x; then
 
174
  if (eval ":") 2>/dev/null; then
 
175
  as_have_required=yes
 
176
else
 
177
  as_have_required=no
 
178
fi
 
179
 
 
180
  if test $as_have_required = yes &&     (eval ":
 
181
(as_func_return () {
 
182
  (exit \$1)
 
183
}
 
184
as_func_success () {
 
185
  as_func_return 0
 
186
}
 
187
as_func_failure () {
 
188
  as_func_return 1
 
189
}
 
190
as_func_ret_success () {
 
191
  return 0
 
192
}
 
193
as_func_ret_failure () {
 
194
  return 1
 
195
}
 
196
 
 
197
exitcode=0
 
198
if as_func_success; then
 
199
  :
 
200
else
 
201
  exitcode=1
 
202
  echo as_func_success failed.
 
203
fi
 
204
 
 
205
if as_func_failure; then
 
206
  exitcode=1
 
207
  echo as_func_failure succeeded.
 
208
fi
 
209
 
 
210
if as_func_ret_success; then
 
211
  :
 
212
else
 
213
  exitcode=1
 
214
  echo as_func_ret_success failed.
 
215
fi
 
216
 
 
217
if as_func_ret_failure; then
 
218
  exitcode=1
 
219
  echo as_func_ret_failure succeeded.
 
220
fi
 
221
 
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
223
  :
 
224
else
 
225
  exitcode=1
 
226
  echo positional parameters were not saved.
 
227
fi
 
228
 
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
 
230
 
 
231
(
 
232
  as_lineno_1=\$LINENO
 
233
  as_lineno_2=\$LINENO
 
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
236
") 2> /dev/null; then
 
237
  :
 
238
else
 
239
  as_candidate_shells=
 
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
242
do
 
243
  IFS=$as_save_IFS
 
244
  test -z "$as_dir" && as_dir=.
 
245
  case $as_dir in
 
246
         /*)
 
247
           for as_base in sh bash ksh sh5; do
 
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
249
           done;;
 
250
       esac
 
251
done
 
252
IFS=$as_save_IFS
 
253
 
 
254
 
 
255
      for as_shell in $as_candidate_shells $SHELL; do
 
256
         # Try only shells that exist, to save several forks.
 
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
260
  emulate sh
 
261
  NULLCMD=:
 
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
263
  # is contrary to our usage.  Disable this feature.
 
264
  alias -g '${1+"$@"}'='"$@"'
 
265
  setopt NO_GLOB_SUBST
 
266
else
 
267
  case `(set -o) 2>/dev/null` in
 
268
  *posix*) set -o posix ;;
 
269
esac
 
270
 
 
271
fi
 
272
 
 
273
 
 
274
:
 
275
_ASEOF
 
276
}; then
 
277
  CONFIG_SHELL=$as_shell
 
278
               as_have_required=yes
 
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
281
  emulate sh
 
282
  NULLCMD=:
 
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
284
  # is contrary to our usage.  Disable this feature.
 
285
  alias -g '${1+"$@"}'='"$@"'
 
286
  setopt NO_GLOB_SUBST
 
287
else
 
288
  case `(set -o) 2>/dev/null` in
 
289
  *posix*) set -o posix ;;
 
290
esac
 
291
 
 
292
fi
 
293
 
 
294
 
 
295
:
 
296
(as_func_return () {
 
297
  (exit $1)
 
298
}
 
299
as_func_success () {
 
300
  as_func_return 0
 
301
}
 
302
as_func_failure () {
 
303
  as_func_return 1
 
304
}
 
305
as_func_ret_success () {
 
306
  return 0
 
307
}
 
308
as_func_ret_failure () {
 
309
  return 1
 
310
}
 
311
 
 
312
exitcode=0
 
313
if as_func_success; then
 
314
  :
 
315
else
 
316
  exitcode=1
 
317
  echo as_func_success failed.
 
318
fi
 
319
 
 
320
if as_func_failure; then
 
321
  exitcode=1
 
322
  echo as_func_failure succeeded.
 
323
fi
 
324
 
 
325
if as_func_ret_success; then
 
326
  :
 
327
else
 
328
  exitcode=1
 
329
  echo as_func_ret_success failed.
 
330
fi
 
331
 
 
332
if as_func_ret_failure; then
 
333
  exitcode=1
 
334
  echo as_func_ret_failure succeeded.
 
335
fi
 
336
 
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
338
  :
 
339
else
 
340
  exitcode=1
 
341
  echo positional parameters were not saved.
 
342
fi
 
343
 
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
 
345
 
 
346
(
 
347
  as_lineno_1=$LINENO
 
348
  as_lineno_2=$LINENO
 
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
351
 
 
352
_ASEOF
 
353
}; then
 
354
  break
 
355
fi
 
356
 
 
357
fi
 
358
 
 
359
      done
 
360
 
 
361
      if test "x$CONFIG_SHELL" != x; then
 
362
  for as_var in BASH_ENV ENV
 
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
364
        done
 
365
        export CONFIG_SHELL
 
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
367
fi
 
368
 
 
369
 
 
370
    if test $as_have_required = no; then
 
371
  echo This script requires a shell more modern than all the
 
372
      echo shells that I found on your system.  Please install a
 
373
      echo modern shell, or manually run the script under such a
 
374
      echo shell if you do have one.
 
375
      { (exit 1); exit 1; }
 
376
fi
 
377
 
 
378
 
 
379
fi
 
380
 
 
381
fi
 
382
 
 
383
 
 
384
 
 
385
(eval "as_func_return () {
 
386
  (exit \$1)
 
387
}
 
388
as_func_success () {
 
389
  as_func_return 0
 
390
}
 
391
as_func_failure () {
 
392
  as_func_return 1
 
393
}
 
394
as_func_ret_success () {
 
395
  return 0
 
396
}
 
397
as_func_ret_failure () {
 
398
  return 1
 
399
}
 
400
 
 
401
exitcode=0
 
402
if as_func_success; then
 
403
  :
 
404
else
 
405
  exitcode=1
 
406
  echo as_func_success failed.
 
407
fi
 
408
 
 
409
if as_func_failure; then
 
410
  exitcode=1
 
411
  echo as_func_failure succeeded.
 
412
fi
 
413
 
 
414
if as_func_ret_success; then
 
415
  :
 
416
else
 
417
  exitcode=1
 
418
  echo as_func_ret_success failed.
 
419
fi
 
420
 
 
421
if as_func_ret_failure; then
 
422
  exitcode=1
 
423
  echo as_func_ret_failure succeeded.
 
424
fi
 
425
 
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
427
  :
 
428
else
 
429
  exitcode=1
 
430
  echo positional parameters were not saved.
 
431
fi
 
432
 
 
433
test \$exitcode = 0") || {
 
434
  echo No shell found that supports shell functions.
 
435
  echo Please tell bug-autoconf@gnu.org about your system,
 
436
  echo including any error possibly output before this message.
 
437
  echo This can help us improve future autoconf versions.
 
438
  echo Configuration will now proceed without shell functions.
 
439
}
 
440
 
 
441
 
 
442
 
 
443
  as_lineno_1=$LINENO
 
444
  as_lineno_2=$LINENO
 
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
447
 
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
450
  # line-number line after each line using $LINENO; the second 'sed'
 
451
  # does the real work.  The second script uses 'N' to pair each
 
452
  # line-number line with the line containing $LINENO, and appends
 
453
  # trailing '-' during substitution so that $LINENO is not a special
 
454
  # case at line end.
 
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
458
  sed -n '
 
459
    p
 
460
    /[$]LINENO/=
 
461
  ' <$as_myself |
 
462
    sed '
 
463
      s/[$]LINENO.*/&-/
 
464
      t lineno
 
465
      b
 
466
      :lineno
 
467
      N
 
468
      :loop
 
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
470
      t loop
 
471
      s/-\n.*//
 
472
    ' >$as_me.lineno &&
 
473
  chmod +x "$as_me.lineno" ||
 
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
475
   { (exit 1); exit 1; }; }
 
476
 
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
 
478
  # (the dirname of $[0] is not the place where we might find the
 
479
  # original and so on.  Autoconf is especially sensitive to this).
 
480
  . "./$as_me.lineno"
 
481
  # Exit status is that of the last command.
 
482
  exit
 
483
}
 
484
 
 
485
 
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
487
  as_dirname=dirname
 
488
else
 
489
  as_dirname=false
 
490
fi
 
491
 
 
492
ECHO_C= ECHO_N= ECHO_T=
 
493
case `echo -n x` in
 
494
-n*)
 
495
  case `echo 'x\c'` in
 
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
497
  *)   ECHO_C='\c';;
 
498
  esac;;
 
499
*)
 
500
  ECHO_N='-n';;
 
501
esac
 
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
504
  as_expr=expr
 
505
else
 
506
  as_expr=false
 
507
fi
 
508
 
 
509
rm -f conf$$ conf$$.exe conf$$.file
 
510
if test -d conf$$.dir; then
 
511
  rm -f conf$$.dir/conf$$.file
 
512
else
 
513
  rm -f conf$$.dir
 
514
  mkdir conf$$.dir 2>/dev/null
 
515
fi
 
516
if (echo >conf$$.file) 2>/dev/null; then
 
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
518
    as_ln_s='ln -s'
 
519
    # ... but there are two gotchas:
 
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
522
    # In both cases, we have to default to `cp -p'.
 
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
524
      as_ln_s='cp -p'
 
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
526
    as_ln_s=ln
 
527
  else
 
528
    as_ln_s='cp -p'
 
529
  fi
 
530
else
 
531
  as_ln_s='cp -p'
 
532
fi
 
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
534
rmdir conf$$.dir 2>/dev/null
 
535
 
 
536
if mkdir -p . 2>/dev/null; then
 
537
  as_mkdir_p=:
 
538
else
 
539
  test -d ./-p && rmdir ./-p
 
540
  as_mkdir_p=false
 
541
fi
 
542
 
 
543
if test -x / >/dev/null 2>&1; then
 
544
  as_test_x='test -x'
 
545
else
 
546
  if ls -dL / >/dev/null 2>&1; then
 
547
    as_ls_L_option=L
 
548
  else
 
549
    as_ls_L_option=
 
550
  fi
 
551
  as_test_x='
 
552
    eval sh -c '\''
 
553
      if test -d "$1"; then
 
554
        test -d "$1/.";
 
555
      else
 
556
        case $1 in
 
557
        -*)set "./$1";;
 
558
        esac;
 
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
560
        ???[sx]*):;;*)false;;esac;fi
 
561
    '\'' sh
 
562
  '
 
563
fi
 
564
as_executable_p=$as_test_x
 
565
 
 
566
# Sed expression to map a string onto a valid CPP name.
 
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
568
 
 
569
# Sed expression to map a string onto a valid variable name.
 
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
571
 
 
572
 
 
573
 
 
574
 
 
575
# Check that we are running under the correct shell.
 
576
SHELL=${CONFIG_SHELL-/bin/sh}
 
577
 
 
578
case X$ECHO in
 
579
X*--fallback-echo)
 
580
  # Remove one level of quotation (which was required for Make).
 
581
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
582
  ;;
 
583
esac
 
584
 
 
585
echo=${ECHO-echo}
 
586
if test "X$1" = X--no-reexec; then
 
587
  # Discard the --no-reexec flag, and continue.
 
588
  shift
 
589
elif test "X$1" = X--fallback-echo; then
 
590
  # Avoid inline document here, it may be left over
 
591
  :
 
592
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
593
  # Yippee, $echo works!
 
594
  :
 
595
else
 
596
  # Restart under the correct shell.
 
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
598
fi
 
599
 
 
600
if test "X$1" = X--fallback-echo; then
 
601
  # used as fallback echo
 
602
  shift
 
603
  cat <<EOF
 
604
$*
 
605
EOF
 
606
  exit 0
 
607
fi
 
608
 
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
610
# if CDPATH is set.
 
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
612
 
 
613
if test -z "$ECHO"; then
 
614
if test "X${echo_test_string+set}" != Xset; then
 
615
# find a string as large as possible, as long as the shell can cope with it
 
616
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
617
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
618
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
619
       echo_test_string=`eval $cmd` &&
 
620
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
621
    then
 
622
      break
 
623
    fi
 
624
  done
 
625
fi
 
626
 
 
627
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
628
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
629
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
630
  :
 
631
else
 
632
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
633
  # backslashes.  This makes it impossible to quote backslashes using
 
634
  #   echo "$something" | sed 's/\\/\\\\/g'
 
635
  #
 
636
  # So, first we look for a working echo in the user's PATH.
 
637
 
 
638
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
639
  for dir in $PATH /usr/ucb; do
 
640
    IFS="$lt_save_ifs"
 
641
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
642
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
643
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
644
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
645
      echo="$dir/echo"
 
646
      break
 
647
    fi
 
648
  done
 
649
  IFS="$lt_save_ifs"
 
650
 
 
651
  if test "X$echo" = Xecho; then
 
652
    # We didn't find a better echo, so look for alternatives.
 
653
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
654
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
655
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
      # This shell has a builtin print -r that does the trick.
 
657
      echo='print -r'
 
658
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
659
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
660
      # If we have ksh, try running configure again with it.
 
661
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
662
      export ORIGINAL_CONFIG_SHELL
 
663
      CONFIG_SHELL=/bin/ksh
 
664
      export CONFIG_SHELL
 
665
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
666
    else
 
667
      # Try using printf.
 
668
      echo='printf %s\n'
 
669
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
670
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
671
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
672
        # Cool, printf works
 
673
        :
 
674
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
675
           test "X$echo_testing_string" = 'X\t' &&
 
676
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
677
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
678
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
679
        export CONFIG_SHELL
 
680
        SHELL="$CONFIG_SHELL"
 
681
        export SHELL
 
682
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
683
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
684
           test "X$echo_testing_string" = 'X\t' &&
 
685
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
686
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
687
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
688
      else
 
689
        # maybe with a smaller string...
 
690
        prev=:
 
691
 
 
692
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
693
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
694
          then
 
695
            break
 
696
          fi
 
697
          prev="$cmd"
 
698
        done
 
699
 
 
700
        if test "$prev" != 'sed 50q "$0"'; then
 
701
          echo_test_string=`eval $prev`
 
702
          export echo_test_string
 
703
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
704
        else
 
705
          # Oops.  We lost completely, so just stick with echo.
 
706
          echo=echo
 
707
        fi
 
708
      fi
 
709
    fi
 
710
  fi
 
711
fi
 
712
fi
 
713
 
 
714
# Copy echo and quote the copy suitably for passing to libtool from
 
715
# the Makefile, instead of quoting the original, which is used later.
 
716
ECHO=$echo
 
717
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
718
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
719
fi
 
720
 
 
721
 
 
722
 
 
723
 
 
724
tagnames=${tagnames+${tagnames},}CXX
 
725
 
 
726
tagnames=${tagnames+${tagnames},}F77
 
727
 
 
728
exec 7<&0 </dev/null 6>&1
 
729
 
 
730
# Name of the host.
 
731
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
732
# so uname gets run too.
 
733
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
734
 
 
735
#
 
736
# Initializations.
 
737
#
 
738
ac_default_prefix=/usr/local
 
739
ac_clean_files=
 
740
ac_config_libobj_dir=.
 
741
LIBOBJS=
 
742
cross_compiling=no
 
743
subdirs=
 
744
MFLAGS=
 
745
MAKEFLAGS=
 
746
SHELL=${CONFIG_SHELL-/bin/sh}
 
747
 
 
748
# Identity of this package.
 
749
PACKAGE_NAME='libffcall/callback'
 
750
PACKAGE_TARNAME='libffcall-callback'
 
751
PACKAGE_VERSION='0x010B'
 
752
PACKAGE_STRING='libffcall/callback 0x010B'
 
753
PACKAGE_BUGREPORT=''
 
754
 
 
755
ac_unique_file="callback.h.in"
 
756
# Factoring default headers for most tests.
 
757
ac_includes_default="\
 
758
#include <stdio.h>
 
759
#ifdef HAVE_SYS_TYPES_H
 
760
# include <sys/types.h>
 
761
#endif
 
762
#ifdef HAVE_SYS_STAT_H
 
763
# include <sys/stat.h>
 
764
#endif
 
765
#ifdef STDC_HEADERS
 
766
# include <stdlib.h>
 
767
# include <stddef.h>
 
768
#else
 
769
# ifdef HAVE_STDLIB_H
 
770
#  include <stdlib.h>
 
771
# endif
 
772
#endif
 
773
#ifdef HAVE_STRING_H
 
774
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
775
#  include <memory.h>
 
776
# endif
 
777
# include <string.h>
 
778
#endif
 
779
#ifdef HAVE_STRINGS_H
 
780
# include <strings.h>
 
781
#endif
 
782
#ifdef HAVE_INTTYPES_H
 
783
# include <inttypes.h>
 
784
#endif
 
785
#ifdef HAVE_STDINT_H
 
786
# include <stdint.h>
 
787
#endif
 
788
#ifdef HAVE_UNISTD_H
 
789
# include <unistd.h>
 
790
#endif"
 
791
 
 
792
enable_option_checking=no
 
793
ac_subst_vars='LTLIBOBJS
 
794
LIBOBJS
 
795
subdirs
 
796
LIBTOOL
 
797
ac_ct_F77
 
798
FFLAGS
 
799
F77
 
800
CXXCPP
 
801
ac_ct_CXX
 
802
CXXFLAGS
 
803
CXX
 
804
NMEDIT
 
805
DSYMUTIL
 
806
STRIP
 
807
AR
 
808
ECHO
 
809
SED
 
810
host_cpu_abi
 
811
host_os
 
812
host_vendor
 
813
host_cpu
 
814
host
 
815
build_os
 
816
build_vendor
 
817
build_cpu
 
818
build
 
819
LN_S
 
820
LN
 
821
INSTALL_DATA
 
822
INSTALL_SCRIPT
 
823
INSTALL_PROGRAM
 
824
SET_MAKE
 
825
RANLIB
 
826
GCC_X_NONE
 
827
CC_GCC
 
828
EGREP
 
829
GREP
 
830
CPP
 
831
OBJEXT
 
832
EXEEXT
 
833
ac_ct_CC
 
834
CPPFLAGS
 
835
LDFLAGS
 
836
CFLAGS
 
837
CC
 
838
target_alias
 
839
host_alias
 
840
build_alias
 
841
LIBS
 
842
ECHO_T
 
843
ECHO_N
 
844
ECHO_C
 
845
DEFS
 
846
mandir
 
847
localedir
 
848
libdir
 
849
psdir
 
850
pdfdir
 
851
dvidir
 
852
htmldir
 
853
infodir
 
854
docdir
 
855
oldincludedir
 
856
includedir
 
857
localstatedir
 
858
sharedstatedir
 
859
sysconfdir
 
860
datadir
 
861
datarootdir
 
862
libexecdir
 
863
sbindir
 
864
bindir
 
865
program_transform_name
 
866
prefix
 
867
exec_prefix
 
868
PACKAGE_BUGREPORT
 
869
PACKAGE_STRING
 
870
PACKAGE_VERSION
 
871
PACKAGE_TARNAME
 
872
PACKAGE_NAME
 
873
PATH_SEPARATOR
 
874
SHELL'
 
875
ac_subst_files=''
 
876
ac_user_opts='
 
877
enable_option_checking
 
878
enable_shared
 
879
enable_static
 
880
enable_fast_install
 
881
with_gnu_ld
 
882
enable_libtool_lock
 
883
with_pic
 
884
with_tags
 
885
'
 
886
      ac_precious_vars='build_alias
 
887
host_alias
 
888
target_alias
 
889
CC
 
890
CFLAGS
 
891
LDFLAGS
 
892
LIBS
 
893
CPPFLAGS
 
894
CPP
 
895
CXX
 
896
CXXFLAGS
 
897
CCC
 
898
CXXCPP
 
899
F77
 
900
FFLAGS'
 
901
ac_subdirs_all='vacall_r trampoline_r'
 
902
 
 
903
# Initialize some variables set by options.
 
904
ac_init_help=
 
905
ac_init_version=false
 
906
ac_unrecognized_opts=
 
907
ac_unrecognized_sep=
 
908
# The variables have the same names as the options, with
 
909
# dashes changed to underlines.
 
910
cache_file=/dev/null
 
911
exec_prefix=NONE
 
912
no_create=
 
913
no_recursion=
 
914
prefix=NONE
 
915
program_prefix=NONE
 
916
program_suffix=NONE
 
917
program_transform_name=s,x,x,
 
918
silent=
 
919
site=
 
920
srcdir=
 
921
verbose=
 
922
x_includes=NONE
 
923
x_libraries=NONE
 
924
 
 
925
# Installation directory options.
 
926
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
927
# and all the variables that are supposed to be based on exec_prefix
 
928
# by default will actually change.
 
929
# Use braces instead of parens because sh, perl, etc. also accept them.
 
930
# (The list follows the same order as the GNU Coding Standards.)
 
931
bindir='${exec_prefix}/bin'
 
932
sbindir='${exec_prefix}/sbin'
 
933
libexecdir='${exec_prefix}/libexec'
 
934
datarootdir='${prefix}/share'
 
935
datadir='${datarootdir}'
 
936
sysconfdir='${prefix}/etc'
 
937
sharedstatedir='${prefix}/com'
 
938
localstatedir='${prefix}/var'
 
939
includedir='${prefix}/include'
 
940
oldincludedir='/usr/include'
 
941
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
942
infodir='${datarootdir}/info'
 
943
htmldir='${docdir}'
 
944
dvidir='${docdir}'
 
945
pdfdir='${docdir}'
 
946
psdir='${docdir}'
 
947
libdir='${exec_prefix}/lib'
 
948
localedir='${datarootdir}/locale'
 
949
mandir='${datarootdir}/man'
 
950
 
 
951
ac_prev=
 
952
ac_dashdash=
 
953
for ac_option
 
954
do
 
955
  # If the previous option needs an argument, assign it.
 
956
  if test -n "$ac_prev"; then
 
957
    eval $ac_prev=\$ac_option
 
958
    ac_prev=
 
959
    continue
 
960
  fi
 
961
 
 
962
  case $ac_option in
 
963
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
964
  *)    ac_optarg=yes ;;
 
965
  esac
 
966
 
 
967
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
968
 
 
969
  case $ac_dashdash$ac_option in
 
970
  --)
 
971
    ac_dashdash=yes ;;
 
972
 
 
973
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
974
    ac_prev=bindir ;;
 
975
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
976
    bindir=$ac_optarg ;;
 
977
 
 
978
  -build | --build | --buil | --bui | --bu)
 
979
    ac_prev=build_alias ;;
 
980
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
981
    build_alias=$ac_optarg ;;
 
982
 
 
983
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
984
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
985
    ac_prev=cache_file ;;
 
986
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
987
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
988
    cache_file=$ac_optarg ;;
 
989
 
 
990
  --config-cache | -C)
 
991
    cache_file=config.cache ;;
 
992
 
 
993
  -datadir | --datadir | --datadi | --datad)
 
994
    ac_prev=datadir ;;
 
995
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
996
    datadir=$ac_optarg ;;
 
997
 
 
998
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
999
  | --dataroo | --dataro | --datar)
 
1000
    ac_prev=datarootdir ;;
 
1001
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1002
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1003
    datarootdir=$ac_optarg ;;
 
1004
 
 
1005
  -disable-* | --disable-*)
 
1006
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1007
    # Reject names that are not valid shell variable names.
 
1008
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1009
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1010
   { (exit 1); exit 1; }; }
 
1011
    ac_useropt_orig=$ac_useropt
 
1012
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1013
    case $ac_user_opts in
 
1014
      *"
 
1015
"enable_$ac_useropt"
 
1016
"*) ;;
 
1017
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1018
         ac_unrecognized_sep=', ';;
 
1019
    esac
 
1020
    eval enable_$ac_useropt=no ;;
 
1021
 
 
1022
  -docdir | --docdir | --docdi | --doc | --do)
 
1023
    ac_prev=docdir ;;
 
1024
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1025
    docdir=$ac_optarg ;;
 
1026
 
 
1027
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1028
    ac_prev=dvidir ;;
 
1029
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1030
    dvidir=$ac_optarg ;;
 
1031
 
 
1032
  -enable-* | --enable-*)
 
1033
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1034
    # Reject names that are not valid shell variable names.
 
1035
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1036
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1037
   { (exit 1); exit 1; }; }
 
1038
    ac_useropt_orig=$ac_useropt
 
1039
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1040
    case $ac_user_opts in
 
1041
      *"
 
1042
"enable_$ac_useropt"
 
1043
"*) ;;
 
1044
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1045
         ac_unrecognized_sep=', ';;
 
1046
    esac
 
1047
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1048
 
 
1049
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1050
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1051
  | --exec | --exe | --ex)
 
1052
    ac_prev=exec_prefix ;;
 
1053
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1054
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1055
  | --exec=* | --exe=* | --ex=*)
 
1056
    exec_prefix=$ac_optarg ;;
 
1057
 
 
1058
  -gas | --gas | --ga | --g)
 
1059
    # Obsolete; use --with-gas.
 
1060
    with_gas=yes ;;
 
1061
 
 
1062
  -help | --help | --hel | --he | -h)
 
1063
    ac_init_help=long ;;
 
1064
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1065
    ac_init_help=recursive ;;
 
1066
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1067
    ac_init_help=short ;;
 
1068
 
 
1069
  -host | --host | --hos | --ho)
 
1070
    ac_prev=host_alias ;;
 
1071
  -host=* | --host=* | --hos=* | --ho=*)
 
1072
    host_alias=$ac_optarg ;;
 
1073
 
 
1074
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1075
    ac_prev=htmldir ;;
 
1076
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1077
  | --ht=*)
 
1078
    htmldir=$ac_optarg ;;
 
1079
 
 
1080
  -includedir | --includedir | --includedi | --included | --include \
 
1081
  | --includ | --inclu | --incl | --inc)
 
1082
    ac_prev=includedir ;;
 
1083
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1084
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1085
    includedir=$ac_optarg ;;
 
1086
 
 
1087
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1088
    ac_prev=infodir ;;
 
1089
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1090
    infodir=$ac_optarg ;;
 
1091
 
 
1092
  -libdir | --libdir | --libdi | --libd)
 
1093
    ac_prev=libdir ;;
 
1094
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1095
    libdir=$ac_optarg ;;
 
1096
 
 
1097
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1098
  | --libexe | --libex | --libe)
 
1099
    ac_prev=libexecdir ;;
 
1100
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1101
  | --libexe=* | --libex=* | --libe=*)
 
1102
    libexecdir=$ac_optarg ;;
 
1103
 
 
1104
  -localedir | --localedir | --localedi | --localed | --locale)
 
1105
    ac_prev=localedir ;;
 
1106
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1107
    localedir=$ac_optarg ;;
 
1108
 
 
1109
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1110
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1111
    ac_prev=localstatedir ;;
 
1112
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1113
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1114
    localstatedir=$ac_optarg ;;
 
1115
 
 
1116
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1117
    ac_prev=mandir ;;
 
1118
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1119
    mandir=$ac_optarg ;;
 
1120
 
 
1121
  -nfp | --nfp | --nf)
 
1122
    # Obsolete; use --without-fp.
 
1123
    with_fp=no ;;
 
1124
 
 
1125
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1126
  | --no-cr | --no-c | -n)
 
1127
    no_create=yes ;;
 
1128
 
 
1129
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1130
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1131
    no_recursion=yes ;;
 
1132
 
 
1133
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1134
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1135
  | --oldin | --oldi | --old | --ol | --o)
 
1136
    ac_prev=oldincludedir ;;
 
1137
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1138
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1139
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1140
    oldincludedir=$ac_optarg ;;
 
1141
 
 
1142
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1143
    ac_prev=prefix ;;
 
1144
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1145
    prefix=$ac_optarg ;;
 
1146
 
 
1147
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1148
  | --program-pre | --program-pr | --program-p)
 
1149
    ac_prev=program_prefix ;;
 
1150
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1151
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1152
    program_prefix=$ac_optarg ;;
 
1153
 
 
1154
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1155
  | --program-suf | --program-su | --program-s)
 
1156
    ac_prev=program_suffix ;;
 
1157
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1158
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1159
    program_suffix=$ac_optarg ;;
 
1160
 
 
1161
  -program-transform-name | --program-transform-name \
 
1162
  | --program-transform-nam | --program-transform-na \
 
1163
  | --program-transform-n | --program-transform- \
 
1164
  | --program-transform | --program-transfor \
 
1165
  | --program-transfo | --program-transf \
 
1166
  | --program-trans | --program-tran \
 
1167
  | --progr-tra | --program-tr | --program-t)
 
1168
    ac_prev=program_transform_name ;;
 
1169
  -program-transform-name=* | --program-transform-name=* \
 
1170
  | --program-transform-nam=* | --program-transform-na=* \
 
1171
  | --program-transform-n=* | --program-transform-=* \
 
1172
  | --program-transform=* | --program-transfor=* \
 
1173
  | --program-transfo=* | --program-transf=* \
 
1174
  | --program-trans=* | --program-tran=* \
 
1175
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1176
    program_transform_name=$ac_optarg ;;
 
1177
 
 
1178
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1179
    ac_prev=pdfdir ;;
 
1180
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1181
    pdfdir=$ac_optarg ;;
 
1182
 
 
1183
  -psdir | --psdir | --psdi | --psd | --ps)
 
1184
    ac_prev=psdir ;;
 
1185
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1186
    psdir=$ac_optarg ;;
 
1187
 
 
1188
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1189
  | -silent | --silent | --silen | --sile | --sil)
 
1190
    silent=yes ;;
 
1191
 
 
1192
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1193
    ac_prev=sbindir ;;
 
1194
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1195
  | --sbi=* | --sb=*)
 
1196
    sbindir=$ac_optarg ;;
 
1197
 
 
1198
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1199
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1200
  | --sharedst | --shareds | --shared | --share | --shar \
 
1201
  | --sha | --sh)
 
1202
    ac_prev=sharedstatedir ;;
 
1203
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1204
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1205
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1206
  | --sha=* | --sh=*)
 
1207
    sharedstatedir=$ac_optarg ;;
 
1208
 
 
1209
  -site | --site | --sit)
 
1210
    ac_prev=site ;;
 
1211
  -site=* | --site=* | --sit=*)
 
1212
    site=$ac_optarg ;;
 
1213
 
 
1214
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1215
    ac_prev=srcdir ;;
 
1216
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1217
    srcdir=$ac_optarg ;;
 
1218
 
 
1219
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1220
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1221
    ac_prev=sysconfdir ;;
 
1222
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1223
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1224
    sysconfdir=$ac_optarg ;;
 
1225
 
 
1226
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1227
    ac_prev=target_alias ;;
 
1228
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1229
    target_alias=$ac_optarg ;;
 
1230
 
 
1231
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1232
    verbose=yes ;;
 
1233
 
 
1234
  -version | --version | --versio | --versi | --vers | -V)
 
1235
    ac_init_version=: ;;
 
1236
 
 
1237
  -with-* | --with-*)
 
1238
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1239
    # Reject names that are not valid shell variable names.
 
1240
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1241
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1242
   { (exit 1); exit 1; }; }
 
1243
    ac_useropt_orig=$ac_useropt
 
1244
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1245
    case $ac_user_opts in
 
1246
      *"
 
1247
"with_$ac_useropt"
 
1248
"*) ;;
 
1249
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1250
         ac_unrecognized_sep=', ';;
 
1251
    esac
 
1252
    eval with_$ac_useropt=\$ac_optarg ;;
 
1253
 
 
1254
  -without-* | --without-*)
 
1255
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1256
    # Reject names that are not valid shell variable names.
 
1257
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1258
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1259
   { (exit 1); exit 1; }; }
 
1260
    ac_useropt_orig=$ac_useropt
 
1261
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1262
    case $ac_user_opts in
 
1263
      *"
 
1264
"with_$ac_useropt"
 
1265
"*) ;;
 
1266
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1267
         ac_unrecognized_sep=', ';;
 
1268
    esac
 
1269
    eval with_$ac_useropt=no ;;
 
1270
 
 
1271
  --x)
 
1272
    # Obsolete; use --with-x.
 
1273
    with_x=yes ;;
 
1274
 
 
1275
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1276
  | --x-incl | --x-inc | --x-in | --x-i)
 
1277
    ac_prev=x_includes ;;
 
1278
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1279
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1280
    x_includes=$ac_optarg ;;
 
1281
 
 
1282
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1283
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1284
    ac_prev=x_libraries ;;
 
1285
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1286
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1287
    x_libraries=$ac_optarg ;;
 
1288
 
 
1289
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1290
Try \`$0 --help' for more information." >&2
 
1291
   { (exit 1); exit 1; }; }
 
1292
    ;;
 
1293
 
 
1294
  *=*)
 
1295
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1296
    # Reject names that are not valid shell variable names.
 
1297
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1298
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1299
   { (exit 1); exit 1; }; }
 
1300
    eval $ac_envvar=\$ac_optarg
 
1301
    export $ac_envvar ;;
 
1302
 
 
1303
  *)
 
1304
    # FIXME: should be removed in autoconf 3.0.
 
1305
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1306
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1307
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1308
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1309
    ;;
 
1310
 
 
1311
  esac
 
1312
done
 
1313
 
 
1314
if test -n "$ac_prev"; then
 
1315
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1316
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1317
   { (exit 1); exit 1; }; }
 
1318
fi
 
1319
 
 
1320
if test -n "$ac_unrecognized_opts"; then
 
1321
  case $enable_option_checking in
 
1322
    no) ;;
 
1323
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1324
   { (exit 1); exit 1; }; } ;;
 
1325
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1326
  esac
 
1327
fi
 
1328
 
 
1329
# Check all directory arguments for consistency.
 
1330
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1331
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1332
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1333
                libdir localedir mandir
 
1334
do
 
1335
  eval ac_val=\$$ac_var
 
1336
  # Remove trailing slashes.
 
1337
  case $ac_val in
 
1338
    */ )
 
1339
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1340
      eval $ac_var=\$ac_val;;
 
1341
  esac
 
1342
  # Be sure to have absolute directory names.
 
1343
  case $ac_val in
 
1344
    [\\/$]* | ?:[\\/]* )  continue;;
 
1345
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1346
  esac
 
1347
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1348
   { (exit 1); exit 1; }; }
 
1349
done
 
1350
 
 
1351
# There might be people who depend on the old broken behavior: `$host'
 
1352
# used to hold the argument of --host etc.
 
1353
# FIXME: To remove some day.
 
1354
build=$build_alias
 
1355
host=$host_alias
 
1356
target=$target_alias
 
1357
 
 
1358
# FIXME: To remove some day.
 
1359
if test "x$host_alias" != x; then
 
1360
  if test "x$build_alias" = x; then
 
1361
    cross_compiling=maybe
 
1362
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1363
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1364
  elif test "x$build_alias" != "x$host_alias"; then
 
1365
    cross_compiling=yes
 
1366
  fi
 
1367
fi
 
1368
 
 
1369
ac_tool_prefix=
 
1370
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1371
 
 
1372
test "$silent" = yes && exec 6>/dev/null
 
1373
 
 
1374
 
 
1375
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1376
ac_ls_di=`ls -di .` &&
 
1377
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1378
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1379
   { (exit 1); exit 1; }; }
 
1380
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1381
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1382
   { (exit 1); exit 1; }; }
 
1383
 
 
1384
 
 
1385
# Find the source files, if location was not specified.
 
1386
if test -z "$srcdir"; then
 
1387
  ac_srcdir_defaulted=yes
 
1388
  # Try the directory containing this script, then the parent directory.
 
1389
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1390
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1391
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1392
         X"$as_myself" : 'X\(//\)$' \| \
 
1393
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1394
$as_echo X"$as_myself" |
 
1395
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1396
            s//\1/
 
1397
            q
 
1398
          }
 
1399
          /^X\(\/\/\)[^/].*/{
 
1400
            s//\1/
 
1401
            q
 
1402
          }
 
1403
          /^X\(\/\/\)$/{
 
1404
            s//\1/
 
1405
            q
 
1406
          }
 
1407
          /^X\(\/\).*/{
 
1408
            s//\1/
 
1409
            q
 
1410
          }
 
1411
          s/.*/./; q'`
 
1412
  srcdir=$ac_confdir
 
1413
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1414
    srcdir=..
 
1415
  fi
 
1416
else
 
1417
  ac_srcdir_defaulted=no
 
1418
fi
 
1419
if test ! -r "$srcdir/$ac_unique_file"; then
 
1420
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1421
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1422
   { (exit 1); exit 1; }; }
 
1423
fi
 
1424
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1425
ac_abs_confdir=`(
 
1426
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1427
   { (exit 1); exit 1; }; }
 
1428
        pwd)`
 
1429
# When building in place, set srcdir=.
 
1430
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1431
  srcdir=.
 
1432
fi
 
1433
# Remove unnecessary trailing slashes from srcdir.
 
1434
# Double slashes in file names in object file debugging info
 
1435
# mess up M-x gdb in Emacs.
 
1436
case $srcdir in
 
1437
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1438
esac
 
1439
for ac_var in $ac_precious_vars; do
 
1440
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1441
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1442
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1443
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1444
done
 
1445
 
 
1446
#
 
1447
# Report the --help message.
 
1448
#
 
1449
if test "$ac_init_help" = "long"; then
 
1450
  # Omit some internal or obsolete options to make the list less imposing.
 
1451
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1452
  cat <<_ACEOF
 
1453
\`configure' configures libffcall/callback 0x010B to adapt to many kinds of systems.
 
1454
 
 
1455
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1456
 
 
1457
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1458
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1459
 
 
1460
Defaults for the options are specified in brackets.
 
1461
 
 
1462
Configuration:
 
1463
  -h, --help              display this help and exit
 
1464
      --help=short        display options specific to this package
 
1465
      --help=recursive    display the short help of all the included packages
 
1466
  -V, --version           display version information and exit
 
1467
  -q, --quiet, --silent   do not print \`checking...' messages
 
1468
      --cache-file=FILE   cache test results in FILE [disabled]
 
1469
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1470
  -n, --no-create         do not create output files
 
1471
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1472
 
 
1473
Installation directories:
 
1474
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1475
                          [$ac_default_prefix]
 
1476
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1477
                          [PREFIX]
 
1478
 
 
1479
By default, \`make install' will install all the files in
 
1480
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1481
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1482
for instance \`--prefix=\$HOME'.
 
1483
 
 
1484
For better control, use the options below.
 
1485
 
 
1486
Fine tuning of the installation directories:
 
1487
  --bindir=DIR            user executables [EPREFIX/bin]
 
1488
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1489
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1490
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1491
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1492
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1493
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1494
  --includedir=DIR        C header files [PREFIX/include]
 
1495
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1496
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1497
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1498
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1499
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1500
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1501
  --docdir=DIR            documentation root
 
1502
                          [DATAROOTDIR/doc/libffcall-callback]
 
1503
  --htmldir=DIR           html documentation [DOCDIR]
 
1504
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1505
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1506
  --psdir=DIR             ps documentation [DOCDIR]
 
1507
_ACEOF
 
1508
 
 
1509
  cat <<\_ACEOF
 
1510
 
 
1511
System types:
 
1512
  --build=BUILD     configure for building on BUILD [guessed]
 
1513
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1514
_ACEOF
 
1515
fi
 
1516
 
 
1517
if test -n "$ac_init_help"; then
 
1518
  case $ac_init_help in
 
1519
     short | recursive ) echo "Configuration of libffcall/callback 0x010B:";;
 
1520
   esac
 
1521
  cat <<\_ACEOF
 
1522
 
 
1523
Optional Features:
 
1524
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1525
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1526
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1527
  --enable-shared[=PKGS]  build shared libraries [default=no]
 
1528
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1529
  --enable-fast-install[=PKGS]
 
1530
                          optimize for fast installation [default=yes]
 
1531
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1532
 
 
1533
Optional Packages:
 
1534
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1535
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1536
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1537
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1538
                          both]
 
1539
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1540
 
 
1541
Some influential environment variables:
 
1542
  CC          C compiler command
 
1543
  CFLAGS      C compiler flags
 
1544
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1545
              nonstandard directory <lib dir>
 
1546
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1547
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1548
              you have headers in a nonstandard directory <include dir>
 
1549
  CPP         C preprocessor
 
1550
  CXX         C++ compiler command
 
1551
  CXXFLAGS    C++ compiler flags
 
1552
  CXXCPP      C++ preprocessor
 
1553
  F77         Fortran 77 compiler command
 
1554
  FFLAGS      Fortran 77 compiler flags
 
1555
 
 
1556
Use these variables to override the choices made by `configure' or to help
 
1557
it to find libraries and programs with nonstandard names/locations.
 
1558
 
 
1559
_ACEOF
 
1560
ac_status=$?
 
1561
fi
 
1562
 
 
1563
if test "$ac_init_help" = "recursive"; then
 
1564
  # If there are subdirs, report their specific --help.
 
1565
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1566
    test -d "$ac_dir" ||
 
1567
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1568
      continue
 
1569
    ac_builddir=.
 
1570
 
 
1571
case "$ac_dir" in
 
1572
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1573
*)
 
1574
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1575
  # A ".." for each directory in $ac_dir_suffix.
 
1576
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1577
  case $ac_top_builddir_sub in
 
1578
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1579
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1580
  esac ;;
 
1581
esac
 
1582
ac_abs_top_builddir=$ac_pwd
 
1583
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1584
# for backward compatibility:
 
1585
ac_top_builddir=$ac_top_build_prefix
 
1586
 
 
1587
case $srcdir in
 
1588
  .)  # We are building in place.
 
1589
    ac_srcdir=.
 
1590
    ac_top_srcdir=$ac_top_builddir_sub
 
1591
    ac_abs_top_srcdir=$ac_pwd ;;
 
1592
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1593
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1594
    ac_top_srcdir=$srcdir
 
1595
    ac_abs_top_srcdir=$srcdir ;;
 
1596
  *) # Relative name.
 
1597
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1598
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1599
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1600
esac
 
1601
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1602
 
 
1603
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1604
    # Check for guested configure.
 
1605
    if test -f "$ac_srcdir/configure.gnu"; then
 
1606
      echo &&
 
1607
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1608
    elif test -f "$ac_srcdir/configure"; then
 
1609
      echo &&
 
1610
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1611
    else
 
1612
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1613
    fi || ac_status=$?
 
1614
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1615
  done
 
1616
fi
 
1617
 
 
1618
test -n "$ac_init_help" && exit $ac_status
 
1619
if $ac_init_version; then
 
1620
  cat <<\_ACEOF
 
1621
libffcall/callback configure 0x010B
 
1622
generated by GNU Autoconf 2.63
 
1623
 
 
1624
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1625
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1626
This configure script is free software; the Free Software Foundation
 
1627
gives unlimited permission to copy, distribute and modify it.
 
1628
_ACEOF
 
1629
  exit
 
1630
fi
 
1631
cat >config.log <<_ACEOF
 
1632
This file contains any messages produced by compilers while
 
1633
running configure, to aid debugging if configure makes a mistake.
 
1634
 
 
1635
It was created by libffcall/callback $as_me 0x010B, which was
 
1636
generated by GNU Autoconf 2.63.  Invocation command line was
 
1637
 
 
1638
  $ $0 $@
 
1639
 
 
1640
_ACEOF
 
1641
exec 5>>config.log
 
1642
{
 
1643
cat <<_ASUNAME
 
1644
## --------- ##
 
1645
## Platform. ##
 
1646
## --------- ##
 
1647
 
 
1648
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1649
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1650
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1651
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1652
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1653
 
 
1654
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1655
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1656
 
 
1657
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1658
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1659
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1660
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1661
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1662
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1663
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1664
 
 
1665
_ASUNAME
 
1666
 
 
1667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1668
for as_dir in $PATH
 
1669
do
 
1670
  IFS=$as_save_IFS
 
1671
  test -z "$as_dir" && as_dir=.
 
1672
  $as_echo "PATH: $as_dir"
 
1673
done
 
1674
IFS=$as_save_IFS
 
1675
 
 
1676
} >&5
 
1677
 
 
1678
cat >&5 <<_ACEOF
 
1679
 
 
1680
 
 
1681
## ----------- ##
 
1682
## Core tests. ##
 
1683
## ----------- ##
 
1684
 
 
1685
_ACEOF
 
1686
 
 
1687
 
 
1688
# Keep a trace of the command line.
 
1689
# Strip out --no-create and --no-recursion so they do not pile up.
 
1690
# Strip out --silent because we don't want to record it for future runs.
 
1691
# Also quote any args containing shell meta-characters.
 
1692
# Make two passes to allow for proper duplicate-argument suppression.
 
1693
ac_configure_args=
 
1694
ac_configure_args0=
 
1695
ac_configure_args1=
 
1696
ac_must_keep_next=false
 
1697
for ac_pass in 1 2
 
1698
do
 
1699
  for ac_arg
 
1700
  do
 
1701
    case $ac_arg in
 
1702
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1703
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1704
    | -silent | --silent | --silen | --sile | --sil)
 
1705
      continue ;;
 
1706
    *\'*)
 
1707
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1708
    esac
 
1709
    case $ac_pass in
 
1710
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1711
    2)
 
1712
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1713
      if test $ac_must_keep_next = true; then
 
1714
        ac_must_keep_next=false # Got value, back to normal.
 
1715
      else
 
1716
        case $ac_arg in
 
1717
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1718
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1719
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1720
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1721
            case "$ac_configure_args0 " in
 
1722
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1723
            esac
 
1724
            ;;
 
1725
          -* ) ac_must_keep_next=true ;;
 
1726
        esac
 
1727
      fi
 
1728
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1729
      ;;
 
1730
    esac
 
1731
  done
 
1732
done
 
1733
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1734
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1735
 
 
1736
# When interrupted or exit'd, cleanup temporary files, and complete
 
1737
# config.log.  We remove comments because anyway the quotes in there
 
1738
# would cause problems or look ugly.
 
1739
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1740
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1741
trap 'exit_status=$?
 
1742
  # Save into config.log some information that might help in debugging.
 
1743
  {
 
1744
    echo
 
1745
 
 
1746
    cat <<\_ASBOX
 
1747
## ---------------- ##
 
1748
## Cache variables. ##
 
1749
## ---------------- ##
 
1750
_ASBOX
 
1751
    echo
 
1752
    # The following way of writing the cache mishandles newlines in values,
 
1753
(
 
1754
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1755
    eval ac_val=\$$ac_var
 
1756
    case $ac_val in #(
 
1757
    *${as_nl}*)
 
1758
      case $ac_var in #(
 
1759
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1760
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1761
      esac
 
1762
      case $ac_var in #(
 
1763
      _ | IFS | as_nl) ;; #(
 
1764
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1765
      *) $as_unset $ac_var ;;
 
1766
      esac ;;
 
1767
    esac
 
1768
  done
 
1769
  (set) 2>&1 |
 
1770
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1771
    *${as_nl}ac_space=\ *)
 
1772
      sed -n \
 
1773
        "s/'\''/'\''\\\\'\'''\''/g;
 
1774
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1775
      ;; #(
 
1776
    *)
 
1777
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1778
      ;;
 
1779
    esac |
 
1780
    sort
 
1781
)
 
1782
    echo
 
1783
 
 
1784
    cat <<\_ASBOX
 
1785
## ----------------- ##
 
1786
## Output variables. ##
 
1787
## ----------------- ##
 
1788
_ASBOX
 
1789
    echo
 
1790
    for ac_var in $ac_subst_vars
 
1791
    do
 
1792
      eval ac_val=\$$ac_var
 
1793
      case $ac_val in
 
1794
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1795
      esac
 
1796
      $as_echo "$ac_var='\''$ac_val'\''"
 
1797
    done | sort
 
1798
    echo
 
1799
 
 
1800
    if test -n "$ac_subst_files"; then
 
1801
      cat <<\_ASBOX
 
1802
## ------------------- ##
 
1803
## File substitutions. ##
 
1804
## ------------------- ##
 
1805
_ASBOX
 
1806
      echo
 
1807
      for ac_var in $ac_subst_files
 
1808
      do
 
1809
        eval ac_val=\$$ac_var
 
1810
        case $ac_val in
 
1811
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1812
        esac
 
1813
        $as_echo "$ac_var='\''$ac_val'\''"
 
1814
      done | sort
 
1815
      echo
 
1816
    fi
 
1817
 
 
1818
    if test -s confdefs.h; then
 
1819
      cat <<\_ASBOX
 
1820
## ----------- ##
 
1821
## confdefs.h. ##
 
1822
## ----------- ##
 
1823
_ASBOX
 
1824
      echo
 
1825
      cat confdefs.h
 
1826
      echo
 
1827
    fi
 
1828
    test "$ac_signal" != 0 &&
 
1829
      $as_echo "$as_me: caught signal $ac_signal"
 
1830
    $as_echo "$as_me: exit $exit_status"
 
1831
  } >&5
 
1832
  rm -f core *.core core.conftest.* &&
 
1833
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1834
    exit $exit_status
 
1835
' 0
 
1836
for ac_signal in 1 2 13 15; do
 
1837
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1838
done
 
1839
ac_signal=0
 
1840
 
 
1841
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1842
rm -f -r conftest* confdefs.h
 
1843
 
 
1844
# Predefined preprocessor variables.
 
1845
 
 
1846
cat >>confdefs.h <<_ACEOF
 
1847
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1848
_ACEOF
 
1849
 
 
1850
 
 
1851
cat >>confdefs.h <<_ACEOF
 
1852
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1853
_ACEOF
 
1854
 
 
1855
 
 
1856
cat >>confdefs.h <<_ACEOF
 
1857
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1858
_ACEOF
 
1859
 
 
1860
 
 
1861
cat >>confdefs.h <<_ACEOF
 
1862
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1863
_ACEOF
 
1864
 
 
1865
 
 
1866
cat >>confdefs.h <<_ACEOF
 
1867
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1868
_ACEOF
 
1869
 
 
1870
 
 
1871
# Let the site file select an alternate cache file if it wants to.
 
1872
# Prefer an explicitly selected file to automatically selected ones.
 
1873
ac_site_file1=NONE
 
1874
ac_site_file2=NONE
 
1875
if test -n "$CONFIG_SITE"; then
 
1876
  ac_site_file1=$CONFIG_SITE
 
1877
elif test "x$prefix" != xNONE; then
 
1878
  ac_site_file1=$prefix/share/config.site
 
1879
  ac_site_file2=$prefix/etc/config.site
 
1880
else
 
1881
  ac_site_file1=$ac_default_prefix/share/config.site
 
1882
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1883
fi
 
1884
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1885
do
 
1886
  test "x$ac_site_file" = xNONE && continue
 
1887
  if test -r "$ac_site_file"; then
 
1888
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1889
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1890
    sed 's/^/| /' "$ac_site_file" >&5
 
1891
    . "$ac_site_file"
 
1892
  fi
 
1893
done
 
1894
 
 
1895
if test -r "$cache_file"; then
 
1896
  # Some versions of bash will fail to source /dev/null (special
 
1897
  # files actually), so we avoid doing that.
 
1898
  if test -f "$cache_file"; then
 
1899
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1900
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1901
    case $cache_file in
 
1902
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1903
      *)                      . "./$cache_file";;
 
1904
    esac
 
1905
  fi
 
1906
else
 
1907
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1908
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1909
  >$cache_file
 
1910
fi
 
1911
 
 
1912
# Check that the precious variables saved in the cache have kept the same
 
1913
# value.
 
1914
ac_cache_corrupted=false
 
1915
for ac_var in $ac_precious_vars; do
 
1916
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1917
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1918
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1919
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1920
  case $ac_old_set,$ac_new_set in
 
1921
    set,)
 
1922
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1923
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1924
      ac_cache_corrupted=: ;;
 
1925
    ,set)
 
1926
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1927
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1928
      ac_cache_corrupted=: ;;
 
1929
    ,);;
 
1930
    *)
 
1931
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1932
        # differences in whitespace do not lead to failure.
 
1933
        ac_old_val_w=`echo x $ac_old_val`
 
1934
        ac_new_val_w=`echo x $ac_new_val`
 
1935
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
1936
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1937
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1938
          ac_cache_corrupted=:
 
1939
        else
 
1940
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
1941
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
1942
          eval $ac_var=\$ac_old_val
 
1943
        fi
 
1944
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
1945
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
1946
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
1947
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
1948
      fi;;
 
1949
  esac
 
1950
  # Pass precious variables to config.status.
 
1951
  if test "$ac_new_set" = set; then
 
1952
    case $ac_new_val in
 
1953
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1954
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1955
    esac
 
1956
    case " $ac_configure_args " in
 
1957
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1958
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1959
    esac
 
1960
  fi
 
1961
done
 
1962
if $ac_cache_corrupted; then
 
1963
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
1964
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
1965
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1966
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1967
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1968
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1969
   { (exit 1); exit 1; }; }
 
1970
fi
 
1971
 
 
1972
 
 
1973
 
 
1974
 
 
1975
 
 
1976
 
 
1977
 
 
1978
 
 
1979
 
 
1980
 
 
1981
 
 
1982
 
 
1983
 
 
1984
 
 
1985
 
 
1986
 
 
1987
 
 
1988
 
 
1989
 
 
1990
 
 
1991
 
 
1992
 
 
1993
 
 
1994
 
 
1995
 
 
1996
ac_ext=c
 
1997
ac_cpp='$CPP $CPPFLAGS'
 
1998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2001
 
 
2002
 
 
2003
 
 
2004
ac_config_headers="$ac_config_headers config.h"
 
2005
 
 
2006
ac_config_headers="$ac_config_headers callback.h"
 
2007
 
 
2008
ac_config_files="$ac_config_files Makefile"
 
2009
 
 
2010
ac_ext=c
 
2011
ac_cpp='$CPP $CPPFLAGS'
 
2012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2015
if test -n "$ac_tool_prefix"; then
 
2016
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2017
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2018
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2019
$as_echo_n "checking for $ac_word... " >&6; }
 
2020
if test "${ac_cv_prog_CC+set}" = set; then
 
2021
  $as_echo_n "(cached) " >&6
 
2022
else
 
2023
  if test -n "$CC"; then
 
2024
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2025
else
 
2026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2027
for as_dir in $PATH
 
2028
do
 
2029
  IFS=$as_save_IFS
 
2030
  test -z "$as_dir" && as_dir=.
 
2031
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2032
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2033
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2034
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2035
    break 2
 
2036
  fi
 
2037
done
 
2038
done
 
2039
IFS=$as_save_IFS
 
2040
 
 
2041
fi
 
2042
fi
 
2043
CC=$ac_cv_prog_CC
 
2044
if test -n "$CC"; then
 
2045
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2046
$as_echo "$CC" >&6; }
 
2047
else
 
2048
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2049
$as_echo "no" >&6; }
 
2050
fi
 
2051
 
 
2052
 
 
2053
fi
 
2054
if test -z "$ac_cv_prog_CC"; then
 
2055
  ac_ct_CC=$CC
 
2056
  # Extract the first word of "gcc", so it can be a program name with args.
 
2057
set dummy gcc; ac_word=$2
 
2058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2059
$as_echo_n "checking for $ac_word... " >&6; }
 
2060
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2061
  $as_echo_n "(cached) " >&6
 
2062
else
 
2063
  if test -n "$ac_ct_CC"; then
 
2064
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2065
else
 
2066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2067
for as_dir in $PATH
 
2068
do
 
2069
  IFS=$as_save_IFS
 
2070
  test -z "$as_dir" && as_dir=.
 
2071
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2072
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2073
    ac_cv_prog_ac_ct_CC="gcc"
 
2074
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2075
    break 2
 
2076
  fi
 
2077
done
 
2078
done
 
2079
IFS=$as_save_IFS
 
2080
 
 
2081
fi
 
2082
fi
 
2083
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2084
if test -n "$ac_ct_CC"; then
 
2085
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2086
$as_echo "$ac_ct_CC" >&6; }
 
2087
else
 
2088
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2089
$as_echo "no" >&6; }
 
2090
fi
 
2091
 
 
2092
  if test "x$ac_ct_CC" = x; then
 
2093
    CC=""
 
2094
  else
 
2095
    case $cross_compiling:$ac_tool_warned in
 
2096
yes:)
 
2097
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2098
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2099
ac_tool_warned=yes ;;
 
2100
esac
 
2101
    CC=$ac_ct_CC
 
2102
  fi
 
2103
else
 
2104
  CC="$ac_cv_prog_CC"
 
2105
fi
 
2106
 
 
2107
if test -z "$CC"; then
 
2108
          if test -n "$ac_tool_prefix"; then
 
2109
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2110
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2111
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2112
$as_echo_n "checking for $ac_word... " >&6; }
 
2113
if test "${ac_cv_prog_CC+set}" = set; then
 
2114
  $as_echo_n "(cached) " >&6
 
2115
else
 
2116
  if test -n "$CC"; then
 
2117
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2118
else
 
2119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2120
for as_dir in $PATH
 
2121
do
 
2122
  IFS=$as_save_IFS
 
2123
  test -z "$as_dir" && as_dir=.
 
2124
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2125
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2126
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2127
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2128
    break 2
 
2129
  fi
 
2130
done
 
2131
done
 
2132
IFS=$as_save_IFS
 
2133
 
 
2134
fi
 
2135
fi
 
2136
CC=$ac_cv_prog_CC
 
2137
if test -n "$CC"; then
 
2138
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2139
$as_echo "$CC" >&6; }
 
2140
else
 
2141
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2142
$as_echo "no" >&6; }
 
2143
fi
 
2144
 
 
2145
 
 
2146
  fi
 
2147
fi
 
2148
if test -z "$CC"; then
 
2149
  # Extract the first word of "cc", so it can be a program name with args.
 
2150
set dummy cc; ac_word=$2
 
2151
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2152
$as_echo_n "checking for $ac_word... " >&6; }
 
2153
if test "${ac_cv_prog_CC+set}" = set; then
 
2154
  $as_echo_n "(cached) " >&6
 
2155
else
 
2156
  if test -n "$CC"; then
 
2157
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2158
else
 
2159
  ac_prog_rejected=no
 
2160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2161
for as_dir in $PATH
 
2162
do
 
2163
  IFS=$as_save_IFS
 
2164
  test -z "$as_dir" && as_dir=.
 
2165
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2166
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2167
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2168
       ac_prog_rejected=yes
 
2169
       continue
 
2170
     fi
 
2171
    ac_cv_prog_CC="cc"
 
2172
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2173
    break 2
 
2174
  fi
 
2175
done
 
2176
done
 
2177
IFS=$as_save_IFS
 
2178
 
 
2179
if test $ac_prog_rejected = yes; then
 
2180
  # We found a bogon in the path, so make sure we never use it.
 
2181
  set dummy $ac_cv_prog_CC
 
2182
  shift
 
2183
  if test $# != 0; then
 
2184
    # We chose a different compiler from the bogus one.
 
2185
    # However, it has the same basename, so the bogon will be chosen
 
2186
    # first if we set CC to just the basename; use the full file name.
 
2187
    shift
 
2188
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2189
  fi
 
2190
fi
 
2191
fi
 
2192
fi
 
2193
CC=$ac_cv_prog_CC
 
2194
if test -n "$CC"; then
 
2195
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2196
$as_echo "$CC" >&6; }
 
2197
else
 
2198
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2199
$as_echo "no" >&6; }
 
2200
fi
 
2201
 
 
2202
 
 
2203
fi
 
2204
if test -z "$CC"; then
 
2205
  if test -n "$ac_tool_prefix"; then
 
2206
  for ac_prog in cl.exe
 
2207
  do
 
2208
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2209
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2210
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2211
$as_echo_n "checking for $ac_word... " >&6; }
 
2212
if test "${ac_cv_prog_CC+set}" = set; then
 
2213
  $as_echo_n "(cached) " >&6
 
2214
else
 
2215
  if test -n "$CC"; then
 
2216
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2217
else
 
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2219
for as_dir in $PATH
 
2220
do
 
2221
  IFS=$as_save_IFS
 
2222
  test -z "$as_dir" && as_dir=.
 
2223
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2224
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2225
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2226
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2227
    break 2
 
2228
  fi
 
2229
done
 
2230
done
 
2231
IFS=$as_save_IFS
 
2232
 
 
2233
fi
 
2234
fi
 
2235
CC=$ac_cv_prog_CC
 
2236
if test -n "$CC"; then
 
2237
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2238
$as_echo "$CC" >&6; }
 
2239
else
 
2240
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2241
$as_echo "no" >&6; }
 
2242
fi
 
2243
 
 
2244
 
 
2245
    test -n "$CC" && break
 
2246
  done
 
2247
fi
 
2248
if test -z "$CC"; then
 
2249
  ac_ct_CC=$CC
 
2250
  for ac_prog in cl.exe
 
2251
do
 
2252
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2253
set dummy $ac_prog; ac_word=$2
 
2254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2255
$as_echo_n "checking for $ac_word... " >&6; }
 
2256
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2257
  $as_echo_n "(cached) " >&6
 
2258
else
 
2259
  if test -n "$ac_ct_CC"; then
 
2260
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2261
else
 
2262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2263
for as_dir in $PATH
 
2264
do
 
2265
  IFS=$as_save_IFS
 
2266
  test -z "$as_dir" && as_dir=.
 
2267
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2268
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2269
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2270
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2271
    break 2
 
2272
  fi
 
2273
done
 
2274
done
 
2275
IFS=$as_save_IFS
 
2276
 
 
2277
fi
 
2278
fi
 
2279
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2280
if test -n "$ac_ct_CC"; then
 
2281
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2282
$as_echo "$ac_ct_CC" >&6; }
 
2283
else
 
2284
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2285
$as_echo "no" >&6; }
 
2286
fi
 
2287
 
 
2288
 
 
2289
  test -n "$ac_ct_CC" && break
 
2290
done
 
2291
 
 
2292
  if test "x$ac_ct_CC" = x; then
 
2293
    CC=""
 
2294
  else
 
2295
    case $cross_compiling:$ac_tool_warned in
 
2296
yes:)
 
2297
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2298
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2299
ac_tool_warned=yes ;;
 
2300
esac
 
2301
    CC=$ac_ct_CC
 
2302
  fi
 
2303
fi
 
2304
 
 
2305
fi
 
2306
 
 
2307
 
 
2308
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2309
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2310
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2311
See \`config.log' for more details." >&5
 
2312
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2313
See \`config.log' for more details." >&2;}
 
2314
   { (exit 1); exit 1; }; }; }
 
2315
 
 
2316
# Provide some information about the compiler.
 
2317
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2318
set X $ac_compile
 
2319
ac_compiler=$2
 
2320
{ (ac_try="$ac_compiler --version >&5"
 
2321
case "(($ac_try" in
 
2322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2323
  *) ac_try_echo=$ac_try;;
 
2324
esac
 
2325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2326
$as_echo "$ac_try_echo") >&5
 
2327
  (eval "$ac_compiler --version >&5") 2>&5
 
2328
  ac_status=$?
 
2329
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2330
  (exit $ac_status); }
 
2331
{ (ac_try="$ac_compiler -v >&5"
 
2332
case "(($ac_try" in
 
2333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2334
  *) ac_try_echo=$ac_try;;
 
2335
esac
 
2336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2337
$as_echo "$ac_try_echo") >&5
 
2338
  (eval "$ac_compiler -v >&5") 2>&5
 
2339
  ac_status=$?
 
2340
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2341
  (exit $ac_status); }
 
2342
{ (ac_try="$ac_compiler -V >&5"
 
2343
case "(($ac_try" in
 
2344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2345
  *) ac_try_echo=$ac_try;;
 
2346
esac
 
2347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2348
$as_echo "$ac_try_echo") >&5
 
2349
  (eval "$ac_compiler -V >&5") 2>&5
 
2350
  ac_status=$?
 
2351
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2352
  (exit $ac_status); }
 
2353
 
 
2354
cat >conftest.$ac_ext <<_ACEOF
 
2355
/* confdefs.h.  */
 
2356
_ACEOF
 
2357
cat confdefs.h >>conftest.$ac_ext
 
2358
cat >>conftest.$ac_ext <<_ACEOF
 
2359
/* end confdefs.h.  */
 
2360
 
 
2361
int
 
2362
main ()
 
2363
{
 
2364
 
 
2365
  ;
 
2366
  return 0;
 
2367
}
 
2368
_ACEOF
 
2369
ac_clean_files_save=$ac_clean_files
 
2370
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2371
# Try to create an executable without -o first, disregard a.out.
 
2372
# It will help us diagnose broken compilers, and finding out an intuition
 
2373
# of exeext.
 
2374
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2375
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2376
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2377
 
 
2378
# The possible output files:
 
2379
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2380
 
 
2381
ac_rmfiles=
 
2382
for ac_file in $ac_files
 
2383
do
 
2384
  case $ac_file in
 
2385
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2386
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2387
  esac
 
2388
done
 
2389
rm -f $ac_rmfiles
 
2390
 
 
2391
if { (ac_try="$ac_link_default"
 
2392
case "(($ac_try" in
 
2393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2394
  *) ac_try_echo=$ac_try;;
 
2395
esac
 
2396
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2397
$as_echo "$ac_try_echo") >&5
 
2398
  (eval "$ac_link_default") 2>&5
 
2399
  ac_status=$?
 
2400
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2401
  (exit $ac_status); }; then
 
2402
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2403
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2404
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2405
# so that the user can short-circuit this test for compilers unknown to
 
2406
# Autoconf.
 
2407
for ac_file in $ac_files ''
 
2408
do
 
2409
  test -f "$ac_file" || continue
 
2410
  case $ac_file in
 
2411
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2412
        ;;
 
2413
    [ab].out )
 
2414
        # We found the default executable, but exeext='' is most
 
2415
        # certainly right.
 
2416
        break;;
 
2417
    *.* )
 
2418
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2419
        then :; else
 
2420
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2421
        fi
 
2422
        # We set ac_cv_exeext here because the later test for it is not
 
2423
        # safe: cross compilers may not add the suffix if given an `-o'
 
2424
        # argument, so we may need to know it at that point already.
 
2425
        # Even if this section looks crufty: it has the advantage of
 
2426
        # actually working.
 
2427
        break;;
 
2428
    * )
 
2429
        break;;
 
2430
  esac
 
2431
done
 
2432
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2433
 
 
2434
else
 
2435
  ac_file=''
 
2436
fi
 
2437
 
 
2438
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
2439
$as_echo "$ac_file" >&6; }
 
2440
if test -z "$ac_file"; then
 
2441
  $as_echo "$as_me: failed program was:" >&5
 
2442
sed 's/^/| /' conftest.$ac_ext >&5
 
2443
 
 
2444
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2445
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2446
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2447
See \`config.log' for more details." >&5
 
2448
$as_echo "$as_me: error: C compiler cannot create executables
 
2449
See \`config.log' for more details." >&2;}
 
2450
   { (exit 77); exit 77; }; }; }
 
2451
fi
 
2452
 
 
2453
ac_exeext=$ac_cv_exeext
 
2454
 
 
2455
# Check that the compiler produces executables we can run.  If not, either
 
2456
# the compiler is broken, or we cross compile.
 
2457
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2458
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2459
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2460
# If not cross compiling, check that we can run a simple program.
 
2461
if test "$cross_compiling" != yes; then
 
2462
  if { ac_try='./$ac_file'
 
2463
  { (case "(($ac_try" in
 
2464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2465
  *) ac_try_echo=$ac_try;;
 
2466
esac
 
2467
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2468
$as_echo "$ac_try_echo") >&5
 
2469
  (eval "$ac_try") 2>&5
 
2470
  ac_status=$?
 
2471
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2472
  (exit $ac_status); }; }; then
 
2473
    cross_compiling=no
 
2474
  else
 
2475
    if test "$cross_compiling" = maybe; then
 
2476
        cross_compiling=yes
 
2477
    else
 
2478
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2479
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2480
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2481
If you meant to cross compile, use \`--host'.
 
2482
See \`config.log' for more details." >&5
 
2483
$as_echo "$as_me: error: cannot run C compiled programs.
 
2484
If you meant to cross compile, use \`--host'.
 
2485
See \`config.log' for more details." >&2;}
 
2486
   { (exit 1); exit 1; }; }; }
 
2487
    fi
 
2488
  fi
 
2489
fi
 
2490
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2491
$as_echo "yes" >&6; }
 
2492
 
 
2493
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
2494
ac_clean_files=$ac_clean_files_save
 
2495
# Check that the compiler produces executables we can run.  If not, either
 
2496
# the compiler is broken, or we cross compile.
 
2497
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2498
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2499
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2500
$as_echo "$cross_compiling" >&6; }
 
2501
 
 
2502
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2503
$as_echo_n "checking for suffix of executables... " >&6; }
 
2504
if { (ac_try="$ac_link"
 
2505
case "(($ac_try" in
 
2506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2507
  *) ac_try_echo=$ac_try;;
 
2508
esac
 
2509
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2510
$as_echo "$ac_try_echo") >&5
 
2511
  (eval "$ac_link") 2>&5
 
2512
  ac_status=$?
 
2513
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2514
  (exit $ac_status); }; then
 
2515
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2516
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2517
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2518
# `rm'.
 
2519
for ac_file in conftest.exe conftest conftest.*; do
 
2520
  test -f "$ac_file" || continue
 
2521
  case $ac_file in
 
2522
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2523
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2524
          break;;
 
2525
    * ) break;;
 
2526
  esac
 
2527
done
 
2528
else
 
2529
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2530
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2531
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2532
See \`config.log' for more details." >&5
 
2533
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2534
See \`config.log' for more details." >&2;}
 
2535
   { (exit 1); exit 1; }; }; }
 
2536
fi
 
2537
 
 
2538
rm -f conftest$ac_cv_exeext
 
2539
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2540
$as_echo "$ac_cv_exeext" >&6; }
 
2541
 
 
2542
rm -f conftest.$ac_ext
 
2543
EXEEXT=$ac_cv_exeext
 
2544
ac_exeext=$EXEEXT
 
2545
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2546
$as_echo_n "checking for suffix of object files... " >&6; }
 
2547
if test "${ac_cv_objext+set}" = set; then
 
2548
  $as_echo_n "(cached) " >&6
 
2549
else
 
2550
  cat >conftest.$ac_ext <<_ACEOF
 
2551
/* confdefs.h.  */
 
2552
_ACEOF
 
2553
cat confdefs.h >>conftest.$ac_ext
 
2554
cat >>conftest.$ac_ext <<_ACEOF
 
2555
/* end confdefs.h.  */
 
2556
 
 
2557
int
 
2558
main ()
 
2559
{
 
2560
 
 
2561
  ;
 
2562
  return 0;
 
2563
}
 
2564
_ACEOF
 
2565
rm -f conftest.o conftest.obj
 
2566
if { (ac_try="$ac_compile"
 
2567
case "(($ac_try" in
 
2568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2569
  *) ac_try_echo=$ac_try;;
 
2570
esac
 
2571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2572
$as_echo "$ac_try_echo") >&5
 
2573
  (eval "$ac_compile") 2>&5
 
2574
  ac_status=$?
 
2575
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2576
  (exit $ac_status); }; then
 
2577
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2578
  test -f "$ac_file" || continue;
 
2579
  case $ac_file in
 
2580
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
2581
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2582
       break;;
 
2583
  esac
 
2584
done
 
2585
else
 
2586
  $as_echo "$as_me: failed program was:" >&5
 
2587
sed 's/^/| /' conftest.$ac_ext >&5
 
2588
 
 
2589
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2590
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2591
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2592
See \`config.log' for more details." >&5
 
2593
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2594
See \`config.log' for more details." >&2;}
 
2595
   { (exit 1); exit 1; }; }; }
 
2596
fi
 
2597
 
 
2598
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2599
fi
 
2600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2601
$as_echo "$ac_cv_objext" >&6; }
 
2602
OBJEXT=$ac_cv_objext
 
2603
ac_objext=$OBJEXT
 
2604
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2605
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
2606
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2607
  $as_echo_n "(cached) " >&6
 
2608
else
 
2609
  cat >conftest.$ac_ext <<_ACEOF
 
2610
/* confdefs.h.  */
 
2611
_ACEOF
 
2612
cat confdefs.h >>conftest.$ac_ext
 
2613
cat >>conftest.$ac_ext <<_ACEOF
 
2614
/* end confdefs.h.  */
 
2615
 
 
2616
int
 
2617
main ()
 
2618
{
 
2619
#ifndef __GNUC__
 
2620
       choke me
 
2621
#endif
 
2622
 
 
2623
  ;
 
2624
  return 0;
 
2625
}
 
2626
_ACEOF
 
2627
rm -f conftest.$ac_objext
 
2628
if { (ac_try="$ac_compile"
 
2629
case "(($ac_try" in
 
2630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2631
  *) ac_try_echo=$ac_try;;
 
2632
esac
 
2633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2634
$as_echo "$ac_try_echo") >&5
 
2635
  (eval "$ac_compile") 2>conftest.er1
 
2636
  ac_status=$?
 
2637
  grep -v '^ *+' conftest.er1 >conftest.err
 
2638
  rm -f conftest.er1
 
2639
  cat conftest.err >&5
 
2640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2641
  (exit $ac_status); } && {
 
2642
         test -z "$ac_c_werror_flag" ||
 
2643
         test ! -s conftest.err
 
2644
       } && test -s conftest.$ac_objext; then
 
2645
  ac_compiler_gnu=yes
 
2646
else
 
2647
  $as_echo "$as_me: failed program was:" >&5
 
2648
sed 's/^/| /' conftest.$ac_ext >&5
 
2649
 
 
2650
        ac_compiler_gnu=no
 
2651
fi
 
2652
 
 
2653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2654
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2655
 
 
2656
fi
 
2657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2658
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
2659
if test $ac_compiler_gnu = yes; then
 
2660
  GCC=yes
 
2661
else
 
2662
  GCC=
 
2663
fi
 
2664
ac_test_CFLAGS=${CFLAGS+set}
 
2665
ac_save_CFLAGS=$CFLAGS
 
2666
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2667
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
2668
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2669
  $as_echo_n "(cached) " >&6
 
2670
else
 
2671
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2672
   ac_c_werror_flag=yes
 
2673
   ac_cv_prog_cc_g=no
 
2674
   CFLAGS="-g"
 
2675
   cat >conftest.$ac_ext <<_ACEOF
 
2676
/* confdefs.h.  */
 
2677
_ACEOF
 
2678
cat confdefs.h >>conftest.$ac_ext
 
2679
cat >>conftest.$ac_ext <<_ACEOF
 
2680
/* end confdefs.h.  */
 
2681
 
 
2682
int
 
2683
main ()
 
2684
{
 
2685
 
 
2686
  ;
 
2687
  return 0;
 
2688
}
 
2689
_ACEOF
 
2690
rm -f conftest.$ac_objext
 
2691
if { (ac_try="$ac_compile"
 
2692
case "(($ac_try" in
 
2693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2694
  *) ac_try_echo=$ac_try;;
 
2695
esac
 
2696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2697
$as_echo "$ac_try_echo") >&5
 
2698
  (eval "$ac_compile") 2>conftest.er1
 
2699
  ac_status=$?
 
2700
  grep -v '^ *+' conftest.er1 >conftest.err
 
2701
  rm -f conftest.er1
 
2702
  cat conftest.err >&5
 
2703
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2704
  (exit $ac_status); } && {
 
2705
         test -z "$ac_c_werror_flag" ||
 
2706
         test ! -s conftest.err
 
2707
       } && test -s conftest.$ac_objext; then
 
2708
  ac_cv_prog_cc_g=yes
 
2709
else
 
2710
  $as_echo "$as_me: failed program was:" >&5
 
2711
sed 's/^/| /' conftest.$ac_ext >&5
 
2712
 
 
2713
        CFLAGS=""
 
2714
      cat >conftest.$ac_ext <<_ACEOF
 
2715
/* confdefs.h.  */
 
2716
_ACEOF
 
2717
cat confdefs.h >>conftest.$ac_ext
 
2718
cat >>conftest.$ac_ext <<_ACEOF
 
2719
/* end confdefs.h.  */
 
2720
 
 
2721
int
 
2722
main ()
 
2723
{
 
2724
 
 
2725
  ;
 
2726
  return 0;
 
2727
}
 
2728
_ACEOF
 
2729
rm -f conftest.$ac_objext
 
2730
if { (ac_try="$ac_compile"
 
2731
case "(($ac_try" in
 
2732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2733
  *) ac_try_echo=$ac_try;;
 
2734
esac
 
2735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2736
$as_echo "$ac_try_echo") >&5
 
2737
  (eval "$ac_compile") 2>conftest.er1
 
2738
  ac_status=$?
 
2739
  grep -v '^ *+' conftest.er1 >conftest.err
 
2740
  rm -f conftest.er1
 
2741
  cat conftest.err >&5
 
2742
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2743
  (exit $ac_status); } && {
 
2744
         test -z "$ac_c_werror_flag" ||
 
2745
         test ! -s conftest.err
 
2746
       } && test -s conftest.$ac_objext; then
 
2747
  :
 
2748
else
 
2749
  $as_echo "$as_me: failed program was:" >&5
 
2750
sed 's/^/| /' conftest.$ac_ext >&5
 
2751
 
 
2752
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2753
         CFLAGS="-g"
 
2754
         cat >conftest.$ac_ext <<_ACEOF
 
2755
/* confdefs.h.  */
 
2756
_ACEOF
 
2757
cat confdefs.h >>conftest.$ac_ext
 
2758
cat >>conftest.$ac_ext <<_ACEOF
 
2759
/* end confdefs.h.  */
 
2760
 
 
2761
int
 
2762
main ()
 
2763
{
 
2764
 
 
2765
  ;
 
2766
  return 0;
 
2767
}
 
2768
_ACEOF
 
2769
rm -f conftest.$ac_objext
 
2770
if { (ac_try="$ac_compile"
 
2771
case "(($ac_try" in
 
2772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2773
  *) ac_try_echo=$ac_try;;
 
2774
esac
 
2775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2776
$as_echo "$ac_try_echo") >&5
 
2777
  (eval "$ac_compile") 2>conftest.er1
 
2778
  ac_status=$?
 
2779
  grep -v '^ *+' conftest.er1 >conftest.err
 
2780
  rm -f conftest.er1
 
2781
  cat conftest.err >&5
 
2782
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2783
  (exit $ac_status); } && {
 
2784
         test -z "$ac_c_werror_flag" ||
 
2785
         test ! -s conftest.err
 
2786
       } && test -s conftest.$ac_objext; then
 
2787
  ac_cv_prog_cc_g=yes
 
2788
else
 
2789
  $as_echo "$as_me: failed program was:" >&5
 
2790
sed 's/^/| /' conftest.$ac_ext >&5
 
2791
 
 
2792
 
 
2793
fi
 
2794
 
 
2795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2796
fi
 
2797
 
 
2798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2799
fi
 
2800
 
 
2801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2802
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2803
fi
 
2804
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2805
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
2806
if test "$ac_test_CFLAGS" = set; then
 
2807
  CFLAGS=$ac_save_CFLAGS
 
2808
elif test $ac_cv_prog_cc_g = yes; then
 
2809
  if test "$GCC" = yes; then
 
2810
    CFLAGS="-g -O2"
 
2811
  else
 
2812
    CFLAGS="-g"
 
2813
  fi
 
2814
else
 
2815
  if test "$GCC" = yes; then
 
2816
    CFLAGS="-O2"
 
2817
  else
 
2818
    CFLAGS=
 
2819
  fi
 
2820
fi
 
2821
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2822
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
2823
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
2824
  $as_echo_n "(cached) " >&6
 
2825
else
 
2826
  ac_cv_prog_cc_c89=no
 
2827
ac_save_CC=$CC
 
2828
cat >conftest.$ac_ext <<_ACEOF
 
2829
/* confdefs.h.  */
 
2830
_ACEOF
 
2831
cat confdefs.h >>conftest.$ac_ext
 
2832
cat >>conftest.$ac_ext <<_ACEOF
 
2833
/* end confdefs.h.  */
 
2834
#include <stdarg.h>
 
2835
#include <stdio.h>
 
2836
#include <sys/types.h>
 
2837
#include <sys/stat.h>
 
2838
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2839
struct buf { int x; };
 
2840
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2841
static char *e (p, i)
 
2842
     char **p;
 
2843
     int i;
 
2844
{
 
2845
  return p[i];
 
2846
}
 
2847
static char *f (char * (*g) (char **, int), char **p, ...)
 
2848
{
 
2849
  char *s;
 
2850
  va_list v;
 
2851
  va_start (v,p);
 
2852
  s = g (p, va_arg (v,int));
 
2853
  va_end (v);
 
2854
  return s;
 
2855
}
 
2856
 
 
2857
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2858
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2859
   These don't provoke an error unfortunately, instead are silently treated
 
2860
   as 'x'.  The following induces an error, until -std is added to get
 
2861
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2862
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2863
   that's true only with -std.  */
 
2864
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2865
 
 
2866
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2867
   inside strings and character constants.  */
 
2868
#define FOO(x) 'x'
 
2869
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2870
 
 
2871
int test (int i, double x);
 
2872
struct s1 {int (*f) (int a);};
 
2873
struct s2 {int (*f) (double a);};
 
2874
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2875
int argc;
 
2876
char **argv;
 
2877
int
 
2878
main ()
 
2879
{
 
2880
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2881
  ;
 
2882
  return 0;
 
2883
}
 
2884
_ACEOF
 
2885
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2886
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2887
do
 
2888
  CC="$ac_save_CC $ac_arg"
 
2889
  rm -f conftest.$ac_objext
 
2890
if { (ac_try="$ac_compile"
 
2891
case "(($ac_try" in
 
2892
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2893
  *) ac_try_echo=$ac_try;;
 
2894
esac
 
2895
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2896
$as_echo "$ac_try_echo") >&5
 
2897
  (eval "$ac_compile") 2>conftest.er1
 
2898
  ac_status=$?
 
2899
  grep -v '^ *+' conftest.er1 >conftest.err
 
2900
  rm -f conftest.er1
 
2901
  cat conftest.err >&5
 
2902
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2903
  (exit $ac_status); } && {
 
2904
         test -z "$ac_c_werror_flag" ||
 
2905
         test ! -s conftest.err
 
2906
       } && test -s conftest.$ac_objext; then
 
2907
  ac_cv_prog_cc_c89=$ac_arg
 
2908
else
 
2909
  $as_echo "$as_me: failed program was:" >&5
 
2910
sed 's/^/| /' conftest.$ac_ext >&5
 
2911
 
 
2912
 
 
2913
fi
 
2914
 
 
2915
rm -f core conftest.err conftest.$ac_objext
 
2916
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2917
done
 
2918
rm -f conftest.$ac_ext
 
2919
CC=$ac_save_CC
 
2920
 
 
2921
fi
 
2922
# AC_CACHE_VAL
 
2923
case "x$ac_cv_prog_cc_c89" in
 
2924
  x)
 
2925
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
2926
$as_echo "none needed" >&6; } ;;
 
2927
  xno)
 
2928
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
2929
$as_echo "unsupported" >&6; } ;;
 
2930
  *)
 
2931
    CC="$CC $ac_cv_prog_cc_c89"
 
2932
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2933
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
2934
esac
 
2935
 
 
2936
 
 
2937
ac_ext=c
 
2938
ac_cpp='$CPP $CPPFLAGS'
 
2939
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2940
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2941
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2942
 
 
2943
ac_ext=c
 
2944
ac_cpp='$CPP $CPPFLAGS'
 
2945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2948
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2949
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
2950
# On Suns, sometimes $CPP names a directory.
 
2951
if test -n "$CPP" && test -d "$CPP"; then
 
2952
  CPP=
 
2953
fi
 
2954
if test -z "$CPP"; then
 
2955
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2956
  $as_echo_n "(cached) " >&6
 
2957
else
 
2958
      # Double quotes because CPP needs to be expanded
 
2959
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2960
    do
 
2961
      ac_preproc_ok=false
 
2962
for ac_c_preproc_warn_flag in '' yes
 
2963
do
 
2964
  # Use a header file that comes with gcc, so configuring glibc
 
2965
  # with a fresh cross-compiler works.
 
2966
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2967
  # <limits.h> exists even on freestanding compilers.
 
2968
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2969
  # not just through cpp. "Syntax error" is here to catch this case.
 
2970
  cat >conftest.$ac_ext <<_ACEOF
 
2971
/* confdefs.h.  */
 
2972
_ACEOF
 
2973
cat confdefs.h >>conftest.$ac_ext
 
2974
cat >>conftest.$ac_ext <<_ACEOF
 
2975
/* end confdefs.h.  */
 
2976
#ifdef __STDC__
 
2977
# include <limits.h>
 
2978
#else
 
2979
# include <assert.h>
 
2980
#endif
 
2981
                     Syntax error
 
2982
_ACEOF
 
2983
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2984
case "(($ac_try" in
 
2985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2986
  *) ac_try_echo=$ac_try;;
 
2987
esac
 
2988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2989
$as_echo "$ac_try_echo") >&5
 
2990
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
2991
  ac_status=$?
 
2992
  grep -v '^ *+' conftest.er1 >conftest.err
 
2993
  rm -f conftest.er1
 
2994
  cat conftest.err >&5
 
2995
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2996
  (exit $ac_status); } >/dev/null && {
 
2997
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2998
         test ! -s conftest.err
 
2999
       }; then
 
3000
  :
 
3001
else
 
3002
  $as_echo "$as_me: failed program was:" >&5
 
3003
sed 's/^/| /' conftest.$ac_ext >&5
 
3004
 
 
3005
  # Broken: fails on valid input.
 
3006
continue
 
3007
fi
 
3008
 
 
3009
rm -f conftest.err conftest.$ac_ext
 
3010
 
 
3011
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3012
  # can be detected and how.
 
3013
  cat >conftest.$ac_ext <<_ACEOF
 
3014
/* confdefs.h.  */
 
3015
_ACEOF
 
3016
cat confdefs.h >>conftest.$ac_ext
 
3017
cat >>conftest.$ac_ext <<_ACEOF
 
3018
/* end confdefs.h.  */
 
3019
#include <ac_nonexistent.h>
 
3020
_ACEOF
 
3021
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3022
case "(($ac_try" in
 
3023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3024
  *) ac_try_echo=$ac_try;;
 
3025
esac
 
3026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3027
$as_echo "$ac_try_echo") >&5
 
3028
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3029
  ac_status=$?
 
3030
  grep -v '^ *+' conftest.er1 >conftest.err
 
3031
  rm -f conftest.er1
 
3032
  cat conftest.err >&5
 
3033
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3034
  (exit $ac_status); } >/dev/null && {
 
3035
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3036
         test ! -s conftest.err
 
3037
       }; then
 
3038
  # Broken: success on invalid input.
 
3039
continue
 
3040
else
 
3041
  $as_echo "$as_me: failed program was:" >&5
 
3042
sed 's/^/| /' conftest.$ac_ext >&5
 
3043
 
 
3044
  # Passes both tests.
 
3045
ac_preproc_ok=:
 
3046
break
 
3047
fi
 
3048
 
 
3049
rm -f conftest.err conftest.$ac_ext
 
3050
 
 
3051
done
 
3052
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3053
rm -f conftest.err conftest.$ac_ext
 
3054
if $ac_preproc_ok; then
 
3055
  break
 
3056
fi
 
3057
 
 
3058
    done
 
3059
    ac_cv_prog_CPP=$CPP
 
3060
 
 
3061
fi
 
3062
  CPP=$ac_cv_prog_CPP
 
3063
else
 
3064
  ac_cv_prog_CPP=$CPP
 
3065
fi
 
3066
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
3067
$as_echo "$CPP" >&6; }
 
3068
ac_preproc_ok=false
 
3069
for ac_c_preproc_warn_flag in '' yes
 
3070
do
 
3071
  # Use a header file that comes with gcc, so configuring glibc
 
3072
  # with a fresh cross-compiler works.
 
3073
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3074
  # <limits.h> exists even on freestanding compilers.
 
3075
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3076
  # not just through cpp. "Syntax error" is here to catch this case.
 
3077
  cat >conftest.$ac_ext <<_ACEOF
 
3078
/* confdefs.h.  */
 
3079
_ACEOF
 
3080
cat confdefs.h >>conftest.$ac_ext
 
3081
cat >>conftest.$ac_ext <<_ACEOF
 
3082
/* end confdefs.h.  */
 
3083
#ifdef __STDC__
 
3084
# include <limits.h>
 
3085
#else
 
3086
# include <assert.h>
 
3087
#endif
 
3088
                     Syntax error
 
3089
_ACEOF
 
3090
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3091
case "(($ac_try" in
 
3092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3093
  *) ac_try_echo=$ac_try;;
 
3094
esac
 
3095
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3096
$as_echo "$ac_try_echo") >&5
 
3097
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3098
  ac_status=$?
 
3099
  grep -v '^ *+' conftest.er1 >conftest.err
 
3100
  rm -f conftest.er1
 
3101
  cat conftest.err >&5
 
3102
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3103
  (exit $ac_status); } >/dev/null && {
 
3104
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3105
         test ! -s conftest.err
 
3106
       }; then
 
3107
  :
 
3108
else
 
3109
  $as_echo "$as_me: failed program was:" >&5
 
3110
sed 's/^/| /' conftest.$ac_ext >&5
 
3111
 
 
3112
  # Broken: fails on valid input.
 
3113
continue
 
3114
fi
 
3115
 
 
3116
rm -f conftest.err conftest.$ac_ext
 
3117
 
 
3118
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3119
  # can be detected and how.
 
3120
  cat >conftest.$ac_ext <<_ACEOF
 
3121
/* confdefs.h.  */
 
3122
_ACEOF
 
3123
cat confdefs.h >>conftest.$ac_ext
 
3124
cat >>conftest.$ac_ext <<_ACEOF
 
3125
/* end confdefs.h.  */
 
3126
#include <ac_nonexistent.h>
 
3127
_ACEOF
 
3128
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3129
case "(($ac_try" in
 
3130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3131
  *) ac_try_echo=$ac_try;;
 
3132
esac
 
3133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3134
$as_echo "$ac_try_echo") >&5
 
3135
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3136
  ac_status=$?
 
3137
  grep -v '^ *+' conftest.er1 >conftest.err
 
3138
  rm -f conftest.er1
 
3139
  cat conftest.err >&5
 
3140
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3141
  (exit $ac_status); } >/dev/null && {
 
3142
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3143
         test ! -s conftest.err
 
3144
       }; then
 
3145
  # Broken: success on invalid input.
 
3146
continue
 
3147
else
 
3148
  $as_echo "$as_me: failed program was:" >&5
 
3149
sed 's/^/| /' conftest.$ac_ext >&5
 
3150
 
 
3151
  # Passes both tests.
 
3152
ac_preproc_ok=:
 
3153
break
 
3154
fi
 
3155
 
 
3156
rm -f conftest.err conftest.$ac_ext
 
3157
 
 
3158
done
 
3159
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3160
rm -f conftest.err conftest.$ac_ext
 
3161
if $ac_preproc_ok; then
 
3162
  :
 
3163
else
 
3164
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3165
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3166
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3167
See \`config.log' for more details." >&5
 
3168
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3169
See \`config.log' for more details." >&2;}
 
3170
   { (exit 1); exit 1; }; }; }
 
3171
fi
 
3172
 
 
3173
ac_ext=c
 
3174
ac_cpp='$CPP $CPPFLAGS'
 
3175
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3176
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3177
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3178
 
 
3179
 
 
3180
 
 
3181
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3182
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3183
if test "${ac_cv_path_GREP+set}" = set; then
 
3184
  $as_echo_n "(cached) " >&6
 
3185
else
 
3186
  if test -z "$GREP"; then
 
3187
  ac_path_GREP_found=false
 
3188
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3190
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3191
do
 
3192
  IFS=$as_save_IFS
 
3193
  test -z "$as_dir" && as_dir=.
 
3194
  for ac_prog in grep ggrep; do
 
3195
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3196
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3197
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3198
# Check for GNU ac_path_GREP and select it if it is found.
 
3199
  # Check for GNU $ac_path_GREP
 
3200
case `"$ac_path_GREP" --version 2>&1` in
 
3201
*GNU*)
 
3202
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3203
*)
 
3204
  ac_count=0
 
3205
  $as_echo_n 0123456789 >"conftest.in"
 
3206
  while :
 
3207
  do
 
3208
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3209
    mv "conftest.tmp" "conftest.in"
 
3210
    cp "conftest.in" "conftest.nl"
 
3211
    $as_echo 'GREP' >> "conftest.nl"
 
3212
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3213
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3214
    ac_count=`expr $ac_count + 1`
 
3215
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3216
      # Best one so far, save it but keep looking for a better one
 
3217
      ac_cv_path_GREP="$ac_path_GREP"
 
3218
      ac_path_GREP_max=$ac_count
 
3219
    fi
 
3220
    # 10*(2^10) chars as input seems more than enough
 
3221
    test $ac_count -gt 10 && break
 
3222
  done
 
3223
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3224
esac
 
3225
 
 
3226
      $ac_path_GREP_found && break 3
 
3227
    done
 
3228
  done
 
3229
done
 
3230
IFS=$as_save_IFS
 
3231
  if test -z "$ac_cv_path_GREP"; then
 
3232
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3233
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3234
   { (exit 1); exit 1; }; }
 
3235
  fi
 
3236
else
 
3237
  ac_cv_path_GREP=$GREP
 
3238
fi
 
3239
 
 
3240
fi
 
3241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3242
$as_echo "$ac_cv_path_GREP" >&6; }
 
3243
 GREP="$ac_cv_path_GREP"
 
3244
 
 
3245
 
 
3246
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3247
$as_echo_n "checking for egrep... " >&6; }
 
3248
if test "${ac_cv_path_EGREP+set}" = set; then
 
3249
  $as_echo_n "(cached) " >&6
 
3250
else
 
3251
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3252
   then ac_cv_path_EGREP="$GREP -E"
 
3253
   else
 
3254
     if test -z "$EGREP"; then
 
3255
  ac_path_EGREP_found=false
 
3256
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3257
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3258
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3259
do
 
3260
  IFS=$as_save_IFS
 
3261
  test -z "$as_dir" && as_dir=.
 
3262
  for ac_prog in egrep; do
 
3263
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3264
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3265
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3266
# Check for GNU ac_path_EGREP and select it if it is found.
 
3267
  # Check for GNU $ac_path_EGREP
 
3268
case `"$ac_path_EGREP" --version 2>&1` in
 
3269
*GNU*)
 
3270
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3271
*)
 
3272
  ac_count=0
 
3273
  $as_echo_n 0123456789 >"conftest.in"
 
3274
  while :
 
3275
  do
 
3276
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3277
    mv "conftest.tmp" "conftest.in"
 
3278
    cp "conftest.in" "conftest.nl"
 
3279
    $as_echo 'EGREP' >> "conftest.nl"
 
3280
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3281
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3282
    ac_count=`expr $ac_count + 1`
 
3283
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3284
      # Best one so far, save it but keep looking for a better one
 
3285
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3286
      ac_path_EGREP_max=$ac_count
 
3287
    fi
 
3288
    # 10*(2^10) chars as input seems more than enough
 
3289
    test $ac_count -gt 10 && break
 
3290
  done
 
3291
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3292
esac
 
3293
 
 
3294
      $ac_path_EGREP_found && break 3
 
3295
    done
 
3296
  done
 
3297
done
 
3298
IFS=$as_save_IFS
 
3299
  if test -z "$ac_cv_path_EGREP"; then
 
3300
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3301
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3302
   { (exit 1); exit 1; }; }
 
3303
  fi
 
3304
else
 
3305
  ac_cv_path_EGREP=$EGREP
 
3306
fi
 
3307
 
 
3308
   fi
 
3309
fi
 
3310
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3311
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3312
 EGREP="$ac_cv_path_EGREP"
 
3313
 
 
3314
 
 
3315
if test $ac_cv_c_compiler_gnu = yes; then
 
3316
    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
3317
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
 
3318
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
3319
  $as_echo_n "(cached) " >&6
 
3320
else
 
3321
    ac_pattern="Autoconf.*'x'"
 
3322
  cat >conftest.$ac_ext <<_ACEOF
 
3323
/* confdefs.h.  */
 
3324
_ACEOF
 
3325
cat confdefs.h >>conftest.$ac_ext
 
3326
cat >>conftest.$ac_ext <<_ACEOF
 
3327
/* end confdefs.h.  */
 
3328
#include <sgtty.h>
 
3329
Autoconf TIOCGETP
 
3330
_ACEOF
 
3331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3332
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
3333
  ac_cv_prog_gcc_traditional=yes
 
3334
else
 
3335
  ac_cv_prog_gcc_traditional=no
 
3336
fi
 
3337
rm -f conftest*
 
3338
 
 
3339
 
 
3340
  if test $ac_cv_prog_gcc_traditional = no; then
 
3341
    cat >conftest.$ac_ext <<_ACEOF
 
3342
/* confdefs.h.  */
 
3343
_ACEOF
 
3344
cat confdefs.h >>conftest.$ac_ext
 
3345
cat >>conftest.$ac_ext <<_ACEOF
 
3346
/* end confdefs.h.  */
 
3347
#include <termio.h>
 
3348
Autoconf TCGETA
 
3349
_ACEOF
 
3350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3351
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
3352
  ac_cv_prog_gcc_traditional=yes
 
3353
fi
 
3354
rm -f conftest*
 
3355
 
 
3356
  fi
 
3357
fi
 
3358
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
3359
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
 
3360
  if test $ac_cv_prog_gcc_traditional = yes; then
 
3361
    CC="$CC -traditional"
 
3362
  fi
 
3363
fi
 
3364
 
 
3365
 
 
3366
{ $as_echo "$as_me:$LINENO: checking whether using GNU C" >&5
 
3367
$as_echo_n "checking whether using GNU C... " >&6; }
 
3368
if test "${cl_cv_prog_cc_gcc+set}" = set; then
 
3369
  $as_echo_n "(cached) " >&6
 
3370
else
 
3371
 
 
3372
cat >conftest.$ac_ext <<_ACEOF
 
3373
/* confdefs.h.  */
 
3374
_ACEOF
 
3375
cat confdefs.h >>conftest.$ac_ext
 
3376
cat >>conftest.$ac_ext <<_ACEOF
 
3377
/* end confdefs.h.  */
 
3378
#ifdef __GNUC__
 
3379
  yes
 
3380
#endif
 
3381
 
 
3382
_ACEOF
 
3383
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3384
  $EGREP "yes" >/dev/null 2>&1; then
 
3385
  cl_cv_prog_cc_gcc=yes
 
3386
else
 
3387
  cl_cv_prog_cc_gcc=no
 
3388
fi
 
3389
rm -f conftest*
 
3390
 
 
3391
 
 
3392
fi
 
3393
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_cc_gcc" >&5
 
3394
$as_echo "$cl_cv_prog_cc_gcc" >&6; }
 
3395
if test $cl_cv_prog_cc_gcc = yes; then
 
3396
  CC_GCC=true
 
3397
  GCC_X_NONE='-x none'
 
3398
else
 
3399
  CC_GCC=false
 
3400
  GCC_X_NONE=''
 
3401
fi
 
3402
 
 
3403
if test -n "$ac_tool_prefix"; then
 
3404
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3405
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3406
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3407
$as_echo_n "checking for $ac_word... " >&6; }
 
3408
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3409
  $as_echo_n "(cached) " >&6
 
3410
else
 
3411
  if test -n "$RANLIB"; then
 
3412
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3413
else
 
3414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3415
for as_dir in $PATH
 
3416
do
 
3417
  IFS=$as_save_IFS
 
3418
  test -z "$as_dir" && as_dir=.
 
3419
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3420
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3421
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3422
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3423
    break 2
 
3424
  fi
 
3425
done
 
3426
done
 
3427
IFS=$as_save_IFS
 
3428
 
 
3429
fi
 
3430
fi
 
3431
RANLIB=$ac_cv_prog_RANLIB
 
3432
if test -n "$RANLIB"; then
 
3433
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3434
$as_echo "$RANLIB" >&6; }
 
3435
else
 
3436
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3437
$as_echo "no" >&6; }
 
3438
fi
 
3439
 
 
3440
 
 
3441
fi
 
3442
if test -z "$ac_cv_prog_RANLIB"; then
 
3443
  ac_ct_RANLIB=$RANLIB
 
3444
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3445
set dummy ranlib; ac_word=$2
 
3446
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3447
$as_echo_n "checking for $ac_word... " >&6; }
 
3448
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3449
  $as_echo_n "(cached) " >&6
 
3450
else
 
3451
  if test -n "$ac_ct_RANLIB"; then
 
3452
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3453
else
 
3454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3455
for as_dir in $PATH
 
3456
do
 
3457
  IFS=$as_save_IFS
 
3458
  test -z "$as_dir" && as_dir=.
 
3459
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3461
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3462
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3463
    break 2
 
3464
  fi
 
3465
done
 
3466
done
 
3467
IFS=$as_save_IFS
 
3468
 
 
3469
fi
 
3470
fi
 
3471
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3472
if test -n "$ac_ct_RANLIB"; then
 
3473
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3474
$as_echo "$ac_ct_RANLIB" >&6; }
 
3475
else
 
3476
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3477
$as_echo "no" >&6; }
 
3478
fi
 
3479
 
 
3480
  if test "x$ac_ct_RANLIB" = x; then
 
3481
    RANLIB=":"
 
3482
  else
 
3483
    case $cross_compiling:$ac_tool_warned in
 
3484
yes:)
 
3485
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3486
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3487
ac_tool_warned=yes ;;
 
3488
esac
 
3489
    RANLIB=$ac_ct_RANLIB
 
3490
  fi
 
3491
else
 
3492
  RANLIB="$ac_cv_prog_RANLIB"
 
3493
fi
 
3494
 
 
3495
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3496
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3497
set x ${MAKE-make}
 
3498
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3499
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
3500
  $as_echo_n "(cached) " >&6
 
3501
else
 
3502
  cat >conftest.make <<\_ACEOF
 
3503
SHELL = /bin/sh
 
3504
all:
 
3505
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3506
_ACEOF
 
3507
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3508
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3509
  *@@@%%%=?*=@@@%%%*)
 
3510
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3511
  *)
 
3512
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3513
esac
 
3514
rm -f conftest.make
 
3515
fi
 
3516
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3517
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
3518
$as_echo "yes" >&6; }
 
3519
  SET_MAKE=
 
3520
else
 
3521
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3522
$as_echo "no" >&6; }
 
3523
  SET_MAKE="MAKE=${MAKE-make}"
 
3524
fi
 
3525
 
 
3526
ac_aux_dir=
 
3527
for ac_dir in ../build-aux "$srcdir"/../build-aux; do
 
3528
  if test -f "$ac_dir/install-sh"; then
 
3529
    ac_aux_dir=$ac_dir
 
3530
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
3531
    break
 
3532
  elif test -f "$ac_dir/install.sh"; then
 
3533
    ac_aux_dir=$ac_dir
 
3534
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
3535
    break
 
3536
  elif test -f "$ac_dir/shtool"; then
 
3537
    ac_aux_dir=$ac_dir
 
3538
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
3539
    break
 
3540
  fi
 
3541
done
 
3542
if test -z "$ac_aux_dir"; then
 
3543
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
 
3544
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
 
3545
   { (exit 1); exit 1; }; }
 
3546
fi
 
3547
 
 
3548
# These three variables are undocumented and unsupported,
 
3549
# and are intended to be withdrawn in a future Autoconf release.
 
3550
# They can cause serious problems if a builder's source tree is in a directory
 
3551
# whose full name contains unusual characters.
 
3552
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3553
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3554
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3555
 
 
3556
 
 
3557
# Find a good install program.  We prefer a C program (faster),
 
3558
# so one script is as good as another.  But avoid the broken or
 
3559
# incompatible versions:
 
3560
# SysV /etc/install, /usr/sbin/install
 
3561
# SunOS /usr/etc/install
 
3562
# IRIX /sbin/install
 
3563
# AIX /bin/install
 
3564
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3565
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3566
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3567
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3568
# OS/2's system install, which has a completely different semantic
 
3569
# ./install, which can be erroneously created by make from ./install.sh.
 
3570
# Reject install programs that cannot install multiple files.
 
3571
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3572
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3573
if test -z "$INSTALL"; then
 
3574
if test "${ac_cv_path_install+set}" = set; then
 
3575
  $as_echo_n "(cached) " >&6
 
3576
else
 
3577
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3578
for as_dir in $PATH
 
3579
do
 
3580
  IFS=$as_save_IFS
 
3581
  test -z "$as_dir" && as_dir=.
 
3582
  # Account for people who put trailing slashes in PATH elements.
 
3583
case $as_dir/ in
 
3584
  ./ | .// | /cC/* | \
 
3585
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3586
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3587
  /usr/ucb/* ) ;;
 
3588
  *)
 
3589
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3590
    # Don't use installbsd from OSF since it installs stuff as root
 
3591
    # by default.
 
3592
    for ac_prog in ginstall scoinst install; do
 
3593
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3594
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3595
          if test $ac_prog = install &&
 
3596
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3597
            # AIX install.  It has an incompatible calling convention.
 
3598
            :
 
3599
          elif test $ac_prog = install &&
 
3600
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3601
            # program-specific install script used by HP pwplus--don't use.
 
3602
            :
 
3603
          else
 
3604
            rm -rf conftest.one conftest.two conftest.dir
 
3605
            echo one > conftest.one
 
3606
            echo two > conftest.two
 
3607
            mkdir conftest.dir
 
3608
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3609
              test -s conftest.one && test -s conftest.two &&
 
3610
              test -s conftest.dir/conftest.one &&
 
3611
              test -s conftest.dir/conftest.two
 
3612
            then
 
3613
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3614
              break 3
 
3615
            fi
 
3616
          fi
 
3617
        fi
 
3618
      done
 
3619
    done
 
3620
    ;;
 
3621
esac
 
3622
 
 
3623
done
 
3624
IFS=$as_save_IFS
 
3625
 
 
3626
rm -rf conftest.one conftest.two conftest.dir
 
3627
 
 
3628
fi
 
3629
  if test "${ac_cv_path_install+set}" = set; then
 
3630
    INSTALL=$ac_cv_path_install
 
3631
  else
 
3632
    # As a last resort, use the slow shell script.  Don't cache a
 
3633
    # value for INSTALL within a source directory, because that will
 
3634
    # break other packages using the cache if that directory is
 
3635
    # removed, or if the value is a relative name.
 
3636
    INSTALL=$ac_install_sh
 
3637
  fi
 
3638
fi
 
3639
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3640
$as_echo "$INSTALL" >&6; }
 
3641
 
 
3642
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3643
# It thinks the first close brace ends the variable substitution.
 
3644
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3645
 
 
3646
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3647
 
 
3648
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3649
 
 
3650
{ $as_echo "$as_me:$LINENO: checking how to make hard links" >&5
 
3651
$as_echo_n "checking how to make hard links... " >&6; }
 
3652
if test "${cl_cv_prog_LN+set}" = set; then
 
3653
  $as_echo_n "(cached) " >&6
 
3654
else
 
3655
 
 
3656
rm -f conftestdata conftestfile
 
3657
echo data > conftestfile
 
3658
if ln conftestfile conftestdata 2>/dev/null; then
 
3659
  cl_cv_prog_LN=ln
 
3660
else
 
3661
  cl_cv_prog_LN="cp -p"
 
3662
fi
 
3663
rm -f conftestdata conftestfile
 
3664
 
 
3665
fi
 
3666
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
 
3667
$as_echo "$cl_cv_prog_LN" >&6; }
 
3668
LN="$cl_cv_prog_LN"
 
3669
 
 
3670
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3671
$as_echo_n "checking whether ln -s works... " >&6; }
 
3672
if test "${cl_cv_prog_LN_S_works+set}" = set; then
 
3673
  $as_echo_n "(cached) " >&6
 
3674
else
 
3675
  rm -f conftestdata
 
3676
if ln -s X conftestdata 2>/dev/null; then
 
3677
  cl_cv_prog_LN_S_works=yes
 
3678
else
 
3679
  cl_cv_prog_LN_S_works=no
 
3680
fi
 
3681
rm -f conftestdata
 
3682
 
 
3683
fi
 
3684
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN_S_works" >&5
 
3685
$as_echo "$cl_cv_prog_LN_S_works" >&6; }
 
3686
if test $cl_cv_prog_LN_S_works = yes; then
 
3687
  LN_S="ln -s"
 
3688
else
 
3689
  LN_S="$cl_cv_prog_LN"
 
3690
fi
 
3691
 
 
3692
# Make sure we can run config.sub.
 
3693
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3694
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3695
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3696
   { (exit 1); exit 1; }; }
 
3697
 
 
3698
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
3699
$as_echo_n "checking build system type... " >&6; }
 
3700
if test "${ac_cv_build+set}" = set; then
 
3701
  $as_echo_n "(cached) " >&6
 
3702
else
 
3703
  ac_build_alias=$build_alias
 
3704
test "x$ac_build_alias" = x &&
 
3705
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3706
test "x$ac_build_alias" = x &&
 
3707
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3708
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3709
   { (exit 1); exit 1; }; }
 
3710
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3711
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3712
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3713
   { (exit 1); exit 1; }; }
 
3714
 
 
3715
fi
 
3716
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3717
$as_echo "$ac_cv_build" >&6; }
 
3718
case $ac_cv_build in
 
3719
*-*-*) ;;
 
3720
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3721
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
3722
   { (exit 1); exit 1; }; };;
 
3723
esac
 
3724
build=$ac_cv_build
 
3725
ac_save_IFS=$IFS; IFS='-'
 
3726
set x $ac_cv_build
 
3727
shift
 
3728
build_cpu=$1
 
3729
build_vendor=$2
 
3730
shift; shift
 
3731
# Remember, the first character of IFS is used to create $*,
 
3732
# except with old shells:
 
3733
build_os=$*
 
3734
IFS=$ac_save_IFS
 
3735
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3736
 
 
3737
 
 
3738
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
3739
$as_echo_n "checking host system type... " >&6; }
 
3740
if test "${ac_cv_host+set}" = set; then
 
3741
  $as_echo_n "(cached) " >&6
 
3742
else
 
3743
  if test "x$host_alias" = x; then
 
3744
  ac_cv_host=$ac_cv_build
 
3745
else
 
3746
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3747
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3748
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3749
   { (exit 1); exit 1; }; }
 
3750
fi
 
3751
 
 
3752
fi
 
3753
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3754
$as_echo "$ac_cv_host" >&6; }
 
3755
case $ac_cv_host in
 
3756
*-*-*) ;;
 
3757
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3758
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
3759
   { (exit 1); exit 1; }; };;
 
3760
esac
 
3761
host=$ac_cv_host
 
3762
ac_save_IFS=$IFS; IFS='-'
 
3763
set x $ac_cv_host
 
3764
shift
 
3765
host_cpu=$1
 
3766
host_vendor=$2
 
3767
shift; shift
 
3768
# Remember, the first character of IFS is used to create $*,
 
3769
# except with old shells:
 
3770
host_os=$*
 
3771
IFS=$ac_save_IFS
 
3772
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3773
 
 
3774
 
 
3775
 
 
3776
case "$host_cpu" in
 
3777
  i[4567]86 )
 
3778
    host_cpu_abi=i386
 
3779
    ;;
 
3780
  alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
 
3781
    host_cpu_abi=alpha
 
3782
    ;;
 
3783
  hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
 
3784
    host_cpu_abi=hppa
 
3785
    ;;
 
3786
  rs6000 )
 
3787
    host_cpu_abi=powerpc
 
3788
    ;;
 
3789
  c1 | c2 | c32 | c34 | c38 | c4 )
 
3790
    host_cpu_abi=convex
 
3791
    ;;
 
3792
  arm* )
 
3793
    { $as_echo "$as_me:$LINENO: checking for ARMel" >&5
 
3794
$as_echo_n "checking for ARMel... " >&6; }
 
3795
if test "${ffcall_cv_host_armel+set}" = set; then
 
3796
  $as_echo_n "(cached) " >&6
 
3797
else
 
3798
  cat >conftest.$ac_ext <<_ACEOF
 
3799
/* confdefs.h.  */
 
3800
_ACEOF
 
3801
cat confdefs.h >>conftest.$ac_ext
 
3802
cat >>conftest.$ac_ext <<_ACEOF
 
3803
/* end confdefs.h.  */
 
3804
#if defined(__ARMEL__)
 
3805
  yes
 
3806
#endif
 
3807
 
 
3808
_ACEOF
 
3809
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3810
  $EGREP "yes" >/dev/null 2>&1; then
 
3811
  ffcall_cv_host_armel=yes
 
3812
else
 
3813
  ffcall_cv_host_armel=no
 
3814
fi
 
3815
rm -f conftest*
 
3816
 
 
3817
fi
 
3818
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_armel" >&5
 
3819
$as_echo "$ffcall_cv_host_armel" >&6; }
 
3820
if test $ffcall_cv_host_armel = yes; then
 
3821
  host_cpu_abi=armel
 
3822
else
 
3823
  host_cpu_abi=arm
 
3824
fi
 
3825
    ;;
 
3826
  mips* )
 
3827
    { $as_echo "$as_me:$LINENO: checking for 64-bit MIPS" >&5
 
3828
$as_echo_n "checking for 64-bit MIPS... " >&6; }
 
3829
if test "${ffcall_cv_host_mips64+set}" = set; then
 
3830
  $as_echo_n "(cached) " >&6
 
3831
else
 
3832
  cat >conftest.$ac_ext <<_ACEOF
 
3833
/* confdefs.h.  */
 
3834
_ACEOF
 
3835
cat confdefs.h >>conftest.$ac_ext
 
3836
cat >>conftest.$ac_ext <<_ACEOF
 
3837
/* end confdefs.h.  */
 
3838
#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
 
3839
  yes
 
3840
#endif
 
3841
 
 
3842
_ACEOF
 
3843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3844
  $EGREP "yes" >/dev/null 2>&1; then
 
3845
  ffcall_cv_host_mips64=yes
 
3846
else
 
3847
  ffcall_cv_host_mips64=no
 
3848
fi
 
3849
rm -f conftest*
 
3850
 
 
3851
fi
 
3852
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mips64" >&5
 
3853
$as_echo "$ffcall_cv_host_mips64" >&6; }
 
3854
    if test $ffcall_cv_host_mips64 = yes; then
 
3855
      host_cpu_abi=mips64
 
3856
    else
 
3857
      { $as_echo "$as_me:$LINENO: checking for MIPS with n32 ABI" >&5
 
3858
$as_echo_n "checking for MIPS with n32 ABI... " >&6; }
 
3859
if test "${ffcall_cv_host_mipsn32+set}" = set; then
 
3860
  $as_echo_n "(cached) " >&6
 
3861
else
 
3862
  cat >conftest.$ac_ext <<_ACEOF
 
3863
/* confdefs.h.  */
 
3864
_ACEOF
 
3865
cat confdefs.h >>conftest.$ac_ext
 
3866
cat >>conftest.$ac_ext <<_ACEOF
 
3867
/* end confdefs.h.  */
 
3868
#if __mips >= 3
 
3869
  yes
 
3870
#endif
 
3871
 
 
3872
_ACEOF
 
3873
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3874
  $EGREP "yes" >/dev/null 2>&1; then
 
3875
  ffcall_cv_host_mipsn32=yes
 
3876
else
 
3877
  ffcall_cv_host_mipsn32=no
 
3878
fi
 
3879
rm -f conftest*
 
3880
 
 
3881
fi
 
3882
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mipsn32" >&5
 
3883
$as_echo "$ffcall_cv_host_mipsn32" >&6; }
 
3884
if test $ffcall_cv_host_mipsn32 = yes; then
 
3885
  host_cpu_abi=mipsn32
 
3886
else
 
3887
  host_cpu_abi=mips
 
3888
fi
 
3889
    fi
 
3890
    ;;
 
3891
  powerpc64 )
 
3892
    { $as_echo "$as_me:$LINENO: checking for 64-bit PowerPC" >&5
 
3893
$as_echo_n "checking for 64-bit PowerPC... " >&6; }
 
3894
if test "${ffcall_cv_host_powerpc64+set}" = set; then
 
3895
  $as_echo_n "(cached) " >&6
 
3896
else
 
3897
  cat >conftest.$ac_ext <<_ACEOF
 
3898
/* confdefs.h.  */
 
3899
_ACEOF
 
3900
cat confdefs.h >>conftest.$ac_ext
 
3901
cat >>conftest.$ac_ext <<_ACEOF
 
3902
/* end confdefs.h.  */
 
3903
#if defined(__powerpc64__) || defined(_ARCH_PPC64)
 
3904
  yes
 
3905
#endif
 
3906
 
 
3907
_ACEOF
 
3908
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3909
  $EGREP "yes" >/dev/null 2>&1; then
 
3910
  ffcall_cv_host_powerpc64=yes
 
3911
else
 
3912
  ffcall_cv_host_powerpc64=no
 
3913
fi
 
3914
rm -f conftest*
 
3915
 
 
3916
fi
 
3917
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_powerpc64" >&5
 
3918
$as_echo "$ffcall_cv_host_powerpc64" >&6; }
 
3919
if test $ffcall_cv_host_powerpc64 = yes; then
 
3920
  host_cpu_abi=powerpc64
 
3921
else
 
3922
  host_cpu_abi=powerpc
 
3923
fi
 
3924
    ;;
 
3925
  sparc | sparc64 )
 
3926
    { $as_echo "$as_me:$LINENO: checking for 64-bit SPARC" >&5
 
3927
$as_echo_n "checking for 64-bit SPARC... " >&6; }
 
3928
if test "${ffcall_cv_host_sparc64+set}" = set; then
 
3929
  $as_echo_n "(cached) " >&6
 
3930
else
 
3931
  cat >conftest.$ac_ext <<_ACEOF
 
3932
/* confdefs.h.  */
 
3933
_ACEOF
 
3934
cat confdefs.h >>conftest.$ac_ext
 
3935
cat >>conftest.$ac_ext <<_ACEOF
 
3936
/* end confdefs.h.  */
 
3937
#if defined(__sparcv9) || defined(__arch64__)
 
3938
  yes
 
3939
#endif
 
3940
 
 
3941
_ACEOF
 
3942
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3943
  $EGREP "yes" >/dev/null 2>&1; then
 
3944
  ffcall_cv_host_sparc64=yes
 
3945
else
 
3946
  ffcall_cv_host_sparc64=no
 
3947
fi
 
3948
rm -f conftest*
 
3949
 
 
3950
fi
 
3951
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_sparc64" >&5
 
3952
$as_echo "$ffcall_cv_host_sparc64" >&6; }
 
3953
if test $ffcall_cv_host_sparc64 = yes; then
 
3954
  host_cpu_abi=sparc64
 
3955
else
 
3956
  host_cpu_abi=sparc
 
3957
fi
 
3958
    ;;
 
3959
  x86_64 )
 
3960
    { $as_echo "$as_me:$LINENO: checking for 64-bit x86_64" >&5
 
3961
$as_echo_n "checking for 64-bit x86_64... " >&6; }
 
3962
if test "${ffcall_cv_host_x86_64+set}" = set; then
 
3963
  $as_echo_n "(cached) " >&6
 
3964
else
 
3965
  cat >conftest.$ac_ext <<_ACEOF
 
3966
/* confdefs.h.  */
 
3967
_ACEOF
 
3968
cat confdefs.h >>conftest.$ac_ext
 
3969
cat >>conftest.$ac_ext <<_ACEOF
 
3970
/* end confdefs.h.  */
 
3971
#if defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
 
3972
  yes
 
3973
#endif
 
3974
 
 
3975
_ACEOF
 
3976
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3977
  $EGREP "yes" >/dev/null 2>&1; then
 
3978
  ffcall_cv_host_x86_64=yes
 
3979
else
 
3980
  ffcall_cv_host_x86_64=no
 
3981
fi
 
3982
rm -f conftest*
 
3983
 
 
3984
fi
 
3985
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_x86_64" >&5
 
3986
$as_echo "$ffcall_cv_host_x86_64" >&6; }
 
3987
if test $ffcall_cv_host_x86_64 = yes; then
 
3988
  host_cpu_abi=x86_64
 
3989
else
 
3990
  host_cpu_abi=i386
 
3991
fi
 
3992
    ;;
 
3993
  *)
 
3994
    host_cpu_abi=$host_cpu
 
3995
    ;;
 
3996
esac
 
3997
 
 
3998
cat >> confdefs.h <<EOF
 
3999
#ifndef __${host_cpu_abi}__
 
4000
#define __${host_cpu_abi}__ 1
 
4001
#endif
 
4002
EOF
 
4003
 
 
4004
PACKAGE=callback
 
4005
# Check whether --enable-shared was given.
 
4006
if test "${enable_shared+set}" = set; then
 
4007
  enableval=$enable_shared; p=${PACKAGE-default}
 
4008
    case $enableval in
 
4009
    yes) enable_shared=yes ;;
 
4010
    no) enable_shared=no ;;
 
4011
    *)
 
4012
      enable_shared=no
 
4013
      # Look at the argument we got.  We use all the common list separators.
 
4014
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4015
      for pkg in $enableval; do
 
4016
        IFS="$lt_save_ifs"
 
4017
        if test "X$pkg" = "X$p"; then
 
4018
          enable_shared=yes
 
4019
        fi
 
4020
      done
 
4021
      IFS="$lt_save_ifs"
 
4022
      ;;
 
4023
    esac
 
4024
else
 
4025
  enable_shared=no
 
4026
fi
 
4027
 
 
4028
 
 
4029
 
 
4030
# Check whether --enable-static was given.
 
4031
if test "${enable_static+set}" = set; then
 
4032
  enableval=$enable_static; p=${PACKAGE-default}
 
4033
    case $enableval in
 
4034
    yes) enable_static=yes ;;
 
4035
    no) enable_static=no ;;
 
4036
    *)
 
4037
     enable_static=no
 
4038
      # Look at the argument we got.  We use all the common list separators.
 
4039
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4040
      for pkg in $enableval; do
 
4041
        IFS="$lt_save_ifs"
 
4042
        if test "X$pkg" = "X$p"; then
 
4043
          enable_static=yes
 
4044
        fi
 
4045
      done
 
4046
      IFS="$lt_save_ifs"
 
4047
      ;;
 
4048
    esac
 
4049
else
 
4050
  enable_static=yes
 
4051
fi
 
4052
 
 
4053
 
 
4054
# Check whether --enable-fast-install was given.
 
4055
if test "${enable_fast_install+set}" = set; then
 
4056
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4057
    case $enableval in
 
4058
    yes) enable_fast_install=yes ;;
 
4059
    no) enable_fast_install=no ;;
 
4060
    *)
 
4061
      enable_fast_install=no
 
4062
      # Look at the argument we got.  We use all the common list separators.
 
4063
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4064
      for pkg in $enableval; do
 
4065
        IFS="$lt_save_ifs"
 
4066
        if test "X$pkg" = "X$p"; then
 
4067
          enable_fast_install=yes
 
4068
        fi
 
4069
      done
 
4070
      IFS="$lt_save_ifs"
 
4071
      ;;
 
4072
    esac
 
4073
else
 
4074
  enable_fast_install=yes
 
4075
fi
 
4076
 
 
4077
 
 
4078
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4079
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4080
if test "${lt_cv_path_SED+set}" = set; then
 
4081
  $as_echo_n "(cached) " >&6
 
4082
else
 
4083
  # Loop through the user's path and test for sed and gsed.
 
4084
# Then use that list of sed's as ones to test for truncation.
 
4085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4086
for as_dir in $PATH
 
4087
do
 
4088
  IFS=$as_save_IFS
 
4089
  test -z "$as_dir" && as_dir=.
 
4090
  for lt_ac_prog in sed gsed; do
 
4091
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4092
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4093
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4094
      fi
 
4095
    done
 
4096
  done
 
4097
done
 
4098
IFS=$as_save_IFS
 
4099
lt_ac_max=0
 
4100
lt_ac_count=0
 
4101
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4102
# along with /bin/sed that truncates output.
 
4103
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4104
  test ! -f $lt_ac_sed && continue
 
4105
  cat /dev/null > conftest.in
 
4106
  lt_ac_count=0
 
4107
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4108
  # Check for GNU sed and select it if it is found.
 
4109
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4110
    lt_cv_path_SED=$lt_ac_sed
 
4111
    break
 
4112
  fi
 
4113
  while true; do
 
4114
    cat conftest.in conftest.in >conftest.tmp
 
4115
    mv conftest.tmp conftest.in
 
4116
    cp conftest.in conftest.nl
 
4117
    echo >>conftest.nl
 
4118
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4119
    cmp -s conftest.out conftest.nl || break
 
4120
    # 10000 chars as input seems more than enough
 
4121
    test $lt_ac_count -gt 10 && break
 
4122
    lt_ac_count=`expr $lt_ac_count + 1`
 
4123
    if test $lt_ac_count -gt $lt_ac_max; then
 
4124
      lt_ac_max=$lt_ac_count
 
4125
      lt_cv_path_SED=$lt_ac_sed
 
4126
    fi
 
4127
  done
 
4128
done
 
4129
 
 
4130
fi
 
4131
 
 
4132
SED=$lt_cv_path_SED
 
4133
 
 
4134
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
4135
$as_echo "$SED" >&6; }
 
4136
 
 
4137
 
 
4138
# Check whether --with-gnu-ld was given.
 
4139
if test "${with_gnu_ld+set}" = set; then
 
4140
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4141
else
 
4142
  with_gnu_ld=no
 
4143
fi
 
4144
 
 
4145
ac_prog=ld
 
4146
if test "$GCC" = yes; then
 
4147
  # Check if gcc -print-prog-name=ld gives a path.
 
4148
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4149
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4150
  case $host in
 
4151
  *-*-mingw*)
 
4152
    # gcc leaves a trailing carriage return which upsets mingw
 
4153
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4154
  *)
 
4155
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4156
  esac
 
4157
  case $ac_prog in
 
4158
    # Accept absolute paths.
 
4159
    [\\/]* | ?:[\\/]*)
 
4160
      re_direlt='/[^/][^/]*/\.\./'
 
4161
      # Canonicalize the pathname of ld
 
4162
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4163
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4164
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4165
      done
 
4166
      test -z "$LD" && LD="$ac_prog"
 
4167
      ;;
 
4168
  "")
 
4169
    # If it fails, then pretend we aren't using GCC.
 
4170
    ac_prog=ld
 
4171
    ;;
 
4172
  *)
 
4173
    # If it is relative, then search for the first ld in PATH.
 
4174
    with_gnu_ld=unknown
 
4175
    ;;
 
4176
  esac
 
4177
elif test "$with_gnu_ld" = yes; then
 
4178
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4179
$as_echo_n "checking for GNU ld... " >&6; }
 
4180
else
 
4181
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4182
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4183
fi
 
4184
if test "${lt_cv_path_LD+set}" = set; then
 
4185
  $as_echo_n "(cached) " >&6
 
4186
else
 
4187
  if test -z "$LD"; then
 
4188
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4189
  for ac_dir in $PATH; do
 
4190
    IFS="$lt_save_ifs"
 
4191
    test -z "$ac_dir" && ac_dir=.
 
4192
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4193
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4194
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4195
      # but apparently some variants of GNU ld only accept -v.
 
4196
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4197
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4198
      *GNU* | *'with BFD'*)
 
4199
        test "$with_gnu_ld" != no && break
 
4200
        ;;
 
4201
      *)
 
4202
        test "$with_gnu_ld" != yes && break
 
4203
        ;;
 
4204
      esac
 
4205
    fi
 
4206
  done
 
4207
  IFS="$lt_save_ifs"
 
4208
else
 
4209
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4210
fi
 
4211
fi
 
4212
 
 
4213
LD="$lt_cv_path_LD"
 
4214
if test -n "$LD"; then
 
4215
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4216
$as_echo "$LD" >&6; }
 
4217
else
 
4218
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4219
$as_echo "no" >&6; }
 
4220
fi
 
4221
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4222
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4223
   { (exit 1); exit 1; }; }
 
4224
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4225
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4226
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4227
  $as_echo_n "(cached) " >&6
 
4228
else
 
4229
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4230
case `$LD -v 2>&1 </dev/null` in
 
4231
*GNU* | *'with BFD'*)
 
4232
  lt_cv_prog_gnu_ld=yes
 
4233
  ;;
 
4234
*)
 
4235
  lt_cv_prog_gnu_ld=no
 
4236
  ;;
 
4237
esac
 
4238
fi
 
4239
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4240
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4241
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4242
 
 
4243
 
 
4244
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4245
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4246
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4247
  $as_echo_n "(cached) " >&6
 
4248
else
 
4249
  lt_cv_ld_reload_flag='-r'
 
4250
fi
 
4251
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4252
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4253
reload_flag=$lt_cv_ld_reload_flag
 
4254
case $reload_flag in
 
4255
"" | " "*) ;;
 
4256
*) reload_flag=" $reload_flag" ;;
 
4257
esac
 
4258
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4259
case $host_os in
 
4260
  darwin*)
 
4261
    if test "$GCC" = yes; then
 
4262
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4263
    else
 
4264
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4265
    fi
 
4266
    ;;
 
4267
esac
 
4268
 
 
4269
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4270
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
4271
if test "${lt_cv_path_NM+set}" = set; then
 
4272
  $as_echo_n "(cached) " >&6
 
4273
else
 
4274
  if test -n "$NM"; then
 
4275
  # Let the user override the test.
 
4276
  lt_cv_path_NM="$NM"
 
4277
else
 
4278
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4279
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4280
    lt_nm_to_check="$lt_nm_to_check nm"
 
4281
  fi
 
4282
  for lt_tmp_nm in $lt_nm_to_check; do
 
4283
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4284
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4285
      IFS="$lt_save_ifs"
 
4286
      test -z "$ac_dir" && ac_dir=.
 
4287
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4288
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4289
        # Check to see if the nm accepts a BSD-compat flag.
 
4290
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4291
        #   nm: unknown option "B" ignored
 
4292
        # Tru64's nm complains that /dev/null is an invalid object file
 
4293
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4294
        */dev/null* | *'Invalid file or object type'*)
 
4295
          lt_cv_path_NM="$tmp_nm -B"
 
4296
          break
 
4297
          ;;
 
4298
        *)
 
4299
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4300
          */dev/null*)
 
4301
            lt_cv_path_NM="$tmp_nm -p"
 
4302
            break
 
4303
            ;;
 
4304
          *)
 
4305
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4306
            continue # so that we can try to find one that supports BSD flags
 
4307
            ;;
 
4308
          esac
 
4309
          ;;
 
4310
        esac
 
4311
      fi
 
4312
    done
 
4313
    IFS="$lt_save_ifs"
 
4314
  done
 
4315
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4316
fi
 
4317
fi
 
4318
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4319
$as_echo "$lt_cv_path_NM" >&6; }
 
4320
NM="$lt_cv_path_NM"
 
4321
 
 
4322
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4323
$as_echo_n "checking whether ln -s works... " >&6; }
 
4324
LN_S=$as_ln_s
 
4325
if test "$LN_S" = "ln -s"; then
 
4326
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4327
$as_echo "yes" >&6; }
 
4328
else
 
4329
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4330
$as_echo "no, using $LN_S" >&6; }
 
4331
fi
 
4332
 
 
4333
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4334
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4335
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4336
  $as_echo_n "(cached) " >&6
 
4337
else
 
4338
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4339
lt_cv_file_magic_test_file=
 
4340
lt_cv_deplibs_check_method='unknown'
 
4341
# Need to set the preceding variable on all platforms that support
 
4342
# interlibrary dependencies.
 
4343
# 'none' -- dependencies not supported.
 
4344
# `unknown' -- same as none, but documents that we really don't know.
 
4345
# 'pass_all' -- all dependencies passed with no checks.
 
4346
# 'test_compile' -- check by making test program.
 
4347
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4348
# which responds to the $file_magic_cmd with a given extended regex.
 
4349
# If you have `file' or equivalent on your system and you're not sure
 
4350
# whether `pass_all' will *always* work, you probably want this one.
 
4351
 
 
4352
case $host_os in
 
4353
aix[4-9]*)
 
4354
  lt_cv_deplibs_check_method=pass_all
 
4355
  ;;
 
4356
 
 
4357
beos*)
 
4358
  lt_cv_deplibs_check_method=pass_all
 
4359
  ;;
 
4360
 
 
4361
bsdi[45]*)
 
4362
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4363
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4364
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4365
  ;;
 
4366
 
 
4367
cygwin*)
 
4368
  # func_win32_libid is a shell function defined in ltmain.sh
 
4369
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4370
  lt_cv_file_magic_cmd='func_win32_libid'
 
4371
  ;;
 
4372
 
 
4373
mingw* | pw32*)
 
4374
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4375
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4376
  # unless we find 'file', for example because we are cross-compiling.
 
4377
  if ( file / ) >/dev/null 2>&1; then
 
4378
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4379
    lt_cv_file_magic_cmd='func_win32_libid'
 
4380
  else
 
4381
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4382
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4383
  fi
 
4384
  ;;
 
4385
 
 
4386
darwin* | rhapsody*)
 
4387
  lt_cv_deplibs_check_method=pass_all
 
4388
  ;;
 
4389
 
 
4390
freebsd* | dragonfly*)
 
4391
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4392
    case $host_cpu in
 
4393
    i*86 )
 
4394
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4395
      # Let's accept both of them until this is cleared up.
 
4396
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4397
      lt_cv_file_magic_cmd=/usr/bin/file
 
4398
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4399
      ;;
 
4400
    esac
 
4401
  else
 
4402
    lt_cv_deplibs_check_method=pass_all
 
4403
  fi
 
4404
  ;;
 
4405
 
 
4406
gnu*)
 
4407
  lt_cv_deplibs_check_method=pass_all
 
4408
  ;;
 
4409
 
 
4410
hpux10.20* | hpux11*)
 
4411
  lt_cv_file_magic_cmd=/usr/bin/file
 
4412
  case $host_cpu in
 
4413
  ia64*)
 
4414
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4415
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4416
    ;;
 
4417
  hppa*64*)
 
4418
    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]'
 
4419
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4420
    ;;
 
4421
  *)
 
4422
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4423
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4424
    ;;
 
4425
  esac
 
4426
  ;;
 
4427
 
 
4428
interix[3-9]*)
 
4429
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4430
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4431
  ;;
 
4432
 
 
4433
irix5* | irix6* | nonstopux*)
 
4434
  case $LD in
 
4435
  *-32|*"-32 ") libmagic=32-bit;;
 
4436
  *-n32|*"-n32 ") libmagic=N32;;
 
4437
  *-64|*"-64 ") libmagic=64-bit;;
 
4438
  *) libmagic=never-match;;
 
4439
  esac
 
4440
  lt_cv_deplibs_check_method=pass_all
 
4441
  ;;
 
4442
 
 
4443
# This must be Linux ELF.
 
4444
linux* | k*bsd*-gnu)
 
4445
  lt_cv_deplibs_check_method=pass_all
 
4446
  ;;
 
4447
 
 
4448
netbsd*)
 
4449
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4450
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4451
  else
 
4452
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4453
  fi
 
4454
  ;;
 
4455
 
 
4456
newos6*)
 
4457
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4458
  lt_cv_file_magic_cmd=/usr/bin/file
 
4459
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4460
  ;;
 
4461
 
 
4462
nto-qnx*)
 
4463
  lt_cv_deplibs_check_method=unknown
 
4464
  ;;
 
4465
 
 
4466
openbsd*)
 
4467
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4468
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4469
  else
 
4470
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4471
  fi
 
4472
  ;;
 
4473
 
 
4474
osf3* | osf4* | osf5*)
 
4475
  lt_cv_deplibs_check_method=pass_all
 
4476
  ;;
 
4477
 
 
4478
rdos*)
 
4479
  lt_cv_deplibs_check_method=pass_all
 
4480
  ;;
 
4481
 
 
4482
solaris*)
 
4483
  lt_cv_deplibs_check_method=pass_all
 
4484
  ;;
 
4485
 
 
4486
sysv4 | sysv4.3*)
 
4487
  case $host_vendor in
 
4488
  motorola)
 
4489
    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]'
 
4490
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4491
    ;;
 
4492
  ncr)
 
4493
    lt_cv_deplibs_check_method=pass_all
 
4494
    ;;
 
4495
  sequent)
 
4496
    lt_cv_file_magic_cmd='/bin/file'
 
4497
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4498
    ;;
 
4499
  sni)
 
4500
    lt_cv_file_magic_cmd='/bin/file'
 
4501
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4502
    lt_cv_file_magic_test_file=/lib/libc.so
 
4503
    ;;
 
4504
  siemens)
 
4505
    lt_cv_deplibs_check_method=pass_all
 
4506
    ;;
 
4507
  pc)
 
4508
    lt_cv_deplibs_check_method=pass_all
 
4509
    ;;
 
4510
  esac
 
4511
  ;;
 
4512
 
 
4513
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4514
  lt_cv_deplibs_check_method=pass_all
 
4515
  ;;
 
4516
esac
 
4517
 
 
4518
fi
 
4519
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4520
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
4521
file_magic_cmd=$lt_cv_file_magic_cmd
 
4522
deplibs_check_method=$lt_cv_deplibs_check_method
 
4523
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4524
 
 
4525
 
 
4526
 
 
4527
 
 
4528
# If no C compiler was specified, use CC.
 
4529
LTCC=${LTCC-"$CC"}
 
4530
 
 
4531
# If no C compiler flags were specified, use CFLAGS.
 
4532
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4533
 
 
4534
# Allow CC to be a program name with arguments.
 
4535
compiler=$CC
 
4536
 
 
4537
# Check whether --enable-libtool-lock was given.
 
4538
if test "${enable_libtool_lock+set}" = set; then
 
4539
  enableval=$enable_libtool_lock;
 
4540
fi
 
4541
 
 
4542
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4543
 
 
4544
# Some flags need to be propagated to the compiler or linker for good
 
4545
# libtool support.
 
4546
case $host in
 
4547
ia64-*-hpux*)
 
4548
  # Find out which ABI we are using.
 
4549
  echo 'int i;' > conftest.$ac_ext
 
4550
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4551
  (eval $ac_compile) 2>&5
 
4552
  ac_status=$?
 
4553
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4554
  (exit $ac_status); }; then
 
4555
    case `/usr/bin/file conftest.$ac_objext` in
 
4556
    *ELF-32*)
 
4557
      HPUX_IA64_MODE="32"
 
4558
      ;;
 
4559
    *ELF-64*)
 
4560
      HPUX_IA64_MODE="64"
 
4561
      ;;
 
4562
    esac
 
4563
  fi
 
4564
  rm -rf conftest*
 
4565
  ;;
 
4566
*-*-irix6*)
 
4567
  # Find out which ABI we are using.
 
4568
  echo '#line 4568 "configure"' > conftest.$ac_ext
 
4569
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4570
  (eval $ac_compile) 2>&5
 
4571
  ac_status=$?
 
4572
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4573
  (exit $ac_status); }; then
 
4574
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4575
    case `/usr/bin/file conftest.$ac_objext` in
 
4576
    *32-bit*)
 
4577
      LD="${LD-ld} -melf32bsmip"
 
4578
      ;;
 
4579
    *N32*)
 
4580
      LD="${LD-ld} -melf32bmipn32"
 
4581
      ;;
 
4582
    *64-bit*)
 
4583
      LD="${LD-ld} -melf64bmip"
 
4584
      ;;
 
4585
    esac
 
4586
   else
 
4587
    case `/usr/bin/file conftest.$ac_objext` in
 
4588
    *32-bit*)
 
4589
      LD="${LD-ld} -32"
 
4590
      ;;
 
4591
    *N32*)
 
4592
      LD="${LD-ld} -n32"
 
4593
      ;;
 
4594
    *64-bit*)
 
4595
      LD="${LD-ld} -64"
 
4596
      ;;
 
4597
    esac
 
4598
   fi
 
4599
  fi
 
4600
  rm -rf conftest*
 
4601
  ;;
 
4602
 
 
4603
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4604
s390*-*linux*|sparc*-*linux*)
 
4605
  # Find out which ABI we are using.
 
4606
  echo 'int i;' > conftest.$ac_ext
 
4607
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4608
  (eval $ac_compile) 2>&5
 
4609
  ac_status=$?
 
4610
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4611
  (exit $ac_status); }; then
 
4612
    case `/usr/bin/file conftest.o` in
 
4613
    *32-bit*)
 
4614
      case $host in
 
4615
        x86_64-*kfreebsd*-gnu)
 
4616
          LD="${LD-ld} -m elf_i386_fbsd"
 
4617
          ;;
 
4618
        x86_64-*linux*)
 
4619
          LD="${LD-ld} -m elf_i386"
 
4620
          ;;
 
4621
        ppc64-*linux*|powerpc64-*linux*)
 
4622
          LD="${LD-ld} -m elf32ppclinux"
 
4623
          ;;
 
4624
        s390x-*linux*)
 
4625
          LD="${LD-ld} -m elf_s390"
 
4626
          ;;
 
4627
        sparc64-*linux*)
 
4628
          LD="${LD-ld} -m elf32_sparc"
 
4629
          ;;
 
4630
      esac
 
4631
      ;;
 
4632
    *64-bit*)
 
4633
      case $host in
 
4634
        x86_64-*kfreebsd*-gnu)
 
4635
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4636
          ;;
 
4637
        x86_64-*linux*)
 
4638
          LD="${LD-ld} -m elf_x86_64"
 
4639
          ;;
 
4640
        ppc*-*linux*|powerpc*-*linux*)
 
4641
          LD="${LD-ld} -m elf64ppc"
 
4642
          ;;
 
4643
        s390*-*linux*)
 
4644
          LD="${LD-ld} -m elf64_s390"
 
4645
          ;;
 
4646
        sparc*-*linux*)
 
4647
          LD="${LD-ld} -m elf64_sparc"
 
4648
          ;;
 
4649
      esac
 
4650
      ;;
 
4651
    esac
 
4652
  fi
 
4653
  rm -rf conftest*
 
4654
  ;;
 
4655
 
 
4656
*-*-sco3.2v5*)
 
4657
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4658
  SAVE_CFLAGS="$CFLAGS"
 
4659
  CFLAGS="$CFLAGS -belf"
 
4660
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4661
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
4662
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4663
  $as_echo_n "(cached) " >&6
 
4664
else
 
4665
  ac_ext=c
 
4666
ac_cpp='$CPP $CPPFLAGS'
 
4667
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4668
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4669
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4670
 
 
4671
     cat >conftest.$ac_ext <<_ACEOF
 
4672
/* confdefs.h.  */
 
4673
_ACEOF
 
4674
cat confdefs.h >>conftest.$ac_ext
 
4675
cat >>conftest.$ac_ext <<_ACEOF
 
4676
/* end confdefs.h.  */
 
4677
 
 
4678
int
 
4679
main ()
 
4680
{
 
4681
 
 
4682
  ;
 
4683
  return 0;
 
4684
}
 
4685
_ACEOF
 
4686
rm -f conftest.$ac_objext conftest$ac_exeext
 
4687
if { (ac_try="$ac_link"
 
4688
case "(($ac_try" in
 
4689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4690
  *) ac_try_echo=$ac_try;;
 
4691
esac
 
4692
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4693
$as_echo "$ac_try_echo") >&5
 
4694
  (eval "$ac_link") 2>conftest.er1
 
4695
  ac_status=$?
 
4696
  grep -v '^ *+' conftest.er1 >conftest.err
 
4697
  rm -f conftest.er1
 
4698
  cat conftest.err >&5
 
4699
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4700
  (exit $ac_status); } && {
 
4701
         test -z "$ac_c_werror_flag" ||
 
4702
         test ! -s conftest.err
 
4703
       } && test -s conftest$ac_exeext && {
 
4704
         test "$cross_compiling" = yes ||
 
4705
         $as_test_x conftest$ac_exeext
 
4706
       }; then
 
4707
  lt_cv_cc_needs_belf=yes
 
4708
else
 
4709
  $as_echo "$as_me: failed program was:" >&5
 
4710
sed 's/^/| /' conftest.$ac_ext >&5
 
4711
 
 
4712
        lt_cv_cc_needs_belf=no
 
4713
fi
 
4714
 
 
4715
rm -rf conftest.dSYM
 
4716
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4717
      conftest$ac_exeext conftest.$ac_ext
 
4718
     ac_ext=c
 
4719
ac_cpp='$CPP $CPPFLAGS'
 
4720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4723
 
 
4724
fi
 
4725
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4726
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
4727
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4728
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4729
    CFLAGS="$SAVE_CFLAGS"
 
4730
  fi
 
4731
  ;;
 
4732
sparc*-*solaris*)
 
4733
  # Find out which ABI we are using.
 
4734
  echo 'int i;' > conftest.$ac_ext
 
4735
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4736
  (eval $ac_compile) 2>&5
 
4737
  ac_status=$?
 
4738
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4739
  (exit $ac_status); }; then
 
4740
    case `/usr/bin/file conftest.o` in
 
4741
    *64-bit*)
 
4742
      case $lt_cv_prog_gnu_ld in
 
4743
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4744
      *)
 
4745
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4746
          LD="${LD-ld} -64"
 
4747
        fi
 
4748
        ;;
 
4749
      esac
 
4750
      ;;
 
4751
    esac
 
4752
  fi
 
4753
  rm -rf conftest*
 
4754
  ;;
 
4755
 
 
4756
 
 
4757
esac
 
4758
 
 
4759
need_locks="$enable_libtool_lock"
 
4760
 
 
4761
 
 
4762
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4763
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4764
if test "${ac_cv_header_stdc+set}" = set; then
 
4765
  $as_echo_n "(cached) " >&6
 
4766
else
 
4767
  cat >conftest.$ac_ext <<_ACEOF
 
4768
/* confdefs.h.  */
 
4769
_ACEOF
 
4770
cat confdefs.h >>conftest.$ac_ext
 
4771
cat >>conftest.$ac_ext <<_ACEOF
 
4772
/* end confdefs.h.  */
 
4773
#include <stdlib.h>
 
4774
#include <stdarg.h>
 
4775
#include <string.h>
 
4776
#include <float.h>
 
4777
 
 
4778
int
 
4779
main ()
 
4780
{
 
4781
 
 
4782
  ;
 
4783
  return 0;
 
4784
}
 
4785
_ACEOF
 
4786
rm -f conftest.$ac_objext
 
4787
if { (ac_try="$ac_compile"
 
4788
case "(($ac_try" in
 
4789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4790
  *) ac_try_echo=$ac_try;;
 
4791
esac
 
4792
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4793
$as_echo "$ac_try_echo") >&5
 
4794
  (eval "$ac_compile") 2>conftest.er1
 
4795
  ac_status=$?
 
4796
  grep -v '^ *+' conftest.er1 >conftest.err
 
4797
  rm -f conftest.er1
 
4798
  cat conftest.err >&5
 
4799
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4800
  (exit $ac_status); } && {
 
4801
         test -z "$ac_c_werror_flag" ||
 
4802
         test ! -s conftest.err
 
4803
       } && test -s conftest.$ac_objext; then
 
4804
  ac_cv_header_stdc=yes
 
4805
else
 
4806
  $as_echo "$as_me: failed program was:" >&5
 
4807
sed 's/^/| /' conftest.$ac_ext >&5
 
4808
 
 
4809
        ac_cv_header_stdc=no
 
4810
fi
 
4811
 
 
4812
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4813
 
 
4814
if test $ac_cv_header_stdc = yes; then
 
4815
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4816
  cat >conftest.$ac_ext <<_ACEOF
 
4817
/* confdefs.h.  */
 
4818
_ACEOF
 
4819
cat confdefs.h >>conftest.$ac_ext
 
4820
cat >>conftest.$ac_ext <<_ACEOF
 
4821
/* end confdefs.h.  */
 
4822
#include <string.h>
 
4823
 
 
4824
_ACEOF
 
4825
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4826
  $EGREP "memchr" >/dev/null 2>&1; then
 
4827
  :
 
4828
else
 
4829
  ac_cv_header_stdc=no
 
4830
fi
 
4831
rm -f conftest*
 
4832
 
 
4833
fi
 
4834
 
 
4835
if test $ac_cv_header_stdc = yes; then
 
4836
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4837
  cat >conftest.$ac_ext <<_ACEOF
 
4838
/* confdefs.h.  */
 
4839
_ACEOF
 
4840
cat confdefs.h >>conftest.$ac_ext
 
4841
cat >>conftest.$ac_ext <<_ACEOF
 
4842
/* end confdefs.h.  */
 
4843
#include <stdlib.h>
 
4844
 
 
4845
_ACEOF
 
4846
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4847
  $EGREP "free" >/dev/null 2>&1; then
 
4848
  :
 
4849
else
 
4850
  ac_cv_header_stdc=no
 
4851
fi
 
4852
rm -f conftest*
 
4853
 
 
4854
fi
 
4855
 
 
4856
if test $ac_cv_header_stdc = yes; then
 
4857
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4858
  if test "$cross_compiling" = yes; then
 
4859
  :
 
4860
else
 
4861
  cat >conftest.$ac_ext <<_ACEOF
 
4862
/* confdefs.h.  */
 
4863
_ACEOF
 
4864
cat confdefs.h >>conftest.$ac_ext
 
4865
cat >>conftest.$ac_ext <<_ACEOF
 
4866
/* end confdefs.h.  */
 
4867
#include <ctype.h>
 
4868
#include <stdlib.h>
 
4869
#if ((' ' & 0x0FF) == 0x020)
 
4870
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4871
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4872
#else
 
4873
# define ISLOWER(c) \
 
4874
                   (('a' <= (c) && (c) <= 'i') \
 
4875
                     || ('j' <= (c) && (c) <= 'r') \
 
4876
                     || ('s' <= (c) && (c) <= 'z'))
 
4877
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4878
#endif
 
4879
 
 
4880
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4881
int
 
4882
main ()
 
4883
{
 
4884
  int i;
 
4885
  for (i = 0; i < 256; i++)
 
4886
    if (XOR (islower (i), ISLOWER (i))
 
4887
        || toupper (i) != TOUPPER (i))
 
4888
      return 2;
 
4889
  return 0;
 
4890
}
 
4891
_ACEOF
 
4892
rm -f conftest$ac_exeext
 
4893
if { (ac_try="$ac_link"
 
4894
case "(($ac_try" in
 
4895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4896
  *) ac_try_echo=$ac_try;;
 
4897
esac
 
4898
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4899
$as_echo "$ac_try_echo") >&5
 
4900
  (eval "$ac_link") 2>&5
 
4901
  ac_status=$?
 
4902
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4903
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4904
  { (case "(($ac_try" in
 
4905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4906
  *) ac_try_echo=$ac_try;;
 
4907
esac
 
4908
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4909
$as_echo "$ac_try_echo") >&5
 
4910
  (eval "$ac_try") 2>&5
 
4911
  ac_status=$?
 
4912
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4913
  (exit $ac_status); }; }; then
 
4914
  :
 
4915
else
 
4916
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
4917
$as_echo "$as_me: failed program was:" >&5
 
4918
sed 's/^/| /' conftest.$ac_ext >&5
 
4919
 
 
4920
( exit $ac_status )
 
4921
ac_cv_header_stdc=no
 
4922
fi
 
4923
rm -rf conftest.dSYM
 
4924
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4925
fi
 
4926
 
 
4927
 
 
4928
fi
 
4929
fi
 
4930
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4931
$as_echo "$ac_cv_header_stdc" >&6; }
 
4932
if test $ac_cv_header_stdc = yes; then
 
4933
 
 
4934
cat >>confdefs.h <<\_ACEOF
 
4935
#define STDC_HEADERS 1
 
4936
_ACEOF
 
4937
 
 
4938
fi
 
4939
 
 
4940
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4941
 
 
4942
 
 
4943
 
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
 
 
4950
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4951
                  inttypes.h stdint.h unistd.h
 
4952
do
 
4953
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4954
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4955
$as_echo_n "checking for $ac_header... " >&6; }
 
4956
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4957
  $as_echo_n "(cached) " >&6
 
4958
else
 
4959
  cat >conftest.$ac_ext <<_ACEOF
 
4960
/* confdefs.h.  */
 
4961
_ACEOF
 
4962
cat confdefs.h >>conftest.$ac_ext
 
4963
cat >>conftest.$ac_ext <<_ACEOF
 
4964
/* end confdefs.h.  */
 
4965
$ac_includes_default
 
4966
 
 
4967
#include <$ac_header>
 
4968
_ACEOF
 
4969
rm -f conftest.$ac_objext
 
4970
if { (ac_try="$ac_compile"
 
4971
case "(($ac_try" in
 
4972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4973
  *) ac_try_echo=$ac_try;;
 
4974
esac
 
4975
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4976
$as_echo "$ac_try_echo") >&5
 
4977
  (eval "$ac_compile") 2>conftest.er1
 
4978
  ac_status=$?
 
4979
  grep -v '^ *+' conftest.er1 >conftest.err
 
4980
  rm -f conftest.er1
 
4981
  cat conftest.err >&5
 
4982
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4983
  (exit $ac_status); } && {
 
4984
         test -z "$ac_c_werror_flag" ||
 
4985
         test ! -s conftest.err
 
4986
       } && test -s conftest.$ac_objext; then
 
4987
  eval "$as_ac_Header=yes"
 
4988
else
 
4989
  $as_echo "$as_me: failed program was:" >&5
 
4990
sed 's/^/| /' conftest.$ac_ext >&5
 
4991
 
 
4992
        eval "$as_ac_Header=no"
 
4993
fi
 
4994
 
 
4995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4996
fi
 
4997
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4998
                 $as_echo "$as_val"'`
 
4999
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5000
$as_echo "$ac_res" >&6; }
 
5001
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5002
                 $as_echo "$as_val"'`
 
5003
   if test "x$as_val" = x""yes; then
 
5004
  cat >>confdefs.h <<_ACEOF
 
5005
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5006
_ACEOF
 
5007
 
 
5008
fi
 
5009
 
 
5010
done
 
5011
 
 
5012
 
 
5013
 
 
5014
for ac_header in dlfcn.h
 
5015
do
 
5016
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5017
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5018
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5019
$as_echo_n "checking for $ac_header... " >&6; }
 
5020
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5021
  $as_echo_n "(cached) " >&6
 
5022
fi
 
5023
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5024
                 $as_echo "$as_val"'`
 
5025
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5026
$as_echo "$ac_res" >&6; }
 
5027
else
 
5028
  # Is the header compilable?
 
5029
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5030
$as_echo_n "checking $ac_header usability... " >&6; }
 
5031
cat >conftest.$ac_ext <<_ACEOF
 
5032
/* confdefs.h.  */
 
5033
_ACEOF
 
5034
cat confdefs.h >>conftest.$ac_ext
 
5035
cat >>conftest.$ac_ext <<_ACEOF
 
5036
/* end confdefs.h.  */
 
5037
$ac_includes_default
 
5038
#include <$ac_header>
 
5039
_ACEOF
 
5040
rm -f conftest.$ac_objext
 
5041
if { (ac_try="$ac_compile"
 
5042
case "(($ac_try" in
 
5043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5044
  *) ac_try_echo=$ac_try;;
 
5045
esac
 
5046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5047
$as_echo "$ac_try_echo") >&5
 
5048
  (eval "$ac_compile") 2>conftest.er1
 
5049
  ac_status=$?
 
5050
  grep -v '^ *+' conftest.er1 >conftest.err
 
5051
  rm -f conftest.er1
 
5052
  cat conftest.err >&5
 
5053
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5054
  (exit $ac_status); } && {
 
5055
         test -z "$ac_c_werror_flag" ||
 
5056
         test ! -s conftest.err
 
5057
       } && test -s conftest.$ac_objext; then
 
5058
  ac_header_compiler=yes
 
5059
else
 
5060
  $as_echo "$as_me: failed program was:" >&5
 
5061
sed 's/^/| /' conftest.$ac_ext >&5
 
5062
 
 
5063
        ac_header_compiler=no
 
5064
fi
 
5065
 
 
5066
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5067
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5068
$as_echo "$ac_header_compiler" >&6; }
 
5069
 
 
5070
# Is the header present?
 
5071
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5072
$as_echo_n "checking $ac_header presence... " >&6; }
 
5073
cat >conftest.$ac_ext <<_ACEOF
 
5074
/* confdefs.h.  */
 
5075
_ACEOF
 
5076
cat confdefs.h >>conftest.$ac_ext
 
5077
cat >>conftest.$ac_ext <<_ACEOF
 
5078
/* end confdefs.h.  */
 
5079
#include <$ac_header>
 
5080
_ACEOF
 
5081
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5082
case "(($ac_try" in
 
5083
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5084
  *) ac_try_echo=$ac_try;;
 
5085
esac
 
5086
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5087
$as_echo "$ac_try_echo") >&5
 
5088
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5089
  ac_status=$?
 
5090
  grep -v '^ *+' conftest.er1 >conftest.err
 
5091
  rm -f conftest.er1
 
5092
  cat conftest.err >&5
 
5093
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5094
  (exit $ac_status); } >/dev/null && {
 
5095
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5096
         test ! -s conftest.err
 
5097
       }; then
 
5098
  ac_header_preproc=yes
 
5099
else
 
5100
  $as_echo "$as_me: failed program was:" >&5
 
5101
sed 's/^/| /' conftest.$ac_ext >&5
 
5102
 
 
5103
  ac_header_preproc=no
 
5104
fi
 
5105
 
 
5106
rm -f conftest.err conftest.$ac_ext
 
5107
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5108
$as_echo "$ac_header_preproc" >&6; }
 
5109
 
 
5110
# So?  What about this header?
 
5111
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5112
  yes:no: )
 
5113
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5114
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5115
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5116
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5117
    ac_header_preproc=yes
 
5118
    ;;
 
5119
  no:yes:* )
 
5120
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5121
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5122
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5123
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5124
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5125
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5126
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5127
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5128
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5129
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5130
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5131
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5132
 
 
5133
    ;;
 
5134
esac
 
5135
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5136
$as_echo_n "checking for $ac_header... " >&6; }
 
5137
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5138
  $as_echo_n "(cached) " >&6
 
5139
else
 
5140
  eval "$as_ac_Header=\$ac_header_preproc"
 
5141
fi
 
5142
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5143
                 $as_echo "$as_val"'`
 
5144
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5145
$as_echo "$ac_res" >&6; }
 
5146
 
 
5147
fi
 
5148
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5149
                 $as_echo "$as_val"'`
 
5150
   if test "x$as_val" = x""yes; then
 
5151
  cat >>confdefs.h <<_ACEOF
 
5152
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5153
_ACEOF
 
5154
 
 
5155
fi
 
5156
 
 
5157
done
 
5158
 
 
5159
ac_ext=cpp
 
5160
ac_cpp='$CXXCPP $CPPFLAGS'
 
5161
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5162
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5163
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5164
if test -z "$CXX"; then
 
5165
  if test -n "$CCC"; then
 
5166
    CXX=$CCC
 
5167
  else
 
5168
    if test -n "$ac_tool_prefix"; then
 
5169
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5170
  do
 
5171
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5172
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5173
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5174
$as_echo_n "checking for $ac_word... " >&6; }
 
5175
if test "${ac_cv_prog_CXX+set}" = set; then
 
5176
  $as_echo_n "(cached) " >&6
 
5177
else
 
5178
  if test -n "$CXX"; then
 
5179
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5180
else
 
5181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5182
for as_dir in $PATH
 
5183
do
 
5184
  IFS=$as_save_IFS
 
5185
  test -z "$as_dir" && as_dir=.
 
5186
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5187
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5188
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5189
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5190
    break 2
 
5191
  fi
 
5192
done
 
5193
done
 
5194
IFS=$as_save_IFS
 
5195
 
 
5196
fi
 
5197
fi
 
5198
CXX=$ac_cv_prog_CXX
 
5199
if test -n "$CXX"; then
 
5200
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
5201
$as_echo "$CXX" >&6; }
 
5202
else
 
5203
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5204
$as_echo "no" >&6; }
 
5205
fi
 
5206
 
 
5207
 
 
5208
    test -n "$CXX" && break
 
5209
  done
 
5210
fi
 
5211
if test -z "$CXX"; then
 
5212
  ac_ct_CXX=$CXX
 
5213
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5214
do
 
5215
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5216
set dummy $ac_prog; ac_word=$2
 
5217
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5218
$as_echo_n "checking for $ac_word... " >&6; }
 
5219
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5220
  $as_echo_n "(cached) " >&6
 
5221
else
 
5222
  if test -n "$ac_ct_CXX"; then
 
5223
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5224
else
 
5225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5226
for as_dir in $PATH
 
5227
do
 
5228
  IFS=$as_save_IFS
 
5229
  test -z "$as_dir" && as_dir=.
 
5230
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5231
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5232
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5233
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5234
    break 2
 
5235
  fi
 
5236
done
 
5237
done
 
5238
IFS=$as_save_IFS
 
5239
 
 
5240
fi
 
5241
fi
 
5242
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5243
if test -n "$ac_ct_CXX"; then
 
5244
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5245
$as_echo "$ac_ct_CXX" >&6; }
 
5246
else
 
5247
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5248
$as_echo "no" >&6; }
 
5249
fi
 
5250
 
 
5251
 
 
5252
  test -n "$ac_ct_CXX" && break
 
5253
done
 
5254
 
 
5255
  if test "x$ac_ct_CXX" = x; then
 
5256
    CXX="g++"
 
5257
  else
 
5258
    case $cross_compiling:$ac_tool_warned in
 
5259
yes:)
 
5260
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5261
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5262
ac_tool_warned=yes ;;
 
5263
esac
 
5264
    CXX=$ac_ct_CXX
 
5265
  fi
 
5266
fi
 
5267
 
 
5268
  fi
 
5269
fi
 
5270
# Provide some information about the compiler.
 
5271
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5272
set X $ac_compile
 
5273
ac_compiler=$2
 
5274
{ (ac_try="$ac_compiler --version >&5"
 
5275
case "(($ac_try" in
 
5276
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5277
  *) ac_try_echo=$ac_try;;
 
5278
esac
 
5279
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5280
$as_echo "$ac_try_echo") >&5
 
5281
  (eval "$ac_compiler --version >&5") 2>&5
 
5282
  ac_status=$?
 
5283
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5284
  (exit $ac_status); }
 
5285
{ (ac_try="$ac_compiler -v >&5"
 
5286
case "(($ac_try" in
 
5287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5288
  *) ac_try_echo=$ac_try;;
 
5289
esac
 
5290
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5291
$as_echo "$ac_try_echo") >&5
 
5292
  (eval "$ac_compiler -v >&5") 2>&5
 
5293
  ac_status=$?
 
5294
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5295
  (exit $ac_status); }
 
5296
{ (ac_try="$ac_compiler -V >&5"
 
5297
case "(($ac_try" in
 
5298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5299
  *) ac_try_echo=$ac_try;;
 
5300
esac
 
5301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5302
$as_echo "$ac_try_echo") >&5
 
5303
  (eval "$ac_compiler -V >&5") 2>&5
 
5304
  ac_status=$?
 
5305
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5306
  (exit $ac_status); }
 
5307
 
 
5308
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5309
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
5310
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5311
  $as_echo_n "(cached) " >&6
 
5312
else
 
5313
  cat >conftest.$ac_ext <<_ACEOF
 
5314
/* confdefs.h.  */
 
5315
_ACEOF
 
5316
cat confdefs.h >>conftest.$ac_ext
 
5317
cat >>conftest.$ac_ext <<_ACEOF
 
5318
/* end confdefs.h.  */
 
5319
 
 
5320
int
 
5321
main ()
 
5322
{
 
5323
#ifndef __GNUC__
 
5324
       choke me
 
5325
#endif
 
5326
 
 
5327
  ;
 
5328
  return 0;
 
5329
}
 
5330
_ACEOF
 
5331
rm -f conftest.$ac_objext
 
5332
if { (ac_try="$ac_compile"
 
5333
case "(($ac_try" in
 
5334
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5335
  *) ac_try_echo=$ac_try;;
 
5336
esac
 
5337
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5338
$as_echo "$ac_try_echo") >&5
 
5339
  (eval "$ac_compile") 2>conftest.er1
 
5340
  ac_status=$?
 
5341
  grep -v '^ *+' conftest.er1 >conftest.err
 
5342
  rm -f conftest.er1
 
5343
  cat conftest.err >&5
 
5344
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5345
  (exit $ac_status); } && {
 
5346
         test -z "$ac_cxx_werror_flag" ||
 
5347
         test ! -s conftest.err
 
5348
       } && test -s conftest.$ac_objext; then
 
5349
  ac_compiler_gnu=yes
 
5350
else
 
5351
  $as_echo "$as_me: failed program was:" >&5
 
5352
sed 's/^/| /' conftest.$ac_ext >&5
 
5353
 
 
5354
        ac_compiler_gnu=no
 
5355
fi
 
5356
 
 
5357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5358
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5359
 
 
5360
fi
 
5361
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5362
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
5363
if test $ac_compiler_gnu = yes; then
 
5364
  GXX=yes
 
5365
else
 
5366
  GXX=
 
5367
fi
 
5368
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5369
ac_save_CXXFLAGS=$CXXFLAGS
 
5370
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5371
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
5372
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5373
  $as_echo_n "(cached) " >&6
 
5374
else
 
5375
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5376
   ac_cxx_werror_flag=yes
 
5377
   ac_cv_prog_cxx_g=no
 
5378
   CXXFLAGS="-g"
 
5379
   cat >conftest.$ac_ext <<_ACEOF
 
5380
/* confdefs.h.  */
 
5381
_ACEOF
 
5382
cat confdefs.h >>conftest.$ac_ext
 
5383
cat >>conftest.$ac_ext <<_ACEOF
 
5384
/* end confdefs.h.  */
 
5385
 
 
5386
int
 
5387
main ()
 
5388
{
 
5389
 
 
5390
  ;
 
5391
  return 0;
 
5392
}
 
5393
_ACEOF
 
5394
rm -f conftest.$ac_objext
 
5395
if { (ac_try="$ac_compile"
 
5396
case "(($ac_try" in
 
5397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5398
  *) ac_try_echo=$ac_try;;
 
5399
esac
 
5400
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5401
$as_echo "$ac_try_echo") >&5
 
5402
  (eval "$ac_compile") 2>conftest.er1
 
5403
  ac_status=$?
 
5404
  grep -v '^ *+' conftest.er1 >conftest.err
 
5405
  rm -f conftest.er1
 
5406
  cat conftest.err >&5
 
5407
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5408
  (exit $ac_status); } && {
 
5409
         test -z "$ac_cxx_werror_flag" ||
 
5410
         test ! -s conftest.err
 
5411
       } && test -s conftest.$ac_objext; then
 
5412
  ac_cv_prog_cxx_g=yes
 
5413
else
 
5414
  $as_echo "$as_me: failed program was:" >&5
 
5415
sed 's/^/| /' conftest.$ac_ext >&5
 
5416
 
 
5417
        CXXFLAGS=""
 
5418
      cat >conftest.$ac_ext <<_ACEOF
 
5419
/* confdefs.h.  */
 
5420
_ACEOF
 
5421
cat confdefs.h >>conftest.$ac_ext
 
5422
cat >>conftest.$ac_ext <<_ACEOF
 
5423
/* end confdefs.h.  */
 
5424
 
 
5425
int
 
5426
main ()
 
5427
{
 
5428
 
 
5429
  ;
 
5430
  return 0;
 
5431
}
 
5432
_ACEOF
 
5433
rm -f conftest.$ac_objext
 
5434
if { (ac_try="$ac_compile"
 
5435
case "(($ac_try" in
 
5436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5437
  *) ac_try_echo=$ac_try;;
 
5438
esac
 
5439
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5440
$as_echo "$ac_try_echo") >&5
 
5441
  (eval "$ac_compile") 2>conftest.er1
 
5442
  ac_status=$?
 
5443
  grep -v '^ *+' conftest.er1 >conftest.err
 
5444
  rm -f conftest.er1
 
5445
  cat conftest.err >&5
 
5446
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5447
  (exit $ac_status); } && {
 
5448
         test -z "$ac_cxx_werror_flag" ||
 
5449
         test ! -s conftest.err
 
5450
       } && test -s conftest.$ac_objext; then
 
5451
  :
 
5452
else
 
5453
  $as_echo "$as_me: failed program was:" >&5
 
5454
sed 's/^/| /' conftest.$ac_ext >&5
 
5455
 
 
5456
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5457
         CXXFLAGS="-g"
 
5458
         cat >conftest.$ac_ext <<_ACEOF
 
5459
/* confdefs.h.  */
 
5460
_ACEOF
 
5461
cat confdefs.h >>conftest.$ac_ext
 
5462
cat >>conftest.$ac_ext <<_ACEOF
 
5463
/* end confdefs.h.  */
 
5464
 
 
5465
int
 
5466
main ()
 
5467
{
 
5468
 
 
5469
  ;
 
5470
  return 0;
 
5471
}
 
5472
_ACEOF
 
5473
rm -f conftest.$ac_objext
 
5474
if { (ac_try="$ac_compile"
 
5475
case "(($ac_try" in
 
5476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5477
  *) ac_try_echo=$ac_try;;
 
5478
esac
 
5479
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5480
$as_echo "$ac_try_echo") >&5
 
5481
  (eval "$ac_compile") 2>conftest.er1
 
5482
  ac_status=$?
 
5483
  grep -v '^ *+' conftest.er1 >conftest.err
 
5484
  rm -f conftest.er1
 
5485
  cat conftest.err >&5
 
5486
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5487
  (exit $ac_status); } && {
 
5488
         test -z "$ac_cxx_werror_flag" ||
 
5489
         test ! -s conftest.err
 
5490
       } && test -s conftest.$ac_objext; then
 
5491
  ac_cv_prog_cxx_g=yes
 
5492
else
 
5493
  $as_echo "$as_me: failed program was:" >&5
 
5494
sed 's/^/| /' conftest.$ac_ext >&5
 
5495
 
 
5496
 
 
5497
fi
 
5498
 
 
5499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5500
fi
 
5501
 
 
5502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5503
fi
 
5504
 
 
5505
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5506
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5507
fi
 
5508
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5509
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
5510
if test "$ac_test_CXXFLAGS" = set; then
 
5511
  CXXFLAGS=$ac_save_CXXFLAGS
 
5512
elif test $ac_cv_prog_cxx_g = yes; then
 
5513
  if test "$GXX" = yes; then
 
5514
    CXXFLAGS="-g -O2"
 
5515
  else
 
5516
    CXXFLAGS="-g"
 
5517
  fi
 
5518
else
 
5519
  if test "$GXX" = yes; then
 
5520
    CXXFLAGS="-O2"
 
5521
  else
 
5522
    CXXFLAGS=
 
5523
  fi
 
5524
fi
 
5525
ac_ext=cpp
 
5526
ac_cpp='$CXXCPP $CPPFLAGS'
 
5527
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5528
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5529
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5530
 
 
5531
 
 
5532
 
 
5533
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5534
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5535
    (test "X$CXX" != "Xg++"))) ; then
 
5536
  ac_ext=cpp
 
5537
ac_cpp='$CXXCPP $CPPFLAGS'
 
5538
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5539
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5540
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5541
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5542
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
5543
if test -z "$CXXCPP"; then
 
5544
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5545
  $as_echo_n "(cached) " >&6
 
5546
else
 
5547
      # Double quotes because CXXCPP needs to be expanded
 
5548
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5549
    do
 
5550
      ac_preproc_ok=false
 
5551
for ac_cxx_preproc_warn_flag in '' yes
 
5552
do
 
5553
  # Use a header file that comes with gcc, so configuring glibc
 
5554
  # with a fresh cross-compiler works.
 
5555
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5556
  # <limits.h> exists even on freestanding compilers.
 
5557
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5558
  # not just through cpp. "Syntax error" is here to catch this case.
 
5559
  cat >conftest.$ac_ext <<_ACEOF
 
5560
/* confdefs.h.  */
 
5561
_ACEOF
 
5562
cat confdefs.h >>conftest.$ac_ext
 
5563
cat >>conftest.$ac_ext <<_ACEOF
 
5564
/* end confdefs.h.  */
 
5565
#ifdef __STDC__
 
5566
# include <limits.h>
 
5567
#else
 
5568
# include <assert.h>
 
5569
#endif
 
5570
                     Syntax error
 
5571
_ACEOF
 
5572
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5573
case "(($ac_try" in
 
5574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5575
  *) ac_try_echo=$ac_try;;
 
5576
esac
 
5577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5578
$as_echo "$ac_try_echo") >&5
 
5579
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5580
  ac_status=$?
 
5581
  grep -v '^ *+' conftest.er1 >conftest.err
 
5582
  rm -f conftest.er1
 
5583
  cat conftest.err >&5
 
5584
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5585
  (exit $ac_status); } >/dev/null && {
 
5586
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5587
         test ! -s conftest.err
 
5588
       }; then
 
5589
  :
 
5590
else
 
5591
  $as_echo "$as_me: failed program was:" >&5
 
5592
sed 's/^/| /' conftest.$ac_ext >&5
 
5593
 
 
5594
  # Broken: fails on valid input.
 
5595
continue
 
5596
fi
 
5597
 
 
5598
rm -f conftest.err conftest.$ac_ext
 
5599
 
 
5600
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5601
  # can be detected and how.
 
5602
  cat >conftest.$ac_ext <<_ACEOF
 
5603
/* confdefs.h.  */
 
5604
_ACEOF
 
5605
cat confdefs.h >>conftest.$ac_ext
 
5606
cat >>conftest.$ac_ext <<_ACEOF
 
5607
/* end confdefs.h.  */
 
5608
#include <ac_nonexistent.h>
 
5609
_ACEOF
 
5610
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5611
case "(($ac_try" in
 
5612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5613
  *) ac_try_echo=$ac_try;;
 
5614
esac
 
5615
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5616
$as_echo "$ac_try_echo") >&5
 
5617
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5618
  ac_status=$?
 
5619
  grep -v '^ *+' conftest.er1 >conftest.err
 
5620
  rm -f conftest.er1
 
5621
  cat conftest.err >&5
 
5622
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5623
  (exit $ac_status); } >/dev/null && {
 
5624
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5625
         test ! -s conftest.err
 
5626
       }; then
 
5627
  # Broken: success on invalid input.
 
5628
continue
 
5629
else
 
5630
  $as_echo "$as_me: failed program was:" >&5
 
5631
sed 's/^/| /' conftest.$ac_ext >&5
 
5632
 
 
5633
  # Passes both tests.
 
5634
ac_preproc_ok=:
 
5635
break
 
5636
fi
 
5637
 
 
5638
rm -f conftest.err conftest.$ac_ext
 
5639
 
 
5640
done
 
5641
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5642
rm -f conftest.err conftest.$ac_ext
 
5643
if $ac_preproc_ok; then
 
5644
  break
 
5645
fi
 
5646
 
 
5647
    done
 
5648
    ac_cv_prog_CXXCPP=$CXXCPP
 
5649
 
 
5650
fi
 
5651
  CXXCPP=$ac_cv_prog_CXXCPP
 
5652
else
 
5653
  ac_cv_prog_CXXCPP=$CXXCPP
 
5654
fi
 
5655
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5656
$as_echo "$CXXCPP" >&6; }
 
5657
ac_preproc_ok=false
 
5658
for ac_cxx_preproc_warn_flag in '' yes
 
5659
do
 
5660
  # Use a header file that comes with gcc, so configuring glibc
 
5661
  # with a fresh cross-compiler works.
 
5662
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5663
  # <limits.h> exists even on freestanding compilers.
 
5664
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5665
  # not just through cpp. "Syntax error" is here to catch this case.
 
5666
  cat >conftest.$ac_ext <<_ACEOF
 
5667
/* confdefs.h.  */
 
5668
_ACEOF
 
5669
cat confdefs.h >>conftest.$ac_ext
 
5670
cat >>conftest.$ac_ext <<_ACEOF
 
5671
/* end confdefs.h.  */
 
5672
#ifdef __STDC__
 
5673
# include <limits.h>
 
5674
#else
 
5675
# include <assert.h>
 
5676
#endif
 
5677
                     Syntax error
 
5678
_ACEOF
 
5679
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5680
case "(($ac_try" in
 
5681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5682
  *) ac_try_echo=$ac_try;;
 
5683
esac
 
5684
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5685
$as_echo "$ac_try_echo") >&5
 
5686
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5687
  ac_status=$?
 
5688
  grep -v '^ *+' conftest.er1 >conftest.err
 
5689
  rm -f conftest.er1
 
5690
  cat conftest.err >&5
 
5691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5692
  (exit $ac_status); } >/dev/null && {
 
5693
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5694
         test ! -s conftest.err
 
5695
       }; then
 
5696
  :
 
5697
else
 
5698
  $as_echo "$as_me: failed program was:" >&5
 
5699
sed 's/^/| /' conftest.$ac_ext >&5
 
5700
 
 
5701
  # Broken: fails on valid input.
 
5702
continue
 
5703
fi
 
5704
 
 
5705
rm -f conftest.err conftest.$ac_ext
 
5706
 
 
5707
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5708
  # can be detected and how.
 
5709
  cat >conftest.$ac_ext <<_ACEOF
 
5710
/* confdefs.h.  */
 
5711
_ACEOF
 
5712
cat confdefs.h >>conftest.$ac_ext
 
5713
cat >>conftest.$ac_ext <<_ACEOF
 
5714
/* end confdefs.h.  */
 
5715
#include <ac_nonexistent.h>
 
5716
_ACEOF
 
5717
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5718
case "(($ac_try" in
 
5719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5720
  *) ac_try_echo=$ac_try;;
 
5721
esac
 
5722
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5723
$as_echo "$ac_try_echo") >&5
 
5724
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5725
  ac_status=$?
 
5726
  grep -v '^ *+' conftest.er1 >conftest.err
 
5727
  rm -f conftest.er1
 
5728
  cat conftest.err >&5
 
5729
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5730
  (exit $ac_status); } >/dev/null && {
 
5731
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5732
         test ! -s conftest.err
 
5733
       }; then
 
5734
  # Broken: success on invalid input.
 
5735
continue
 
5736
else
 
5737
  $as_echo "$as_me: failed program was:" >&5
 
5738
sed 's/^/| /' conftest.$ac_ext >&5
 
5739
 
 
5740
  # Passes both tests.
 
5741
ac_preproc_ok=:
 
5742
break
 
5743
fi
 
5744
 
 
5745
rm -f conftest.err conftest.$ac_ext
 
5746
 
 
5747
done
 
5748
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5749
rm -f conftest.err conftest.$ac_ext
 
5750
if $ac_preproc_ok; then
 
5751
  :
 
5752
else
 
5753
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
5754
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5755
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5756
See \`config.log' for more details." >&5
 
5757
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5758
See \`config.log' for more details." >&2;}
 
5759
   { (exit 1); exit 1; }; }; }
 
5760
fi
 
5761
 
 
5762
ac_ext=cpp
 
5763
ac_cpp='$CXXCPP $CPPFLAGS'
 
5764
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5765
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5766
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5767
 
 
5768
fi
 
5769
 
 
5770
 
 
5771
ac_ext=f
 
5772
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5773
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5774
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5775
if test -n "$ac_tool_prefix"; then
 
5776
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5777
  do
 
5778
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5779
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5780
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5781
$as_echo_n "checking for $ac_word... " >&6; }
 
5782
if test "${ac_cv_prog_F77+set}" = set; then
 
5783
  $as_echo_n "(cached) " >&6
 
5784
else
 
5785
  if test -n "$F77"; then
 
5786
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5787
else
 
5788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5789
for as_dir in $PATH
 
5790
do
 
5791
  IFS=$as_save_IFS
 
5792
  test -z "$as_dir" && as_dir=.
 
5793
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5794
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5795
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5796
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5797
    break 2
 
5798
  fi
 
5799
done
 
5800
done
 
5801
IFS=$as_save_IFS
 
5802
 
 
5803
fi
 
5804
fi
 
5805
F77=$ac_cv_prog_F77
 
5806
if test -n "$F77"; then
 
5807
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
5808
$as_echo "$F77" >&6; }
 
5809
else
 
5810
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5811
$as_echo "no" >&6; }
 
5812
fi
 
5813
 
 
5814
 
 
5815
    test -n "$F77" && break
 
5816
  done
 
5817
fi
 
5818
if test -z "$F77"; then
 
5819
  ac_ct_F77=$F77
 
5820
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5821
do
 
5822
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5823
set dummy $ac_prog; ac_word=$2
 
5824
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5825
$as_echo_n "checking for $ac_word... " >&6; }
 
5826
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5827
  $as_echo_n "(cached) " >&6
 
5828
else
 
5829
  if test -n "$ac_ct_F77"; then
 
5830
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5831
else
 
5832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5833
for as_dir in $PATH
 
5834
do
 
5835
  IFS=$as_save_IFS
 
5836
  test -z "$as_dir" && as_dir=.
 
5837
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5838
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5839
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5840
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5841
    break 2
 
5842
  fi
 
5843
done
 
5844
done
 
5845
IFS=$as_save_IFS
 
5846
 
 
5847
fi
 
5848
fi
 
5849
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5850
if test -n "$ac_ct_F77"; then
 
5851
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5852
$as_echo "$ac_ct_F77" >&6; }
 
5853
else
 
5854
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5855
$as_echo "no" >&6; }
 
5856
fi
 
5857
 
 
5858
 
 
5859
  test -n "$ac_ct_F77" && break
 
5860
done
 
5861
 
 
5862
  if test "x$ac_ct_F77" = x; then
 
5863
    F77=""
 
5864
  else
 
5865
    case $cross_compiling:$ac_tool_warned in
 
5866
yes:)
 
5867
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5868
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5869
ac_tool_warned=yes ;;
 
5870
esac
 
5871
    F77=$ac_ct_F77
 
5872
  fi
 
5873
fi
 
5874
 
 
5875
 
 
5876
# Provide some information about the compiler.
 
5877
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
5878
set X $ac_compile
 
5879
ac_compiler=$2
 
5880
{ (ac_try="$ac_compiler --version >&5"
 
5881
case "(($ac_try" in
 
5882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5883
  *) ac_try_echo=$ac_try;;
 
5884
esac
 
5885
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5886
$as_echo "$ac_try_echo") >&5
 
5887
  (eval "$ac_compiler --version >&5") 2>&5
 
5888
  ac_status=$?
 
5889
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5890
  (exit $ac_status); }
 
5891
{ (ac_try="$ac_compiler -v >&5"
 
5892
case "(($ac_try" in
 
5893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5894
  *) ac_try_echo=$ac_try;;
 
5895
esac
 
5896
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5897
$as_echo "$ac_try_echo") >&5
 
5898
  (eval "$ac_compiler -v >&5") 2>&5
 
5899
  ac_status=$?
 
5900
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5901
  (exit $ac_status); }
 
5902
{ (ac_try="$ac_compiler -V >&5"
 
5903
case "(($ac_try" in
 
5904
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5905
  *) ac_try_echo=$ac_try;;
 
5906
esac
 
5907
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5908
$as_echo "$ac_try_echo") >&5
 
5909
  (eval "$ac_compiler -V >&5") 2>&5
 
5910
  ac_status=$?
 
5911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5912
  (exit $ac_status); }
 
5913
rm -f a.out
 
5914
 
 
5915
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5916
# input file.  (Note that this only needs to work for GNU compilers.)
 
5917
ac_save_ext=$ac_ext
 
5918
ac_ext=F
 
5919
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5920
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
5921
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5922
  $as_echo_n "(cached) " >&6
 
5923
else
 
5924
  cat >conftest.$ac_ext <<_ACEOF
 
5925
      program main
 
5926
#ifndef __GNUC__
 
5927
       choke me
 
5928
#endif
 
5929
 
 
5930
      end
 
5931
_ACEOF
 
5932
rm -f conftest.$ac_objext
 
5933
if { (ac_try="$ac_compile"
 
5934
case "(($ac_try" in
 
5935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5936
  *) ac_try_echo=$ac_try;;
 
5937
esac
 
5938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5939
$as_echo "$ac_try_echo") >&5
 
5940
  (eval "$ac_compile") 2>conftest.er1
 
5941
  ac_status=$?
 
5942
  grep -v '^ *+' conftest.er1 >conftest.err
 
5943
  rm -f conftest.er1
 
5944
  cat conftest.err >&5
 
5945
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5946
  (exit $ac_status); } && {
 
5947
         test -z "$ac_f77_werror_flag" ||
 
5948
         test ! -s conftest.err
 
5949
       } && test -s conftest.$ac_objext; then
 
5950
  ac_compiler_gnu=yes
 
5951
else
 
5952
  $as_echo "$as_me: failed program was:" >&5
 
5953
sed 's/^/| /' conftest.$ac_ext >&5
 
5954
 
 
5955
        ac_compiler_gnu=no
 
5956
fi
 
5957
 
 
5958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5959
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5960
 
 
5961
fi
 
5962
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5963
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
5964
ac_ext=$ac_save_ext
 
5965
ac_test_FFLAGS=${FFLAGS+set}
 
5966
ac_save_FFLAGS=$FFLAGS
 
5967
FFLAGS=
 
5968
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5969
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
5970
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5971
  $as_echo_n "(cached) " >&6
 
5972
else
 
5973
  FFLAGS=-g
 
5974
cat >conftest.$ac_ext <<_ACEOF
 
5975
      program main
 
5976
 
 
5977
      end
 
5978
_ACEOF
 
5979
rm -f conftest.$ac_objext
 
5980
if { (ac_try="$ac_compile"
 
5981
case "(($ac_try" in
 
5982
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5983
  *) ac_try_echo=$ac_try;;
 
5984
esac
 
5985
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5986
$as_echo "$ac_try_echo") >&5
 
5987
  (eval "$ac_compile") 2>conftest.er1
 
5988
  ac_status=$?
 
5989
  grep -v '^ *+' conftest.er1 >conftest.err
 
5990
  rm -f conftest.er1
 
5991
  cat conftest.err >&5
 
5992
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5993
  (exit $ac_status); } && {
 
5994
         test -z "$ac_f77_werror_flag" ||
 
5995
         test ! -s conftest.err
 
5996
       } && test -s conftest.$ac_objext; then
 
5997
  ac_cv_prog_f77_g=yes
 
5998
else
 
5999
  $as_echo "$as_me: failed program was:" >&5
 
6000
sed 's/^/| /' conftest.$ac_ext >&5
 
6001
 
 
6002
        ac_cv_prog_f77_g=no
 
6003
fi
 
6004
 
 
6005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6006
 
 
6007
fi
 
6008
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6009
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
6010
if test "$ac_test_FFLAGS" = set; then
 
6011
  FFLAGS=$ac_save_FFLAGS
 
6012
elif test $ac_cv_prog_f77_g = yes; then
 
6013
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6014
    FFLAGS="-g -O2"
 
6015
  else
 
6016
    FFLAGS="-g"
 
6017
  fi
 
6018
else
 
6019
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6020
    FFLAGS="-O2"
 
6021
  else
 
6022
    FFLAGS=
 
6023
  fi
 
6024
fi
 
6025
 
 
6026
if test $ac_compiler_gnu = yes; then
 
6027
  G77=yes
 
6028
else
 
6029
  G77=
 
6030
fi
 
6031
ac_ext=c
 
6032
ac_cpp='$CPP $CPPFLAGS'
 
6033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6036
 
 
6037
 
 
6038
 
 
6039
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6040
# find the maximum length of command line arguments
 
6041
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6042
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6043
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6044
  $as_echo_n "(cached) " >&6
 
6045
else
 
6046
    i=0
 
6047
  teststring="ABCD"
 
6048
 
 
6049
  case $build_os in
 
6050
  msdosdjgpp*)
 
6051
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6052
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6053
    # during glob expansion).  Even if it were fixed, the result of this
 
6054
    # check would be larger than it should be.
 
6055
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6056
    ;;
 
6057
 
 
6058
  gnu*)
 
6059
    # Under GNU Hurd, this test is not required because there is
 
6060
    # no limit to the length of command line arguments.
 
6061
    # Libtool will interpret -1 as no limit whatsoever
 
6062
    lt_cv_sys_max_cmd_len=-1;
 
6063
    ;;
 
6064
 
 
6065
  cygwin* | mingw*)
 
6066
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6067
    # about 5 minutes as the teststring grows exponentially.
 
6068
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6069
    # you end up with a "frozen" computer, even though with patience
 
6070
    # the test eventually succeeds (with a max line length of 256k).
 
6071
    # Instead, let's just punt: use the minimum linelength reported by
 
6072
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6073
    lt_cv_sys_max_cmd_len=8192;
 
6074
    ;;
 
6075
 
 
6076
  amigaos*)
 
6077
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6078
    # So we just punt and use a minimum line length of 8192.
 
6079
    lt_cv_sys_max_cmd_len=8192;
 
6080
    ;;
 
6081
 
 
6082
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6083
    # This has been around since 386BSD, at least.  Likely further.
 
6084
    if test -x /sbin/sysctl; then
 
6085
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6086
    elif test -x /usr/sbin/sysctl; then
 
6087
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6088
    else
 
6089
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6090
    fi
 
6091
    # And add a safety zone
 
6092
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6093
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6094
    ;;
 
6095
 
 
6096
  interix*)
 
6097
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6098
    lt_cv_sys_max_cmd_len=196608
 
6099
    ;;
 
6100
 
 
6101
  osf*)
 
6102
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6103
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6104
    # nice to cause kernel panics so lets avoid the loop below.
 
6105
    # First set a reasonable default.
 
6106
    lt_cv_sys_max_cmd_len=16384
 
6107
    #
 
6108
    if test -x /sbin/sysconfig; then
 
6109
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6110
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6111
      esac
 
6112
    fi
 
6113
    ;;
 
6114
  sco3.2v5*)
 
6115
    lt_cv_sys_max_cmd_len=102400
 
6116
    ;;
 
6117
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6118
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6119
    if test -n "$kargmax"; then
 
6120
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6121
    else
 
6122
      lt_cv_sys_max_cmd_len=32768
 
6123
    fi
 
6124
    ;;
 
6125
  *)
 
6126
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6127
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6128
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6129
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6130
    else
 
6131
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6132
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6133
               = "XX$teststring") >/dev/null 2>&1 &&
 
6134
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6135
              lt_cv_sys_max_cmd_len=$new_result &&
 
6136
              test $i != 17 # 1/2 MB should be enough
 
6137
      do
 
6138
        i=`expr $i + 1`
 
6139
        teststring=$teststring$teststring
 
6140
      done
 
6141
      teststring=
 
6142
      # Add a significant safety factor because C++ compilers can tack on massive
 
6143
      # amounts of additional arguments before passing them to the linker.
 
6144
      # It appears as though 1/2 is a usable value.
 
6145
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6146
    fi
 
6147
    ;;
 
6148
  esac
 
6149
 
 
6150
fi
 
6151
 
 
6152
if test -n $lt_cv_sys_max_cmd_len ; then
 
6153
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6154
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6155
else
 
6156
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
6157
$as_echo "none" >&6; }
 
6158
fi
 
6159
 
 
6160
 
 
6161
 
 
6162
 
 
6163
 
 
6164
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6165
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6166
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6167
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6168
  $as_echo_n "(cached) " >&6
 
6169
else
 
6170
 
 
6171
# These are sane defaults that work on at least a few old systems.
 
6172
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6173
 
 
6174
# Character class describing NM global symbol codes.
 
6175
symcode='[BCDEGRST]'
 
6176
 
 
6177
# Regexp to match symbols that can be accessed directly from C.
 
6178
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6179
 
 
6180
# Transform an extracted symbol line into a proper C declaration
 
6181
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6182
 
 
6183
# Transform an extracted symbol line into symbol name and symbol address
 
6184
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'"
 
6185
 
 
6186
# Define system-specific variables.
 
6187
case $host_os in
 
6188
aix*)
 
6189
  symcode='[BCDT]'
 
6190
  ;;
 
6191
cygwin* | mingw* | pw32*)
 
6192
  symcode='[ABCDGISTW]'
 
6193
  ;;
 
6194
hpux*) # Its linker distinguishes data from code symbols
 
6195
  if test "$host_cpu" = ia64; then
 
6196
    symcode='[ABCDEGRST]'
 
6197
  fi
 
6198
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6199
  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'"
 
6200
  ;;
 
6201
linux* | k*bsd*-gnu)
 
6202
  if test "$host_cpu" = ia64; then
 
6203
    symcode='[ABCDGIRSTW]'
 
6204
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6205
    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'"
 
6206
  fi
 
6207
  ;;
 
6208
irix* | nonstopux*)
 
6209
  symcode='[BCDEGRST]'
 
6210
  ;;
 
6211
osf*)
 
6212
  symcode='[BCDEGQRST]'
 
6213
  ;;
 
6214
solaris*)
 
6215
  symcode='[BDRT]'
 
6216
  ;;
 
6217
sco3.2v5*)
 
6218
  symcode='[DT]'
 
6219
  ;;
 
6220
sysv4.2uw2*)
 
6221
  symcode='[DT]'
 
6222
  ;;
 
6223
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6224
  symcode='[ABDT]'
 
6225
  ;;
 
6226
sysv4)
 
6227
  symcode='[DFNSTU]'
 
6228
  ;;
 
6229
esac
 
6230
 
 
6231
# Handle CRLF in mingw tool chain
 
6232
opt_cr=
 
6233
case $build_os in
 
6234
mingw*)
 
6235
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6236
  ;;
 
6237
esac
 
6238
 
 
6239
# If we're using GNU nm, then use its standard symbol codes.
 
6240
case `$NM -V 2>&1` in
 
6241
*GNU* | *'with BFD'*)
 
6242
  symcode='[ABCDGIRSTW]' ;;
 
6243
esac
 
6244
 
 
6245
# Try without a prefix undercore, then with it.
 
6246
for ac_symprfx in "" "_"; do
 
6247
 
 
6248
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6249
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6250
 
 
6251
  # Write the raw and C identifiers.
 
6252
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6253
 
 
6254
  # Check to see that the pipe works correctly.
 
6255
  pipe_works=no
 
6256
 
 
6257
  rm -f conftest*
 
6258
  cat > conftest.$ac_ext <<EOF
 
6259
#ifdef __cplusplus
 
6260
extern "C" {
 
6261
#endif
 
6262
char nm_test_var;
 
6263
void nm_test_func(){}
 
6264
#ifdef __cplusplus
 
6265
}
 
6266
#endif
 
6267
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6268
EOF
 
6269
 
 
6270
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6271
  (eval $ac_compile) 2>&5
 
6272
  ac_status=$?
 
6273
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6274
  (exit $ac_status); }; then
 
6275
    # Now try to grab the symbols.
 
6276
    nlist=conftest.nm
 
6277
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6278
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6279
  ac_status=$?
 
6280
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6281
  (exit $ac_status); } && test -s "$nlist"; then
 
6282
      # Try sorting and uniquifying the output.
 
6283
      if sort "$nlist" | uniq > "$nlist"T; then
 
6284
        mv -f "$nlist"T "$nlist"
 
6285
      else
 
6286
        rm -f "$nlist"T
 
6287
      fi
 
6288
 
 
6289
      # Make sure that we snagged all the symbols we need.
 
6290
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6291
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6292
          cat <<EOF > conftest.$ac_ext
 
6293
#ifdef __cplusplus
 
6294
extern "C" {
 
6295
#endif
 
6296
 
 
6297
EOF
 
6298
          # Now generate the symbol file.
 
6299
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6300
 
 
6301
          cat <<EOF >> conftest.$ac_ext
 
6302
#if defined (__STDC__) && __STDC__
 
6303
# define lt_ptr_t void *
 
6304
#else
 
6305
# define lt_ptr_t char *
 
6306
# define const
 
6307
#endif
 
6308
 
 
6309
/* The mapping between symbol names and symbols. */
 
6310
const struct {
 
6311
  const char *name;
 
6312
  lt_ptr_t address;
 
6313
}
 
6314
lt_preloaded_symbols[] =
 
6315
{
 
6316
EOF
 
6317
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6318
          cat <<\EOF >> conftest.$ac_ext
 
6319
  {0, (lt_ptr_t) 0}
 
6320
};
 
6321
 
 
6322
#ifdef __cplusplus
 
6323
}
 
6324
#endif
 
6325
EOF
 
6326
          # Now try linking the two files.
 
6327
          mv conftest.$ac_objext conftstm.$ac_objext
 
6328
          lt_save_LIBS="$LIBS"
 
6329
          lt_save_CFLAGS="$CFLAGS"
 
6330
          LIBS="conftstm.$ac_objext"
 
6331
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6332
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6333
  (eval $ac_link) 2>&5
 
6334
  ac_status=$?
 
6335
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6336
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6337
            pipe_works=yes
 
6338
          fi
 
6339
          LIBS="$lt_save_LIBS"
 
6340
          CFLAGS="$lt_save_CFLAGS"
 
6341
        else
 
6342
          echo "cannot find nm_test_func in $nlist" >&5
 
6343
        fi
 
6344
      else
 
6345
        echo "cannot find nm_test_var in $nlist" >&5
 
6346
      fi
 
6347
    else
 
6348
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6349
    fi
 
6350
  else
 
6351
    echo "$progname: failed program was:" >&5
 
6352
    cat conftest.$ac_ext >&5
 
6353
  fi
 
6354
  rm -rf conftest* conftst*
 
6355
 
 
6356
  # Do not use the global_symbol_pipe unless it works.
 
6357
  if test "$pipe_works" = yes; then
 
6358
    break
 
6359
  else
 
6360
    lt_cv_sys_global_symbol_pipe=
 
6361
  fi
 
6362
done
 
6363
 
 
6364
fi
 
6365
 
 
6366
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6367
  lt_cv_sys_global_symbol_to_cdecl=
 
6368
fi
 
6369
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6370
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
6371
$as_echo "failed" >&6; }
 
6372
else
 
6373
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
6374
$as_echo "ok" >&6; }
 
6375
fi
 
6376
 
 
6377
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
6378
$as_echo_n "checking for objdir... " >&6; }
 
6379
if test "${lt_cv_objdir+set}" = set; then
 
6380
  $as_echo_n "(cached) " >&6
 
6381
else
 
6382
  rm -f .libs 2>/dev/null
 
6383
mkdir .libs 2>/dev/null
 
6384
if test -d .libs; then
 
6385
  lt_cv_objdir=.libs
 
6386
else
 
6387
  # MS-DOS does not allow filenames that begin with a dot.
 
6388
  lt_cv_objdir=_libs
 
6389
fi
 
6390
rmdir .libs 2>/dev/null
 
6391
fi
 
6392
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6393
$as_echo "$lt_cv_objdir" >&6; }
 
6394
objdir=$lt_cv_objdir
 
6395
 
 
6396
 
 
6397
 
 
6398
 
 
6399
 
 
6400
case $host_os in
 
6401
aix3*)
 
6402
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6403
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6404
  # vanish in a puff of smoke.
 
6405
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6406
    COLLECT_NAMES=
 
6407
    export COLLECT_NAMES
 
6408
  fi
 
6409
  ;;
 
6410
esac
 
6411
 
 
6412
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6413
# metacharacters that are still active within double-quoted strings.
 
6414
Xsed='sed -e 1s/^X//'
 
6415
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6416
 
 
6417
# Same as above, but do not quote variable references.
 
6418
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6419
 
 
6420
# Sed substitution to delay expansion of an escaped shell variable in a
 
6421
# double_quote_subst'ed string.
 
6422
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6423
 
 
6424
# Sed substitution to avoid accidental globbing in evaled expressions
 
6425
no_glob_subst='s/\*/\\\*/g'
 
6426
 
 
6427
# Constants:
 
6428
rm="rm -f"
 
6429
 
 
6430
# Global variables:
 
6431
default_ofile=libtool
 
6432
can_build_shared=yes
 
6433
 
 
6434
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6435
# which needs '.lib').
 
6436
libext=a
 
6437
ltmain="$ac_aux_dir/ltmain.sh"
 
6438
ofile="$default_ofile"
 
6439
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6440
 
 
6441
if test -n "$ac_tool_prefix"; then
 
6442
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6443
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6444
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6445
$as_echo_n "checking for $ac_word... " >&6; }
 
6446
if test "${ac_cv_prog_AR+set}" = set; then
 
6447
  $as_echo_n "(cached) " >&6
 
6448
else
 
6449
  if test -n "$AR"; then
 
6450
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6451
else
 
6452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6453
for as_dir in $PATH
 
6454
do
 
6455
  IFS=$as_save_IFS
 
6456
  test -z "$as_dir" && as_dir=.
 
6457
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6458
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6459
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6460
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6461
    break 2
 
6462
  fi
 
6463
done
 
6464
done
 
6465
IFS=$as_save_IFS
 
6466
 
 
6467
fi
 
6468
fi
 
6469
AR=$ac_cv_prog_AR
 
6470
if test -n "$AR"; then
 
6471
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
6472
$as_echo "$AR" >&6; }
 
6473
else
 
6474
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6475
$as_echo "no" >&6; }
 
6476
fi
 
6477
 
 
6478
 
 
6479
fi
 
6480
if test -z "$ac_cv_prog_AR"; then
 
6481
  ac_ct_AR=$AR
 
6482
  # Extract the first word of "ar", so it can be a program name with args.
 
6483
set dummy ar; ac_word=$2
 
6484
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6485
$as_echo_n "checking for $ac_word... " >&6; }
 
6486
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6487
  $as_echo_n "(cached) " >&6
 
6488
else
 
6489
  if test -n "$ac_ct_AR"; then
 
6490
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6491
else
 
6492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6493
for as_dir in $PATH
 
6494
do
 
6495
  IFS=$as_save_IFS
 
6496
  test -z "$as_dir" && as_dir=.
 
6497
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6498
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6499
    ac_cv_prog_ac_ct_AR="ar"
 
6500
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6501
    break 2
 
6502
  fi
 
6503
done
 
6504
done
 
6505
IFS=$as_save_IFS
 
6506
 
 
6507
fi
 
6508
fi
 
6509
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6510
if test -n "$ac_ct_AR"; then
 
6511
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6512
$as_echo "$ac_ct_AR" >&6; }
 
6513
else
 
6514
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6515
$as_echo "no" >&6; }
 
6516
fi
 
6517
 
 
6518
  if test "x$ac_ct_AR" = x; then
 
6519
    AR="false"
 
6520
  else
 
6521
    case $cross_compiling:$ac_tool_warned in
 
6522
yes:)
 
6523
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6524
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6525
ac_tool_warned=yes ;;
 
6526
esac
 
6527
    AR=$ac_ct_AR
 
6528
  fi
 
6529
else
 
6530
  AR="$ac_cv_prog_AR"
 
6531
fi
 
6532
 
 
6533
if test -n "$ac_tool_prefix"; then
 
6534
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6535
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6536
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6537
$as_echo_n "checking for $ac_word... " >&6; }
 
6538
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6539
  $as_echo_n "(cached) " >&6
 
6540
else
 
6541
  if test -n "$RANLIB"; then
 
6542
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6543
else
 
6544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6545
for as_dir in $PATH
 
6546
do
 
6547
  IFS=$as_save_IFS
 
6548
  test -z "$as_dir" && as_dir=.
 
6549
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6550
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6551
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6552
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6553
    break 2
 
6554
  fi
 
6555
done
 
6556
done
 
6557
IFS=$as_save_IFS
 
6558
 
 
6559
fi
 
6560
fi
 
6561
RANLIB=$ac_cv_prog_RANLIB
 
6562
if test -n "$RANLIB"; then
 
6563
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6564
$as_echo "$RANLIB" >&6; }
 
6565
else
 
6566
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6567
$as_echo "no" >&6; }
 
6568
fi
 
6569
 
 
6570
 
 
6571
fi
 
6572
if test -z "$ac_cv_prog_RANLIB"; then
 
6573
  ac_ct_RANLIB=$RANLIB
 
6574
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6575
set dummy ranlib; ac_word=$2
 
6576
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6577
$as_echo_n "checking for $ac_word... " >&6; }
 
6578
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6579
  $as_echo_n "(cached) " >&6
 
6580
else
 
6581
  if test -n "$ac_ct_RANLIB"; then
 
6582
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6583
else
 
6584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6585
for as_dir in $PATH
 
6586
do
 
6587
  IFS=$as_save_IFS
 
6588
  test -z "$as_dir" && as_dir=.
 
6589
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6590
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6591
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6592
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6593
    break 2
 
6594
  fi
 
6595
done
 
6596
done
 
6597
IFS=$as_save_IFS
 
6598
 
 
6599
fi
 
6600
fi
 
6601
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6602
if test -n "$ac_ct_RANLIB"; then
 
6603
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6604
$as_echo "$ac_ct_RANLIB" >&6; }
 
6605
else
 
6606
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6607
$as_echo "no" >&6; }
 
6608
fi
 
6609
 
 
6610
  if test "x$ac_ct_RANLIB" = x; then
 
6611
    RANLIB=":"
 
6612
  else
 
6613
    case $cross_compiling:$ac_tool_warned in
 
6614
yes:)
 
6615
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6616
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6617
ac_tool_warned=yes ;;
 
6618
esac
 
6619
    RANLIB=$ac_ct_RANLIB
 
6620
  fi
 
6621
else
 
6622
  RANLIB="$ac_cv_prog_RANLIB"
 
6623
fi
 
6624
 
 
6625
if test -n "$ac_tool_prefix"; then
 
6626
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6627
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6628
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6629
$as_echo_n "checking for $ac_word... " >&6; }
 
6630
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6631
  $as_echo_n "(cached) " >&6
 
6632
else
 
6633
  if test -n "$STRIP"; then
 
6634
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6635
else
 
6636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6637
for as_dir in $PATH
 
6638
do
 
6639
  IFS=$as_save_IFS
 
6640
  test -z "$as_dir" && as_dir=.
 
6641
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6642
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6643
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6644
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6645
    break 2
 
6646
  fi
 
6647
done
 
6648
done
 
6649
IFS=$as_save_IFS
 
6650
 
 
6651
fi
 
6652
fi
 
6653
STRIP=$ac_cv_prog_STRIP
 
6654
if test -n "$STRIP"; then
 
6655
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
6656
$as_echo "$STRIP" >&6; }
 
6657
else
 
6658
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6659
$as_echo "no" >&6; }
 
6660
fi
 
6661
 
 
6662
 
 
6663
fi
 
6664
if test -z "$ac_cv_prog_STRIP"; then
 
6665
  ac_ct_STRIP=$STRIP
 
6666
  # Extract the first word of "strip", so it can be a program name with args.
 
6667
set dummy strip; ac_word=$2
 
6668
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6669
$as_echo_n "checking for $ac_word... " >&6; }
 
6670
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6671
  $as_echo_n "(cached) " >&6
 
6672
else
 
6673
  if test -n "$ac_ct_STRIP"; then
 
6674
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6675
else
 
6676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6677
for as_dir in $PATH
 
6678
do
 
6679
  IFS=$as_save_IFS
 
6680
  test -z "$as_dir" && as_dir=.
 
6681
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6682
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6683
    ac_cv_prog_ac_ct_STRIP="strip"
 
6684
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6685
    break 2
 
6686
  fi
 
6687
done
 
6688
done
 
6689
IFS=$as_save_IFS
 
6690
 
 
6691
fi
 
6692
fi
 
6693
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6694
if test -n "$ac_ct_STRIP"; then
 
6695
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6696
$as_echo "$ac_ct_STRIP" >&6; }
 
6697
else
 
6698
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6699
$as_echo "no" >&6; }
 
6700
fi
 
6701
 
 
6702
  if test "x$ac_ct_STRIP" = x; then
 
6703
    STRIP=":"
 
6704
  else
 
6705
    case $cross_compiling:$ac_tool_warned in
 
6706
yes:)
 
6707
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6708
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6709
ac_tool_warned=yes ;;
 
6710
esac
 
6711
    STRIP=$ac_ct_STRIP
 
6712
  fi
 
6713
else
 
6714
  STRIP="$ac_cv_prog_STRIP"
 
6715
fi
 
6716
 
 
6717
 
 
6718
old_CC="$CC"
 
6719
old_CFLAGS="$CFLAGS"
 
6720
 
 
6721
# Set sane defaults for various variables
 
6722
test -z "$AR" && AR=ar
 
6723
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6724
test -z "$AS" && AS=as
 
6725
test -z "$CC" && CC=cc
 
6726
test -z "$LTCC" && LTCC=$CC
 
6727
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6728
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6729
test -z "$LD" && LD=ld
 
6730
test -z "$LN_S" && LN_S="ln -s"
 
6731
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6732
test -z "$NM" && NM=nm
 
6733
test -z "$SED" && SED=sed
 
6734
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6735
test -z "$RANLIB" && RANLIB=:
 
6736
test -z "$STRIP" && STRIP=:
 
6737
test -z "$ac_objext" && ac_objext=o
 
6738
 
 
6739
# Determine commands to create old-style static archives.
 
6740
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6741
old_postinstall_cmds='chmod 644 $oldlib'
 
6742
old_postuninstall_cmds=
 
6743
 
 
6744
if test -n "$RANLIB"; then
 
6745
  case $host_os in
 
6746
  openbsd*)
 
6747
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6748
    ;;
 
6749
  *)
 
6750
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6751
    ;;
 
6752
  esac
 
6753
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6754
fi
 
6755
 
 
6756
for cc_temp in $compiler""; do
 
6757
  case $cc_temp in
 
6758
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6759
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6760
    \-*) ;;
 
6761
    *) break;;
 
6762
  esac
 
6763
done
 
6764
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6765
 
 
6766
 
 
6767
# Only perform the check for file, if the check method requires it
 
6768
case $deplibs_check_method in
 
6769
file_magic*)
 
6770
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6771
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6772
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
6773
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6774
  $as_echo_n "(cached) " >&6
 
6775
else
 
6776
  case $MAGIC_CMD in
 
6777
[\\/*] |  ?:[\\/]*)
 
6778
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6779
  ;;
 
6780
*)
 
6781
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6782
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6783
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6784
  for ac_dir in $ac_dummy; do
 
6785
    IFS="$lt_save_ifs"
 
6786
    test -z "$ac_dir" && ac_dir=.
 
6787
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6788
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6789
      if test -n "$file_magic_test_file"; then
 
6790
        case $deplibs_check_method in
 
6791
        "file_magic "*)
 
6792
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6793
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6794
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6795
            $EGREP "$file_magic_regex" > /dev/null; then
 
6796
            :
 
6797
          else
 
6798
            cat <<EOF 1>&2
 
6799
 
 
6800
*** Warning: the command libtool uses to detect shared libraries,
 
6801
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6802
*** The result is that libtool may fail to recognize shared libraries
 
6803
*** as such.  This will affect the creation of libtool libraries that
 
6804
*** depend on shared libraries, but programs linked with such libtool
 
6805
*** libraries will work regardless of this problem.  Nevertheless, you
 
6806
*** may want to report the problem to your system manager and/or to
 
6807
*** bug-libtool@gnu.org
 
6808
 
 
6809
EOF
 
6810
          fi ;;
 
6811
        esac
 
6812
      fi
 
6813
      break
 
6814
    fi
 
6815
  done
 
6816
  IFS="$lt_save_ifs"
 
6817
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6818
  ;;
 
6819
esac
 
6820
fi
 
6821
 
 
6822
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6823
if test -n "$MAGIC_CMD"; then
 
6824
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6825
$as_echo "$MAGIC_CMD" >&6; }
 
6826
else
 
6827
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6828
$as_echo "no" >&6; }
 
6829
fi
 
6830
 
 
6831
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6832
  if test -n "$ac_tool_prefix"; then
 
6833
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
6834
$as_echo_n "checking for file... " >&6; }
 
6835
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6836
  $as_echo_n "(cached) " >&6
 
6837
else
 
6838
  case $MAGIC_CMD in
 
6839
[\\/*] |  ?:[\\/]*)
 
6840
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6841
  ;;
 
6842
*)
 
6843
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6844
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6845
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6846
  for ac_dir in $ac_dummy; do
 
6847
    IFS="$lt_save_ifs"
 
6848
    test -z "$ac_dir" && ac_dir=.
 
6849
    if test -f $ac_dir/file; then
 
6850
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6851
      if test -n "$file_magic_test_file"; then
 
6852
        case $deplibs_check_method in
 
6853
        "file_magic "*)
 
6854
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6855
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6856
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6857
            $EGREP "$file_magic_regex" > /dev/null; then
 
6858
            :
 
6859
          else
 
6860
            cat <<EOF 1>&2
 
6861
 
 
6862
*** Warning: the command libtool uses to detect shared libraries,
 
6863
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6864
*** The result is that libtool may fail to recognize shared libraries
 
6865
*** as such.  This will affect the creation of libtool libraries that
 
6866
*** depend on shared libraries, but programs linked with such libtool
 
6867
*** libraries will work regardless of this problem.  Nevertheless, you
 
6868
*** may want to report the problem to your system manager and/or to
 
6869
*** bug-libtool@gnu.org
 
6870
 
 
6871
EOF
 
6872
          fi ;;
 
6873
        esac
 
6874
      fi
 
6875
      break
 
6876
    fi
 
6877
  done
 
6878
  IFS="$lt_save_ifs"
 
6879
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6880
  ;;
 
6881
esac
 
6882
fi
 
6883
 
 
6884
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6885
if test -n "$MAGIC_CMD"; then
 
6886
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6887
$as_echo "$MAGIC_CMD" >&6; }
 
6888
else
 
6889
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6890
$as_echo "no" >&6; }
 
6891
fi
 
6892
 
 
6893
  else
 
6894
    MAGIC_CMD=:
 
6895
  fi
 
6896
fi
 
6897
 
 
6898
  fi
 
6899
  ;;
 
6900
esac
 
6901
 
 
6902
 
 
6903
  case $host_os in
 
6904
    rhapsody* | darwin*)
 
6905
    if test -n "$ac_tool_prefix"; then
 
6906
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6907
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6908
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6909
$as_echo_n "checking for $ac_word... " >&6; }
 
6910
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
6911
  $as_echo_n "(cached) " >&6
 
6912
else
 
6913
  if test -n "$DSYMUTIL"; then
 
6914
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6915
else
 
6916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6917
for as_dir in $PATH
 
6918
do
 
6919
  IFS=$as_save_IFS
 
6920
  test -z "$as_dir" && as_dir=.
 
6921
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6922
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6923
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6924
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6925
    break 2
 
6926
  fi
 
6927
done
 
6928
done
 
6929
IFS=$as_save_IFS
 
6930
 
 
6931
fi
 
6932
fi
 
6933
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6934
if test -n "$DSYMUTIL"; then
 
6935
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
6936
$as_echo "$DSYMUTIL" >&6; }
 
6937
else
 
6938
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6939
$as_echo "no" >&6; }
 
6940
fi
 
6941
 
 
6942
 
 
6943
fi
 
6944
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6945
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6946
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6947
set dummy dsymutil; ac_word=$2
 
6948
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6949
$as_echo_n "checking for $ac_word... " >&6; }
 
6950
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
6951
  $as_echo_n "(cached) " >&6
 
6952
else
 
6953
  if test -n "$ac_ct_DSYMUTIL"; then
 
6954
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6955
else
 
6956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6957
for as_dir in $PATH
 
6958
do
 
6959
  IFS=$as_save_IFS
 
6960
  test -z "$as_dir" && as_dir=.
 
6961
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6962
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6963
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6964
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6965
    break 2
 
6966
  fi
 
6967
done
 
6968
done
 
6969
IFS=$as_save_IFS
 
6970
 
 
6971
fi
 
6972
fi
 
6973
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6974
if test -n "$ac_ct_DSYMUTIL"; then
 
6975
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
6976
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6977
else
 
6978
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6979
$as_echo "no" >&6; }
 
6980
fi
 
6981
 
 
6982
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6983
    DSYMUTIL=":"
 
6984
  else
 
6985
    case $cross_compiling:$ac_tool_warned in
 
6986
yes:)
 
6987
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6988
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6989
ac_tool_warned=yes ;;
 
6990
esac
 
6991
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6992
  fi
 
6993
else
 
6994
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6995
fi
 
6996
 
 
6997
    if test -n "$ac_tool_prefix"; then
 
6998
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6999
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7000
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7001
$as_echo_n "checking for $ac_word... " >&6; }
 
7002
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7003
  $as_echo_n "(cached) " >&6
 
7004
else
 
7005
  if test -n "$NMEDIT"; then
 
7006
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7007
else
 
7008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7009
for as_dir in $PATH
 
7010
do
 
7011
  IFS=$as_save_IFS
 
7012
  test -z "$as_dir" && as_dir=.
 
7013
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7014
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7015
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7016
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7017
    break 2
 
7018
  fi
 
7019
done
 
7020
done
 
7021
IFS=$as_save_IFS
 
7022
 
 
7023
fi
 
7024
fi
 
7025
NMEDIT=$ac_cv_prog_NMEDIT
 
7026
if test -n "$NMEDIT"; then
 
7027
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7028
$as_echo "$NMEDIT" >&6; }
 
7029
else
 
7030
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7031
$as_echo "no" >&6; }
 
7032
fi
 
7033
 
 
7034
 
 
7035
fi
 
7036
if test -z "$ac_cv_prog_NMEDIT"; then
 
7037
  ac_ct_NMEDIT=$NMEDIT
 
7038
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7039
set dummy nmedit; ac_word=$2
 
7040
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7041
$as_echo_n "checking for $ac_word... " >&6; }
 
7042
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7043
  $as_echo_n "(cached) " >&6
 
7044
else
 
7045
  if test -n "$ac_ct_NMEDIT"; then
 
7046
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7047
else
 
7048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7049
for as_dir in $PATH
 
7050
do
 
7051
  IFS=$as_save_IFS
 
7052
  test -z "$as_dir" && as_dir=.
 
7053
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7054
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7055
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7056
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7057
    break 2
 
7058
  fi
 
7059
done
 
7060
done
 
7061
IFS=$as_save_IFS
 
7062
 
 
7063
fi
 
7064
fi
 
7065
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7066
if test -n "$ac_ct_NMEDIT"; then
 
7067
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7068
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7069
else
 
7070
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7071
$as_echo "no" >&6; }
 
7072
fi
 
7073
 
 
7074
  if test "x$ac_ct_NMEDIT" = x; then
 
7075
    NMEDIT=":"
 
7076
  else
 
7077
    case $cross_compiling:$ac_tool_warned in
 
7078
yes:)
 
7079
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7080
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7081
ac_tool_warned=yes ;;
 
7082
esac
 
7083
    NMEDIT=$ac_ct_NMEDIT
 
7084
  fi
 
7085
else
 
7086
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7087
fi
 
7088
 
 
7089
 
 
7090
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7091
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7092
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7093
  $as_echo_n "(cached) " >&6
 
7094
else
 
7095
  lt_cv_apple_cc_single_mod=no
 
7096
      if test -z "${LT_MULTI_MODULE}"; then
 
7097
   # By default we will add the -single_module flag. You can override
 
7098
   # by either setting the environment variable LT_MULTI_MODULE
 
7099
   # non-empty at configure time, or by adding -multi_module to the
 
7100
   # link flags.
 
7101
   echo "int foo(void){return 1;}" > conftest.c
 
7102
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7103
     -dynamiclib ${wl}-single_module conftest.c
 
7104
   if test -f libconftest.dylib; then
 
7105
     lt_cv_apple_cc_single_mod=yes
 
7106
     rm -rf libconftest.dylib*
 
7107
   fi
 
7108
   rm conftest.c
 
7109
      fi
 
7110
fi
 
7111
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7112
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7113
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7114
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7115
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7116
  $as_echo_n "(cached) " >&6
 
7117
else
 
7118
  lt_cv_ld_exported_symbols_list=no
 
7119
      save_LDFLAGS=$LDFLAGS
 
7120
      echo "_main" > conftest.sym
 
7121
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7122
      cat >conftest.$ac_ext <<_ACEOF
 
7123
/* confdefs.h.  */
 
7124
_ACEOF
 
7125
cat confdefs.h >>conftest.$ac_ext
 
7126
cat >>conftest.$ac_ext <<_ACEOF
 
7127
/* end confdefs.h.  */
 
7128
 
 
7129
int
 
7130
main ()
 
7131
{
 
7132
 
 
7133
  ;
 
7134
  return 0;
 
7135
}
 
7136
_ACEOF
 
7137
rm -f conftest.$ac_objext conftest$ac_exeext
 
7138
if { (ac_try="$ac_link"
 
7139
case "(($ac_try" in
 
7140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7141
  *) ac_try_echo=$ac_try;;
 
7142
esac
 
7143
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7144
$as_echo "$ac_try_echo") >&5
 
7145
  (eval "$ac_link") 2>conftest.er1
 
7146
  ac_status=$?
 
7147
  grep -v '^ *+' conftest.er1 >conftest.err
 
7148
  rm -f conftest.er1
 
7149
  cat conftest.err >&5
 
7150
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7151
  (exit $ac_status); } && {
 
7152
         test -z "$ac_c_werror_flag" ||
 
7153
         test ! -s conftest.err
 
7154
       } && test -s conftest$ac_exeext && {
 
7155
         test "$cross_compiling" = yes ||
 
7156
         $as_test_x conftest$ac_exeext
 
7157
       }; then
 
7158
  lt_cv_ld_exported_symbols_list=yes
 
7159
else
 
7160
  $as_echo "$as_me: failed program was:" >&5
 
7161
sed 's/^/| /' conftest.$ac_ext >&5
 
7162
 
 
7163
        lt_cv_ld_exported_symbols_list=no
 
7164
fi
 
7165
 
 
7166
rm -rf conftest.dSYM
 
7167
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7168
      conftest$ac_exeext conftest.$ac_ext
 
7169
   LDFLAGS="$save_LDFLAGS"
 
7170
 
 
7171
fi
 
7172
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7173
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7174
    case $host_os in
 
7175
    rhapsody* | darwin1.[0123])
 
7176
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7177
    darwin1.*)
 
7178
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7179
    darwin*)
 
7180
      # if running on 10.5 or later, the deployment target defaults
 
7181
      # to the OS version, if on x86, and 10.4, the deployment
 
7182
      # target defaults to 10.4. Don't you love it?
 
7183
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7184
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7185
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7186
   10.[012]*)
 
7187
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7188
   10.*)
 
7189
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7190
      esac
 
7191
    ;;
 
7192
  esac
 
7193
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7194
      _lt_dar_single_mod='$single_module'
 
7195
    fi
 
7196
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7197
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7198
    else
 
7199
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7200
    fi
 
7201
    if test "$DSYMUTIL" != ":"; then
 
7202
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7203
    else
 
7204
      _lt_dsymutil=
 
7205
    fi
 
7206
    ;;
 
7207
  esac
 
7208
 
 
7209
 
 
7210
enable_dlopen=no
 
7211
enable_win32_dll=no
 
7212
 
 
7213
# Check whether --enable-libtool-lock was given.
 
7214
if test "${enable_libtool_lock+set}" = set; then
 
7215
  enableval=$enable_libtool_lock;
 
7216
fi
 
7217
 
 
7218
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7219
 
 
7220
 
 
7221
# Check whether --with-pic was given.
 
7222
if test "${with_pic+set}" = set; then
 
7223
  withval=$with_pic; pic_mode="$withval"
 
7224
else
 
7225
  pic_mode=default
 
7226
fi
 
7227
 
 
7228
test -z "$pic_mode" && pic_mode=default
 
7229
 
 
7230
# Use C for the default configuration in the libtool script
 
7231
tagname=
 
7232
lt_save_CC="$CC"
 
7233
ac_ext=c
 
7234
ac_cpp='$CPP $CPPFLAGS'
 
7235
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7236
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7237
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7238
 
 
7239
 
 
7240
# Source file extension for C test sources.
 
7241
ac_ext=c
 
7242
 
 
7243
# Object file extension for compiled C test sources.
 
7244
objext=o
 
7245
objext=$objext
 
7246
 
 
7247
# Code to be used in simple compile tests
 
7248
lt_simple_compile_test_code="int some_variable = 0;"
 
7249
 
 
7250
# Code to be used in simple link tests
 
7251
lt_simple_link_test_code='int main(){return(0);}'
 
7252
 
 
7253
 
 
7254
# If no C compiler was specified, use CC.
 
7255
LTCC=${LTCC-"$CC"}
 
7256
 
 
7257
# If no C compiler flags were specified, use CFLAGS.
 
7258
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7259
 
 
7260
# Allow CC to be a program name with arguments.
 
7261
compiler=$CC
 
7262
 
 
7263
 
 
7264
# save warnings/boilerplate of simple test code
 
7265
ac_outfile=conftest.$ac_objext
 
7266
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7267
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7268
_lt_compiler_boilerplate=`cat conftest.err`
 
7269
$rm conftest*
 
7270
 
 
7271
ac_outfile=conftest.$ac_objext
 
7272
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7273
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7274
_lt_linker_boilerplate=`cat conftest.err`
 
7275
$rm -r conftest*
 
7276
 
 
7277
 
 
7278
 
 
7279
lt_prog_compiler_no_builtin_flag=
 
7280
 
 
7281
if test "$GCC" = yes; then
 
7282
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7283
 
 
7284
 
 
7285
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7286
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7287
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7288
  $as_echo_n "(cached) " >&6
 
7289
else
 
7290
  lt_cv_prog_compiler_rtti_exceptions=no
 
7291
  ac_outfile=conftest.$ac_objext
 
7292
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7293
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7294
   # Insert the option either (1) after the last *FLAGS variable, or
 
7295
   # (2) before a word containing "conftest.", or (3) at the end.
 
7296
   # Note that $ac_compile itself does not contain backslashes and begins
 
7297
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7298
   # The option is referenced via a variable to avoid confusing sed.
 
7299
   lt_compile=`echo "$ac_compile" | $SED \
 
7300
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7301
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7302
   -e 's:$: $lt_compiler_flag:'`
 
7303
   (eval echo "\"\$as_me:7303: $lt_compile\"" >&5)
 
7304
   (eval "$lt_compile" 2>conftest.err)
 
7305
   ac_status=$?
 
7306
   cat conftest.err >&5
 
7307
   echo "$as_me:7307: \$? = $ac_status" >&5
 
7308
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7309
     # The compiler can only warn and ignore the option if not recognized
 
7310
     # So say no if there are warnings other than the usual output.
 
7311
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7312
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7313
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7314
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7315
     fi
 
7316
   fi
 
7317
   $rm conftest*
 
7318
 
 
7319
fi
 
7320
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7321
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7322
 
 
7323
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7324
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7325
else
 
7326
    :
 
7327
fi
 
7328
 
 
7329
fi
 
7330
 
 
7331
lt_prog_compiler_wl=
 
7332
lt_prog_compiler_pic=
 
7333
lt_prog_compiler_static=
 
7334
 
 
7335
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7336
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7337
 
 
7338
  if test "$GCC" = yes; then
 
7339
    lt_prog_compiler_wl='-Wl,'
 
7340
    lt_prog_compiler_static='-static'
 
7341
 
 
7342
    case $host_os in
 
7343
      aix*)
 
7344
      # All AIX code is PIC.
 
7345
      if test "$host_cpu" = ia64; then
 
7346
        # AIX 5 now supports IA64 processor
 
7347
        lt_prog_compiler_static='-Bstatic'
 
7348
      fi
 
7349
      ;;
 
7350
 
 
7351
    amigaos*)
 
7352
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7353
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7354
      # like `-m68040'.
 
7355
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7356
      ;;
 
7357
 
 
7358
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7359
      # PIC is the default for these OSes.
 
7360
      ;;
 
7361
 
 
7362
    mingw* | cygwin* | pw32* | os2*)
 
7363
      # This hack is so that the source file can tell whether it is being
 
7364
      # built for inclusion in a dll (and should export symbols for example).
 
7365
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7366
      # (--disable-auto-import) libraries
 
7367
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7368
      ;;
 
7369
 
 
7370
    darwin* | rhapsody*)
 
7371
      # PIC is the default on this platform
 
7372
      # Common symbols not allowed in MH_DYLIB files
 
7373
      lt_prog_compiler_pic='-fno-common'
 
7374
      ;;
 
7375
 
 
7376
    interix[3-9]*)
 
7377
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7378
      # Instead, we relocate shared libraries at runtime.
 
7379
      ;;
 
7380
 
 
7381
    msdosdjgpp*)
 
7382
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7383
      # on systems that don't support them.
 
7384
      lt_prog_compiler_can_build_shared=no
 
7385
      enable_shared=no
 
7386
      ;;
 
7387
 
 
7388
    sysv4*MP*)
 
7389
      if test -d /usr/nec; then
 
7390
        lt_prog_compiler_pic=-Kconform_pic
 
7391
      fi
 
7392
      ;;
 
7393
 
 
7394
    hpux*)
 
7395
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7396
      # not for PA HP-UX.
 
7397
      case $host_cpu in
 
7398
      hppa*64*|ia64*)
 
7399
        # +Z the default
 
7400
        ;;
 
7401
      *)
 
7402
        lt_prog_compiler_pic='-fPIC'
 
7403
        ;;
 
7404
      esac
 
7405
      ;;
 
7406
 
 
7407
    *)
 
7408
      lt_prog_compiler_pic='-fPIC'
 
7409
      ;;
 
7410
    esac
 
7411
  else
 
7412
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7413
    case $host_os in
 
7414
    aix*)
 
7415
      lt_prog_compiler_wl='-Wl,'
 
7416
      if test "$host_cpu" = ia64; then
 
7417
        # AIX 5 now supports IA64 processor
 
7418
        lt_prog_compiler_static='-Bstatic'
 
7419
      else
 
7420
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7421
      fi
 
7422
      ;;
 
7423
      darwin*)
 
7424
        # PIC is the default on this platform
 
7425
        # Common symbols not allowed in MH_DYLIB files
 
7426
       case $cc_basename in
 
7427
         xlc*)
 
7428
         lt_prog_compiler_pic='-qnocommon'
 
7429
         lt_prog_compiler_wl='-Wl,'
 
7430
         ;;
 
7431
       esac
 
7432
       ;;
 
7433
 
 
7434
    mingw* | cygwin* | pw32* | os2*)
 
7435
      # This hack is so that the source file can tell whether it is being
 
7436
      # built for inclusion in a dll (and should export symbols for example).
 
7437
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7438
      ;;
 
7439
 
 
7440
    hpux9* | hpux10* | hpux11*)
 
7441
      lt_prog_compiler_wl='-Wl,'
 
7442
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7443
      # not for PA HP-UX.
 
7444
      case $host_cpu in
 
7445
      hppa*64*|ia64*)
 
7446
        # +Z the default
 
7447
        ;;
 
7448
      *)
 
7449
        lt_prog_compiler_pic='+Z'
 
7450
        ;;
 
7451
      esac
 
7452
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7453
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7454
      ;;
 
7455
 
 
7456
    irix5* | irix6* | nonstopux*)
 
7457
      lt_prog_compiler_wl='-Wl,'
 
7458
      # PIC (with -KPIC) is the default.
 
7459
      lt_prog_compiler_static='-non_shared'
 
7460
      ;;
 
7461
 
 
7462
    newsos6)
 
7463
      lt_prog_compiler_pic='-KPIC'
 
7464
      lt_prog_compiler_static='-Bstatic'
 
7465
      ;;
 
7466
 
 
7467
    linux* | k*bsd*-gnu)
 
7468
      case $cc_basename in
 
7469
      icc* | ecc*)
 
7470
        lt_prog_compiler_wl='-Wl,'
 
7471
        lt_prog_compiler_pic='-KPIC'
 
7472
        lt_prog_compiler_static='-static'
 
7473
        ;;
 
7474
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7475
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7476
        # which looks to be a dead project)
 
7477
        lt_prog_compiler_wl='-Wl,'
 
7478
        lt_prog_compiler_pic='-fpic'
 
7479
        lt_prog_compiler_static='-Bstatic'
 
7480
        ;;
 
7481
      ccc*)
 
7482
        lt_prog_compiler_wl='-Wl,'
 
7483
        # All Alpha code is PIC.
 
7484
        lt_prog_compiler_static='-non_shared'
 
7485
        ;;
 
7486
      *)
 
7487
        case `$CC -V 2>&1 | sed 5q` in
 
7488
        *Sun\ C*)
 
7489
          # Sun C 5.9
 
7490
          lt_prog_compiler_pic='-KPIC'
 
7491
          lt_prog_compiler_static='-Bstatic'
 
7492
          lt_prog_compiler_wl='-Wl,'
 
7493
          ;;
 
7494
        *Sun\ F*)
 
7495
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7496
          lt_prog_compiler_pic='-KPIC'
 
7497
          lt_prog_compiler_static='-Bstatic'
 
7498
          lt_prog_compiler_wl=''
 
7499
          ;;
 
7500
        esac
 
7501
        ;;
 
7502
      esac
 
7503
      ;;
 
7504
 
 
7505
    osf3* | osf4* | osf5*)
 
7506
      lt_prog_compiler_wl='-Wl,'
 
7507
      # All OSF/1 code is PIC.
 
7508
      lt_prog_compiler_static='-non_shared'
 
7509
      ;;
 
7510
 
 
7511
    rdos*)
 
7512
      lt_prog_compiler_static='-non_shared'
 
7513
      ;;
 
7514
 
 
7515
    solaris*)
 
7516
      lt_prog_compiler_pic='-KPIC'
 
7517
      lt_prog_compiler_static='-Bstatic'
 
7518
      case $cc_basename in
 
7519
      f77* | f90* | f95*)
 
7520
        lt_prog_compiler_wl='-Qoption ld ';;
 
7521
      *)
 
7522
        lt_prog_compiler_wl='-Wl,';;
 
7523
      esac
 
7524
      ;;
 
7525
 
 
7526
    sunos4*)
 
7527
      lt_prog_compiler_wl='-Qoption ld '
 
7528
      lt_prog_compiler_pic='-PIC'
 
7529
      lt_prog_compiler_static='-Bstatic'
 
7530
      ;;
 
7531
 
 
7532
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7533
      lt_prog_compiler_wl='-Wl,'
 
7534
      lt_prog_compiler_pic='-KPIC'
 
7535
      lt_prog_compiler_static='-Bstatic'
 
7536
      ;;
 
7537
 
 
7538
    sysv4*MP*)
 
7539
      if test -d /usr/nec ;then
 
7540
        lt_prog_compiler_pic='-Kconform_pic'
 
7541
        lt_prog_compiler_static='-Bstatic'
 
7542
      fi
 
7543
      ;;
 
7544
 
 
7545
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7546
      lt_prog_compiler_wl='-Wl,'
 
7547
      lt_prog_compiler_pic='-KPIC'
 
7548
      lt_prog_compiler_static='-Bstatic'
 
7549
      ;;
 
7550
 
 
7551
    unicos*)
 
7552
      lt_prog_compiler_wl='-Wl,'
 
7553
      lt_prog_compiler_can_build_shared=no
 
7554
      ;;
 
7555
 
 
7556
    uts4*)
 
7557
      lt_prog_compiler_pic='-pic'
 
7558
      lt_prog_compiler_static='-Bstatic'
 
7559
      ;;
 
7560
 
 
7561
    *)
 
7562
      lt_prog_compiler_can_build_shared=no
 
7563
      ;;
 
7564
    esac
 
7565
  fi
 
7566
 
 
7567
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7568
$as_echo "$lt_prog_compiler_pic" >&6; }
 
7569
 
 
7570
#
 
7571
# Check to make sure the PIC flag actually works.
 
7572
#
 
7573
if test -n "$lt_prog_compiler_pic"; then
 
7574
 
 
7575
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7576
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
7577
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
7578
  $as_echo_n "(cached) " >&6
 
7579
else
 
7580
  lt_cv_prog_compiler_pic_works=no
 
7581
  ac_outfile=conftest.$ac_objext
 
7582
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7583
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7584
   # Insert the option either (1) after the last *FLAGS variable, or
 
7585
   # (2) before a word containing "conftest.", or (3) at the end.
 
7586
   # Note that $ac_compile itself does not contain backslashes and begins
 
7587
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7588
   # The option is referenced via a variable to avoid confusing sed.
 
7589
   lt_compile=`echo "$ac_compile" | $SED \
 
7590
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7591
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7592
   -e 's:$: $lt_compiler_flag:'`
 
7593
   (eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
 
7594
   (eval "$lt_compile" 2>conftest.err)
 
7595
   ac_status=$?
 
7596
   cat conftest.err >&5
 
7597
   echo "$as_me:7597: \$? = $ac_status" >&5
 
7598
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7599
     # The compiler can only warn and ignore the option if not recognized
 
7600
     # So say no if there are warnings other than the usual output.
 
7601
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7602
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7603
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7604
       lt_cv_prog_compiler_pic_works=yes
 
7605
     fi
 
7606
   fi
 
7607
   $rm conftest*
 
7608
 
 
7609
fi
 
7610
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7611
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
7612
 
 
7613
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7614
    case $lt_prog_compiler_pic in
 
7615
     "" | " "*) ;;
 
7616
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7617
     esac
 
7618
else
 
7619
    lt_prog_compiler_pic=
 
7620
     lt_prog_compiler_can_build_shared=no
 
7621
fi
 
7622
 
 
7623
fi
 
7624
case $host_os in
 
7625
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7626
  *djgpp*)
 
7627
    lt_prog_compiler_pic=
 
7628
    ;;
 
7629
  *)
 
7630
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7631
    ;;
 
7632
esac
 
7633
 
 
7634
#
 
7635
# Check to make sure the static flag actually works.
 
7636
#
 
7637
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7638
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7639
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
7640
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
7641
  $as_echo_n "(cached) " >&6
 
7642
else
 
7643
  lt_cv_prog_compiler_static_works=no
 
7644
   save_LDFLAGS="$LDFLAGS"
 
7645
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7646
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7647
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7648
     # The linker can only warn and ignore the option if not recognized
 
7649
     # So say no if there are warnings
 
7650
     if test -s conftest.err; then
 
7651
       # Append any errors to the config.log.
 
7652
       cat conftest.err 1>&5
 
7653
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7654
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7655
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7656
         lt_cv_prog_compiler_static_works=yes
 
7657
       fi
 
7658
     else
 
7659
       lt_cv_prog_compiler_static_works=yes
 
7660
     fi
 
7661
   fi
 
7662
   $rm -r conftest*
 
7663
   LDFLAGS="$save_LDFLAGS"
 
7664
 
 
7665
fi
 
7666
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
7667
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
7668
 
 
7669
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7670
    :
 
7671
else
 
7672
    lt_prog_compiler_static=
 
7673
fi
 
7674
 
 
7675
 
 
7676
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7677
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7678
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7679
  $as_echo_n "(cached) " >&6
 
7680
else
 
7681
  lt_cv_prog_compiler_c_o=no
 
7682
   $rm -r conftest 2>/dev/null
 
7683
   mkdir conftest
 
7684
   cd conftest
 
7685
   mkdir out
 
7686
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7687
 
 
7688
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7689
   # Insert the option either (1) after the last *FLAGS variable, or
 
7690
   # (2) before a word containing "conftest.", or (3) at the end.
 
7691
   # Note that $ac_compile itself does not contain backslashes and begins
 
7692
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7693
   lt_compile=`echo "$ac_compile" | $SED \
 
7694
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7695
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7696
   -e 's:$: $lt_compiler_flag:'`
 
7697
   (eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
 
7698
   (eval "$lt_compile" 2>out/conftest.err)
 
7699
   ac_status=$?
 
7700
   cat out/conftest.err >&5
 
7701
   echo "$as_me:7701: \$? = $ac_status" >&5
 
7702
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7703
   then
 
7704
     # The compiler can only warn and ignore the option if not recognized
 
7705
     # So say no if there are warnings
 
7706
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7707
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7708
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7709
       lt_cv_prog_compiler_c_o=yes
 
7710
     fi
 
7711
   fi
 
7712
   chmod u+w . 2>&5
 
7713
   $rm conftest*
 
7714
   # SGI C++ compiler will create directory out/ii_files/ for
 
7715
   # template instantiation
 
7716
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7717
   $rm out/* && rmdir out
 
7718
   cd ..
 
7719
   rmdir conftest
 
7720
   $rm conftest*
 
7721
 
 
7722
fi
 
7723
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7724
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7725
 
 
7726
 
 
7727
hard_links="nottested"
 
7728
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7729
  # do not overwrite the value of need_locks provided by the user
 
7730
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7731
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
7732
  hard_links=yes
 
7733
  $rm conftest*
 
7734
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7735
  touch conftest.a
 
7736
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7737
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7738
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
7739
$as_echo "$hard_links" >&6; }
 
7740
  if test "$hard_links" = no; then
 
7741
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7742
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7743
    need_locks=warn
 
7744
  fi
 
7745
else
 
7746
  need_locks=no
 
7747
fi
 
7748
 
 
7749
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7750
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
7751
 
 
7752
  runpath_var=
 
7753
  allow_undefined_flag=
 
7754
  enable_shared_with_static_runtimes=no
 
7755
  archive_cmds=
 
7756
  archive_expsym_cmds=
 
7757
  old_archive_From_new_cmds=
 
7758
  old_archive_from_expsyms_cmds=
 
7759
  export_dynamic_flag_spec=
 
7760
  whole_archive_flag_spec=
 
7761
  thread_safe_flag_spec=
 
7762
  hardcode_libdir_flag_spec=
 
7763
  hardcode_libdir_flag_spec_ld=
 
7764
  hardcode_libdir_separator=
 
7765
  hardcode_direct=no
 
7766
  hardcode_minus_L=no
 
7767
  hardcode_shlibpath_var=unsupported
 
7768
  link_all_deplibs=unknown
 
7769
  hardcode_automatic=no
 
7770
  module_cmds=
 
7771
  module_expsym_cmds=
 
7772
  always_export_symbols=no
 
7773
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7774
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7775
  # included in the symbol list
 
7776
  include_expsyms=
 
7777
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7778
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7779
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7780
  # as well as any symbol that contains `d'.
 
7781
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
7782
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7783
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7784
  # the symbol is explicitly referenced.  Since portable code cannot
 
7785
  # rely on this symbol name, it's probably fine to never include it in
 
7786
  # preloaded symbol tables.
 
7787
  # Exclude shared library initialization/finalization symbols.
 
7788
  extract_expsyms_cmds=
 
7789
  # Just being paranoid about ensuring that cc_basename is set.
 
7790
  for cc_temp in $compiler""; do
 
7791
  case $cc_temp in
 
7792
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7793
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7794
    \-*) ;;
 
7795
    *) break;;
 
7796
  esac
 
7797
done
 
7798
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7799
 
 
7800
  case $host_os in
 
7801
  cygwin* | mingw* | pw32*)
 
7802
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7803
    # When not using gcc, we currently assume that we are using
 
7804
    # Microsoft Visual C++.
 
7805
    if test "$GCC" != yes; then
 
7806
      with_gnu_ld=no
 
7807
    fi
 
7808
    ;;
 
7809
  interix*)
 
7810
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7811
    with_gnu_ld=yes
 
7812
    ;;
 
7813
  openbsd*)
 
7814
    with_gnu_ld=no
 
7815
    ;;
 
7816
  esac
 
7817
 
 
7818
  ld_shlibs=yes
 
7819
  if test "$with_gnu_ld" = yes; then
 
7820
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7821
    wlarc='${wl}'
 
7822
 
 
7823
    # Set some defaults for GNU ld with shared library support. These
 
7824
    # are reset later if shared libraries are not supported. Putting them
 
7825
    # here allows them to be overridden if necessary.
 
7826
    runpath_var=LD_RUN_PATH
 
7827
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7828
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7829
    # ancient GNU ld didn't support --whole-archive et. al.
 
7830
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7831
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7832
      else
 
7833
        whole_archive_flag_spec=
 
7834
    fi
 
7835
    supports_anon_versioning=no
 
7836
    case `$LD -v 2>/dev/null` in
 
7837
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7838
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7839
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7840
      *\ 2.11.*) ;; # other 2.11 versions
 
7841
      *) supports_anon_versioning=yes ;;
 
7842
    esac
 
7843
 
 
7844
    # See if GNU ld supports shared libraries.
 
7845
    case $host_os in
 
7846
    aix[3-9]*)
 
7847
      # On AIX/PPC, the GNU linker is very broken
 
7848
      if test "$host_cpu" != ia64; then
 
7849
        ld_shlibs=no
 
7850
        cat <<EOF 1>&2
 
7851
 
 
7852
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7853
*** to be unable to reliably create shared libraries on AIX.
 
7854
*** Therefore, libtool is disabling shared libraries support.  If you
 
7855
*** really care for shared libraries, you may want to modify your PATH
 
7856
*** so that a non-GNU linker is found, and then restart.
 
7857
 
 
7858
EOF
 
7859
      fi
 
7860
      ;;
 
7861
 
 
7862
    amigaos*)
 
7863
      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)'
 
7864
      hardcode_libdir_flag_spec='-L$libdir'
 
7865
      hardcode_minus_L=yes
 
7866
 
 
7867
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7868
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7869
      # to version 4, is to share data among multiple programs linked
 
7870
      # with the same dynamic library.  Since this doesn't match the
 
7871
      # behavior of shared libraries on other platforms, we can't use
 
7872
      # them.
 
7873
      ld_shlibs=no
 
7874
      ;;
 
7875
 
 
7876
    beos*)
 
7877
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7878
        allow_undefined_flag=unsupported
 
7879
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7880
        # support --undefined.  This deserves some investigation.  FIXME
 
7881
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7882
      else
 
7883
        ld_shlibs=no
 
7884
      fi
 
7885
      ;;
 
7886
 
 
7887
    cygwin* | mingw* | pw32*)
 
7888
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7889
      # as there is no search path for DLLs.
 
7890
      hardcode_libdir_flag_spec='-L$libdir'
 
7891
      allow_undefined_flag=unsupported
 
7892
      always_export_symbols=no
 
7893
      enable_shared_with_static_runtimes=yes
 
7894
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7895
 
 
7896
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7897
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7898
        # If the export-symbols file already is a .def file (1st line
 
7899
        # is EXPORTS), use it as is; otherwise, prepend...
 
7900
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7901
          cp $export_symbols $output_objdir/$soname.def;
 
7902
        else
 
7903
          echo EXPORTS > $output_objdir/$soname.def;
 
7904
          cat $export_symbols >> $output_objdir/$soname.def;
 
7905
        fi~
 
7906
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7907
      else
 
7908
        ld_shlibs=no
 
7909
      fi
 
7910
      ;;
 
7911
 
 
7912
    interix[3-9]*)
 
7913
      hardcode_direct=no
 
7914
      hardcode_shlibpath_var=no
 
7915
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7916
      export_dynamic_flag_spec='${wl}-E'
 
7917
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7918
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7919
      # default) and relocated if they conflict, which is a slow very memory
 
7920
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7921
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7922
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7923
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7924
      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'
 
7925
      ;;
 
7926
 
 
7927
    gnu* | linux* | k*bsd*-gnu)
 
7928
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7929
        tmp_addflag=
 
7930
        case $cc_basename,$host_cpu in
 
7931
        pgcc*)                          # Portland Group C compiler
 
7932
          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'
 
7933
          tmp_addflag=' $pic_flag'
 
7934
          ;;
 
7935
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7936
          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'
 
7937
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7938
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7939
          tmp_addflag=' -i_dynamic' ;;
 
7940
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7941
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7942
        ifc* | ifort*)                  # Intel Fortran compiler
 
7943
          tmp_addflag=' -nofor_main' ;;
 
7944
        esac
 
7945
        case `$CC -V 2>&1 | sed 5q` in
 
7946
        *Sun\ C*)                       # Sun C 5.9
 
7947
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7948
          tmp_sharedflag='-G' ;;
 
7949
        *Sun\ F*)                       # Sun Fortran 8.3
 
7950
          tmp_sharedflag='-G' ;;
 
7951
        *)
 
7952
          tmp_sharedflag='-shared' ;;
 
7953
        esac
 
7954
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7955
 
 
7956
        if test $supports_anon_versioning = yes; then
 
7957
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7958
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7959
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7960
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7961
        fi
 
7962
      else
 
7963
        ld_shlibs=no
 
7964
      fi
 
7965
      ;;
 
7966
 
 
7967
    netbsd*)
 
7968
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7969
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7970
        wlarc=
 
7971
      else
 
7972
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7973
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7974
      fi
 
7975
      ;;
 
7976
 
 
7977
    solaris*)
 
7978
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7979
        ld_shlibs=no
 
7980
        cat <<EOF 1>&2
 
7981
 
 
7982
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7983
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7984
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7985
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7986
*** your PATH or compiler configuration so that the native linker is
 
7987
*** used, and then restart.
 
7988
 
 
7989
EOF
 
7990
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7991
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7992
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7993
      else
 
7994
        ld_shlibs=no
 
7995
      fi
 
7996
      ;;
 
7997
 
 
7998
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7999
      case `$LD -v 2>&1` in
 
8000
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8001
        ld_shlibs=no
 
8002
        cat <<_LT_EOF 1>&2
 
8003
 
 
8004
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8005
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8006
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8007
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8008
*** your PATH or compiler configuration so that the native linker is
 
8009
*** used, and then restart.
 
8010
 
 
8011
_LT_EOF
 
8012
        ;;
 
8013
        *)
 
8014
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8015
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8016
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8017
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8018
          else
 
8019
            ld_shlibs=no
 
8020
          fi
 
8021
        ;;
 
8022
      esac
 
8023
      ;;
 
8024
 
 
8025
    sunos4*)
 
8026
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8027
      wlarc=
 
8028
      hardcode_direct=yes
 
8029
      hardcode_shlibpath_var=no
 
8030
      ;;
 
8031
 
 
8032
    *)
 
8033
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8034
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8035
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8036
      else
 
8037
        ld_shlibs=no
 
8038
      fi
 
8039
      ;;
 
8040
    esac
 
8041
 
 
8042
    if test "$ld_shlibs" = no; then
 
8043
      runpath_var=
 
8044
      hardcode_libdir_flag_spec=
 
8045
      export_dynamic_flag_spec=
 
8046
      whole_archive_flag_spec=
 
8047
    fi
 
8048
  else
 
8049
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8050
    case $host_os in
 
8051
    aix3*)
 
8052
      allow_undefined_flag=unsupported
 
8053
      always_export_symbols=yes
 
8054
      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'
 
8055
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8056
      # are no directories specified by -L.
 
8057
      hardcode_minus_L=yes
 
8058
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8059
        # Neither direct hardcoding nor static linking is supported with a
 
8060
        # broken collect2.
 
8061
        hardcode_direct=unsupported
 
8062
      fi
 
8063
      ;;
 
8064
 
 
8065
    aix[4-9]*)
 
8066
      if test "$host_cpu" = ia64; then
 
8067
        # On IA64, the linker does run time linking by default, so we don't
 
8068
        # have to do anything special.
 
8069
        aix_use_runtimelinking=no
 
8070
        exp_sym_flag='-Bexport'
 
8071
        no_entry_flag=""
 
8072
      else
 
8073
        # If we're using GNU nm, then we don't want the "-C" option.
 
8074
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8075
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8076
          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'
 
8077
        else
 
8078
          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'
 
8079
        fi
 
8080
        aix_use_runtimelinking=no
 
8081
 
 
8082
        # Test if we are trying to use run time linking or normal
 
8083
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8084
        # need to do runtime linking.
 
8085
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8086
          for ld_flag in $LDFLAGS; do
 
8087
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8088
            aix_use_runtimelinking=yes
 
8089
            break
 
8090
          fi
 
8091
          done
 
8092
          ;;
 
8093
        esac
 
8094
 
 
8095
        exp_sym_flag='-bexport'
 
8096
        no_entry_flag='-bnoentry'
 
8097
      fi
 
8098
 
 
8099
      # When large executables or shared objects are built, AIX ld can
 
8100
      # have problems creating the table of contents.  If linking a library
 
8101
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8102
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8103
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8104
 
 
8105
      archive_cmds=''
 
8106
      hardcode_direct=yes
 
8107
      hardcode_libdir_separator=':'
 
8108
      link_all_deplibs=yes
 
8109
 
 
8110
      if test "$GCC" = yes; then
 
8111
        case $host_os in aix4.[012]|aix4.[012].*)
 
8112
        # We only want to do this on AIX 4.2 and lower, the check
 
8113
        # below for broken collect2 doesn't work under 4.3+
 
8114
          collect2name=`${CC} -print-prog-name=collect2`
 
8115
          if test -f "$collect2name" && \
 
8116
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8117
          then
 
8118
          # We have reworked collect2
 
8119
          :
 
8120
          else
 
8121
          # We have old collect2
 
8122
          hardcode_direct=unsupported
 
8123
          # It fails to find uninstalled libraries when the uninstalled
 
8124
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8125
          # to unsupported forces relinking
 
8126
          hardcode_minus_L=yes
 
8127
          hardcode_libdir_flag_spec='-L$libdir'
 
8128
          hardcode_libdir_separator=
 
8129
          fi
 
8130
          ;;
 
8131
        esac
 
8132
        shared_flag='-shared'
 
8133
        if test "$aix_use_runtimelinking" = yes; then
 
8134
          shared_flag="$shared_flag "'${wl}-G'
 
8135
        fi
 
8136
      else
 
8137
        # not using gcc
 
8138
        if test "$host_cpu" = ia64; then
 
8139
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8140
        # chokes on -Wl,-G. The following line is correct:
 
8141
          shared_flag='-G'
 
8142
        else
 
8143
          if test "$aix_use_runtimelinking" = yes; then
 
8144
            shared_flag='${wl}-G'
 
8145
          else
 
8146
            shared_flag='${wl}-bM:SRE'
 
8147
          fi
 
8148
        fi
 
8149
      fi
 
8150
 
 
8151
      # It seems that -bexpall does not export symbols beginning with
 
8152
      # underscore (_), so it is better to generate a list of symbols to export.
 
8153
      always_export_symbols=yes
 
8154
      if test "$aix_use_runtimelinking" = yes; then
 
8155
        # Warning - without using the other runtime loading flags (-brtl),
 
8156
        # -berok will link without error, but may produce a broken library.
 
8157
        allow_undefined_flag='-berok'
 
8158
       # Determine the default libpath from the value encoded in an empty executable.
 
8159
       cat >conftest.$ac_ext <<_ACEOF
 
8160
/* confdefs.h.  */
 
8161
_ACEOF
 
8162
cat confdefs.h >>conftest.$ac_ext
 
8163
cat >>conftest.$ac_ext <<_ACEOF
 
8164
/* end confdefs.h.  */
 
8165
 
 
8166
int
 
8167
main ()
 
8168
{
 
8169
 
 
8170
  ;
 
8171
  return 0;
 
8172
}
 
8173
_ACEOF
 
8174
rm -f conftest.$ac_objext conftest$ac_exeext
 
8175
if { (ac_try="$ac_link"
 
8176
case "(($ac_try" in
 
8177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8178
  *) ac_try_echo=$ac_try;;
 
8179
esac
 
8180
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8181
$as_echo "$ac_try_echo") >&5
 
8182
  (eval "$ac_link") 2>conftest.er1
 
8183
  ac_status=$?
 
8184
  grep -v '^ *+' conftest.er1 >conftest.err
 
8185
  rm -f conftest.er1
 
8186
  cat conftest.err >&5
 
8187
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8188
  (exit $ac_status); } && {
 
8189
         test -z "$ac_c_werror_flag" ||
 
8190
         test ! -s conftest.err
 
8191
       } && test -s conftest$ac_exeext && {
 
8192
         test "$cross_compiling" = yes ||
 
8193
         $as_test_x conftest$ac_exeext
 
8194
       }; then
 
8195
 
 
8196
lt_aix_libpath_sed='
 
8197
    /Import File Strings/,/^$/ {
 
8198
        /^0/ {
 
8199
            s/^0  *\(.*\)$/\1/
 
8200
            p
 
8201
        }
 
8202
    }'
 
8203
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8204
# Check for a 64-bit object if we didn't find anything.
 
8205
if test -z "$aix_libpath"; then
 
8206
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8207
fi
 
8208
else
 
8209
  $as_echo "$as_me: failed program was:" >&5
 
8210
sed 's/^/| /' conftest.$ac_ext >&5
 
8211
 
 
8212
 
 
8213
fi
 
8214
 
 
8215
rm -rf conftest.dSYM
 
8216
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8217
      conftest$ac_exeext conftest.$ac_ext
 
8218
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8219
 
 
8220
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8221
        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"
 
8222
       else
 
8223
        if test "$host_cpu" = ia64; then
 
8224
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8225
          allow_undefined_flag="-z nodefs"
 
8226
          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"
 
8227
        else
 
8228
         # Determine the default libpath from the value encoded in an empty executable.
 
8229
         cat >conftest.$ac_ext <<_ACEOF
 
8230
/* confdefs.h.  */
 
8231
_ACEOF
 
8232
cat confdefs.h >>conftest.$ac_ext
 
8233
cat >>conftest.$ac_ext <<_ACEOF
 
8234
/* end confdefs.h.  */
 
8235
 
 
8236
int
 
8237
main ()
 
8238
{
 
8239
 
 
8240
  ;
 
8241
  return 0;
 
8242
}
 
8243
_ACEOF
 
8244
rm -f conftest.$ac_objext conftest$ac_exeext
 
8245
if { (ac_try="$ac_link"
 
8246
case "(($ac_try" in
 
8247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8248
  *) ac_try_echo=$ac_try;;
 
8249
esac
 
8250
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8251
$as_echo "$ac_try_echo") >&5
 
8252
  (eval "$ac_link") 2>conftest.er1
 
8253
  ac_status=$?
 
8254
  grep -v '^ *+' conftest.er1 >conftest.err
 
8255
  rm -f conftest.er1
 
8256
  cat conftest.err >&5
 
8257
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8258
  (exit $ac_status); } && {
 
8259
         test -z "$ac_c_werror_flag" ||
 
8260
         test ! -s conftest.err
 
8261
       } && test -s conftest$ac_exeext && {
 
8262
         test "$cross_compiling" = yes ||
 
8263
         $as_test_x conftest$ac_exeext
 
8264
       }; then
 
8265
 
 
8266
lt_aix_libpath_sed='
 
8267
    /Import File Strings/,/^$/ {
 
8268
        /^0/ {
 
8269
            s/^0  *\(.*\)$/\1/
 
8270
            p
 
8271
        }
 
8272
    }'
 
8273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8274
# Check for a 64-bit object if we didn't find anything.
 
8275
if test -z "$aix_libpath"; then
 
8276
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8277
fi
 
8278
else
 
8279
  $as_echo "$as_me: failed program was:" >&5
 
8280
sed 's/^/| /' conftest.$ac_ext >&5
 
8281
 
 
8282
 
 
8283
fi
 
8284
 
 
8285
rm -rf conftest.dSYM
 
8286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8287
      conftest$ac_exeext conftest.$ac_ext
 
8288
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8289
 
 
8290
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8291
          # Warning - without using the other run time loading flags,
 
8292
          # -berok will link without error, but may produce a broken library.
 
8293
          no_undefined_flag=' ${wl}-bernotok'
 
8294
          allow_undefined_flag=' ${wl}-berok'
 
8295
          # Exported symbols can be pulled into shared objects from archives
 
8296
          whole_archive_flag_spec='$convenience'
 
8297
          archive_cmds_need_lc=yes
 
8298
          # This is similar to how AIX traditionally builds its shared libraries.
 
8299
          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'
 
8300
        fi
 
8301
      fi
 
8302
      ;;
 
8303
 
 
8304
    amigaos*)
 
8305
      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)'
 
8306
      hardcode_libdir_flag_spec='-L$libdir'
 
8307
      hardcode_minus_L=yes
 
8308
      # see comment about different semantics on the GNU ld section
 
8309
      ld_shlibs=no
 
8310
      ;;
 
8311
 
 
8312
    bsdi[45]*)
 
8313
      export_dynamic_flag_spec=-rdynamic
 
8314
      ;;
 
8315
 
 
8316
    cygwin* | mingw* | pw32*)
 
8317
      # When not using gcc, we currently assume that we are using
 
8318
      # Microsoft Visual C++.
 
8319
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8320
      # no search path for DLLs.
 
8321
      hardcode_libdir_flag_spec=' '
 
8322
      allow_undefined_flag=unsupported
 
8323
      # Tell ltmain to make .lib files, not .a files.
 
8324
      libext=lib
 
8325
      # Tell ltmain to make .dll files, not .so files.
 
8326
      shrext_cmds=".dll"
 
8327
      # FIXME: Setting linknames here is a bad hack.
 
8328
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8329
      # The linker will automatically build a .lib file if we build a DLL.
 
8330
      old_archive_From_new_cmds='true'
 
8331
      # FIXME: Should let the user specify the lib program.
 
8332
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8333
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8334
      enable_shared_with_static_runtimes=yes
 
8335
      ;;
 
8336
 
 
8337
    darwin* | rhapsody*)
 
8338
      case $host_os in
 
8339
        rhapsody* | darwin1.[012])
 
8340
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8341
         ;;
 
8342
       *) # Darwin 1.3 on
 
8343
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8344
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8345
         else
 
8346
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8347
             10.[012])
 
8348
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8349
               ;;
 
8350
             10.*)
 
8351
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8352
               ;;
 
8353
           esac
 
8354
         fi
 
8355
         ;;
 
8356
      esac
 
8357
      archive_cmds_need_lc=no
 
8358
      hardcode_direct=no
 
8359
      hardcode_automatic=yes
 
8360
      hardcode_shlibpath_var=unsupported
 
8361
      whole_archive_flag_spec=''
 
8362
      link_all_deplibs=yes
 
8363
    if test "$GCC" = yes ; then
 
8364
        output_verbose_link_cmd='echo'
 
8365
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8366
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8367
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8368
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8369
    else
 
8370
      case $cc_basename in
 
8371
        xlc*)
 
8372
         output_verbose_link_cmd='echo'
 
8373
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8374
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8375
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8376
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8377
          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}'
 
8378
          ;;
 
8379
       *)
 
8380
         ld_shlibs=no
 
8381
          ;;
 
8382
      esac
 
8383
    fi
 
8384
      ;;
 
8385
 
 
8386
    dgux*)
 
8387
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8388
      hardcode_libdir_flag_spec='-L$libdir'
 
8389
      hardcode_shlibpath_var=no
 
8390
      ;;
 
8391
 
 
8392
    freebsd1*)
 
8393
      ld_shlibs=no
 
8394
      ;;
 
8395
 
 
8396
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8397
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8398
    # does not break anything, and helps significantly (at the cost of a little
 
8399
    # extra space).
 
8400
    freebsd2.2*)
 
8401
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8402
      hardcode_libdir_flag_spec='-R$libdir'
 
8403
      hardcode_direct=yes
 
8404
      hardcode_shlibpath_var=no
 
8405
      ;;
 
8406
 
 
8407
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8408
    freebsd2*)
 
8409
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8410
      hardcode_direct=yes
 
8411
      hardcode_minus_L=yes
 
8412
      hardcode_shlibpath_var=no
 
8413
      ;;
 
8414
 
 
8415
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8416
    freebsd* | dragonfly*)
 
8417
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8418
      hardcode_libdir_flag_spec='-R$libdir'
 
8419
      hardcode_direct=yes
 
8420
      hardcode_shlibpath_var=no
 
8421
      ;;
 
8422
 
 
8423
    hpux9*)
 
8424
      if test "$GCC" = yes; then
 
8425
        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'
 
8426
      else
 
8427
        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'
 
8428
      fi
 
8429
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8430
      hardcode_libdir_separator=:
 
8431
      hardcode_direct=yes
 
8432
 
 
8433
      # hardcode_minus_L: Not really in the search PATH,
 
8434
      # but as the default location of the library.
 
8435
      hardcode_minus_L=yes
 
8436
      export_dynamic_flag_spec='${wl}-E'
 
8437
      ;;
 
8438
 
 
8439
    hpux10*)
 
8440
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8441
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8442
      else
 
8443
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8444
      fi
 
8445
      if test "$with_gnu_ld" = no; then
 
8446
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8447
        hardcode_libdir_separator=:
 
8448
 
 
8449
        hardcode_direct=yes
 
8450
        export_dynamic_flag_spec='${wl}-E'
 
8451
 
 
8452
        # hardcode_minus_L: Not really in the search PATH,
 
8453
        # but as the default location of the library.
 
8454
        hardcode_minus_L=yes
 
8455
      fi
 
8456
      ;;
 
8457
 
 
8458
    hpux11*)
 
8459
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8460
        case $host_cpu in
 
8461
        hppa*64*)
 
8462
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8463
          ;;
 
8464
        ia64*)
 
8465
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8466
          ;;
 
8467
        *)
 
8468
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8469
          ;;
 
8470
        esac
 
8471
      else
 
8472
        case $host_cpu in
 
8473
        hppa*64*)
 
8474
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8475
          ;;
 
8476
        ia64*)
 
8477
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8478
          ;;
 
8479
        *)
 
8480
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8481
          ;;
 
8482
        esac
 
8483
      fi
 
8484
      if test "$with_gnu_ld" = no; then
 
8485
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8486
        hardcode_libdir_separator=:
 
8487
 
 
8488
        case $host_cpu in
 
8489
        hppa*64*|ia64*)
 
8490
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8491
          hardcode_direct=no
 
8492
          hardcode_shlibpath_var=no
 
8493
          ;;
 
8494
        *)
 
8495
          hardcode_direct=yes
 
8496
          export_dynamic_flag_spec='${wl}-E'
 
8497
 
 
8498
          # hardcode_minus_L: Not really in the search PATH,
 
8499
          # but as the default location of the library.
 
8500
          hardcode_minus_L=yes
 
8501
          ;;
 
8502
        esac
 
8503
      fi
 
8504
      ;;
 
8505
 
 
8506
    irix5* | irix6* | nonstopux*)
 
8507
      if test "$GCC" = yes; then
 
8508
        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'
 
8509
      else
 
8510
        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'
 
8511
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8512
      fi
 
8513
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8514
      hardcode_libdir_separator=:
 
8515
      link_all_deplibs=yes
 
8516
      ;;
 
8517
 
 
8518
    netbsd*)
 
8519
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8520
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8521
      else
 
8522
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8523
      fi
 
8524
      hardcode_libdir_flag_spec='-R$libdir'
 
8525
      hardcode_direct=yes
 
8526
      hardcode_shlibpath_var=no
 
8527
      ;;
 
8528
 
 
8529
    newsos6)
 
8530
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8531
      hardcode_direct=yes
 
8532
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8533
      hardcode_libdir_separator=:
 
8534
      hardcode_shlibpath_var=no
 
8535
      ;;
 
8536
 
 
8537
    openbsd*)
 
8538
      if test -f /usr/libexec/ld.so; then
 
8539
        hardcode_direct=yes
 
8540
        hardcode_shlibpath_var=no
 
8541
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8542
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8543
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8544
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8545
          export_dynamic_flag_spec='${wl}-E'
 
8546
        else
 
8547
          case $host_os in
 
8548
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8549
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8550
             hardcode_libdir_flag_spec='-R$libdir'
 
8551
             ;;
 
8552
           *)
 
8553
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8554
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8555
             ;;
 
8556
          esac
 
8557
        fi
 
8558
      else
 
8559
        ld_shlibs=no
 
8560
      fi
 
8561
      ;;
 
8562
 
 
8563
    os2*)
 
8564
      hardcode_libdir_flag_spec='-L$libdir'
 
8565
      hardcode_minus_L=yes
 
8566
      allow_undefined_flag=unsupported
 
8567
      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'
 
8568
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8569
      ;;
 
8570
 
 
8571
    osf3*)
 
8572
      if test "$GCC" = yes; then
 
8573
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8574
        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'
 
8575
      else
 
8576
        allow_undefined_flag=' -expect_unresolved \*'
 
8577
        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'
 
8578
      fi
 
8579
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8580
      hardcode_libdir_separator=:
 
8581
      ;;
 
8582
 
 
8583
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8584
      if test "$GCC" = yes; then
 
8585
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8586
        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'
 
8587
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8588
      else
 
8589
        allow_undefined_flag=' -expect_unresolved \*'
 
8590
        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'
 
8591
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8592
        $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'
 
8593
 
 
8594
        # Both c and cxx compiler support -rpath directly
 
8595
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8596
      fi
 
8597
      hardcode_libdir_separator=:
 
8598
      ;;
 
8599
 
 
8600
    solaris*)
 
8601
      no_undefined_flag=' -z text'
 
8602
      if test "$GCC" = yes; then
 
8603
        wlarc='${wl}'
 
8604
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8605
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8606
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8607
      else
 
8608
        wlarc=''
 
8609
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8610
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8611
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8612
      fi
 
8613
      hardcode_libdir_flag_spec='-R$libdir'
 
8614
      hardcode_shlibpath_var=no
 
8615
      case $host_os in
 
8616
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8617
      *)
 
8618
        # The compiler driver will combine and reorder linker options,
 
8619
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8620
        # but is careful enough not to reorder.
 
8621
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8622
        if test "$GCC" = yes; then
 
8623
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8624
        else
 
8625
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8626
        fi
 
8627
        ;;
 
8628
      esac
 
8629
      link_all_deplibs=yes
 
8630
      ;;
 
8631
 
 
8632
    sunos4*)
 
8633
      if test "x$host_vendor" = xsequent; then
 
8634
        # Use $CC to link under sequent, because it throws in some extra .o
 
8635
        # files that make .init and .fini sections work.
 
8636
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8637
      else
 
8638
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8639
      fi
 
8640
      hardcode_libdir_flag_spec='-L$libdir'
 
8641
      hardcode_direct=yes
 
8642
      hardcode_minus_L=yes
 
8643
      hardcode_shlibpath_var=no
 
8644
      ;;
 
8645
 
 
8646
    sysv4)
 
8647
      case $host_vendor in
 
8648
        sni)
 
8649
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8650
          hardcode_direct=yes # is this really true???
 
8651
        ;;
 
8652
        siemens)
 
8653
          ## LD is ld it makes a PLAMLIB
 
8654
          ## CC just makes a GrossModule.
 
8655
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8656
          reload_cmds='$CC -r -o $output$reload_objs'
 
8657
          hardcode_direct=no
 
8658
        ;;
 
8659
        motorola)
 
8660
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8661
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8662
        ;;
 
8663
      esac
 
8664
      runpath_var='LD_RUN_PATH'
 
8665
      hardcode_shlibpath_var=no
 
8666
      ;;
 
8667
 
 
8668
    sysv4.3*)
 
8669
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8670
      hardcode_shlibpath_var=no
 
8671
      export_dynamic_flag_spec='-Bexport'
 
8672
      ;;
 
8673
 
 
8674
    sysv4*MP*)
 
8675
      if test -d /usr/nec; then
 
8676
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8677
        hardcode_shlibpath_var=no
 
8678
        runpath_var=LD_RUN_PATH
 
8679
        hardcode_runpath_var=yes
 
8680
        ld_shlibs=yes
 
8681
      fi
 
8682
      ;;
 
8683
 
 
8684
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8685
      no_undefined_flag='${wl}-z,text'
 
8686
      archive_cmds_need_lc=no
 
8687
      hardcode_shlibpath_var=no
 
8688
      runpath_var='LD_RUN_PATH'
 
8689
 
 
8690
      if test "$GCC" = yes; then
 
8691
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8692
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8693
      else
 
8694
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8695
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8696
      fi
 
8697
      ;;
 
8698
 
 
8699
    sysv5* | sco3.2v5* | sco5v6*)
 
8700
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8701
      # link with -lc, and that would cause any symbols used from libc to
 
8702
      # always be unresolved, which means just about no library would
 
8703
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8704
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8705
      # as -z defs.
 
8706
      no_undefined_flag='${wl}-z,text'
 
8707
      allow_undefined_flag='${wl}-z,nodefs'
 
8708
      archive_cmds_need_lc=no
 
8709
      hardcode_shlibpath_var=no
 
8710
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8711
      hardcode_libdir_separator=':'
 
8712
      link_all_deplibs=yes
 
8713
      export_dynamic_flag_spec='${wl}-Bexport'
 
8714
      runpath_var='LD_RUN_PATH'
 
8715
 
 
8716
      if test "$GCC" = yes; then
 
8717
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8718
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8719
      else
 
8720
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8721
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8722
      fi
 
8723
      ;;
 
8724
 
 
8725
    uts4*)
 
8726
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8727
      hardcode_libdir_flag_spec='-L$libdir'
 
8728
      hardcode_shlibpath_var=no
 
8729
      ;;
 
8730
 
 
8731
    *)
 
8732
      ld_shlibs=no
 
8733
      ;;
 
8734
    esac
 
8735
  fi
 
8736
 
 
8737
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8738
$as_echo "$ld_shlibs" >&6; }
 
8739
test "$ld_shlibs" = no && can_build_shared=no
 
8740
 
 
8741
#
 
8742
# Do we need to explicitly link libc?
 
8743
#
 
8744
case "x$archive_cmds_need_lc" in
 
8745
x|xyes)
 
8746
  # Assume -lc should be added
 
8747
  archive_cmds_need_lc=yes
 
8748
 
 
8749
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8750
    case $archive_cmds in
 
8751
    *'~'*)
 
8752
      # FIXME: we may have to deal with multi-command sequences.
 
8753
      ;;
 
8754
    '$CC '*)
 
8755
      # Test whether the compiler implicitly links with -lc since on some
 
8756
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8757
      # to ld, don't add -lc before -lgcc.
 
8758
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8759
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
8760
      $rm conftest*
 
8761
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8762
 
 
8763
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8764
  (eval $ac_compile) 2>&5
 
8765
  ac_status=$?
 
8766
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8767
  (exit $ac_status); } 2>conftest.err; then
 
8768
        soname=conftest
 
8769
        lib=conftest
 
8770
        libobjs=conftest.$ac_objext
 
8771
        deplibs=
 
8772
        wl=$lt_prog_compiler_wl
 
8773
        pic_flag=$lt_prog_compiler_pic
 
8774
        compiler_flags=-v
 
8775
        linker_flags=-v
 
8776
        verstring=
 
8777
        output_objdir=.
 
8778
        libname=conftest
 
8779
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8780
        allow_undefined_flag=
 
8781
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8782
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8783
  ac_status=$?
 
8784
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8785
  (exit $ac_status); }
 
8786
        then
 
8787
          archive_cmds_need_lc=no
 
8788
        else
 
8789
          archive_cmds_need_lc=yes
 
8790
        fi
 
8791
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8792
      else
 
8793
        cat conftest.err 1>&5
 
8794
      fi
 
8795
      $rm conftest*
 
8796
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8797
$as_echo "$archive_cmds_need_lc" >&6; }
 
8798
      ;;
 
8799
    esac
 
8800
  fi
 
8801
  ;;
 
8802
esac
 
8803
 
 
8804
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8805
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
8806
library_names_spec=
 
8807
libname_spec='lib$name'
 
8808
soname_spec=
 
8809
shrext_cmds=".so"
 
8810
postinstall_cmds=
 
8811
postuninstall_cmds=
 
8812
finish_cmds=
 
8813
finish_eval=
 
8814
shlibpath_var=
 
8815
shlibpath_overrides_runpath=unknown
 
8816
version_type=none
 
8817
dynamic_linker="$host_os ld.so"
 
8818
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8819
 
 
8820
if test "$GCC" = yes; then
 
8821
  case $host_os in
 
8822
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8823
    *) lt_awk_arg="/^libraries:/" ;;
 
8824
  esac
 
8825
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8826
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
8827
    # if the path contains ";" then we assume it to be the separator
 
8828
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8829
    # assumed that no part of a normal pathname contains ";" but that should
 
8830
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8831
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
8832
  else
 
8833
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8834
  fi
 
8835
  # Ok, now we have the path, separated by spaces, we can step through it
 
8836
  # and add multilib dir if necessary.
 
8837
  lt_tmp_lt_search_path_spec=
 
8838
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8839
  for lt_sys_path in $lt_search_path_spec; do
 
8840
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8841
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8842
    else
 
8843
      test -d "$lt_sys_path" && \
 
8844
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8845
    fi
 
8846
  done
 
8847
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8848
BEGIN {RS=" "; FS="/|\n";} {
 
8849
  lt_foo="";
 
8850
  lt_count=0;
 
8851
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8852
    if ($lt_i != "" && $lt_i != ".") {
 
8853
      if ($lt_i == "..") {
 
8854
        lt_count++;
 
8855
      } else {
 
8856
        if (lt_count == 0) {
 
8857
          lt_foo="/" $lt_i lt_foo;
 
8858
        } else {
 
8859
          lt_count--;
 
8860
        }
 
8861
      }
 
8862
    }
 
8863
  }
 
8864
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8865
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8866
}'`
 
8867
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
8868
else
 
8869
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8870
fi
 
8871
need_lib_prefix=unknown
 
8872
hardcode_into_libs=no
 
8873
 
 
8874
# when you set need_version to no, make sure it does not cause -set_version
 
8875
# flags to be left without arguments
 
8876
need_version=unknown
 
8877
 
 
8878
case $host_os in
 
8879
aix3*)
 
8880
  version_type=linux
 
8881
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8882
  shlibpath_var=LIBPATH
 
8883
 
 
8884
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8885
  soname_spec='${libname}${release}${shared_ext}$major'
 
8886
  ;;
 
8887
 
 
8888
aix[4-9]*)
 
8889
  version_type=linux
 
8890
  need_lib_prefix=no
 
8891
  need_version=no
 
8892
  hardcode_into_libs=yes
 
8893
  if test "$host_cpu" = ia64; then
 
8894
    # AIX 5 supports IA64
 
8895
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8896
    shlibpath_var=LD_LIBRARY_PATH
 
8897
  else
 
8898
    # With GCC up to 2.95.x, collect2 would create an import file
 
8899
    # for dependence libraries.  The import file would start with
 
8900
    # the line `#! .'.  This would cause the generated library to
 
8901
    # depend on `.', always an invalid library.  This was fixed in
 
8902
    # development snapshots of GCC prior to 3.0.
 
8903
    case $host_os in
 
8904
      aix4 | aix4.[01] | aix4.[01].*)
 
8905
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8906
           echo ' yes '
 
8907
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8908
        :
 
8909
      else
 
8910
        can_build_shared=no
 
8911
      fi
 
8912
      ;;
 
8913
    esac
 
8914
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8915
    # soname into executable. Probably we can add versioning support to
 
8916
    # collect2, so additional links can be useful in future.
 
8917
    if test "$aix_use_runtimelinking" = yes; then
 
8918
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8919
      # instead of lib<name>.a to let people know that these are not
 
8920
      # typical AIX shared libraries.
 
8921
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8922
    else
 
8923
      # We preserve .a as extension for shared libraries through AIX4.2
 
8924
      # and later when we are not doing run time linking.
 
8925
      library_names_spec='${libname}${release}.a $libname.a'
 
8926
      soname_spec='${libname}${release}${shared_ext}$major'
 
8927
    fi
 
8928
    shlibpath_var=LIBPATH
 
8929
  fi
 
8930
  ;;
 
8931
 
 
8932
amigaos*)
 
8933
  library_names_spec='$libname.ixlibrary $libname.a'
 
8934
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8935
  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'
 
8936
  ;;
 
8937
 
 
8938
beos*)
 
8939
  library_names_spec='${libname}${shared_ext}'
 
8940
  dynamic_linker="$host_os ld.so"
 
8941
  shlibpath_var=LIBRARY_PATH
 
8942
  ;;
 
8943
 
 
8944
bsdi[45]*)
 
8945
  version_type=linux
 
8946
  need_version=no
 
8947
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8948
  soname_spec='${libname}${release}${shared_ext}$major'
 
8949
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8950
  shlibpath_var=LD_LIBRARY_PATH
 
8951
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8952
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8953
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8954
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8955
  # libtool to hard-code these into programs
 
8956
  ;;
 
8957
 
 
8958
cygwin* | mingw* | pw32*)
 
8959
  version_type=windows
 
8960
  shrext_cmds=".dll"
 
8961
  need_version=no
 
8962
  need_lib_prefix=no
 
8963
 
 
8964
  case $GCC,$host_os in
 
8965
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8966
    library_names_spec='$libname.dll.a'
 
8967
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8968
    postinstall_cmds='base_file=`basename \${file}`~
 
8969
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8970
      dldir=$destdir/`dirname \$dlpath`~
 
8971
      test -d \$dldir || mkdir -p \$dldir~
 
8972
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8973
      chmod a+x \$dldir/$dlname'
 
8974
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8975
      dlpath=$dir/\$dldll~
 
8976
       $rm \$dlpath'
 
8977
    shlibpath_overrides_runpath=yes
 
8978
 
 
8979
    case $host_os in
 
8980
    cygwin*)
 
8981
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8982
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8983
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8984
      ;;
 
8985
    mingw*)
 
8986
      # MinGW DLLs use traditional 'lib' prefix
 
8987
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8988
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8989
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8990
        # It is most probably a Windows format PATH printed by
 
8991
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8992
        # path with ; separators, and with drive letters. We can handle the
 
8993
        # drive letters (cygwin fileutils understands them), so leave them,
 
8994
        # especially as we might pass files found there to a mingw objdump,
 
8995
        # which wouldn't understand a cygwinified path. Ahh.
 
8996
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8997
      else
 
8998
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8999
      fi
 
9000
      ;;
 
9001
    pw32*)
 
9002
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9003
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9004
      ;;
 
9005
    esac
 
9006
    ;;
 
9007
 
 
9008
  *)
 
9009
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9010
    ;;
 
9011
  esac
 
9012
  dynamic_linker='Win32 ld.exe'
 
9013
  # FIXME: first we should search . and the directory the executable is in
 
9014
  shlibpath_var=PATH
 
9015
  ;;
 
9016
 
 
9017
darwin* | rhapsody*)
 
9018
  dynamic_linker="$host_os dyld"
 
9019
  version_type=darwin
 
9020
  need_lib_prefix=no
 
9021
  need_version=no
 
9022
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9023
  soname_spec='${libname}${release}${major}$shared_ext'
 
9024
  shlibpath_overrides_runpath=yes
 
9025
  shlibpath_var=DYLD_LIBRARY_PATH
 
9026
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9027
 
 
9028
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9029
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9030
  ;;
 
9031
 
 
9032
dgux*)
 
9033
  version_type=linux
 
9034
  need_lib_prefix=no
 
9035
  need_version=no
 
9036
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9037
  soname_spec='${libname}${release}${shared_ext}$major'
 
9038
  shlibpath_var=LD_LIBRARY_PATH
 
9039
  ;;
 
9040
 
 
9041
freebsd1*)
 
9042
  dynamic_linker=no
 
9043
  ;;
 
9044
 
 
9045
freebsd* | dragonfly*)
 
9046
  # DragonFly does not have aout.  When/if they implement a new
 
9047
  # versioning mechanism, adjust this.
 
9048
  if test -x /usr/bin/objformat; then
 
9049
    objformat=`/usr/bin/objformat`
 
9050
  else
 
9051
    case $host_os in
 
9052
    freebsd[123]*) objformat=aout ;;
 
9053
    *) objformat=elf ;;
 
9054
    esac
 
9055
  fi
 
9056
  version_type=freebsd-$objformat
 
9057
  case $version_type in
 
9058
    freebsd-elf*)
 
9059
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9060
      need_version=no
 
9061
      need_lib_prefix=no
 
9062
      ;;
 
9063
    freebsd-*)
 
9064
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9065
      need_version=yes
 
9066
      ;;
 
9067
  esac
 
9068
  shlibpath_var=LD_LIBRARY_PATH
 
9069
  case $host_os in
 
9070
  freebsd2*)
 
9071
    shlibpath_overrides_runpath=yes
 
9072
    ;;
 
9073
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9074
    shlibpath_overrides_runpath=yes
 
9075
    hardcode_into_libs=yes
 
9076
    ;;
 
9077
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9078
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9079
    shlibpath_overrides_runpath=no
 
9080
    hardcode_into_libs=yes
 
9081
    ;;
 
9082
  *) # from 4.6 on, and DragonFly
 
9083
    shlibpath_overrides_runpath=yes
 
9084
    hardcode_into_libs=yes
 
9085
    ;;
 
9086
  esac
 
9087
  ;;
 
9088
 
 
9089
gnu*)
 
9090
  version_type=linux
 
9091
  need_lib_prefix=no
 
9092
  need_version=no
 
9093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9094
  soname_spec='${libname}${release}${shared_ext}$major'
 
9095
  shlibpath_var=LD_LIBRARY_PATH
 
9096
  hardcode_into_libs=yes
 
9097
  ;;
 
9098
 
 
9099
hpux9* | hpux10* | hpux11*)
 
9100
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9101
  # link against other versions.
 
9102
  version_type=sunos
 
9103
  need_lib_prefix=no
 
9104
  need_version=no
 
9105
  case $host_cpu in
 
9106
  ia64*)
 
9107
    shrext_cmds='.so'
 
9108
    hardcode_into_libs=yes
 
9109
    dynamic_linker="$host_os dld.so"
 
9110
    shlibpath_var=LD_LIBRARY_PATH
 
9111
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9112
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9113
    soname_spec='${libname}${release}${shared_ext}$major'
 
9114
    if test "X$HPUX_IA64_MODE" = X32; then
 
9115
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9116
    else
 
9117
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9118
    fi
 
9119
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9120
    ;;
 
9121
   hppa*64*)
 
9122
     shrext_cmds='.sl'
 
9123
     hardcode_into_libs=yes
 
9124
     dynamic_linker="$host_os dld.sl"
 
9125
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9126
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9127
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9128
     soname_spec='${libname}${release}${shared_ext}$major'
 
9129
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9130
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9131
     ;;
 
9132
   *)
 
9133
    shrext_cmds='.sl'
 
9134
    dynamic_linker="$host_os dld.sl"
 
9135
    shlibpath_var=SHLIB_PATH
 
9136
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9137
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9138
    soname_spec='${libname}${release}${shared_ext}$major'
 
9139
    ;;
 
9140
  esac
 
9141
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9142
  postinstall_cmds='chmod 555 $lib'
 
9143
  ;;
 
9144
 
 
9145
interix[3-9]*)
 
9146
  version_type=linux
 
9147
  need_lib_prefix=no
 
9148
  need_version=no
 
9149
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9150
  soname_spec='${libname}${release}${shared_ext}$major'
 
9151
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9152
  shlibpath_var=LD_LIBRARY_PATH
 
9153
  shlibpath_overrides_runpath=no
 
9154
  hardcode_into_libs=yes
 
9155
  ;;
 
9156
 
 
9157
irix5* | irix6* | nonstopux*)
 
9158
  case $host_os in
 
9159
    nonstopux*) version_type=nonstopux ;;
 
9160
    *)
 
9161
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9162
                version_type=linux
 
9163
        else
 
9164
                version_type=irix
 
9165
        fi ;;
 
9166
  esac
 
9167
  need_lib_prefix=no
 
9168
  need_version=no
 
9169
  soname_spec='${libname}${release}${shared_ext}$major'
 
9170
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9171
  case $host_os in
 
9172
  irix5* | nonstopux*)
 
9173
    libsuff= shlibsuff=
 
9174
    ;;
 
9175
  *)
 
9176
    case $LD in # libtool.m4 will add one of these switches to LD
 
9177
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9178
      libsuff= shlibsuff= libmagic=32-bit;;
 
9179
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9180
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9181
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9182
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9183
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9184
    esac
 
9185
    ;;
 
9186
  esac
 
9187
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9188
  shlibpath_overrides_runpath=no
 
9189
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9190
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9191
  hardcode_into_libs=yes
 
9192
  ;;
 
9193
 
 
9194
# No shared lib support for Linux oldld, aout, or coff.
 
9195
linux*oldld* | linux*aout* | linux*coff*)
 
9196
  dynamic_linker=no
 
9197
  ;;
 
9198
 
 
9199
# This must be Linux ELF.
 
9200
linux* | k*bsd*-gnu)
 
9201
  version_type=linux
 
9202
  need_lib_prefix=no
 
9203
  need_version=no
 
9204
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9205
  soname_spec='${libname}${release}${shared_ext}$major'
 
9206
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9207
  shlibpath_var=LD_LIBRARY_PATH
 
9208
  shlibpath_overrides_runpath=no
 
9209
  # This implies no fast_install, which is unacceptable.
 
9210
  # Some rework will be needed to allow for fast_install
 
9211
  # before this can be enabled.
 
9212
  hardcode_into_libs=yes
 
9213
 
 
9214
  # Append ld.so.conf contents to the search path
 
9215
  if test -f /etc/ld.so.conf; then
 
9216
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9217
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9218
  fi
 
9219
 
 
9220
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9221
  # powerpc, because MkLinux only supported shared libraries with the
 
9222
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9223
  # most powerpc-linux boxes support dynamic linking these days and
 
9224
  # people can always --disable-shared, the test was removed, and we
 
9225
  # assume the GNU/Linux dynamic linker is in use.
 
9226
  dynamic_linker='GNU/Linux ld.so'
 
9227
  ;;
 
9228
 
 
9229
netbsd*)
 
9230
  version_type=sunos
 
9231
  need_lib_prefix=no
 
9232
  need_version=no
 
9233
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9234
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9235
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9236
    dynamic_linker='NetBSD (a.out) ld.so'
 
9237
  else
 
9238
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9239
    soname_spec='${libname}${release}${shared_ext}$major'
 
9240
    dynamic_linker='NetBSD ld.elf_so'
 
9241
  fi
 
9242
  shlibpath_var=LD_LIBRARY_PATH
 
9243
  shlibpath_overrides_runpath=yes
 
9244
  hardcode_into_libs=yes
 
9245
  ;;
 
9246
 
 
9247
newsos6)
 
9248
  version_type=linux
 
9249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9250
  shlibpath_var=LD_LIBRARY_PATH
 
9251
  shlibpath_overrides_runpath=yes
 
9252
  ;;
 
9253
 
 
9254
nto-qnx*)
 
9255
  version_type=linux
 
9256
  need_lib_prefix=no
 
9257
  need_version=no
 
9258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9259
  soname_spec='${libname}${release}${shared_ext}$major'
 
9260
  shlibpath_var=LD_LIBRARY_PATH
 
9261
  shlibpath_overrides_runpath=yes
 
9262
  ;;
 
9263
 
 
9264
openbsd*)
 
9265
  version_type=sunos
 
9266
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9267
  need_lib_prefix=no
 
9268
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9269
  case $host_os in
 
9270
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9271
    *)                         need_version=no  ;;
 
9272
  esac
 
9273
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9274
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9275
  shlibpath_var=LD_LIBRARY_PATH
 
9276
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9277
    case $host_os in
 
9278
      openbsd2.[89] | openbsd2.[89].*)
 
9279
        shlibpath_overrides_runpath=no
 
9280
        ;;
 
9281
      *)
 
9282
        shlibpath_overrides_runpath=yes
 
9283
        ;;
 
9284
      esac
 
9285
  else
 
9286
    shlibpath_overrides_runpath=yes
 
9287
  fi
 
9288
  ;;
 
9289
 
 
9290
os2*)
 
9291
  libname_spec='$name'
 
9292
  shrext_cmds=".dll"
 
9293
  need_lib_prefix=no
 
9294
  library_names_spec='$libname${shared_ext} $libname.a'
 
9295
  dynamic_linker='OS/2 ld.exe'
 
9296
  shlibpath_var=LIBPATH
 
9297
  ;;
 
9298
 
 
9299
osf3* | osf4* | osf5*)
 
9300
  version_type=osf
 
9301
  need_lib_prefix=no
 
9302
  need_version=no
 
9303
  soname_spec='${libname}${release}${shared_ext}$major'
 
9304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9305
  shlibpath_var=LD_LIBRARY_PATH
 
9306
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9307
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9308
  ;;
 
9309
 
 
9310
rdos*)
 
9311
  dynamic_linker=no
 
9312
  ;;
 
9313
 
 
9314
solaris*)
 
9315
  version_type=linux
 
9316
  need_lib_prefix=no
 
9317
  need_version=no
 
9318
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9319
  soname_spec='${libname}${release}${shared_ext}$major'
 
9320
  shlibpath_var=LD_LIBRARY_PATH
 
9321
  shlibpath_overrides_runpath=yes
 
9322
  hardcode_into_libs=yes
 
9323
  # ldd complains unless libraries are executable
 
9324
  postinstall_cmds='chmod +x $lib'
 
9325
  ;;
 
9326
 
 
9327
sunos4*)
 
9328
  version_type=sunos
 
9329
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9330
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9331
  shlibpath_var=LD_LIBRARY_PATH
 
9332
  shlibpath_overrides_runpath=yes
 
9333
  if test "$with_gnu_ld" = yes; then
 
9334
    need_lib_prefix=no
 
9335
  fi
 
9336
  need_version=yes
 
9337
  ;;
 
9338
 
 
9339
sysv4 | sysv4.3*)
 
9340
  version_type=linux
 
9341
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9342
  soname_spec='${libname}${release}${shared_ext}$major'
 
9343
  shlibpath_var=LD_LIBRARY_PATH
 
9344
  case $host_vendor in
 
9345
    sni)
 
9346
      shlibpath_overrides_runpath=no
 
9347
      need_lib_prefix=no
 
9348
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9349
      runpath_var=LD_RUN_PATH
 
9350
      ;;
 
9351
    siemens)
 
9352
      need_lib_prefix=no
 
9353
      ;;
 
9354
    motorola)
 
9355
      need_lib_prefix=no
 
9356
      need_version=no
 
9357
      shlibpath_overrides_runpath=no
 
9358
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9359
      ;;
 
9360
  esac
 
9361
  ;;
 
9362
 
 
9363
sysv4*MP*)
 
9364
  if test -d /usr/nec ;then
 
9365
    version_type=linux
 
9366
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9367
    soname_spec='$libname${shared_ext}.$major'
 
9368
    shlibpath_var=LD_LIBRARY_PATH
 
9369
  fi
 
9370
  ;;
 
9371
 
 
9372
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9373
  version_type=freebsd-elf
 
9374
  need_lib_prefix=no
 
9375
  need_version=no
 
9376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9377
  soname_spec='${libname}${release}${shared_ext}$major'
 
9378
  shlibpath_var=LD_LIBRARY_PATH
 
9379
  hardcode_into_libs=yes
 
9380
  if test "$with_gnu_ld" = yes; then
 
9381
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9382
    shlibpath_overrides_runpath=no
 
9383
  else
 
9384
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9385
    shlibpath_overrides_runpath=yes
 
9386
    case $host_os in
 
9387
      sco3.2v5*)
 
9388
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9389
        ;;
 
9390
    esac
 
9391
  fi
 
9392
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9393
  ;;
 
9394
 
 
9395
uts4*)
 
9396
  version_type=linux
 
9397
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9398
  soname_spec='${libname}${release}${shared_ext}$major'
 
9399
  shlibpath_var=LD_LIBRARY_PATH
 
9400
  ;;
 
9401
 
 
9402
*)
 
9403
  dynamic_linker=no
 
9404
  ;;
 
9405
esac
 
9406
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9407
$as_echo "$dynamic_linker" >&6; }
 
9408
test "$dynamic_linker" = no && can_build_shared=no
 
9409
 
 
9410
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9411
  $as_echo_n "(cached) " >&6
 
9412
else
 
9413
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9414
fi
 
9415
 
 
9416
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9417
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9418
  $as_echo_n "(cached) " >&6
 
9419
else
 
9420
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9421
fi
 
9422
 
 
9423
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9424
 
 
9425
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9426
if test "$GCC" = yes; then
 
9427
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9428
fi
 
9429
 
 
9430
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9431
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
9432
hardcode_action=
 
9433
if test -n "$hardcode_libdir_flag_spec" || \
 
9434
   test -n "$runpath_var" || \
 
9435
   test "X$hardcode_automatic" = "Xyes" ; then
 
9436
 
 
9437
  # We can hardcode non-existant directories.
 
9438
  if test "$hardcode_direct" != no &&
 
9439
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9440
     # have to relink, otherwise we might link with an installed library
 
9441
     # when we should be linking with a yet-to-be-installed one
 
9442
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9443
     test "$hardcode_minus_L" != no; then
 
9444
    # Linking always hardcodes the temporary library directory.
 
9445
    hardcode_action=relink
 
9446
  else
 
9447
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9448
    hardcode_action=immediate
 
9449
  fi
 
9450
else
 
9451
  # We cannot hardcode anything, or else we can only hardcode existing
 
9452
  # directories.
 
9453
  hardcode_action=unsupported
 
9454
fi
 
9455
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9456
$as_echo "$hardcode_action" >&6; }
 
9457
 
 
9458
if test "$hardcode_action" = relink; then
 
9459
  # Fast installation is not supported
 
9460
  enable_fast_install=no
 
9461
elif test "$shlibpath_overrides_runpath" = yes ||
 
9462
     test "$enable_shared" = no; then
 
9463
  # Fast installation is not necessary
 
9464
  enable_fast_install=needless
 
9465
fi
 
9466
 
 
9467
striplib=
 
9468
old_striplib=
 
9469
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9470
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
9471
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9472
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9473
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9474
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9475
$as_echo "yes" >&6; }
 
9476
else
 
9477
# FIXME - insert some real tests, host_os isn't really good enough
 
9478
  case $host_os in
 
9479
   darwin*)
 
9480
       if test -n "$STRIP" ; then
 
9481
         striplib="$STRIP -x"
 
9482
         old_striplib="$STRIP -S"
 
9483
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9484
$as_echo "yes" >&6; }
 
9485
       else
 
9486
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9487
$as_echo "no" >&6; }
 
9488
fi
 
9489
       ;;
 
9490
   *)
 
9491
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9492
$as_echo "no" >&6; }
 
9493
    ;;
 
9494
  esac
 
9495
fi
 
9496
 
 
9497
if test "x$enable_dlopen" != xyes; then
 
9498
  enable_dlopen=unknown
 
9499
  enable_dlopen_self=unknown
 
9500
  enable_dlopen_self_static=unknown
 
9501
else
 
9502
  lt_cv_dlopen=no
 
9503
  lt_cv_dlopen_libs=
 
9504
 
 
9505
  case $host_os in
 
9506
  beos*)
 
9507
    lt_cv_dlopen="load_add_on"
 
9508
    lt_cv_dlopen_libs=
 
9509
    lt_cv_dlopen_self=yes
 
9510
    ;;
 
9511
 
 
9512
  mingw* | pw32*)
 
9513
    lt_cv_dlopen="LoadLibrary"
 
9514
    lt_cv_dlopen_libs=
 
9515
   ;;
 
9516
 
 
9517
  cygwin*)
 
9518
    lt_cv_dlopen="dlopen"
 
9519
    lt_cv_dlopen_libs=
 
9520
   ;;
 
9521
 
 
9522
  darwin*)
 
9523
  # if libdl is installed we need to link against it
 
9524
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9525
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
9526
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9527
  $as_echo_n "(cached) " >&6
 
9528
else
 
9529
  ac_check_lib_save_LIBS=$LIBS
 
9530
LIBS="-ldl  $LIBS"
 
9531
cat >conftest.$ac_ext <<_ACEOF
 
9532
/* confdefs.h.  */
 
9533
_ACEOF
 
9534
cat confdefs.h >>conftest.$ac_ext
 
9535
cat >>conftest.$ac_ext <<_ACEOF
 
9536
/* end confdefs.h.  */
 
9537
 
 
9538
/* Override any GCC internal prototype to avoid an error.
 
9539
   Use char because int might match the return type of a GCC
 
9540
   builtin and then its argument prototype would still apply.  */
 
9541
#ifdef __cplusplus
 
9542
extern "C"
 
9543
#endif
 
9544
char dlopen ();
 
9545
int
 
9546
main ()
 
9547
{
 
9548
return dlopen ();
 
9549
  ;
 
9550
  return 0;
 
9551
}
 
9552
_ACEOF
 
9553
rm -f conftest.$ac_objext conftest$ac_exeext
 
9554
if { (ac_try="$ac_link"
 
9555
case "(($ac_try" in
 
9556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9557
  *) ac_try_echo=$ac_try;;
 
9558
esac
 
9559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9560
$as_echo "$ac_try_echo") >&5
 
9561
  (eval "$ac_link") 2>conftest.er1
 
9562
  ac_status=$?
 
9563
  grep -v '^ *+' conftest.er1 >conftest.err
 
9564
  rm -f conftest.er1
 
9565
  cat conftest.err >&5
 
9566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9567
  (exit $ac_status); } && {
 
9568
         test -z "$ac_c_werror_flag" ||
 
9569
         test ! -s conftest.err
 
9570
       } && test -s conftest$ac_exeext && {
 
9571
         test "$cross_compiling" = yes ||
 
9572
         $as_test_x conftest$ac_exeext
 
9573
       }; then
 
9574
  ac_cv_lib_dl_dlopen=yes
 
9575
else
 
9576
  $as_echo "$as_me: failed program was:" >&5
 
9577
sed 's/^/| /' conftest.$ac_ext >&5
 
9578
 
 
9579
        ac_cv_lib_dl_dlopen=no
 
9580
fi
 
9581
 
 
9582
rm -rf conftest.dSYM
 
9583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9584
      conftest$ac_exeext conftest.$ac_ext
 
9585
LIBS=$ac_check_lib_save_LIBS
 
9586
fi
 
9587
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9588
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
9589
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
9590
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9591
else
 
9592
 
 
9593
    lt_cv_dlopen="dyld"
 
9594
    lt_cv_dlopen_libs=
 
9595
    lt_cv_dlopen_self=yes
 
9596
 
 
9597
fi
 
9598
 
 
9599
   ;;
 
9600
 
 
9601
  *)
 
9602
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
9603
$as_echo_n "checking for shl_load... " >&6; }
 
9604
if test "${ac_cv_func_shl_load+set}" = set; then
 
9605
  $as_echo_n "(cached) " >&6
 
9606
else
 
9607
  cat >conftest.$ac_ext <<_ACEOF
 
9608
/* confdefs.h.  */
 
9609
_ACEOF
 
9610
cat confdefs.h >>conftest.$ac_ext
 
9611
cat >>conftest.$ac_ext <<_ACEOF
 
9612
/* end confdefs.h.  */
 
9613
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9614
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9615
#define shl_load innocuous_shl_load
 
9616
 
 
9617
/* System header to define __stub macros and hopefully few prototypes,
 
9618
    which can conflict with char shl_load (); below.
 
9619
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9620
    <limits.h> exists even on freestanding compilers.  */
 
9621
 
 
9622
#ifdef __STDC__
 
9623
# include <limits.h>
 
9624
#else
 
9625
# include <assert.h>
 
9626
#endif
 
9627
 
 
9628
#undef shl_load
 
9629
 
 
9630
/* Override any GCC internal prototype to avoid an error.
 
9631
   Use char because int might match the return type of a GCC
 
9632
   builtin and then its argument prototype would still apply.  */
 
9633
#ifdef __cplusplus
 
9634
extern "C"
 
9635
#endif
 
9636
char shl_load ();
 
9637
/* The GNU C library defines this for functions which it implements
 
9638
    to always fail with ENOSYS.  Some functions are actually named
 
9639
    something starting with __ and the normal name is an alias.  */
 
9640
#if defined __stub_shl_load || defined __stub___shl_load
 
9641
choke me
 
9642
#endif
 
9643
 
 
9644
int
 
9645
main ()
 
9646
{
 
9647
return shl_load ();
 
9648
  ;
 
9649
  return 0;
 
9650
}
 
9651
_ACEOF
 
9652
rm -f conftest.$ac_objext conftest$ac_exeext
 
9653
if { (ac_try="$ac_link"
 
9654
case "(($ac_try" in
 
9655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9656
  *) ac_try_echo=$ac_try;;
 
9657
esac
 
9658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9659
$as_echo "$ac_try_echo") >&5
 
9660
  (eval "$ac_link") 2>conftest.er1
 
9661
  ac_status=$?
 
9662
  grep -v '^ *+' conftest.er1 >conftest.err
 
9663
  rm -f conftest.er1
 
9664
  cat conftest.err >&5
 
9665
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9666
  (exit $ac_status); } && {
 
9667
         test -z "$ac_c_werror_flag" ||
 
9668
         test ! -s conftest.err
 
9669
       } && test -s conftest$ac_exeext && {
 
9670
         test "$cross_compiling" = yes ||
 
9671
         $as_test_x conftest$ac_exeext
 
9672
       }; then
 
9673
  ac_cv_func_shl_load=yes
 
9674
else
 
9675
  $as_echo "$as_me: failed program was:" >&5
 
9676
sed 's/^/| /' conftest.$ac_ext >&5
 
9677
 
 
9678
        ac_cv_func_shl_load=no
 
9679
fi
 
9680
 
 
9681
rm -rf conftest.dSYM
 
9682
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9683
      conftest$ac_exeext conftest.$ac_ext
 
9684
fi
 
9685
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9686
$as_echo "$ac_cv_func_shl_load" >&6; }
 
9687
if test "x$ac_cv_func_shl_load" = x""yes; then
 
9688
  lt_cv_dlopen="shl_load"
 
9689
else
 
9690
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9691
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
9692
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9693
  $as_echo_n "(cached) " >&6
 
9694
else
 
9695
  ac_check_lib_save_LIBS=$LIBS
 
9696
LIBS="-ldld  $LIBS"
 
9697
cat >conftest.$ac_ext <<_ACEOF
 
9698
/* confdefs.h.  */
 
9699
_ACEOF
 
9700
cat confdefs.h >>conftest.$ac_ext
 
9701
cat >>conftest.$ac_ext <<_ACEOF
 
9702
/* end confdefs.h.  */
 
9703
 
 
9704
/* Override any GCC internal prototype to avoid an error.
 
9705
   Use char because int might match the return type of a GCC
 
9706
   builtin and then its argument prototype would still apply.  */
 
9707
#ifdef __cplusplus
 
9708
extern "C"
 
9709
#endif
 
9710
char shl_load ();
 
9711
int
 
9712
main ()
 
9713
{
 
9714
return shl_load ();
 
9715
  ;
 
9716
  return 0;
 
9717
}
 
9718
_ACEOF
 
9719
rm -f conftest.$ac_objext conftest$ac_exeext
 
9720
if { (ac_try="$ac_link"
 
9721
case "(($ac_try" in
 
9722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9723
  *) ac_try_echo=$ac_try;;
 
9724
esac
 
9725
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9726
$as_echo "$ac_try_echo") >&5
 
9727
  (eval "$ac_link") 2>conftest.er1
 
9728
  ac_status=$?
 
9729
  grep -v '^ *+' conftest.er1 >conftest.err
 
9730
  rm -f conftest.er1
 
9731
  cat conftest.err >&5
 
9732
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9733
  (exit $ac_status); } && {
 
9734
         test -z "$ac_c_werror_flag" ||
 
9735
         test ! -s conftest.err
 
9736
       } && test -s conftest$ac_exeext && {
 
9737
         test "$cross_compiling" = yes ||
 
9738
         $as_test_x conftest$ac_exeext
 
9739
       }; then
 
9740
  ac_cv_lib_dld_shl_load=yes
 
9741
else
 
9742
  $as_echo "$as_me: failed program was:" >&5
 
9743
sed 's/^/| /' conftest.$ac_ext >&5
 
9744
 
 
9745
        ac_cv_lib_dld_shl_load=no
 
9746
fi
 
9747
 
 
9748
rm -rf conftest.dSYM
 
9749
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9750
      conftest$ac_exeext conftest.$ac_ext
 
9751
LIBS=$ac_check_lib_save_LIBS
 
9752
fi
 
9753
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9754
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
9755
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
9756
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
9757
else
 
9758
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
9759
$as_echo_n "checking for dlopen... " >&6; }
 
9760
if test "${ac_cv_func_dlopen+set}" = set; then
 
9761
  $as_echo_n "(cached) " >&6
 
9762
else
 
9763
  cat >conftest.$ac_ext <<_ACEOF
 
9764
/* confdefs.h.  */
 
9765
_ACEOF
 
9766
cat confdefs.h >>conftest.$ac_ext
 
9767
cat >>conftest.$ac_ext <<_ACEOF
 
9768
/* end confdefs.h.  */
 
9769
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9770
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9771
#define dlopen innocuous_dlopen
 
9772
 
 
9773
/* System header to define __stub macros and hopefully few prototypes,
 
9774
    which can conflict with char dlopen (); below.
 
9775
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9776
    <limits.h> exists even on freestanding compilers.  */
 
9777
 
 
9778
#ifdef __STDC__
 
9779
# include <limits.h>
 
9780
#else
 
9781
# include <assert.h>
 
9782
#endif
 
9783
 
 
9784
#undef dlopen
 
9785
 
 
9786
/* Override any GCC internal prototype to avoid an error.
 
9787
   Use char because int might match the return type of a GCC
 
9788
   builtin and then its argument prototype would still apply.  */
 
9789
#ifdef __cplusplus
 
9790
extern "C"
 
9791
#endif
 
9792
char dlopen ();
 
9793
/* The GNU C library defines this for functions which it implements
 
9794
    to always fail with ENOSYS.  Some functions are actually named
 
9795
    something starting with __ and the normal name is an alias.  */
 
9796
#if defined __stub_dlopen || defined __stub___dlopen
 
9797
choke me
 
9798
#endif
 
9799
 
 
9800
int
 
9801
main ()
 
9802
{
 
9803
return dlopen ();
 
9804
  ;
 
9805
  return 0;
 
9806
}
 
9807
_ACEOF
 
9808
rm -f conftest.$ac_objext conftest$ac_exeext
 
9809
if { (ac_try="$ac_link"
 
9810
case "(($ac_try" in
 
9811
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9812
  *) ac_try_echo=$ac_try;;
 
9813
esac
 
9814
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9815
$as_echo "$ac_try_echo") >&5
 
9816
  (eval "$ac_link") 2>conftest.er1
 
9817
  ac_status=$?
 
9818
  grep -v '^ *+' conftest.er1 >conftest.err
 
9819
  rm -f conftest.er1
 
9820
  cat conftest.err >&5
 
9821
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9822
  (exit $ac_status); } && {
 
9823
         test -z "$ac_c_werror_flag" ||
 
9824
         test ! -s conftest.err
 
9825
       } && test -s conftest$ac_exeext && {
 
9826
         test "$cross_compiling" = yes ||
 
9827
         $as_test_x conftest$ac_exeext
 
9828
       }; then
 
9829
  ac_cv_func_dlopen=yes
 
9830
else
 
9831
  $as_echo "$as_me: failed program was:" >&5
 
9832
sed 's/^/| /' conftest.$ac_ext >&5
 
9833
 
 
9834
        ac_cv_func_dlopen=no
 
9835
fi
 
9836
 
 
9837
rm -rf conftest.dSYM
 
9838
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9839
      conftest$ac_exeext conftest.$ac_ext
 
9840
fi
 
9841
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9842
$as_echo "$ac_cv_func_dlopen" >&6; }
 
9843
if test "x$ac_cv_func_dlopen" = x""yes; then
 
9844
  lt_cv_dlopen="dlopen"
 
9845
else
 
9846
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9847
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
9848
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9849
  $as_echo_n "(cached) " >&6
 
9850
else
 
9851
  ac_check_lib_save_LIBS=$LIBS
 
9852
LIBS="-ldl  $LIBS"
 
9853
cat >conftest.$ac_ext <<_ACEOF
 
9854
/* confdefs.h.  */
 
9855
_ACEOF
 
9856
cat confdefs.h >>conftest.$ac_ext
 
9857
cat >>conftest.$ac_ext <<_ACEOF
 
9858
/* end confdefs.h.  */
 
9859
 
 
9860
/* Override any GCC internal prototype to avoid an error.
 
9861
   Use char because int might match the return type of a GCC
 
9862
   builtin and then its argument prototype would still apply.  */
 
9863
#ifdef __cplusplus
 
9864
extern "C"
 
9865
#endif
 
9866
char dlopen ();
 
9867
int
 
9868
main ()
 
9869
{
 
9870
return dlopen ();
 
9871
  ;
 
9872
  return 0;
 
9873
}
 
9874
_ACEOF
 
9875
rm -f conftest.$ac_objext conftest$ac_exeext
 
9876
if { (ac_try="$ac_link"
 
9877
case "(($ac_try" in
 
9878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9879
  *) ac_try_echo=$ac_try;;
 
9880
esac
 
9881
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9882
$as_echo "$ac_try_echo") >&5
 
9883
  (eval "$ac_link") 2>conftest.er1
 
9884
  ac_status=$?
 
9885
  grep -v '^ *+' conftest.er1 >conftest.err
 
9886
  rm -f conftest.er1
 
9887
  cat conftest.err >&5
 
9888
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9889
  (exit $ac_status); } && {
 
9890
         test -z "$ac_c_werror_flag" ||
 
9891
         test ! -s conftest.err
 
9892
       } && test -s conftest$ac_exeext && {
 
9893
         test "$cross_compiling" = yes ||
 
9894
         $as_test_x conftest$ac_exeext
 
9895
       }; then
 
9896
  ac_cv_lib_dl_dlopen=yes
 
9897
else
 
9898
  $as_echo "$as_me: failed program was:" >&5
 
9899
sed 's/^/| /' conftest.$ac_ext >&5
 
9900
 
 
9901
        ac_cv_lib_dl_dlopen=no
 
9902
fi
 
9903
 
 
9904
rm -rf conftest.dSYM
 
9905
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9906
      conftest$ac_exeext conftest.$ac_ext
 
9907
LIBS=$ac_check_lib_save_LIBS
 
9908
fi
 
9909
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9910
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
9911
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
9912
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9913
else
 
9914
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9915
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
9916
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9917
  $as_echo_n "(cached) " >&6
 
9918
else
 
9919
  ac_check_lib_save_LIBS=$LIBS
 
9920
LIBS="-lsvld  $LIBS"
 
9921
cat >conftest.$ac_ext <<_ACEOF
 
9922
/* confdefs.h.  */
 
9923
_ACEOF
 
9924
cat confdefs.h >>conftest.$ac_ext
 
9925
cat >>conftest.$ac_ext <<_ACEOF
 
9926
/* end confdefs.h.  */
 
9927
 
 
9928
/* Override any GCC internal prototype to avoid an error.
 
9929
   Use char because int might match the return type of a GCC
 
9930
   builtin and then its argument prototype would still apply.  */
 
9931
#ifdef __cplusplus
 
9932
extern "C"
 
9933
#endif
 
9934
char dlopen ();
 
9935
int
 
9936
main ()
 
9937
{
 
9938
return dlopen ();
 
9939
  ;
 
9940
  return 0;
 
9941
}
 
9942
_ACEOF
 
9943
rm -f conftest.$ac_objext conftest$ac_exeext
 
9944
if { (ac_try="$ac_link"
 
9945
case "(($ac_try" in
 
9946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9947
  *) ac_try_echo=$ac_try;;
 
9948
esac
 
9949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9950
$as_echo "$ac_try_echo") >&5
 
9951
  (eval "$ac_link") 2>conftest.er1
 
9952
  ac_status=$?
 
9953
  grep -v '^ *+' conftest.er1 >conftest.err
 
9954
  rm -f conftest.er1
 
9955
  cat conftest.err >&5
 
9956
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9957
  (exit $ac_status); } && {
 
9958
         test -z "$ac_c_werror_flag" ||
 
9959
         test ! -s conftest.err
 
9960
       } && test -s conftest$ac_exeext && {
 
9961
         test "$cross_compiling" = yes ||
 
9962
         $as_test_x conftest$ac_exeext
 
9963
       }; then
 
9964
  ac_cv_lib_svld_dlopen=yes
 
9965
else
 
9966
  $as_echo "$as_me: failed program was:" >&5
 
9967
sed 's/^/| /' conftest.$ac_ext >&5
 
9968
 
 
9969
        ac_cv_lib_svld_dlopen=no
 
9970
fi
 
9971
 
 
9972
rm -rf conftest.dSYM
 
9973
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9974
      conftest$ac_exeext conftest.$ac_ext
 
9975
LIBS=$ac_check_lib_save_LIBS
 
9976
fi
 
9977
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9978
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
9979
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
9980
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9981
else
 
9982
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9983
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
9984
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9985
  $as_echo_n "(cached) " >&6
 
9986
else
 
9987
  ac_check_lib_save_LIBS=$LIBS
 
9988
LIBS="-ldld  $LIBS"
 
9989
cat >conftest.$ac_ext <<_ACEOF
 
9990
/* confdefs.h.  */
 
9991
_ACEOF
 
9992
cat confdefs.h >>conftest.$ac_ext
 
9993
cat >>conftest.$ac_ext <<_ACEOF
 
9994
/* end confdefs.h.  */
 
9995
 
 
9996
/* Override any GCC internal prototype to avoid an error.
 
9997
   Use char because int might match the return type of a GCC
 
9998
   builtin and then its argument prototype would still apply.  */
 
9999
#ifdef __cplusplus
 
10000
extern "C"
 
10001
#endif
 
10002
char dld_link ();
 
10003
int
 
10004
main ()
 
10005
{
 
10006
return dld_link ();
 
10007
  ;
 
10008
  return 0;
 
10009
}
 
10010
_ACEOF
 
10011
rm -f conftest.$ac_objext conftest$ac_exeext
 
10012
if { (ac_try="$ac_link"
 
10013
case "(($ac_try" in
 
10014
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10015
  *) ac_try_echo=$ac_try;;
 
10016
esac
 
10017
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10018
$as_echo "$ac_try_echo") >&5
 
10019
  (eval "$ac_link") 2>conftest.er1
 
10020
  ac_status=$?
 
10021
  grep -v '^ *+' conftest.er1 >conftest.err
 
10022
  rm -f conftest.er1
 
10023
  cat conftest.err >&5
 
10024
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10025
  (exit $ac_status); } && {
 
10026
         test -z "$ac_c_werror_flag" ||
 
10027
         test ! -s conftest.err
 
10028
       } && test -s conftest$ac_exeext && {
 
10029
         test "$cross_compiling" = yes ||
 
10030
         $as_test_x conftest$ac_exeext
 
10031
       }; then
 
10032
  ac_cv_lib_dld_dld_link=yes
 
10033
else
 
10034
  $as_echo "$as_me: failed program was:" >&5
 
10035
sed 's/^/| /' conftest.$ac_ext >&5
 
10036
 
 
10037
        ac_cv_lib_dld_dld_link=no
 
10038
fi
 
10039
 
 
10040
rm -rf conftest.dSYM
 
10041
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10042
      conftest$ac_exeext conftest.$ac_ext
 
10043
LIBS=$ac_check_lib_save_LIBS
 
10044
fi
 
10045
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10046
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10047
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10048
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10049
fi
 
10050
 
 
10051
 
 
10052
fi
 
10053
 
 
10054
 
 
10055
fi
 
10056
 
 
10057
 
 
10058
fi
 
10059
 
 
10060
 
 
10061
fi
 
10062
 
 
10063
 
 
10064
fi
 
10065
 
 
10066
    ;;
 
10067
  esac
 
10068
 
 
10069
  if test "x$lt_cv_dlopen" != xno; then
 
10070
    enable_dlopen=yes
 
10071
  else
 
10072
    enable_dlopen=no
 
10073
  fi
 
10074
 
 
10075
  case $lt_cv_dlopen in
 
10076
  dlopen)
 
10077
    save_CPPFLAGS="$CPPFLAGS"
 
10078
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10079
 
 
10080
    save_LDFLAGS="$LDFLAGS"
 
10081
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10082
 
 
10083
    save_LIBS="$LIBS"
 
10084
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10085
 
 
10086
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10087
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10088
if test "${lt_cv_dlopen_self+set}" = set; then
 
10089
  $as_echo_n "(cached) " >&6
 
10090
else
 
10091
          if test "$cross_compiling" = yes; then :
 
10092
  lt_cv_dlopen_self=cross
 
10093
else
 
10094
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10095
  lt_status=$lt_dlunknown
 
10096
  cat > conftest.$ac_ext <<EOF
 
10097
#line 10097 "configure"
 
10098
#include "confdefs.h"
 
10099
 
 
10100
#if HAVE_DLFCN_H
 
10101
#include <dlfcn.h>
 
10102
#endif
 
10103
 
 
10104
#include <stdio.h>
 
10105
 
 
10106
#ifdef RTLD_GLOBAL
 
10107
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10108
#else
 
10109
#  ifdef DL_GLOBAL
 
10110
#    define LT_DLGLOBAL         DL_GLOBAL
 
10111
#  else
 
10112
#    define LT_DLGLOBAL         0
 
10113
#  endif
 
10114
#endif
 
10115
 
 
10116
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10117
   find out it does not work in some platform. */
 
10118
#ifndef LT_DLLAZY_OR_NOW
 
10119
#  ifdef RTLD_LAZY
 
10120
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10121
#  else
 
10122
#    ifdef DL_LAZY
 
10123
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10124
#    else
 
10125
#      ifdef RTLD_NOW
 
10126
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10127
#      else
 
10128
#        ifdef DL_NOW
 
10129
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10130
#        else
 
10131
#          define LT_DLLAZY_OR_NOW      0
 
10132
#        endif
 
10133
#      endif
 
10134
#    endif
 
10135
#  endif
 
10136
#endif
 
10137
 
 
10138
#ifdef __cplusplus
 
10139
extern "C" void exit (int);
 
10140
#endif
 
10141
 
 
10142
void fnord() { int i=42;}
 
10143
int main ()
 
10144
{
 
10145
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10146
  int status = $lt_dlunknown;
 
10147
 
 
10148
  if (self)
 
10149
    {
 
10150
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10151
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10152
      /* dlclose (self); */
 
10153
    }
 
10154
  else
 
10155
    puts (dlerror ());
 
10156
 
 
10157
    exit (status);
 
10158
}
 
10159
EOF
 
10160
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10161
  (eval $ac_link) 2>&5
 
10162
  ac_status=$?
 
10163
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10164
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10165
    (./conftest; exit; ) >&5 2>/dev/null
 
10166
    lt_status=$?
 
10167
    case x$lt_status in
 
10168
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10169
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10170
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10171
    esac
 
10172
  else :
 
10173
    # compilation failed
 
10174
    lt_cv_dlopen_self=no
 
10175
  fi
 
10176
fi
 
10177
rm -fr conftest*
 
10178
 
 
10179
 
 
10180
fi
 
10181
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10182
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10183
 
 
10184
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10185
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10186
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10187
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10188
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10189
  $as_echo_n "(cached) " >&6
 
10190
else
 
10191
          if test "$cross_compiling" = yes; then :
 
10192
  lt_cv_dlopen_self_static=cross
 
10193
else
 
10194
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10195
  lt_status=$lt_dlunknown
 
10196
  cat > conftest.$ac_ext <<EOF
 
10197
#line 10197 "configure"
 
10198
#include "confdefs.h"
 
10199
 
 
10200
#if HAVE_DLFCN_H
 
10201
#include <dlfcn.h>
 
10202
#endif
 
10203
 
 
10204
#include <stdio.h>
 
10205
 
 
10206
#ifdef RTLD_GLOBAL
 
10207
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10208
#else
 
10209
#  ifdef DL_GLOBAL
 
10210
#    define LT_DLGLOBAL         DL_GLOBAL
 
10211
#  else
 
10212
#    define LT_DLGLOBAL         0
 
10213
#  endif
 
10214
#endif
 
10215
 
 
10216
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10217
   find out it does not work in some platform. */
 
10218
#ifndef LT_DLLAZY_OR_NOW
 
10219
#  ifdef RTLD_LAZY
 
10220
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10221
#  else
 
10222
#    ifdef DL_LAZY
 
10223
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10224
#    else
 
10225
#      ifdef RTLD_NOW
 
10226
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10227
#      else
 
10228
#        ifdef DL_NOW
 
10229
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10230
#        else
 
10231
#          define LT_DLLAZY_OR_NOW      0
 
10232
#        endif
 
10233
#      endif
 
10234
#    endif
 
10235
#  endif
 
10236
#endif
 
10237
 
 
10238
#ifdef __cplusplus
 
10239
extern "C" void exit (int);
 
10240
#endif
 
10241
 
 
10242
void fnord() { int i=42;}
 
10243
int main ()
 
10244
{
 
10245
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10246
  int status = $lt_dlunknown;
 
10247
 
 
10248
  if (self)
 
10249
    {
 
10250
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10251
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10252
      /* dlclose (self); */
 
10253
    }
 
10254
  else
 
10255
    puts (dlerror ());
 
10256
 
 
10257
    exit (status);
 
10258
}
 
10259
EOF
 
10260
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10261
  (eval $ac_link) 2>&5
 
10262
  ac_status=$?
 
10263
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10264
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10265
    (./conftest; exit; ) >&5 2>/dev/null
 
10266
    lt_status=$?
 
10267
    case x$lt_status in
 
10268
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10269
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10270
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10271
    esac
 
10272
  else :
 
10273
    # compilation failed
 
10274
    lt_cv_dlopen_self_static=no
 
10275
  fi
 
10276
fi
 
10277
rm -fr conftest*
 
10278
 
 
10279
 
 
10280
fi
 
10281
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10282
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10283
    fi
 
10284
 
 
10285
    CPPFLAGS="$save_CPPFLAGS"
 
10286
    LDFLAGS="$save_LDFLAGS"
 
10287
    LIBS="$save_LIBS"
 
10288
    ;;
 
10289
  esac
 
10290
 
 
10291
  case $lt_cv_dlopen_self in
 
10292
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10293
  *) enable_dlopen_self=unknown ;;
 
10294
  esac
 
10295
 
 
10296
  case $lt_cv_dlopen_self_static in
 
10297
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10298
  *) enable_dlopen_self_static=unknown ;;
 
10299
  esac
 
10300
fi
 
10301
 
 
10302
 
 
10303
# Report which library types will actually be built
 
10304
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10305
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10306
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10307
$as_echo "$can_build_shared" >&6; }
 
10308
 
 
10309
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10310
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10311
test "$can_build_shared" = "no" && enable_shared=no
 
10312
 
 
10313
# On AIX, shared libraries and static libraries use the same namespace, and
 
10314
# are all built from PIC.
 
10315
case $host_os in
 
10316
aix3*)
 
10317
  test "$enable_shared" = yes && enable_static=no
 
10318
  if test -n "$RANLIB"; then
 
10319
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10320
    postinstall_cmds='$RANLIB $lib'
 
10321
  fi
 
10322
  ;;
 
10323
 
 
10324
aix[4-9]*)
 
10325
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10326
    test "$enable_shared" = yes && enable_static=no
 
10327
  fi
 
10328
    ;;
 
10329
esac
 
10330
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10331
$as_echo "$enable_shared" >&6; }
 
10332
 
 
10333
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10334
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10335
# Make sure either enable_shared or enable_static is yes.
 
10336
test "$enable_shared" = yes || enable_static=yes
 
10337
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
10338
$as_echo "$enable_static" >&6; }
 
10339
 
 
10340
# The else clause should only fire when bootstrapping the
 
10341
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10342
# with your package, and you will get complaints that there are
 
10343
# no rules to generate ltmain.sh.
 
10344
if test -f "$ltmain"; then
 
10345
  # See if we are running on zsh, and set the options which allow our commands through
 
10346
  # without removal of \ escapes.
 
10347
  if test -n "${ZSH_VERSION+set}" ; then
 
10348
    setopt NO_GLOB_SUBST
 
10349
  fi
 
10350
  # Now quote all the things that may contain metacharacters while being
 
10351
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10352
  # variables and quote the copies for generation of the libtool script.
 
10353
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10354
    SED SHELL STRIP \
 
10355
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10356
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10357
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10358
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10359
    lt_cv_sys_global_symbol_to_c_name_address \
 
10360
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10361
    old_postinstall_cmds old_postuninstall_cmds \
 
10362
    compiler \
 
10363
    CC \
 
10364
    LD \
 
10365
    lt_prog_compiler_wl \
 
10366
    lt_prog_compiler_pic \
 
10367
    lt_prog_compiler_static \
 
10368
    lt_prog_compiler_no_builtin_flag \
 
10369
    export_dynamic_flag_spec \
 
10370
    thread_safe_flag_spec \
 
10371
    whole_archive_flag_spec \
 
10372
    enable_shared_with_static_runtimes \
 
10373
    old_archive_cmds \
 
10374
    old_archive_from_new_cmds \
 
10375
    predep_objects \
 
10376
    postdep_objects \
 
10377
    predeps \
 
10378
    postdeps \
 
10379
    compiler_lib_search_path \
 
10380
    compiler_lib_search_dirs \
 
10381
    archive_cmds \
 
10382
    archive_expsym_cmds \
 
10383
    postinstall_cmds \
 
10384
    postuninstall_cmds \
 
10385
    old_archive_from_expsyms_cmds \
 
10386
    allow_undefined_flag \
 
10387
    no_undefined_flag \
 
10388
    export_symbols_cmds \
 
10389
    hardcode_libdir_flag_spec \
 
10390
    hardcode_libdir_flag_spec_ld \
 
10391
    hardcode_libdir_separator \
 
10392
    hardcode_automatic \
 
10393
    module_cmds \
 
10394
    module_expsym_cmds \
 
10395
    lt_cv_prog_compiler_c_o \
 
10396
    fix_srcfile_path \
 
10397
    exclude_expsyms \
 
10398
    include_expsyms; do
 
10399
 
 
10400
    case $var in
 
10401
    old_archive_cmds | \
 
10402
    old_archive_from_new_cmds | \
 
10403
    archive_cmds | \
 
10404
    archive_expsym_cmds | \
 
10405
    module_cmds | \
 
10406
    module_expsym_cmds | \
 
10407
    old_archive_from_expsyms_cmds | \
 
10408
    export_symbols_cmds | \
 
10409
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10410
    postinstall_cmds | postuninstall_cmds | \
 
10411
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10412
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10413
      # Double-quote double-evaled strings.
 
10414
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10415
      ;;
 
10416
    *)
 
10417
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10418
      ;;
 
10419
    esac
 
10420
  done
 
10421
 
 
10422
  case $lt_echo in
 
10423
  *'\$0 --fallback-echo"')
 
10424
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10425
    ;;
 
10426
  esac
 
10427
 
 
10428
cfgfile="${ofile}T"
 
10429
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10430
  $rm -f "$cfgfile"
 
10431
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
10432
$as_echo "$as_me: creating $ofile" >&6;}
 
10433
 
 
10434
  cat <<__EOF__ >> "$cfgfile"
 
10435
#! $SHELL
 
10436
 
 
10437
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10438
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10439
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10440
#
 
10441
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
10442
# Free Software Foundation, Inc.
 
10443
#
 
10444
# This file is part of GNU Libtool:
 
10445
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10446
#
 
10447
# This program is free software; you can redistribute it and/or modify
 
10448
# it under the terms of the GNU General Public License as published by
 
10449
# the Free Software Foundation; either version 2 of the License, or
 
10450
# (at your option) any later version.
 
10451
#
 
10452
# This program is distributed in the hope that it will be useful, but
 
10453
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10454
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10455
# General Public License for more details.
 
10456
#
 
10457
# You should have received a copy of the GNU General Public License
 
10458
# along with this program; if not, write to the Free Software
 
10459
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10460
#
 
10461
# As a special exception to the GNU General Public License, if you
 
10462
# distribute this file as part of a program that contains a
 
10463
# configuration script generated by Autoconf, you may include it under
 
10464
# the same distribution terms that you use for the rest of that program.
 
10465
 
 
10466
# A sed program that does not truncate output.
 
10467
SED=$lt_SED
 
10468
 
 
10469
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10470
Xsed="$SED -e 1s/^X//"
 
10471
 
 
10472
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10473
# if CDPATH is set.
 
10474
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10475
 
 
10476
# The names of the tagged configurations supported by this script.
 
10477
available_tags=
 
10478
 
 
10479
# ### BEGIN LIBTOOL CONFIG
 
10480
 
 
10481
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10482
 
 
10483
# Shell to use when invoking shell scripts.
 
10484
SHELL=$lt_SHELL
 
10485
 
 
10486
# Whether or not to build shared libraries.
 
10487
build_libtool_libs=$enable_shared
 
10488
 
 
10489
# Whether or not to build static libraries.
 
10490
build_old_libs=$enable_static
 
10491
 
 
10492
# Whether or not to add -lc for building shared libraries.
 
10493
build_libtool_need_lc=$archive_cmds_need_lc
 
10494
 
 
10495
# Whether or not to disallow shared libs when runtime libs are static
 
10496
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10497
 
 
10498
# Whether or not to optimize for fast installation.
 
10499
fast_install=$enable_fast_install
 
10500
 
 
10501
# The host system.
 
10502
host_alias=$host_alias
 
10503
host=$host
 
10504
host_os=$host_os
 
10505
 
 
10506
# The build system.
 
10507
build_alias=$build_alias
 
10508
build=$build
 
10509
build_os=$build_os
 
10510
 
 
10511
# An echo program that does not interpret backslashes.
 
10512
echo=$lt_echo
 
10513
 
 
10514
# The archiver.
 
10515
AR=$lt_AR
 
10516
AR_FLAGS=$lt_AR_FLAGS
 
10517
 
 
10518
# A C compiler.
 
10519
LTCC=$lt_LTCC
 
10520
 
 
10521
# LTCC compiler flags.
 
10522
LTCFLAGS=$lt_LTCFLAGS
 
10523
 
 
10524
# A language-specific compiler.
 
10525
CC=$lt_compiler
 
10526
 
 
10527
# Is the compiler the GNU C compiler?
 
10528
with_gcc=$GCC
 
10529
 
 
10530
# An ERE matcher.
 
10531
EGREP=$lt_EGREP
 
10532
 
 
10533
# The linker used to build libraries.
 
10534
LD=$lt_LD
 
10535
 
 
10536
# Whether we need hard or soft links.
 
10537
LN_S=$lt_LN_S
 
10538
 
 
10539
# A BSD-compatible nm program.
 
10540
NM=$lt_NM
 
10541
 
 
10542
# A symbol stripping program
 
10543
STRIP=$lt_STRIP
 
10544
 
 
10545
# Used to examine libraries when file_magic_cmd begins "file"
 
10546
MAGIC_CMD=$MAGIC_CMD
 
10547
 
 
10548
# Used on cygwin: DLL creation program.
 
10549
DLLTOOL="$DLLTOOL"
 
10550
 
 
10551
# Used on cygwin: object dumper.
 
10552
OBJDUMP="$OBJDUMP"
 
10553
 
 
10554
# Used on cygwin: assembler.
 
10555
AS="$AS"
 
10556
 
 
10557
# The name of the directory that contains temporary libtool files.
 
10558
objdir=$objdir
 
10559
 
 
10560
# How to create reloadable object files.
 
10561
reload_flag=$lt_reload_flag
 
10562
reload_cmds=$lt_reload_cmds
 
10563
 
 
10564
# How to pass a linker flag through the compiler.
 
10565
wl=$lt_lt_prog_compiler_wl
 
10566
 
 
10567
# Object file suffix (normally "o").
 
10568
objext="$ac_objext"
 
10569
 
 
10570
# Old archive suffix (normally "a").
 
10571
libext="$libext"
 
10572
 
 
10573
# Shared library suffix (normally ".so").
 
10574
shrext_cmds='$shrext_cmds'
 
10575
 
 
10576
# Executable file suffix (normally "").
 
10577
exeext="$exeext"
 
10578
 
 
10579
# Additional compiler flags for building library objects.
 
10580
pic_flag=$lt_lt_prog_compiler_pic
 
10581
pic_mode=$pic_mode
 
10582
 
 
10583
# What is the maximum length of a command?
 
10584
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10585
 
 
10586
# Does compiler simultaneously support -c and -o options?
 
10587
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10588
 
 
10589
# Must we lock files when doing compilation?
 
10590
need_locks=$lt_need_locks
 
10591
 
 
10592
# Do we need the lib prefix for modules?
 
10593
need_lib_prefix=$need_lib_prefix
 
10594
 
 
10595
# Do we need a version for libraries?
 
10596
need_version=$need_version
 
10597
 
 
10598
# Whether dlopen is supported.
 
10599
dlopen_support=$enable_dlopen
 
10600
 
 
10601
# Whether dlopen of programs is supported.
 
10602
dlopen_self=$enable_dlopen_self
 
10603
 
 
10604
# Whether dlopen of statically linked programs is supported.
 
10605
dlopen_self_static=$enable_dlopen_self_static
 
10606
 
 
10607
# Compiler flag to prevent dynamic linking.
 
10608
link_static_flag=$lt_lt_prog_compiler_static
 
10609
 
 
10610
# Compiler flag to turn off builtin functions.
 
10611
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10612
 
 
10613
# Compiler flag to allow reflexive dlopens.
 
10614
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10615
 
 
10616
# Compiler flag to generate shared objects directly from archives.
 
10617
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10618
 
 
10619
# Compiler flag to generate thread-safe objects.
 
10620
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10621
 
 
10622
# Library versioning type.
 
10623
version_type=$version_type
 
10624
 
 
10625
# Format of library name prefix.
 
10626
libname_spec=$lt_libname_spec
 
10627
 
 
10628
# List of archive names.  First name is the real one, the rest are links.
 
10629
# The last name is the one that the linker finds with -lNAME.
 
10630
library_names_spec=$lt_library_names_spec
 
10631
 
 
10632
# The coded name of the library, if different from the real name.
 
10633
soname_spec=$lt_soname_spec
 
10634
 
 
10635
# Commands used to build and install an old-style archive.
 
10636
RANLIB=$lt_RANLIB
 
10637
old_archive_cmds=$lt_old_archive_cmds
 
10638
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10639
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10640
 
 
10641
# Create an old-style archive from a shared archive.
 
10642
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10643
 
 
10644
# Create a temporary old-style archive to link instead of a shared archive.
 
10645
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10646
 
 
10647
# Commands used to build and install a shared archive.
 
10648
archive_cmds=$lt_archive_cmds
 
10649
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10650
postinstall_cmds=$lt_postinstall_cmds
 
10651
postuninstall_cmds=$lt_postuninstall_cmds
 
10652
 
 
10653
# Commands used to build a loadable module (assumed same as above if empty)
 
10654
module_cmds=$lt_module_cmds
 
10655
module_expsym_cmds=$lt_module_expsym_cmds
 
10656
 
 
10657
# Commands to strip libraries.
 
10658
old_striplib=$lt_old_striplib
 
10659
striplib=$lt_striplib
 
10660
 
 
10661
# Dependencies to place before the objects being linked to create a
 
10662
# shared library.
 
10663
predep_objects=$lt_predep_objects
 
10664
 
 
10665
# Dependencies to place after the objects being linked to create a
 
10666
# shared library.
 
10667
postdep_objects=$lt_postdep_objects
 
10668
 
 
10669
# Dependencies to place before the objects being linked to create a
 
10670
# shared library.
 
10671
predeps=$lt_predeps
 
10672
 
 
10673
# Dependencies to place after the objects being linked to create a
 
10674
# shared library.
 
10675
postdeps=$lt_postdeps
 
10676
 
 
10677
# The directories searched by this compiler when creating a shared
 
10678
# library
 
10679
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
10680
 
 
10681
# The library search path used internally by the compiler when linking
 
10682
# a shared library.
 
10683
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10684
 
 
10685
# Method to check whether dependent libraries are shared objects.
 
10686
deplibs_check_method=$lt_deplibs_check_method
 
10687
 
 
10688
# Command to use when deplibs_check_method == file_magic.
 
10689
file_magic_cmd=$lt_file_magic_cmd
 
10690
 
 
10691
# Flag that allows shared libraries with undefined symbols to be built.
 
10692
allow_undefined_flag=$lt_allow_undefined_flag
 
10693
 
 
10694
# Flag that forces no undefined symbols.
 
10695
no_undefined_flag=$lt_no_undefined_flag
 
10696
 
 
10697
# Commands used to finish a libtool library installation in a directory.
 
10698
finish_cmds=$lt_finish_cmds
 
10699
 
 
10700
# Same as above, but a single script fragment to be evaled but not shown.
 
10701
finish_eval=$lt_finish_eval
 
10702
 
 
10703
# Take the output of nm and produce a listing of raw symbols and C names.
 
10704
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10705
 
 
10706
# Transform the output of nm in a proper C declaration
 
10707
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10708
 
 
10709
# Transform the output of nm in a C name address pair
 
10710
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10711
 
 
10712
# This is the shared library runtime path variable.
 
10713
runpath_var=$runpath_var
 
10714
 
 
10715
# This is the shared library path variable.
 
10716
shlibpath_var=$shlibpath_var
 
10717
 
 
10718
# Is shlibpath searched before the hard-coded library search path?
 
10719
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10720
 
 
10721
# How to hardcode a shared library path into an executable.
 
10722
hardcode_action=$hardcode_action
 
10723
 
 
10724
# Whether we should hardcode library paths into libraries.
 
10725
hardcode_into_libs=$hardcode_into_libs
 
10726
 
 
10727
# Flag to hardcode \$libdir into a binary during linking.
 
10728
# This must work even if \$libdir does not exist.
 
10729
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10730
 
 
10731
# If ld is used when linking, flag to hardcode \$libdir into
 
10732
# a binary during linking. This must work even if \$libdir does
 
10733
# not exist.
 
10734
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10735
 
 
10736
# Whether we need a single -rpath flag with a separated argument.
 
10737
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10738
 
 
10739
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10740
# resulting binary.
 
10741
hardcode_direct=$hardcode_direct
 
10742
 
 
10743
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10744
# resulting binary.
 
10745
hardcode_minus_L=$hardcode_minus_L
 
10746
 
 
10747
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10748
# the resulting binary.
 
10749
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10750
 
 
10751
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10752
# and all subsequent libraries and executables linked against it.
 
10753
hardcode_automatic=$hardcode_automatic
 
10754
 
 
10755
# Variables whose values should be saved in libtool wrapper scripts and
 
10756
# restored at relink time.
 
10757
variables_saved_for_relink="$variables_saved_for_relink"
 
10758
 
 
10759
# Whether libtool must link a program against all its dependency libraries.
 
10760
link_all_deplibs=$link_all_deplibs
 
10761
 
 
10762
# Compile-time system search path for libraries
 
10763
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10764
 
 
10765
# Run-time system search path for libraries
 
10766
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10767
 
 
10768
# Fix the shell variable \$srcfile for the compiler.
 
10769
fix_srcfile_path=$lt_fix_srcfile_path
 
10770
 
 
10771
# Set to yes if exported symbols are required.
 
10772
always_export_symbols=$always_export_symbols
 
10773
 
 
10774
# The commands to list exported symbols.
 
10775
export_symbols_cmds=$lt_export_symbols_cmds
 
10776
 
 
10777
# The commands to extract the exported symbol list from a shared archive.
 
10778
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10779
 
 
10780
# Symbols that should not be listed in the preloaded symbols.
 
10781
exclude_expsyms=$lt_exclude_expsyms
 
10782
 
 
10783
# Symbols that must always be exported.
 
10784
include_expsyms=$lt_include_expsyms
 
10785
 
 
10786
# ### END LIBTOOL CONFIG
 
10787
 
 
10788
__EOF__
 
10789
 
 
10790
 
 
10791
  case $host_os in
 
10792
  aix3*)
 
10793
    cat <<\EOF >> "$cfgfile"
 
10794
 
 
10795
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10796
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10797
# vanish in a puff of smoke.
 
10798
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10799
  COLLECT_NAMES=
 
10800
  export COLLECT_NAMES
 
10801
fi
 
10802
EOF
 
10803
    ;;
 
10804
  esac
 
10805
 
 
10806
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10807
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10808
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10809
  # is reportedly fixed, but why not run on old versions too?
 
10810
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10811
 
 
10812
  mv -f "$cfgfile" "$ofile" || \
 
10813
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10814
  chmod +x "$ofile"
 
10815
 
 
10816
else
 
10817
  # If there is no Makefile yet, we rely on a make rule to execute
 
10818
  # `config.status --recheck' to rerun these tests and create the
 
10819
  # libtool script then.
 
10820
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10821
  if test -f "$ltmain_in"; then
 
10822
    test -f Makefile && make "$ltmain"
 
10823
  fi
 
10824
fi
 
10825
 
 
10826
 
 
10827
ac_ext=c
 
10828
ac_cpp='$CPP $CPPFLAGS'
 
10829
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10830
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10831
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10832
 
 
10833
CC="$lt_save_CC"
 
10834
 
 
10835
 
 
10836
# Check whether --with-tags was given.
 
10837
if test "${with_tags+set}" = set; then
 
10838
  withval=$with_tags; tagnames="$withval"
 
10839
fi
 
10840
 
 
10841
 
 
10842
if test -f "$ltmain" && test -n "$tagnames"; then
 
10843
  if test ! -f "${ofile}"; then
 
10844
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10845
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10846
  fi
 
10847
 
 
10848
  if test -z "$LTCC"; then
 
10849
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10850
    if test -z "$LTCC"; then
 
10851
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10852
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10853
    else
 
10854
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10855
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10856
    fi
 
10857
  fi
 
10858
  if test -z "$LTCFLAGS"; then
 
10859
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10860
  fi
 
10861
 
 
10862
  # Extract list of available tagged configurations in $ofile.
 
10863
  # Note that this assumes the entire list is on one line.
 
10864
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10865
 
 
10866
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10867
  for tagname in $tagnames; do
 
10868
    IFS="$lt_save_ifs"
 
10869
    # Check whether tagname contains only valid characters
 
10870
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10871
    "") ;;
 
10872
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10873
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10874
   { (exit 1); exit 1; }; }
 
10875
        ;;
 
10876
    esac
 
10877
 
 
10878
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10879
    then
 
10880
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10881
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10882
   { (exit 1); exit 1; }; }
 
10883
    fi
 
10884
 
 
10885
    # Update the list of available tags.
 
10886
    if test -n "$tagname"; then
 
10887
      echo appending configuration tag \"$tagname\" to $ofile
 
10888
 
 
10889
      case $tagname in
 
10890
      CXX)
 
10891
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10892
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10893
            (test "X$CXX" != "Xg++"))) ; then
 
10894
          ac_ext=cpp
 
10895
ac_cpp='$CXXCPP $CPPFLAGS'
 
10896
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10897
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10898
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10899
 
 
10900
 
 
10901
 
 
10902
 
 
10903
archive_cmds_need_lc_CXX=no
 
10904
allow_undefined_flag_CXX=
 
10905
always_export_symbols_CXX=no
 
10906
archive_expsym_cmds_CXX=
 
10907
export_dynamic_flag_spec_CXX=
 
10908
hardcode_direct_CXX=no
 
10909
hardcode_libdir_flag_spec_CXX=
 
10910
hardcode_libdir_flag_spec_ld_CXX=
 
10911
hardcode_libdir_separator_CXX=
 
10912
hardcode_minus_L_CXX=no
 
10913
hardcode_shlibpath_var_CXX=unsupported
 
10914
hardcode_automatic_CXX=no
 
10915
module_cmds_CXX=
 
10916
module_expsym_cmds_CXX=
 
10917
link_all_deplibs_CXX=unknown
 
10918
old_archive_cmds_CXX=$old_archive_cmds
 
10919
no_undefined_flag_CXX=
 
10920
whole_archive_flag_spec_CXX=
 
10921
enable_shared_with_static_runtimes_CXX=no
 
10922
 
 
10923
# Dependencies to place before and after the object being linked:
 
10924
predep_objects_CXX=
 
10925
postdep_objects_CXX=
 
10926
predeps_CXX=
 
10927
postdeps_CXX=
 
10928
compiler_lib_search_path_CXX=
 
10929
compiler_lib_search_dirs_CXX=
 
10930
 
 
10931
# Source file extension for C++ test sources.
 
10932
ac_ext=cpp
 
10933
 
 
10934
# Object file extension for compiled C++ test sources.
 
10935
objext=o
 
10936
objext_CXX=$objext
 
10937
 
 
10938
# Code to be used in simple compile tests
 
10939
lt_simple_compile_test_code="int some_variable = 0;"
 
10940
 
 
10941
# Code to be used in simple link tests
 
10942
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
10943
 
 
10944
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10945
 
 
10946
# If no C compiler was specified, use CC.
 
10947
LTCC=${LTCC-"$CC"}
 
10948
 
 
10949
# If no C compiler flags were specified, use CFLAGS.
 
10950
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10951
 
 
10952
# Allow CC to be a program name with arguments.
 
10953
compiler=$CC
 
10954
 
 
10955
 
 
10956
# save warnings/boilerplate of simple test code
 
10957
ac_outfile=conftest.$ac_objext
 
10958
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10959
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10960
_lt_compiler_boilerplate=`cat conftest.err`
 
10961
$rm conftest*
 
10962
 
 
10963
ac_outfile=conftest.$ac_objext
 
10964
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
10965
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10966
_lt_linker_boilerplate=`cat conftest.err`
 
10967
$rm -r conftest*
 
10968
 
 
10969
 
 
10970
# Allow CC to be a program name with arguments.
 
10971
lt_save_CC=$CC
 
10972
lt_save_LD=$LD
 
10973
lt_save_GCC=$GCC
 
10974
GCC=$GXX
 
10975
lt_save_with_gnu_ld=$with_gnu_ld
 
10976
lt_save_path_LD=$lt_cv_path_LD
 
10977
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10978
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10979
else
 
10980
  $as_unset lt_cv_prog_gnu_ld
 
10981
fi
 
10982
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10983
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10984
else
 
10985
  $as_unset lt_cv_path_LD
 
10986
fi
 
10987
test -z "${LDCXX+set}" || LD=$LDCXX
 
10988
CC=${CXX-"c++"}
 
10989
compiler=$CC
 
10990
compiler_CXX=$CC
 
10991
for cc_temp in $compiler""; do
 
10992
  case $cc_temp in
 
10993
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10994
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10995
    \-*) ;;
 
10996
    *) break;;
 
10997
  esac
 
10998
done
 
10999
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11000
 
 
11001
 
 
11002
# We don't want -fno-exception wen compiling C++ code, so set the
 
11003
# no_builtin_flag separately
 
11004
if test "$GXX" = yes; then
 
11005
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11006
else
 
11007
  lt_prog_compiler_no_builtin_flag_CXX=
 
11008
fi
 
11009
 
 
11010
if test "$GXX" = yes; then
 
11011
  # Set up default GNU C++ configuration
 
11012
 
 
11013
 
 
11014
# Check whether --with-gnu-ld was given.
 
11015
if test "${with_gnu_ld+set}" = set; then
 
11016
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11017
else
 
11018
  with_gnu_ld=no
 
11019
fi
 
11020
 
 
11021
ac_prog=ld
 
11022
if test "$GCC" = yes; then
 
11023
  # Check if gcc -print-prog-name=ld gives a path.
 
11024
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11025
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11026
  case $host in
 
11027
  *-*-mingw*)
 
11028
    # gcc leaves a trailing carriage return which upsets mingw
 
11029
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11030
  *)
 
11031
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11032
  esac
 
11033
  case $ac_prog in
 
11034
    # Accept absolute paths.
 
11035
    [\\/]* | ?:[\\/]*)
 
11036
      re_direlt='/[^/][^/]*/\.\./'
 
11037
      # Canonicalize the pathname of ld
 
11038
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11039
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11040
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11041
      done
 
11042
      test -z "$LD" && LD="$ac_prog"
 
11043
      ;;
 
11044
  "")
 
11045
    # If it fails, then pretend we aren't using GCC.
 
11046
    ac_prog=ld
 
11047
    ;;
 
11048
  *)
 
11049
    # If it is relative, then search for the first ld in PATH.
 
11050
    with_gnu_ld=unknown
 
11051
    ;;
 
11052
  esac
 
11053
elif test "$with_gnu_ld" = yes; then
 
11054
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11055
$as_echo_n "checking for GNU ld... " >&6; }
 
11056
else
 
11057
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11058
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11059
fi
 
11060
if test "${lt_cv_path_LD+set}" = set; then
 
11061
  $as_echo_n "(cached) " >&6
 
11062
else
 
11063
  if test -z "$LD"; then
 
11064
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11065
  for ac_dir in $PATH; do
 
11066
    IFS="$lt_save_ifs"
 
11067
    test -z "$ac_dir" && ac_dir=.
 
11068
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11069
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11070
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11071
      # but apparently some variants of GNU ld only accept -v.
 
11072
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11073
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11074
      *GNU* | *'with BFD'*)
 
11075
        test "$with_gnu_ld" != no && break
 
11076
        ;;
 
11077
      *)
 
11078
        test "$with_gnu_ld" != yes && break
 
11079
        ;;
 
11080
      esac
 
11081
    fi
 
11082
  done
 
11083
  IFS="$lt_save_ifs"
 
11084
else
 
11085
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11086
fi
 
11087
fi
 
11088
 
 
11089
LD="$lt_cv_path_LD"
 
11090
if test -n "$LD"; then
 
11091
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
11092
$as_echo "$LD" >&6; }
 
11093
else
 
11094
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11095
$as_echo "no" >&6; }
 
11096
fi
 
11097
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11098
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11099
   { (exit 1); exit 1; }; }
 
11100
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11101
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11102
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11103
  $as_echo_n "(cached) " >&6
 
11104
else
 
11105
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11106
case `$LD -v 2>&1 </dev/null` in
 
11107
*GNU* | *'with BFD'*)
 
11108
  lt_cv_prog_gnu_ld=yes
 
11109
  ;;
 
11110
*)
 
11111
  lt_cv_prog_gnu_ld=no
 
11112
  ;;
 
11113
esac
 
11114
fi
 
11115
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11116
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11117
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11118
 
 
11119
 
 
11120
 
 
11121
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11122
  # archiving commands below assume that GNU ld is being used.
 
11123
  if test "$with_gnu_ld" = yes; then
 
11124
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11125
    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'
 
11126
 
 
11127
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11128
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11129
 
 
11130
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11131
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11132
    #     investigate it a little bit more. (MM)
 
11133
    wlarc='${wl}'
 
11134
 
 
11135
    # ancient GNU ld didn't support --whole-archive et. al.
 
11136
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11137
        grep 'no-whole-archive' > /dev/null; then
 
11138
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11139
    else
 
11140
      whole_archive_flag_spec_CXX=
 
11141
    fi
 
11142
  else
 
11143
    with_gnu_ld=no
 
11144
    wlarc=
 
11145
 
 
11146
    # A generic and very simple default shared library creation
 
11147
    # command for GNU C++ for the case where it uses the native
 
11148
    # linker, instead of GNU ld.  If possible, this setting should
 
11149
    # overridden to take advantage of the native linker features on
 
11150
    # the platform it is being used on.
 
11151
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11152
  fi
 
11153
 
 
11154
  # Commands to make compiler produce verbose output that lists
 
11155
  # what "hidden" libraries, object files and flags are used when
 
11156
  # linking a shared library.
 
11157
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11158
 
 
11159
else
 
11160
  GXX=no
 
11161
  with_gnu_ld=no
 
11162
  wlarc=
 
11163
fi
 
11164
 
 
11165
# PORTME: fill in a description of your system's C++ link characteristics
 
11166
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11167
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11168
ld_shlibs_CXX=yes
 
11169
case $host_os in
 
11170
  aix3*)
 
11171
    # FIXME: insert proper C++ library support
 
11172
    ld_shlibs_CXX=no
 
11173
    ;;
 
11174
  aix[4-9]*)
 
11175
    if test "$host_cpu" = ia64; then
 
11176
      # On IA64, the linker does run time linking by default, so we don't
 
11177
      # have to do anything special.
 
11178
      aix_use_runtimelinking=no
 
11179
      exp_sym_flag='-Bexport'
 
11180
      no_entry_flag=""
 
11181
    else
 
11182
      aix_use_runtimelinking=no
 
11183
 
 
11184
      # Test if we are trying to use run time linking or normal
 
11185
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11186
      # need to do runtime linking.
 
11187
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11188
        for ld_flag in $LDFLAGS; do
 
11189
          case $ld_flag in
 
11190
          *-brtl*)
 
11191
            aix_use_runtimelinking=yes
 
11192
            break
 
11193
            ;;
 
11194
          esac
 
11195
        done
 
11196
        ;;
 
11197
      esac
 
11198
 
 
11199
      exp_sym_flag='-bexport'
 
11200
      no_entry_flag='-bnoentry'
 
11201
    fi
 
11202
 
 
11203
    # When large executables or shared objects are built, AIX ld can
 
11204
    # have problems creating the table of contents.  If linking a library
 
11205
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11206
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11207
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11208
 
 
11209
    archive_cmds_CXX=''
 
11210
    hardcode_direct_CXX=yes
 
11211
    hardcode_libdir_separator_CXX=':'
 
11212
    link_all_deplibs_CXX=yes
 
11213
 
 
11214
    if test "$GXX" = yes; then
 
11215
      case $host_os in aix4.[012]|aix4.[012].*)
 
11216
      # We only want to do this on AIX 4.2 and lower, the check
 
11217
      # below for broken collect2 doesn't work under 4.3+
 
11218
        collect2name=`${CC} -print-prog-name=collect2`
 
11219
        if test -f "$collect2name" && \
 
11220
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11221
        then
 
11222
          # We have reworked collect2
 
11223
          :
 
11224
        else
 
11225
          # We have old collect2
 
11226
          hardcode_direct_CXX=unsupported
 
11227
          # It fails to find uninstalled libraries when the uninstalled
 
11228
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11229
          # to unsupported forces relinking
 
11230
          hardcode_minus_L_CXX=yes
 
11231
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11232
          hardcode_libdir_separator_CXX=
 
11233
        fi
 
11234
        ;;
 
11235
      esac
 
11236
      shared_flag='-shared'
 
11237
      if test "$aix_use_runtimelinking" = yes; then
 
11238
        shared_flag="$shared_flag "'${wl}-G'
 
11239
      fi
 
11240
    else
 
11241
      # not using gcc
 
11242
      if test "$host_cpu" = ia64; then
 
11243
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11244
        # chokes on -Wl,-G. The following line is correct:
 
11245
        shared_flag='-G'
 
11246
      else
 
11247
        if test "$aix_use_runtimelinking" = yes; then
 
11248
          shared_flag='${wl}-G'
 
11249
        else
 
11250
          shared_flag='${wl}-bM:SRE'
 
11251
        fi
 
11252
      fi
 
11253
    fi
 
11254
 
 
11255
    # It seems that -bexpall does not export symbols beginning with
 
11256
    # underscore (_), so it is better to generate a list of symbols to export.
 
11257
    always_export_symbols_CXX=yes
 
11258
    if test "$aix_use_runtimelinking" = yes; then
 
11259
      # Warning - without using the other runtime loading flags (-brtl),
 
11260
      # -berok will link without error, but may produce a broken library.
 
11261
      allow_undefined_flag_CXX='-berok'
 
11262
      # Determine the default libpath from the value encoded in an empty executable.
 
11263
      cat >conftest.$ac_ext <<_ACEOF
 
11264
/* confdefs.h.  */
 
11265
_ACEOF
 
11266
cat confdefs.h >>conftest.$ac_ext
 
11267
cat >>conftest.$ac_ext <<_ACEOF
 
11268
/* end confdefs.h.  */
 
11269
 
 
11270
int
 
11271
main ()
 
11272
{
 
11273
 
 
11274
  ;
 
11275
  return 0;
 
11276
}
 
11277
_ACEOF
 
11278
rm -f conftest.$ac_objext conftest$ac_exeext
 
11279
if { (ac_try="$ac_link"
 
11280
case "(($ac_try" in
 
11281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11282
  *) ac_try_echo=$ac_try;;
 
11283
esac
 
11284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11285
$as_echo "$ac_try_echo") >&5
 
11286
  (eval "$ac_link") 2>conftest.er1
 
11287
  ac_status=$?
 
11288
  grep -v '^ *+' conftest.er1 >conftest.err
 
11289
  rm -f conftest.er1
 
11290
  cat conftest.err >&5
 
11291
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11292
  (exit $ac_status); } && {
 
11293
         test -z "$ac_cxx_werror_flag" ||
 
11294
         test ! -s conftest.err
 
11295
       } && test -s conftest$ac_exeext && {
 
11296
         test "$cross_compiling" = yes ||
 
11297
         $as_test_x conftest$ac_exeext
 
11298
       }; then
 
11299
 
 
11300
lt_aix_libpath_sed='
 
11301
    /Import File Strings/,/^$/ {
 
11302
        /^0/ {
 
11303
            s/^0  *\(.*\)$/\1/
 
11304
            p
 
11305
        }
 
11306
    }'
 
11307
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11308
# Check for a 64-bit object if we didn't find anything.
 
11309
if test -z "$aix_libpath"; then
 
11310
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11311
fi
 
11312
else
 
11313
  $as_echo "$as_me: failed program was:" >&5
 
11314
sed 's/^/| /' conftest.$ac_ext >&5
 
11315
 
 
11316
 
 
11317
fi
 
11318
 
 
11319
rm -rf conftest.dSYM
 
11320
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11321
      conftest$ac_exeext conftest.$ac_ext
 
11322
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11323
 
 
11324
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11325
 
 
11326
      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"
 
11327
     else
 
11328
      if test "$host_cpu" = ia64; then
 
11329
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11330
        allow_undefined_flag_CXX="-z nodefs"
 
11331
        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"
 
11332
      else
 
11333
        # Determine the default libpath from the value encoded in an empty executable.
 
11334
        cat >conftest.$ac_ext <<_ACEOF
 
11335
/* confdefs.h.  */
 
11336
_ACEOF
 
11337
cat confdefs.h >>conftest.$ac_ext
 
11338
cat >>conftest.$ac_ext <<_ACEOF
 
11339
/* end confdefs.h.  */
 
11340
 
 
11341
int
 
11342
main ()
 
11343
{
 
11344
 
 
11345
  ;
 
11346
  return 0;
 
11347
}
 
11348
_ACEOF
 
11349
rm -f conftest.$ac_objext conftest$ac_exeext
 
11350
if { (ac_try="$ac_link"
 
11351
case "(($ac_try" in
 
11352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11353
  *) ac_try_echo=$ac_try;;
 
11354
esac
 
11355
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11356
$as_echo "$ac_try_echo") >&5
 
11357
  (eval "$ac_link") 2>conftest.er1
 
11358
  ac_status=$?
 
11359
  grep -v '^ *+' conftest.er1 >conftest.err
 
11360
  rm -f conftest.er1
 
11361
  cat conftest.err >&5
 
11362
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11363
  (exit $ac_status); } && {
 
11364
         test -z "$ac_cxx_werror_flag" ||
 
11365
         test ! -s conftest.err
 
11366
       } && test -s conftest$ac_exeext && {
 
11367
         test "$cross_compiling" = yes ||
 
11368
         $as_test_x conftest$ac_exeext
 
11369
       }; then
 
11370
 
 
11371
lt_aix_libpath_sed='
 
11372
    /Import File Strings/,/^$/ {
 
11373
        /^0/ {
 
11374
            s/^0  *\(.*\)$/\1/
 
11375
            p
 
11376
        }
 
11377
    }'
 
11378
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11379
# Check for a 64-bit object if we didn't find anything.
 
11380
if test -z "$aix_libpath"; then
 
11381
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11382
fi
 
11383
else
 
11384
  $as_echo "$as_me: failed program was:" >&5
 
11385
sed 's/^/| /' conftest.$ac_ext >&5
 
11386
 
 
11387
 
 
11388
fi
 
11389
 
 
11390
rm -rf conftest.dSYM
 
11391
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11392
      conftest$ac_exeext conftest.$ac_ext
 
11393
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11394
 
 
11395
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11396
        # Warning - without using the other run time loading flags,
 
11397
        # -berok will link without error, but may produce a broken library.
 
11398
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11399
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11400
        # Exported symbols can be pulled into shared objects from archives
 
11401
        whole_archive_flag_spec_CXX='$convenience'
 
11402
        archive_cmds_need_lc_CXX=yes
 
11403
        # This is similar to how AIX traditionally builds its shared libraries.
 
11404
        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'
 
11405
      fi
 
11406
    fi
 
11407
    ;;
 
11408
 
 
11409
  beos*)
 
11410
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11411
      allow_undefined_flag_CXX=unsupported
 
11412
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11413
      # support --undefined.  This deserves some investigation.  FIXME
 
11414
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11415
    else
 
11416
      ld_shlibs_CXX=no
 
11417
    fi
 
11418
    ;;
 
11419
 
 
11420
  chorus*)
 
11421
    case $cc_basename in
 
11422
      *)
 
11423
        # FIXME: insert proper C++ library support
 
11424
        ld_shlibs_CXX=no
 
11425
        ;;
 
11426
    esac
 
11427
    ;;
 
11428
 
 
11429
  cygwin* | mingw* | pw32*)
 
11430
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11431
    # as there is no search path for DLLs.
 
11432
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11433
    allow_undefined_flag_CXX=unsupported
 
11434
    always_export_symbols_CXX=no
 
11435
    enable_shared_with_static_runtimes_CXX=yes
 
11436
 
 
11437
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11438
      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'
 
11439
      # If the export-symbols file already is a .def file (1st line
 
11440
      # is EXPORTS), use it as is; otherwise, prepend...
 
11441
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11442
        cp $export_symbols $output_objdir/$soname.def;
 
11443
      else
 
11444
        echo EXPORTS > $output_objdir/$soname.def;
 
11445
        cat $export_symbols >> $output_objdir/$soname.def;
 
11446
      fi~
 
11447
      $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'
 
11448
    else
 
11449
      ld_shlibs_CXX=no
 
11450
    fi
 
11451
  ;;
 
11452
      darwin* | rhapsody*)
 
11453
      archive_cmds_need_lc_CXX=no
 
11454
      hardcode_direct_CXX=no
 
11455
      hardcode_automatic_CXX=yes
 
11456
      hardcode_shlibpath_var_CXX=unsupported
 
11457
      whole_archive_flag_spec_CXX=''
 
11458
      link_all_deplibs_CXX=yes
 
11459
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11460
      if test "$GXX" = yes ; then
 
11461
      output_verbose_link_cmd='echo'
 
11462
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11463
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11464
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11465
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11466
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11467
        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${_lt_dsymutil}"
 
11468
        archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
 
11469
      fi
 
11470
      else
 
11471
      case $cc_basename in
 
11472
        xlc*)
 
11473
         output_verbose_link_cmd='echo'
 
11474
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
11475
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11476
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11477
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11478
          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}'
 
11479
          ;;
 
11480
       *)
 
11481
         ld_shlibs_CXX=no
 
11482
          ;;
 
11483
      esac
 
11484
      fi
 
11485
        ;;
 
11486
 
 
11487
  dgux*)
 
11488
    case $cc_basename in
 
11489
      ec++*)
 
11490
        # FIXME: insert proper C++ library support
 
11491
        ld_shlibs_CXX=no
 
11492
        ;;
 
11493
      ghcx*)
 
11494
        # Green Hills C++ Compiler
 
11495
        # FIXME: insert proper C++ library support
 
11496
        ld_shlibs_CXX=no
 
11497
        ;;
 
11498
      *)
 
11499
        # FIXME: insert proper C++ library support
 
11500
        ld_shlibs_CXX=no
 
11501
        ;;
 
11502
    esac
 
11503
    ;;
 
11504
  freebsd[12]*)
 
11505
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11506
    ld_shlibs_CXX=no
 
11507
    ;;
 
11508
  freebsd-elf*)
 
11509
    archive_cmds_need_lc_CXX=no
 
11510
    ;;
 
11511
  freebsd* | dragonfly*)
 
11512
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11513
    # conventions
 
11514
    ld_shlibs_CXX=yes
 
11515
    ;;
 
11516
  gnu*)
 
11517
    ;;
 
11518
  hpux9*)
 
11519
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11520
    hardcode_libdir_separator_CXX=:
 
11521
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11522
    hardcode_direct_CXX=yes
 
11523
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11524
                                # but as the default
 
11525
                                # location of the library.
 
11526
 
 
11527
    case $cc_basename in
 
11528
    CC*)
 
11529
      # FIXME: insert proper C++ library support
 
11530
      ld_shlibs_CXX=no
 
11531
      ;;
 
11532
    aCC*)
 
11533
      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'
 
11534
      # Commands to make compiler produce verbose output that lists
 
11535
      # what "hidden" libraries, object files and flags are used when
 
11536
      # linking a shared library.
 
11537
      #
 
11538
      # There doesn't appear to be a way to prevent this compiler from
 
11539
      # explicitly linking system object files so we need to strip them
 
11540
      # from the output so that they don't get included in the library
 
11541
      # dependencies.
 
11542
      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'
 
11543
      ;;
 
11544
    *)
 
11545
      if test "$GXX" = yes; then
 
11546
        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'
 
11547
      else
 
11548
        # FIXME: insert proper C++ library support
 
11549
        ld_shlibs_CXX=no
 
11550
      fi
 
11551
      ;;
 
11552
    esac
 
11553
    ;;
 
11554
  hpux10*|hpux11*)
 
11555
    if test $with_gnu_ld = no; then
 
11556
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11557
      hardcode_libdir_separator_CXX=:
 
11558
 
 
11559
      case $host_cpu in
 
11560
      hppa*64*|ia64*) ;;
 
11561
      *)
 
11562
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11563
        ;;
 
11564
      esac
 
11565
    fi
 
11566
    case $host_cpu in
 
11567
    hppa*64*|ia64*)
 
11568
      hardcode_direct_CXX=no
 
11569
      hardcode_shlibpath_var_CXX=no
 
11570
      ;;
 
11571
    *)
 
11572
      hardcode_direct_CXX=yes
 
11573
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11574
                                              # but as the default
 
11575
                                              # location of the library.
 
11576
      ;;
 
11577
    esac
 
11578
 
 
11579
    case $cc_basename in
 
11580
      CC*)
 
11581
        # FIXME: insert proper C++ library support
 
11582
        ld_shlibs_CXX=no
 
11583
        ;;
 
11584
      aCC*)
 
11585
        case $host_cpu in
 
11586
        hppa*64*)
 
11587
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11588
          ;;
 
11589
        ia64*)
 
11590
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11591
          ;;
 
11592
        *)
 
11593
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11594
          ;;
 
11595
        esac
 
11596
        # Commands to make compiler produce verbose output that lists
 
11597
        # what "hidden" libraries, object files and flags are used when
 
11598
        # linking a shared library.
 
11599
        #
 
11600
        # There doesn't appear to be a way to prevent this compiler from
 
11601
        # explicitly linking system object files so we need to strip them
 
11602
        # from the output so that they don't get included in the library
 
11603
        # dependencies.
 
11604
        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'
 
11605
        ;;
 
11606
      *)
 
11607
        if test "$GXX" = yes; then
 
11608
          if test $with_gnu_ld = no; then
 
11609
            case $host_cpu in
 
11610
            hppa*64*)
 
11611
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11612
              ;;
 
11613
            ia64*)
 
11614
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11615
              ;;
 
11616
            *)
 
11617
              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'
 
11618
              ;;
 
11619
            esac
 
11620
          fi
 
11621
        else
 
11622
          # FIXME: insert proper C++ library support
 
11623
          ld_shlibs_CXX=no
 
11624
        fi
 
11625
        ;;
 
11626
    esac
 
11627
    ;;
 
11628
  interix[3-9]*)
 
11629
    hardcode_direct_CXX=no
 
11630
    hardcode_shlibpath_var_CXX=no
 
11631
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11632
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11633
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11634
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11635
    # default) and relocated if they conflict, which is a slow very memory
 
11636
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11637
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11638
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11639
    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'
 
11640
    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'
 
11641
    ;;
 
11642
  irix5* | irix6*)
 
11643
    case $cc_basename in
 
11644
      CC*)
 
11645
        # SGI C++
 
11646
        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'
 
11647
 
 
11648
        # Archives containing C++ object files must be created using
 
11649
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11650
        # necessary to make sure instantiated templates are included
 
11651
        # in the archive.
 
11652
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11653
        ;;
 
11654
      *)
 
11655
        if test "$GXX" = yes; then
 
11656
          if test "$with_gnu_ld" = no; then
 
11657
            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'
 
11658
          else
 
11659
            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'
 
11660
          fi
 
11661
        fi
 
11662
        link_all_deplibs_CXX=yes
 
11663
        ;;
 
11664
    esac
 
11665
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11666
    hardcode_libdir_separator_CXX=:
 
11667
    ;;
 
11668
  linux* | k*bsd*-gnu)
 
11669
    case $cc_basename in
 
11670
      KCC*)
 
11671
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11672
 
 
11673
        # KCC will only create a shared library if the output file
 
11674
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11675
        # to its proper name (with version) after linking.
 
11676
        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'
 
11677
        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'
 
11678
        # Commands to make compiler produce verbose output that lists
 
11679
        # what "hidden" libraries, object files and flags are used when
 
11680
        # linking a shared library.
 
11681
        #
 
11682
        # There doesn't appear to be a way to prevent this compiler from
 
11683
        # explicitly linking system object files so we need to strip them
 
11684
        # from the output so that they don't get included in the library
 
11685
        # dependencies.
 
11686
        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'
 
11687
 
 
11688
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11689
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11690
 
 
11691
        # Archives containing C++ object files must be created using
 
11692
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11693
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11694
        ;;
 
11695
      icpc*)
 
11696
        # Intel C++
 
11697
        with_gnu_ld=yes
 
11698
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11699
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11700
        # earlier do not add the objects themselves.
 
11701
        case `$CC -V 2>&1` in
 
11702
        *"Version 7."*)
 
11703
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11704
          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'
 
11705
          ;;
 
11706
        *)  # Version 8.0 or newer
 
11707
          tmp_idyn=
 
11708
          case $host_cpu in
 
11709
            ia64*) tmp_idyn=' -i_dynamic';;
 
11710
          esac
 
11711
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11712
          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'
 
11713
          ;;
 
11714
        esac
 
11715
        archive_cmds_need_lc_CXX=no
 
11716
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11717
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11718
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11719
        ;;
 
11720
      pgCC* | pgcpp*)
 
11721
        # Portland Group C++ compiler
 
11722
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11723
        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'
 
11724
 
 
11725
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11726
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11727
        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'
 
11728
        ;;
 
11729
      cxx*)
 
11730
        # Compaq C++
 
11731
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11732
        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'
 
11733
 
 
11734
        runpath_var=LD_RUN_PATH
 
11735
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11736
        hardcode_libdir_separator_CXX=:
 
11737
 
 
11738
        # Commands to make compiler produce verbose output that lists
 
11739
        # what "hidden" libraries, object files and flags are used when
 
11740
        # linking a shared library.
 
11741
        #
 
11742
        # There doesn't appear to be a way to prevent this compiler from
 
11743
        # explicitly linking system object files so we need to strip them
 
11744
        # from the output so that they don't get included in the library
 
11745
        # dependencies.
 
11746
        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'
 
11747
        ;;
 
11748
      *)
 
11749
        case `$CC -V 2>&1 | sed 5q` in
 
11750
        *Sun\ C*)
 
11751
          # Sun C++ 5.9
 
11752
          no_undefined_flag_CXX=' -zdefs'
 
11753
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11754
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
11755
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11756
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11757
 
 
11758
          # Not sure whether something based on
 
11759
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11760
          # would be better.
 
11761
          output_verbose_link_cmd='echo'
 
11762
 
 
11763
          # Archives containing C++ object files must be created using
 
11764
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11765
          # necessary to make sure instantiated templates are included
 
11766
          # in the archive.
 
11767
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11768
          ;;
 
11769
        esac
 
11770
        ;;
 
11771
    esac
 
11772
    ;;
 
11773
  lynxos*)
 
11774
    # FIXME: insert proper C++ library support
 
11775
    ld_shlibs_CXX=no
 
11776
    ;;
 
11777
  m88k*)
 
11778
    # FIXME: insert proper C++ library support
 
11779
    ld_shlibs_CXX=no
 
11780
    ;;
 
11781
  mvs*)
 
11782
    case $cc_basename in
 
11783
      cxx*)
 
11784
        # FIXME: insert proper C++ library support
 
11785
        ld_shlibs_CXX=no
 
11786
        ;;
 
11787
      *)
 
11788
        # FIXME: insert proper C++ library support
 
11789
        ld_shlibs_CXX=no
 
11790
        ;;
 
11791
    esac
 
11792
    ;;
 
11793
  netbsd*)
 
11794
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11795
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11796
      wlarc=
 
11797
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11798
      hardcode_direct_CXX=yes
 
11799
      hardcode_shlibpath_var_CXX=no
 
11800
    fi
 
11801
    # Workaround some broken pre-1.5 toolchains
 
11802
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11803
    ;;
 
11804
  openbsd2*)
 
11805
    # C++ shared libraries are fairly broken
 
11806
    ld_shlibs_CXX=no
 
11807
    ;;
 
11808
  openbsd*)
 
11809
    if test -f /usr/libexec/ld.so; then
 
11810
      hardcode_direct_CXX=yes
 
11811
      hardcode_shlibpath_var_CXX=no
 
11812
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11813
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11814
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11815
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11816
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11817
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11818
      fi
 
11819
      output_verbose_link_cmd='echo'
 
11820
    else
 
11821
      ld_shlibs_CXX=no
 
11822
    fi
 
11823
    ;;
 
11824
  osf3*)
 
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
 
 
11834
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11835
        hardcode_libdir_separator_CXX=:
 
11836
 
 
11837
        # Archives containing C++ object files must be created using
 
11838
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11839
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11840
 
 
11841
        ;;
 
11842
      RCC*)
 
11843
        # Rational C++ 2.4.1
 
11844
        # FIXME: insert proper C++ library support
 
11845
        ld_shlibs_CXX=no
 
11846
        ;;
 
11847
      cxx*)
 
11848
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11849
        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'
 
11850
 
 
11851
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11852
        hardcode_libdir_separator_CXX=:
 
11853
 
 
11854
        # Commands to make compiler produce verbose output that lists
 
11855
        # what "hidden" libraries, object files and flags are used when
 
11856
        # linking a shared library.
 
11857
        #
 
11858
        # There doesn't appear to be a way to prevent this compiler from
 
11859
        # explicitly linking system object files so we need to strip them
 
11860
        # from the output so that they don't get included in the library
 
11861
        # dependencies.
 
11862
        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'
 
11863
        ;;
 
11864
      *)
 
11865
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11866
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11867
          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'
 
11868
 
 
11869
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11870
          hardcode_libdir_separator_CXX=:
 
11871
 
 
11872
          # Commands to make compiler produce verbose output that lists
 
11873
          # what "hidden" libraries, object files and flags are used when
 
11874
          # linking a shared library.
 
11875
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11876
 
 
11877
        else
 
11878
          # FIXME: insert proper C++ library support
 
11879
          ld_shlibs_CXX=no
 
11880
        fi
 
11881
        ;;
 
11882
    esac
 
11883
    ;;
 
11884
  osf4* | osf5*)
 
11885
    case $cc_basename in
 
11886
      KCC*)
 
11887
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11888
 
 
11889
        # KCC will only create a shared library if the output file
 
11890
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11891
        # to its proper name (with version) after linking.
 
11892
        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'
 
11893
 
 
11894
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11895
        hardcode_libdir_separator_CXX=:
 
11896
 
 
11897
        # Archives containing C++ object files must be created using
 
11898
        # the KAI C++ compiler.
 
11899
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11900
        ;;
 
11901
      RCC*)
 
11902
        # Rational C++ 2.4.1
 
11903
        # FIXME: insert proper C++ library support
 
11904
        ld_shlibs_CXX=no
 
11905
        ;;
 
11906
      cxx*)
 
11907
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11908
        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'
 
11909
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11910
          echo "-hidden">> $lib.exp~
 
11911
          $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~
 
11912
          $rm $lib.exp'
 
11913
 
 
11914
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11915
        hardcode_libdir_separator_CXX=:
 
11916
 
 
11917
        # Commands to make compiler produce verbose output that lists
 
11918
        # what "hidden" libraries, object files and flags are used when
 
11919
        # linking a shared library.
 
11920
        #
 
11921
        # There doesn't appear to be a way to prevent this compiler from
 
11922
        # explicitly linking system object files so we need to strip them
 
11923
        # from the output so that they don't get included in the library
 
11924
        # dependencies.
 
11925
        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'
 
11926
        ;;
 
11927
      *)
 
11928
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11929
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11930
         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'
 
11931
 
 
11932
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11933
          hardcode_libdir_separator_CXX=:
 
11934
 
 
11935
          # Commands to make compiler produce verbose output that lists
 
11936
          # what "hidden" libraries, object files and flags are used when
 
11937
          # linking a shared library.
 
11938
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11939
 
 
11940
        else
 
11941
          # FIXME: insert proper C++ library support
 
11942
          ld_shlibs_CXX=no
 
11943
        fi
 
11944
        ;;
 
11945
    esac
 
11946
    ;;
 
11947
  psos*)
 
11948
    # FIXME: insert proper C++ library support
 
11949
    ld_shlibs_CXX=no
 
11950
    ;;
 
11951
  sunos4*)
 
11952
    case $cc_basename in
 
11953
      CC*)
 
11954
        # Sun C++ 4.x
 
11955
        # FIXME: insert proper C++ library support
 
11956
        ld_shlibs_CXX=no
 
11957
        ;;
 
11958
      lcc*)
 
11959
        # Lucid
 
11960
        # FIXME: insert proper C++ library support
 
11961
        ld_shlibs_CXX=no
 
11962
        ;;
 
11963
      *)
 
11964
        # FIXME: insert proper C++ library support
 
11965
        ld_shlibs_CXX=no
 
11966
        ;;
 
11967
    esac
 
11968
    ;;
 
11969
  solaris*)
 
11970
    case $cc_basename in
 
11971
      CC*)
 
11972
        # Sun C++ 4.2, 5.x and Centerline C++
 
11973
        archive_cmds_need_lc_CXX=yes
 
11974
        no_undefined_flag_CXX=' -zdefs'
 
11975
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11976
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11977
        $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'
 
11978
 
 
11979
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11980
        hardcode_shlibpath_var_CXX=no
 
11981
        case $host_os in
 
11982
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11983
          *)
 
11984
            # The compiler driver will combine and reorder linker options,
 
11985
            # but understands `-z linker_flag'.
 
11986
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11987
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
11988
            ;;
 
11989
        esac
 
11990
        link_all_deplibs_CXX=yes
 
11991
 
 
11992
        output_verbose_link_cmd='echo'
 
11993
 
 
11994
        # Archives containing C++ object files must be created using
 
11995
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11996
        # necessary to make sure instantiated templates are included
 
11997
        # in the archive.
 
11998
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11999
        ;;
 
12000
      gcx*)
 
12001
        # Green Hills C++ Compiler
 
12002
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12003
 
 
12004
        # The C++ compiler must be used to create the archive.
 
12005
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12006
        ;;
 
12007
      *)
 
12008
        # GNU C++ compiler with Solaris linker
 
12009
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12010
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12011
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12012
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12013
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12014
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12015
 
 
12016
            # Commands to make compiler produce verbose output that lists
 
12017
            # what "hidden" libraries, object files and flags are used when
 
12018
            # linking a shared library.
 
12019
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12020
          else
 
12021
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12022
            # platform.
 
12023
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12024
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12025
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12026
 
 
12027
            # Commands to make compiler produce verbose output that lists
 
12028
            # what "hidden" libraries, object files and flags are used when
 
12029
            # linking a shared library.
 
12030
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12031
          fi
 
12032
 
 
12033
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12034
          case $host_os in
 
12035
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12036
          *)
 
12037
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12038
            ;;
 
12039
          esac
 
12040
        fi
 
12041
        ;;
 
12042
    esac
 
12043
    ;;
 
12044
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12045
    no_undefined_flag_CXX='${wl}-z,text'
 
12046
    archive_cmds_need_lc_CXX=no
 
12047
    hardcode_shlibpath_var_CXX=no
 
12048
    runpath_var='LD_RUN_PATH'
 
12049
 
 
12050
    case $cc_basename in
 
12051
      CC*)
 
12052
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12053
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12054
        ;;
 
12055
      *)
 
12056
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12057
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12058
        ;;
 
12059
    esac
 
12060
    ;;
 
12061
  sysv5* | sco3.2v5* | sco5v6*)
 
12062
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12063
    # link with -lc, and that would cause any symbols used from libc to
 
12064
    # always be unresolved, which means just about no library would
 
12065
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12066
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12067
    # as -z defs.
 
12068
    # For security reasons, it is highly recommended that you always
 
12069
    # use absolute paths for naming shared libraries, and exclude the
 
12070
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12071
    # requires that you compile everything twice, which is a pain.
 
12072
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12073
    # non-empty value in the environment.  Most likely only useful for
 
12074
    # creating official distributions of packages.
 
12075
    # This is a hack until libtool officially supports absolute path
 
12076
    # names for shared libraries.
 
12077
    no_undefined_flag_CXX='${wl}-z,text'
 
12078
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12079
    archive_cmds_need_lc_CXX=no
 
12080
    hardcode_shlibpath_var_CXX=no
 
12081
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12082
    hardcode_libdir_separator_CXX=':'
 
12083
    link_all_deplibs_CXX=yes
 
12084
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12085
    runpath_var='LD_RUN_PATH'
 
12086
 
 
12087
    case $cc_basename in
 
12088
      CC*)
 
12089
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12090
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12091
        ;;
 
12092
      *)
 
12093
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12094
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12095
        ;;
 
12096
    esac
 
12097
    ;;
 
12098
  tandem*)
 
12099
    case $cc_basename in
 
12100
      NCC*)
 
12101
        # NonStop-UX NCC 3.20
 
12102
        # FIXME: insert proper C++ library support
 
12103
        ld_shlibs_CXX=no
 
12104
        ;;
 
12105
      *)
 
12106
        # FIXME: insert proper C++ library support
 
12107
        ld_shlibs_CXX=no
 
12108
        ;;
 
12109
    esac
 
12110
    ;;
 
12111
  vxworks*)
 
12112
    # FIXME: insert proper C++ library support
 
12113
    ld_shlibs_CXX=no
 
12114
    ;;
 
12115
  *)
 
12116
    # FIXME: insert proper C++ library support
 
12117
    ld_shlibs_CXX=no
 
12118
    ;;
 
12119
esac
 
12120
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12121
$as_echo "$ld_shlibs_CXX" >&6; }
 
12122
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12123
 
 
12124
GCC_CXX="$GXX"
 
12125
LD_CXX="$LD"
 
12126
 
 
12127
cat > conftest.$ac_ext <<EOF
 
12128
class Foo
 
12129
{
 
12130
public:
 
12131
  Foo (void) { a = 0; }
 
12132
private:
 
12133
  int a;
 
12134
};
 
12135
EOF
 
12136
 
 
12137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12138
  (eval $ac_compile) 2>&5
 
12139
  ac_status=$?
 
12140
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12141
  (exit $ac_status); }; then
 
12142
  # Parse the compiler output and extract the necessary
 
12143
  # objects, libraries and library flags.
 
12144
 
 
12145
  # Sentinel used to keep track of whether or not we are before
 
12146
  # the conftest object file.
 
12147
  pre_test_object_deps_done=no
 
12148
 
 
12149
  # The `*' in the case matches for architectures that use `case' in
 
12150
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12151
  # eval without this substitution.
 
12152
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12153
 
 
12154
  for p in `eval $output_verbose_link_cmd`; do
 
12155
    case $p in
 
12156
 
 
12157
    -L* | -R* | -l*)
 
12158
       # Some compilers place space between "-{L,R}" and the path.
 
12159
       # Remove the space.
 
12160
       if test $p = "-L" \
 
12161
          || test $p = "-R"; then
 
12162
         prev=$p
 
12163
         continue
 
12164
       else
 
12165
         prev=
 
12166
       fi
 
12167
 
 
12168
       if test "$pre_test_object_deps_done" = no; then
 
12169
         case $p in
 
12170
         -L* | -R*)
 
12171
           # Internal compiler library paths should come after those
 
12172
           # provided the user.  The postdeps already come after the
 
12173
           # user supplied libs so there is no need to process them.
 
12174
           if test -z "$compiler_lib_search_path_CXX"; then
 
12175
             compiler_lib_search_path_CXX="${prev}${p}"
 
12176
           else
 
12177
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12178
           fi
 
12179
           ;;
 
12180
         # The "-l" case would never come before the object being
 
12181
         # linked, so don't bother handling this case.
 
12182
         esac
 
12183
       else
 
12184
         if test -z "$postdeps_CXX"; then
 
12185
           postdeps_CXX="${prev}${p}"
 
12186
         else
 
12187
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12188
         fi
 
12189
       fi
 
12190
       ;;
 
12191
 
 
12192
    *.$objext)
 
12193
       # This assumes that the test object file only shows up
 
12194
       # once in the compiler output.
 
12195
       if test "$p" = "conftest.$objext"; then
 
12196
         pre_test_object_deps_done=yes
 
12197
         continue
 
12198
       fi
 
12199
 
 
12200
       if test "$pre_test_object_deps_done" = no; then
 
12201
         if test -z "$predep_objects_CXX"; then
 
12202
           predep_objects_CXX="$p"
 
12203
         else
 
12204
           predep_objects_CXX="$predep_objects_CXX $p"
 
12205
         fi
 
12206
       else
 
12207
         if test -z "$postdep_objects_CXX"; then
 
12208
           postdep_objects_CXX="$p"
 
12209
         else
 
12210
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12211
         fi
 
12212
       fi
 
12213
       ;;
 
12214
 
 
12215
    *) ;; # Ignore the rest.
 
12216
 
 
12217
    esac
 
12218
  done
 
12219
 
 
12220
  # Clean up.
 
12221
  rm -f a.out a.exe
 
12222
else
 
12223
  echo "libtool.m4: error: problem compiling CXX test program"
 
12224
fi
 
12225
 
 
12226
$rm -f confest.$objext
 
12227
 
 
12228
compiler_lib_search_dirs_CXX=
 
12229
if test -n "$compiler_lib_search_path_CXX"; then
 
12230
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12231
fi
 
12232
 
 
12233
# PORTME: override above test on systems where it is broken
 
12234
case $host_os in
 
12235
interix[3-9]*)
 
12236
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12237
  # hack all around it, let's just trust "g++" to DTRT.
 
12238
  predep_objects_CXX=
 
12239
  postdep_objects_CXX=
 
12240
  postdeps_CXX=
 
12241
  ;;
 
12242
 
 
12243
linux*)
 
12244
  case `$CC -V 2>&1 | sed 5q` in
 
12245
  *Sun\ C*)
 
12246
    # Sun C++ 5.9
 
12247
    #
 
12248
    # The more standards-conforming stlport4 library is
 
12249
    # incompatible with the Cstd library. Avoid specifying
 
12250
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12251
    # -library=stlport4 depends on it.
 
12252
    case " $CXX $CXXFLAGS " in
 
12253
    *" -library=stlport4 "*)
 
12254
      solaris_use_stlport4=yes
 
12255
      ;;
 
12256
    esac
 
12257
    if test "$solaris_use_stlport4" != yes; then
 
12258
      postdeps_CXX='-library=Cstd -library=Crun'
 
12259
    fi
 
12260
    ;;
 
12261
  esac
 
12262
  ;;
 
12263
 
 
12264
solaris*)
 
12265
  case $cc_basename in
 
12266
  CC*)
 
12267
    # The more standards-conforming stlport4 library is
 
12268
    # incompatible with the Cstd library. Avoid specifying
 
12269
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12270
    # -library=stlport4 depends on it.
 
12271
    case " $CXX $CXXFLAGS " in
 
12272
    *" -library=stlport4 "*)
 
12273
      solaris_use_stlport4=yes
 
12274
      ;;
 
12275
    esac
 
12276
 
 
12277
    # Adding this requires a known-good setup of shared libraries for
 
12278
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12279
    # archive will be linked into the output, leading to subtle bugs.
 
12280
    if test "$solaris_use_stlport4" != yes; then
 
12281
      postdeps_CXX='-library=Cstd -library=Crun'
 
12282
    fi
 
12283
    ;;
 
12284
  esac
 
12285
  ;;
 
12286
esac
 
12287
 
 
12288
case " $postdeps_CXX " in
 
12289
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12290
esac
 
12291
 
 
12292
lt_prog_compiler_wl_CXX=
 
12293
lt_prog_compiler_pic_CXX=
 
12294
lt_prog_compiler_static_CXX=
 
12295
 
 
12296
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12297
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12298
 
 
12299
  # C++ specific cases for pic, static, wl, etc.
 
12300
  if test "$GXX" = yes; then
 
12301
    lt_prog_compiler_wl_CXX='-Wl,'
 
12302
    lt_prog_compiler_static_CXX='-static'
 
12303
 
 
12304
    case $host_os in
 
12305
    aix*)
 
12306
      # All AIX code is PIC.
 
12307
      if test "$host_cpu" = ia64; then
 
12308
        # AIX 5 now supports IA64 processor
 
12309
        lt_prog_compiler_static_CXX='-Bstatic'
 
12310
      fi
 
12311
      ;;
 
12312
    amigaos*)
 
12313
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12314
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12315
      # like `-m68040'.
 
12316
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12317
      ;;
 
12318
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12319
      # PIC is the default for these OSes.
 
12320
      ;;
 
12321
    mingw* | cygwin* | os2* | pw32*)
 
12322
      # This hack is so that the source file can tell whether it is being
 
12323
      # built for inclusion in a dll (and should export symbols for example).
 
12324
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12325
      # (--disable-auto-import) libraries
 
12326
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12327
      ;;
 
12328
    darwin* | rhapsody*)
 
12329
      # PIC is the default on this platform
 
12330
      # Common symbols not allowed in MH_DYLIB files
 
12331
      lt_prog_compiler_pic_CXX='-fno-common'
 
12332
      ;;
 
12333
    *djgpp*)
 
12334
      # DJGPP does not support shared libraries at all
 
12335
      lt_prog_compiler_pic_CXX=
 
12336
      ;;
 
12337
    interix[3-9]*)
 
12338
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12339
      # Instead, we relocate shared libraries at runtime.
 
12340
      ;;
 
12341
    sysv4*MP*)
 
12342
      if test -d /usr/nec; then
 
12343
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12344
      fi
 
12345
      ;;
 
12346
    hpux*)
 
12347
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12348
      # not for PA HP-UX.
 
12349
      case $host_cpu in
 
12350
      hppa*64*|ia64*)
 
12351
        ;;
 
12352
      *)
 
12353
        lt_prog_compiler_pic_CXX='-fPIC'
 
12354
        ;;
 
12355
      esac
 
12356
      ;;
 
12357
    *)
 
12358
      lt_prog_compiler_pic_CXX='-fPIC'
 
12359
      ;;
 
12360
    esac
 
12361
  else
 
12362
    case $host_os in
 
12363
      aix[4-9]*)
 
12364
        # All AIX code is PIC.
 
12365
        if test "$host_cpu" = ia64; then
 
12366
          # AIX 5 now supports IA64 processor
 
12367
          lt_prog_compiler_static_CXX='-Bstatic'
 
12368
        else
 
12369
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12370
        fi
 
12371
        ;;
 
12372
      chorus*)
 
12373
        case $cc_basename in
 
12374
        cxch68*)
 
12375
          # Green Hills C++ Compiler
 
12376
          # _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"
 
12377
          ;;
 
12378
        esac
 
12379
        ;;
 
12380
       darwin*)
 
12381
         # PIC is the default on this platform
 
12382
         # Common symbols not allowed in MH_DYLIB files
 
12383
         case $cc_basename in
 
12384
           xlc*)
 
12385
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12386
           lt_prog_compiler_wl_CXX='-Wl,'
 
12387
           ;;
 
12388
         esac
 
12389
       ;;
 
12390
      dgux*)
 
12391
        case $cc_basename in
 
12392
          ec++*)
 
12393
            lt_prog_compiler_pic_CXX='-KPIC'
 
12394
            ;;
 
12395
          ghcx*)
 
12396
            # Green Hills C++ Compiler
 
12397
            lt_prog_compiler_pic_CXX='-pic'
 
12398
            ;;
 
12399
          *)
 
12400
            ;;
 
12401
        esac
 
12402
        ;;
 
12403
      freebsd* | dragonfly*)
 
12404
        # FreeBSD uses GNU C++
 
12405
        ;;
 
12406
      hpux9* | hpux10* | hpux11*)
 
12407
        case $cc_basename in
 
12408
          CC*)
 
12409
            lt_prog_compiler_wl_CXX='-Wl,'
 
12410
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12411
            if test "$host_cpu" != ia64; then
 
12412
              lt_prog_compiler_pic_CXX='+Z'
 
12413
            fi
 
12414
            ;;
 
12415
          aCC*)
 
12416
            lt_prog_compiler_wl_CXX='-Wl,'
 
12417
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12418
            case $host_cpu in
 
12419
            hppa*64*|ia64*)
 
12420
              # +Z the default
 
12421
              ;;
 
12422
            *)
 
12423
              lt_prog_compiler_pic_CXX='+Z'
 
12424
              ;;
 
12425
            esac
 
12426
            ;;
 
12427
          *)
 
12428
            ;;
 
12429
        esac
 
12430
        ;;
 
12431
      interix*)
 
12432
        # This is c89, which is MS Visual C++ (no shared libs)
 
12433
        # Anyone wants to do a port?
 
12434
        ;;
 
12435
      irix5* | irix6* | nonstopux*)
 
12436
        case $cc_basename in
 
12437
          CC*)
 
12438
            lt_prog_compiler_wl_CXX='-Wl,'
 
12439
            lt_prog_compiler_static_CXX='-non_shared'
 
12440
            # CC pic flag -KPIC is the default.
 
12441
            ;;
 
12442
          *)
 
12443
            ;;
 
12444
        esac
 
12445
        ;;
 
12446
      linux* | k*bsd*-gnu)
 
12447
        case $cc_basename in
 
12448
          KCC*)
 
12449
            # KAI C++ Compiler
 
12450
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12451
            lt_prog_compiler_pic_CXX='-fPIC'
 
12452
            ;;
 
12453
          icpc* | ecpc*)
 
12454
            # Intel C++
 
12455
            lt_prog_compiler_wl_CXX='-Wl,'
 
12456
            lt_prog_compiler_pic_CXX='-KPIC'
 
12457
            lt_prog_compiler_static_CXX='-static'
 
12458
            ;;
 
12459
          pgCC* | pgcpp*)
 
12460
            # Portland Group C++ compiler.
 
12461
            lt_prog_compiler_wl_CXX='-Wl,'
 
12462
            lt_prog_compiler_pic_CXX='-fpic'
 
12463
            lt_prog_compiler_static_CXX='-Bstatic'
 
12464
            ;;
 
12465
          cxx*)
 
12466
            # Compaq C++
 
12467
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12468
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12469
            lt_prog_compiler_pic_CXX=
 
12470
            lt_prog_compiler_static_CXX='-non_shared'
 
12471
            ;;
 
12472
          *)
 
12473
            case `$CC -V 2>&1 | sed 5q` in
 
12474
            *Sun\ C*)
 
12475
              # Sun C++ 5.9
 
12476
              lt_prog_compiler_pic_CXX='-KPIC'
 
12477
              lt_prog_compiler_static_CXX='-Bstatic'
 
12478
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12479
              ;;
 
12480
            esac
 
12481
            ;;
 
12482
        esac
 
12483
        ;;
 
12484
      lynxos*)
 
12485
        ;;
 
12486
      m88k*)
 
12487
        ;;
 
12488
      mvs*)
 
12489
        case $cc_basename in
 
12490
          cxx*)
 
12491
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12492
            ;;
 
12493
          *)
 
12494
            ;;
 
12495
        esac
 
12496
        ;;
 
12497
      netbsd*)
 
12498
        ;;
 
12499
      osf3* | osf4* | osf5*)
 
12500
        case $cc_basename in
 
12501
          KCC*)
 
12502
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12503
            ;;
 
12504
          RCC*)
 
12505
            # Rational C++ 2.4.1
 
12506
            lt_prog_compiler_pic_CXX='-pic'
 
12507
            ;;
 
12508
          cxx*)
 
12509
            # Digital/Compaq C++
 
12510
            lt_prog_compiler_wl_CXX='-Wl,'
 
12511
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12512
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12513
            lt_prog_compiler_pic_CXX=
 
12514
            lt_prog_compiler_static_CXX='-non_shared'
 
12515
            ;;
 
12516
          *)
 
12517
            ;;
 
12518
        esac
 
12519
        ;;
 
12520
      psos*)
 
12521
        ;;
 
12522
      solaris*)
 
12523
        case $cc_basename in
 
12524
          CC*)
 
12525
            # Sun C++ 4.2, 5.x and Centerline C++
 
12526
            lt_prog_compiler_pic_CXX='-KPIC'
 
12527
            lt_prog_compiler_static_CXX='-Bstatic'
 
12528
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12529
            ;;
 
12530
          gcx*)
 
12531
            # Green Hills C++ Compiler
 
12532
            lt_prog_compiler_pic_CXX='-PIC'
 
12533
            ;;
 
12534
          *)
 
12535
            ;;
 
12536
        esac
 
12537
        ;;
 
12538
      sunos4*)
 
12539
        case $cc_basename in
 
12540
          CC*)
 
12541
            # Sun C++ 4.x
 
12542
            lt_prog_compiler_pic_CXX='-pic'
 
12543
            lt_prog_compiler_static_CXX='-Bstatic'
 
12544
            ;;
 
12545
          lcc*)
 
12546
            # Lucid
 
12547
            lt_prog_compiler_pic_CXX='-pic'
 
12548
            ;;
 
12549
          *)
 
12550
            ;;
 
12551
        esac
 
12552
        ;;
 
12553
      tandem*)
 
12554
        case $cc_basename in
 
12555
          NCC*)
 
12556
            # NonStop-UX NCC 3.20
 
12557
            lt_prog_compiler_pic_CXX='-KPIC'
 
12558
            ;;
 
12559
          *)
 
12560
            ;;
 
12561
        esac
 
12562
        ;;
 
12563
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12564
        case $cc_basename in
 
12565
          CC*)
 
12566
            lt_prog_compiler_wl_CXX='-Wl,'
 
12567
            lt_prog_compiler_pic_CXX='-KPIC'
 
12568
            lt_prog_compiler_static_CXX='-Bstatic'
 
12569
            ;;
 
12570
        esac
 
12571
        ;;
 
12572
      vxworks*)
 
12573
        ;;
 
12574
      *)
 
12575
        lt_prog_compiler_can_build_shared_CXX=no
 
12576
        ;;
 
12577
    esac
 
12578
  fi
 
12579
 
 
12580
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12581
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
12582
 
 
12583
#
 
12584
# Check to make sure the PIC flag actually works.
 
12585
#
 
12586
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12587
 
 
12588
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12589
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
12590
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
12591
  $as_echo_n "(cached) " >&6
 
12592
else
 
12593
  lt_cv_prog_compiler_pic_works_CXX=no
 
12594
  ac_outfile=conftest.$ac_objext
 
12595
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12596
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12597
   # Insert the option either (1) after the last *FLAGS variable, or
 
12598
   # (2) before a word containing "conftest.", or (3) at the end.
 
12599
   # Note that $ac_compile itself does not contain backslashes and begins
 
12600
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12601
   # The option is referenced via a variable to avoid confusing sed.
 
12602
   lt_compile=`echo "$ac_compile" | $SED \
 
12603
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12604
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12605
   -e 's:$: $lt_compiler_flag:'`
 
12606
   (eval echo "\"\$as_me:12606: $lt_compile\"" >&5)
 
12607
   (eval "$lt_compile" 2>conftest.err)
 
12608
   ac_status=$?
 
12609
   cat conftest.err >&5
 
12610
   echo "$as_me:12610: \$? = $ac_status" >&5
 
12611
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12612
     # The compiler can only warn and ignore the option if not recognized
 
12613
     # So say no if there are warnings other than the usual output.
 
12614
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12615
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12616
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12617
       lt_cv_prog_compiler_pic_works_CXX=yes
 
12618
     fi
 
12619
   fi
 
12620
   $rm conftest*
 
12621
 
 
12622
fi
 
12623
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
12624
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
12625
 
 
12626
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
12627
    case $lt_prog_compiler_pic_CXX in
 
12628
     "" | " "*) ;;
 
12629
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12630
     esac
 
12631
else
 
12632
    lt_prog_compiler_pic_CXX=
 
12633
     lt_prog_compiler_can_build_shared_CXX=no
 
12634
fi
 
12635
 
 
12636
fi
 
12637
case $host_os in
 
12638
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12639
  *djgpp*)
 
12640
    lt_prog_compiler_pic_CXX=
 
12641
    ;;
 
12642
  *)
 
12643
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12644
    ;;
 
12645
esac
 
12646
 
 
12647
#
 
12648
# Check to make sure the static flag actually works.
 
12649
#
 
12650
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12651
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12652
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
12653
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
12654
  $as_echo_n "(cached) " >&6
 
12655
else
 
12656
  lt_cv_prog_compiler_static_works_CXX=no
 
12657
   save_LDFLAGS="$LDFLAGS"
 
12658
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12659
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12660
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12661
     # The linker can only warn and ignore the option if not recognized
 
12662
     # So say no if there are warnings
 
12663
     if test -s conftest.err; then
 
12664
       # Append any errors to the config.log.
 
12665
       cat conftest.err 1>&5
 
12666
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12667
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12668
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12669
         lt_cv_prog_compiler_static_works_CXX=yes
 
12670
       fi
 
12671
     else
 
12672
       lt_cv_prog_compiler_static_works_CXX=yes
 
12673
     fi
 
12674
   fi
 
12675
   $rm -r conftest*
 
12676
   LDFLAGS="$save_LDFLAGS"
 
12677
 
 
12678
fi
 
12679
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
12680
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
12681
 
 
12682
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
12683
    :
 
12684
else
 
12685
    lt_prog_compiler_static_CXX=
 
12686
fi
 
12687
 
 
12688
 
 
12689
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12690
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
12691
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12692
  $as_echo_n "(cached) " >&6
 
12693
else
 
12694
  lt_cv_prog_compiler_c_o_CXX=no
 
12695
   $rm -r conftest 2>/dev/null
 
12696
   mkdir conftest
 
12697
   cd conftest
 
12698
   mkdir out
 
12699
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12700
 
 
12701
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12702
   # Insert the option either (1) after the last *FLAGS variable, or
 
12703
   # (2) before a word containing "conftest.", or (3) at the end.
 
12704
   # Note that $ac_compile itself does not contain backslashes and begins
 
12705
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12706
   lt_compile=`echo "$ac_compile" | $SED \
 
12707
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12708
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12709
   -e 's:$: $lt_compiler_flag:'`
 
12710
   (eval echo "\"\$as_me:12710: $lt_compile\"" >&5)
 
12711
   (eval "$lt_compile" 2>out/conftest.err)
 
12712
   ac_status=$?
 
12713
   cat out/conftest.err >&5
 
12714
   echo "$as_me:12714: \$? = $ac_status" >&5
 
12715
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12716
   then
 
12717
     # The compiler can only warn and ignore the option if not recognized
 
12718
     # So say no if there are warnings
 
12719
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12720
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12721
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12722
       lt_cv_prog_compiler_c_o_CXX=yes
 
12723
     fi
 
12724
   fi
 
12725
   chmod u+w . 2>&5
 
12726
   $rm conftest*
 
12727
   # SGI C++ compiler will create directory out/ii_files/ for
 
12728
   # template instantiation
 
12729
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12730
   $rm out/* && rmdir out
 
12731
   cd ..
 
12732
   rmdir conftest
 
12733
   $rm conftest*
 
12734
 
 
12735
fi
 
12736
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12737
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12738
 
 
12739
 
 
12740
hard_links="nottested"
 
12741
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12742
  # do not overwrite the value of need_locks provided by the user
 
12743
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12744
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
12745
  hard_links=yes
 
12746
  $rm conftest*
 
12747
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12748
  touch conftest.a
 
12749
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12750
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12751
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
12752
$as_echo "$hard_links" >&6; }
 
12753
  if test "$hard_links" = no; then
 
12754
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12755
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12756
    need_locks=warn
 
12757
  fi
 
12758
else
 
12759
  need_locks=no
 
12760
fi
 
12761
 
 
12762
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12763
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12764
 
 
12765
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12766
  case $host_os in
 
12767
  aix[4-9]*)
 
12768
    # If we're using GNU nm, then we don't want the "-C" option.
 
12769
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12770
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12771
      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'
 
12772
    else
 
12773
      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'
 
12774
    fi
 
12775
    ;;
 
12776
  pw32*)
 
12777
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12778
  ;;
 
12779
  cygwin* | mingw*)
 
12780
    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'
 
12781
  ;;
 
12782
  *)
 
12783
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12784
  ;;
 
12785
  esac
 
12786
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
12787
 
 
12788
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12789
$as_echo "$ld_shlibs_CXX" >&6; }
 
12790
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12791
 
 
12792
#
 
12793
# Do we need to explicitly link libc?
 
12794
#
 
12795
case "x$archive_cmds_need_lc_CXX" in
 
12796
x|xyes)
 
12797
  # Assume -lc should be added
 
12798
  archive_cmds_need_lc_CXX=yes
 
12799
 
 
12800
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12801
    case $archive_cmds_CXX in
 
12802
    *'~'*)
 
12803
      # FIXME: we may have to deal with multi-command sequences.
 
12804
      ;;
 
12805
    '$CC '*)
 
12806
      # Test whether the compiler implicitly links with -lc since on some
 
12807
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12808
      # to ld, don't add -lc before -lgcc.
 
12809
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12810
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
12811
      $rm conftest*
 
12812
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12813
 
 
12814
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12815
  (eval $ac_compile) 2>&5
 
12816
  ac_status=$?
 
12817
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12818
  (exit $ac_status); } 2>conftest.err; then
 
12819
        soname=conftest
 
12820
        lib=conftest
 
12821
        libobjs=conftest.$ac_objext
 
12822
        deplibs=
 
12823
        wl=$lt_prog_compiler_wl_CXX
 
12824
        pic_flag=$lt_prog_compiler_pic_CXX
 
12825
        compiler_flags=-v
 
12826
        linker_flags=-v
 
12827
        verstring=
 
12828
        output_objdir=.
 
12829
        libname=conftest
 
12830
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12831
        allow_undefined_flag_CXX=
 
12832
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12833
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12834
  ac_status=$?
 
12835
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12836
  (exit $ac_status); }
 
12837
        then
 
12838
          archive_cmds_need_lc_CXX=no
 
12839
        else
 
12840
          archive_cmds_need_lc_CXX=yes
 
12841
        fi
 
12842
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12843
      else
 
12844
        cat conftest.err 1>&5
 
12845
      fi
 
12846
      $rm conftest*
 
12847
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12848
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
12849
      ;;
 
12850
    esac
 
12851
  fi
 
12852
  ;;
 
12853
esac
 
12854
 
 
12855
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12856
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
12857
library_names_spec=
 
12858
libname_spec='lib$name'
 
12859
soname_spec=
 
12860
shrext_cmds=".so"
 
12861
postinstall_cmds=
 
12862
postuninstall_cmds=
 
12863
finish_cmds=
 
12864
finish_eval=
 
12865
shlibpath_var=
 
12866
shlibpath_overrides_runpath=unknown
 
12867
version_type=none
 
12868
dynamic_linker="$host_os ld.so"
 
12869
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12870
 
 
12871
need_lib_prefix=unknown
 
12872
hardcode_into_libs=no
 
12873
 
 
12874
# when you set need_version to no, make sure it does not cause -set_version
 
12875
# flags to be left without arguments
 
12876
need_version=unknown
 
12877
 
 
12878
case $host_os in
 
12879
aix3*)
 
12880
  version_type=linux
 
12881
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12882
  shlibpath_var=LIBPATH
 
12883
 
 
12884
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12885
  soname_spec='${libname}${release}${shared_ext}$major'
 
12886
  ;;
 
12887
 
 
12888
aix[4-9]*)
 
12889
  version_type=linux
 
12890
  need_lib_prefix=no
 
12891
  need_version=no
 
12892
  hardcode_into_libs=yes
 
12893
  if test "$host_cpu" = ia64; then
 
12894
    # AIX 5 supports IA64
 
12895
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12896
    shlibpath_var=LD_LIBRARY_PATH
 
12897
  else
 
12898
    # With GCC up to 2.95.x, collect2 would create an import file
 
12899
    # for dependence libraries.  The import file would start with
 
12900
    # the line `#! .'.  This would cause the generated library to
 
12901
    # depend on `.', always an invalid library.  This was fixed in
 
12902
    # development snapshots of GCC prior to 3.0.
 
12903
    case $host_os in
 
12904
      aix4 | aix4.[01] | aix4.[01].*)
 
12905
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12906
           echo ' yes '
 
12907
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12908
        :
 
12909
      else
 
12910
        can_build_shared=no
 
12911
      fi
 
12912
      ;;
 
12913
    esac
 
12914
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12915
    # soname into executable. Probably we can add versioning support to
 
12916
    # collect2, so additional links can be useful in future.
 
12917
    if test "$aix_use_runtimelinking" = yes; then
 
12918
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12919
      # instead of lib<name>.a to let people know that these are not
 
12920
      # typical AIX shared libraries.
 
12921
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12922
    else
 
12923
      # We preserve .a as extension for shared libraries through AIX4.2
 
12924
      # and later when we are not doing run time linking.
 
12925
      library_names_spec='${libname}${release}.a $libname.a'
 
12926
      soname_spec='${libname}${release}${shared_ext}$major'
 
12927
    fi
 
12928
    shlibpath_var=LIBPATH
 
12929
  fi
 
12930
  ;;
 
12931
 
 
12932
amigaos*)
 
12933
  library_names_spec='$libname.ixlibrary $libname.a'
 
12934
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12935
  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'
 
12936
  ;;
 
12937
 
 
12938
beos*)
 
12939
  library_names_spec='${libname}${shared_ext}'
 
12940
  dynamic_linker="$host_os ld.so"
 
12941
  shlibpath_var=LIBRARY_PATH
 
12942
  ;;
 
12943
 
 
12944
bsdi[45]*)
 
12945
  version_type=linux
 
12946
  need_version=no
 
12947
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12948
  soname_spec='${libname}${release}${shared_ext}$major'
 
12949
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12950
  shlibpath_var=LD_LIBRARY_PATH
 
12951
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12952
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12953
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12954
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12955
  # libtool to hard-code these into programs
 
12956
  ;;
 
12957
 
 
12958
cygwin* | mingw* | pw32*)
 
12959
  version_type=windows
 
12960
  shrext_cmds=".dll"
 
12961
  need_version=no
 
12962
  need_lib_prefix=no
 
12963
 
 
12964
  case $GCC,$host_os in
 
12965
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12966
    library_names_spec='$libname.dll.a'
 
12967
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12968
    postinstall_cmds='base_file=`basename \${file}`~
 
12969
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12970
      dldir=$destdir/`dirname \$dlpath`~
 
12971
      test -d \$dldir || mkdir -p \$dldir~
 
12972
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12973
      chmod a+x \$dldir/$dlname'
 
12974
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12975
      dlpath=$dir/\$dldll~
 
12976
       $rm \$dlpath'
 
12977
    shlibpath_overrides_runpath=yes
 
12978
 
 
12979
    case $host_os in
 
12980
    cygwin*)
 
12981
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12982
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12983
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12984
      ;;
 
12985
    mingw*)
 
12986
      # MinGW DLLs use traditional 'lib' prefix
 
12987
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12988
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12989
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12990
        # It is most probably a Windows format PATH printed by
 
12991
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12992
        # path with ; separators, and with drive letters. We can handle the
 
12993
        # drive letters (cygwin fileutils understands them), so leave them,
 
12994
        # especially as we might pass files found there to a mingw objdump,
 
12995
        # which wouldn't understand a cygwinified path. Ahh.
 
12996
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12997
      else
 
12998
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12999
      fi
 
13000
      ;;
 
13001
    pw32*)
 
13002
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13003
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13004
      ;;
 
13005
    esac
 
13006
    ;;
 
13007
 
 
13008
  *)
 
13009
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13010
    ;;
 
13011
  esac
 
13012
  dynamic_linker='Win32 ld.exe'
 
13013
  # FIXME: first we should search . and the directory the executable is in
 
13014
  shlibpath_var=PATH
 
13015
  ;;
 
13016
 
 
13017
darwin* | rhapsody*)
 
13018
  dynamic_linker="$host_os dyld"
 
13019
  version_type=darwin
 
13020
  need_lib_prefix=no
 
13021
  need_version=no
 
13022
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13023
  soname_spec='${libname}${release}${major}$shared_ext'
 
13024
  shlibpath_overrides_runpath=yes
 
13025
  shlibpath_var=DYLD_LIBRARY_PATH
 
13026
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13027
 
 
13028
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13029
  ;;
 
13030
 
 
13031
dgux*)
 
13032
  version_type=linux
 
13033
  need_lib_prefix=no
 
13034
  need_version=no
 
13035
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13036
  soname_spec='${libname}${release}${shared_ext}$major'
 
13037
  shlibpath_var=LD_LIBRARY_PATH
 
13038
  ;;
 
13039
 
 
13040
freebsd1*)
 
13041
  dynamic_linker=no
 
13042
  ;;
 
13043
 
 
13044
freebsd* | dragonfly*)
 
13045
  # DragonFly does not have aout.  When/if they implement a new
 
13046
  # versioning mechanism, adjust this.
 
13047
  if test -x /usr/bin/objformat; then
 
13048
    objformat=`/usr/bin/objformat`
 
13049
  else
 
13050
    case $host_os in
 
13051
    freebsd[123]*) objformat=aout ;;
 
13052
    *) objformat=elf ;;
 
13053
    esac
 
13054
  fi
 
13055
  version_type=freebsd-$objformat
 
13056
  case $version_type in
 
13057
    freebsd-elf*)
 
13058
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13059
      need_version=no
 
13060
      need_lib_prefix=no
 
13061
      ;;
 
13062
    freebsd-*)
 
13063
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13064
      need_version=yes
 
13065
      ;;
 
13066
  esac
 
13067
  shlibpath_var=LD_LIBRARY_PATH
 
13068
  case $host_os in
 
13069
  freebsd2*)
 
13070
    shlibpath_overrides_runpath=yes
 
13071
    ;;
 
13072
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13073
    shlibpath_overrides_runpath=yes
 
13074
    hardcode_into_libs=yes
 
13075
    ;;
 
13076
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13077
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13078
    shlibpath_overrides_runpath=no
 
13079
    hardcode_into_libs=yes
 
13080
    ;;
 
13081
  *) # from 4.6 on, and DragonFly
 
13082
    shlibpath_overrides_runpath=yes
 
13083
    hardcode_into_libs=yes
 
13084
    ;;
 
13085
  esac
 
13086
  ;;
 
13087
 
 
13088
gnu*)
 
13089
  version_type=linux
 
13090
  need_lib_prefix=no
 
13091
  need_version=no
 
13092
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13093
  soname_spec='${libname}${release}${shared_ext}$major'
 
13094
  shlibpath_var=LD_LIBRARY_PATH
 
13095
  hardcode_into_libs=yes
 
13096
  ;;
 
13097
 
 
13098
hpux9* | hpux10* | hpux11*)
 
13099
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13100
  # link against other versions.
 
13101
  version_type=sunos
 
13102
  need_lib_prefix=no
 
13103
  need_version=no
 
13104
  case $host_cpu in
 
13105
  ia64*)
 
13106
    shrext_cmds='.so'
 
13107
    hardcode_into_libs=yes
 
13108
    dynamic_linker="$host_os dld.so"
 
13109
    shlibpath_var=LD_LIBRARY_PATH
 
13110
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13111
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13112
    soname_spec='${libname}${release}${shared_ext}$major'
 
13113
    if test "X$HPUX_IA64_MODE" = X32; then
 
13114
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13115
    else
 
13116
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13117
    fi
 
13118
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13119
    ;;
 
13120
   hppa*64*)
 
13121
     shrext_cmds='.sl'
 
13122
     hardcode_into_libs=yes
 
13123
     dynamic_linker="$host_os dld.sl"
 
13124
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13125
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13126
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13127
     soname_spec='${libname}${release}${shared_ext}$major'
 
13128
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13129
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13130
     ;;
 
13131
   *)
 
13132
    shrext_cmds='.sl'
 
13133
    dynamic_linker="$host_os dld.sl"
 
13134
    shlibpath_var=SHLIB_PATH
 
13135
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13136
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13137
    soname_spec='${libname}${release}${shared_ext}$major'
 
13138
    ;;
 
13139
  esac
 
13140
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13141
  postinstall_cmds='chmod 555 $lib'
 
13142
  ;;
 
13143
 
 
13144
interix[3-9]*)
 
13145
  version_type=linux
 
13146
  need_lib_prefix=no
 
13147
  need_version=no
 
13148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13149
  soname_spec='${libname}${release}${shared_ext}$major'
 
13150
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13151
  shlibpath_var=LD_LIBRARY_PATH
 
13152
  shlibpath_overrides_runpath=no
 
13153
  hardcode_into_libs=yes
 
13154
  ;;
 
13155
 
 
13156
irix5* | irix6* | nonstopux*)
 
13157
  case $host_os in
 
13158
    nonstopux*) version_type=nonstopux ;;
 
13159
    *)
 
13160
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13161
                version_type=linux
 
13162
        else
 
13163
                version_type=irix
 
13164
        fi ;;
 
13165
  esac
 
13166
  need_lib_prefix=no
 
13167
  need_version=no
 
13168
  soname_spec='${libname}${release}${shared_ext}$major'
 
13169
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13170
  case $host_os in
 
13171
  irix5* | nonstopux*)
 
13172
    libsuff= shlibsuff=
 
13173
    ;;
 
13174
  *)
 
13175
    case $LD in # libtool.m4 will add one of these switches to LD
 
13176
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13177
      libsuff= shlibsuff= libmagic=32-bit;;
 
13178
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13179
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13180
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13181
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13182
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13183
    esac
 
13184
    ;;
 
13185
  esac
 
13186
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13187
  shlibpath_overrides_runpath=no
 
13188
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13189
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13190
  hardcode_into_libs=yes
 
13191
  ;;
 
13192
 
 
13193
# No shared lib support for Linux oldld, aout, or coff.
 
13194
linux*oldld* | linux*aout* | linux*coff*)
 
13195
  dynamic_linker=no
 
13196
  ;;
 
13197
 
 
13198
# This must be Linux ELF.
 
13199
linux* | k*bsd*-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
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13206
  shlibpath_var=LD_LIBRARY_PATH
 
13207
  shlibpath_overrides_runpath=no
 
13208
  # This implies no fast_install, which is unacceptable.
 
13209
  # Some rework will be needed to allow for fast_install
 
13210
  # before this can be enabled.
 
13211
  hardcode_into_libs=yes
 
13212
 
 
13213
  # Append ld.so.conf contents to the search path
 
13214
  if test -f /etc/ld.so.conf; then
 
13215
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13216
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13217
  fi
 
13218
 
 
13219
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13220
  # powerpc, because MkLinux only supported shared libraries with the
 
13221
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13222
  # most powerpc-linux boxes support dynamic linking these days and
 
13223
  # people can always --disable-shared, the test was removed, and we
 
13224
  # assume the GNU/Linux dynamic linker is in use.
 
13225
  dynamic_linker='GNU/Linux ld.so'
 
13226
  ;;
 
13227
 
 
13228
netbsd*)
 
13229
  version_type=sunos
 
13230
  need_lib_prefix=no
 
13231
  need_version=no
 
13232
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13233
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13234
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13235
    dynamic_linker='NetBSD (a.out) ld.so'
 
13236
  else
 
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
    dynamic_linker='NetBSD ld.elf_so'
 
13240
  fi
 
13241
  shlibpath_var=LD_LIBRARY_PATH
 
13242
  shlibpath_overrides_runpath=yes
 
13243
  hardcode_into_libs=yes
 
13244
  ;;
 
13245
 
 
13246
newsos6)
 
13247
  version_type=linux
 
13248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13249
  shlibpath_var=LD_LIBRARY_PATH
 
13250
  shlibpath_overrides_runpath=yes
 
13251
  ;;
 
13252
 
 
13253
nto-qnx*)
 
13254
  version_type=linux
 
13255
  need_lib_prefix=no
 
13256
  need_version=no
 
13257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13258
  soname_spec='${libname}${release}${shared_ext}$major'
 
13259
  shlibpath_var=LD_LIBRARY_PATH
 
13260
  shlibpath_overrides_runpath=yes
 
13261
  ;;
 
13262
 
 
13263
openbsd*)
 
13264
  version_type=sunos
 
13265
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13266
  need_lib_prefix=no
 
13267
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13268
  case $host_os in
 
13269
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13270
    *)                         need_version=no  ;;
 
13271
  esac
 
13272
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13273
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13274
  shlibpath_var=LD_LIBRARY_PATH
 
13275
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13276
    case $host_os in
 
13277
      openbsd2.[89] | openbsd2.[89].*)
 
13278
        shlibpath_overrides_runpath=no
 
13279
        ;;
 
13280
      *)
 
13281
        shlibpath_overrides_runpath=yes
 
13282
        ;;
 
13283
      esac
 
13284
  else
 
13285
    shlibpath_overrides_runpath=yes
 
13286
  fi
 
13287
  ;;
 
13288
 
 
13289
os2*)
 
13290
  libname_spec='$name'
 
13291
  shrext_cmds=".dll"
 
13292
  need_lib_prefix=no
 
13293
  library_names_spec='$libname${shared_ext} $libname.a'
 
13294
  dynamic_linker='OS/2 ld.exe'
 
13295
  shlibpath_var=LIBPATH
 
13296
  ;;
 
13297
 
 
13298
osf3* | osf4* | osf5*)
 
13299
  version_type=osf
 
13300
  need_lib_prefix=no
 
13301
  need_version=no
 
13302
  soname_spec='${libname}${release}${shared_ext}$major'
 
13303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13304
  shlibpath_var=LD_LIBRARY_PATH
 
13305
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13306
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13307
  ;;
 
13308
 
 
13309
rdos*)
 
13310
  dynamic_linker=no
 
13311
  ;;
 
13312
 
 
13313
solaris*)
 
13314
  version_type=linux
 
13315
  need_lib_prefix=no
 
13316
  need_version=no
 
13317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13318
  soname_spec='${libname}${release}${shared_ext}$major'
 
13319
  shlibpath_var=LD_LIBRARY_PATH
 
13320
  shlibpath_overrides_runpath=yes
 
13321
  hardcode_into_libs=yes
 
13322
  # ldd complains unless libraries are executable
 
13323
  postinstall_cmds='chmod +x $lib'
 
13324
  ;;
 
13325
 
 
13326
sunos4*)
 
13327
  version_type=sunos
 
13328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13329
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13330
  shlibpath_var=LD_LIBRARY_PATH
 
13331
  shlibpath_overrides_runpath=yes
 
13332
  if test "$with_gnu_ld" = yes; then
 
13333
    need_lib_prefix=no
 
13334
  fi
 
13335
  need_version=yes
 
13336
  ;;
 
13337
 
 
13338
sysv4 | sysv4.3*)
 
13339
  version_type=linux
 
13340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13341
  soname_spec='${libname}${release}${shared_ext}$major'
 
13342
  shlibpath_var=LD_LIBRARY_PATH
 
13343
  case $host_vendor in
 
13344
    sni)
 
13345
      shlibpath_overrides_runpath=no
 
13346
      need_lib_prefix=no
 
13347
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13348
      runpath_var=LD_RUN_PATH
 
13349
      ;;
 
13350
    siemens)
 
13351
      need_lib_prefix=no
 
13352
      ;;
 
13353
    motorola)
 
13354
      need_lib_prefix=no
 
13355
      need_version=no
 
13356
      shlibpath_overrides_runpath=no
 
13357
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13358
      ;;
 
13359
  esac
 
13360
  ;;
 
13361
 
 
13362
sysv4*MP*)
 
13363
  if test -d /usr/nec ;then
 
13364
    version_type=linux
 
13365
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13366
    soname_spec='$libname${shared_ext}.$major'
 
13367
    shlibpath_var=LD_LIBRARY_PATH
 
13368
  fi
 
13369
  ;;
 
13370
 
 
13371
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13372
  version_type=freebsd-elf
 
13373
  need_lib_prefix=no
 
13374
  need_version=no
 
13375
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13376
  soname_spec='${libname}${release}${shared_ext}$major'
 
13377
  shlibpath_var=LD_LIBRARY_PATH
 
13378
  hardcode_into_libs=yes
 
13379
  if test "$with_gnu_ld" = yes; then
 
13380
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13381
    shlibpath_overrides_runpath=no
 
13382
  else
 
13383
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13384
    shlibpath_overrides_runpath=yes
 
13385
    case $host_os in
 
13386
      sco3.2v5*)
 
13387
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13388
        ;;
 
13389
    esac
 
13390
  fi
 
13391
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13392
  ;;
 
13393
 
 
13394
uts4*)
 
13395
  version_type=linux
 
13396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13397
  soname_spec='${libname}${release}${shared_ext}$major'
 
13398
  shlibpath_var=LD_LIBRARY_PATH
 
13399
  ;;
 
13400
 
 
13401
*)
 
13402
  dynamic_linker=no
 
13403
  ;;
 
13404
esac
 
13405
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13406
$as_echo "$dynamic_linker" >&6; }
 
13407
test "$dynamic_linker" = no && can_build_shared=no
 
13408
 
 
13409
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13410
  $as_echo_n "(cached) " >&6
 
13411
else
 
13412
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13413
fi
 
13414
 
 
13415
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13416
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13417
  $as_echo_n "(cached) " >&6
 
13418
else
 
13419
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13420
fi
 
13421
 
 
13422
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13423
 
 
13424
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13425
if test "$GCC" = yes; then
 
13426
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13427
fi
 
13428
 
 
13429
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13430
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
13431
hardcode_action_CXX=
 
13432
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13433
   test -n "$runpath_var_CXX" || \
 
13434
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13435
 
 
13436
  # We can hardcode non-existant directories.
 
13437
  if test "$hardcode_direct_CXX" != no &&
 
13438
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13439
     # have to relink, otherwise we might link with an installed library
 
13440
     # when we should be linking with a yet-to-be-installed one
 
13441
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13442
     test "$hardcode_minus_L_CXX" != no; then
 
13443
    # Linking always hardcodes the temporary library directory.
 
13444
    hardcode_action_CXX=relink
 
13445
  else
 
13446
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13447
    hardcode_action_CXX=immediate
 
13448
  fi
 
13449
else
 
13450
  # We cannot hardcode anything, or else we can only hardcode existing
 
13451
  # directories.
 
13452
  hardcode_action_CXX=unsupported
 
13453
fi
 
13454
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13455
$as_echo "$hardcode_action_CXX" >&6; }
 
13456
 
 
13457
if test "$hardcode_action_CXX" = relink; then
 
13458
  # Fast installation is not supported
 
13459
  enable_fast_install=no
 
13460
elif test "$shlibpath_overrides_runpath" = yes ||
 
13461
     test "$enable_shared" = no; then
 
13462
  # Fast installation is not necessary
 
13463
  enable_fast_install=needless
 
13464
fi
 
13465
 
 
13466
 
 
13467
# The else clause should only fire when bootstrapping the
 
13468
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13469
# with your package, and you will get complaints that there are
 
13470
# no rules to generate ltmain.sh.
 
13471
if test -f "$ltmain"; then
 
13472
  # See if we are running on zsh, and set the options which allow our commands through
 
13473
  # without removal of \ escapes.
 
13474
  if test -n "${ZSH_VERSION+set}" ; then
 
13475
    setopt NO_GLOB_SUBST
 
13476
  fi
 
13477
  # Now quote all the things that may contain metacharacters while being
 
13478
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13479
  # variables and quote the copies for generation of the libtool script.
 
13480
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13481
    SED SHELL STRIP \
 
13482
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13483
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13484
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13485
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13486
    lt_cv_sys_global_symbol_to_c_name_address \
 
13487
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13488
    old_postinstall_cmds old_postuninstall_cmds \
 
13489
    compiler_CXX \
 
13490
    CC_CXX \
 
13491
    LD_CXX \
 
13492
    lt_prog_compiler_wl_CXX \
 
13493
    lt_prog_compiler_pic_CXX \
 
13494
    lt_prog_compiler_static_CXX \
 
13495
    lt_prog_compiler_no_builtin_flag_CXX \
 
13496
    export_dynamic_flag_spec_CXX \
 
13497
    thread_safe_flag_spec_CXX \
 
13498
    whole_archive_flag_spec_CXX \
 
13499
    enable_shared_with_static_runtimes_CXX \
 
13500
    old_archive_cmds_CXX \
 
13501
    old_archive_from_new_cmds_CXX \
 
13502
    predep_objects_CXX \
 
13503
    postdep_objects_CXX \
 
13504
    predeps_CXX \
 
13505
    postdeps_CXX \
 
13506
    compiler_lib_search_path_CXX \
 
13507
    compiler_lib_search_dirs_CXX \
 
13508
    archive_cmds_CXX \
 
13509
    archive_expsym_cmds_CXX \
 
13510
    postinstall_cmds_CXX \
 
13511
    postuninstall_cmds_CXX \
 
13512
    old_archive_from_expsyms_cmds_CXX \
 
13513
    allow_undefined_flag_CXX \
 
13514
    no_undefined_flag_CXX \
 
13515
    export_symbols_cmds_CXX \
 
13516
    hardcode_libdir_flag_spec_CXX \
 
13517
    hardcode_libdir_flag_spec_ld_CXX \
 
13518
    hardcode_libdir_separator_CXX \
 
13519
    hardcode_automatic_CXX \
 
13520
    module_cmds_CXX \
 
13521
    module_expsym_cmds_CXX \
 
13522
    lt_cv_prog_compiler_c_o_CXX \
 
13523
    fix_srcfile_path_CXX \
 
13524
    exclude_expsyms_CXX \
 
13525
    include_expsyms_CXX; do
 
13526
 
 
13527
    case $var in
 
13528
    old_archive_cmds_CXX | \
 
13529
    old_archive_from_new_cmds_CXX | \
 
13530
    archive_cmds_CXX | \
 
13531
    archive_expsym_cmds_CXX | \
 
13532
    module_cmds_CXX | \
 
13533
    module_expsym_cmds_CXX | \
 
13534
    old_archive_from_expsyms_cmds_CXX | \
 
13535
    export_symbols_cmds_CXX | \
 
13536
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13537
    postinstall_cmds | postuninstall_cmds | \
 
13538
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13539
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13540
      # Double-quote double-evaled strings.
 
13541
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13542
      ;;
 
13543
    *)
 
13544
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13545
      ;;
 
13546
    esac
 
13547
  done
 
13548
 
 
13549
  case $lt_echo in
 
13550
  *'\$0 --fallback-echo"')
 
13551
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13552
    ;;
 
13553
  esac
 
13554
 
 
13555
cfgfile="$ofile"
 
13556
 
 
13557
  cat <<__EOF__ >> "$cfgfile"
 
13558
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13559
 
 
13560
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13561
 
 
13562
# Shell to use when invoking shell scripts.
 
13563
SHELL=$lt_SHELL
 
13564
 
 
13565
# Whether or not to build shared libraries.
 
13566
build_libtool_libs=$enable_shared
 
13567
 
 
13568
# Whether or not to build static libraries.
 
13569
build_old_libs=$enable_static
 
13570
 
 
13571
# Whether or not to add -lc for building shared libraries.
 
13572
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13573
 
 
13574
# Whether or not to disallow shared libs when runtime libs are static
 
13575
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13576
 
 
13577
# Whether or not to optimize for fast installation.
 
13578
fast_install=$enable_fast_install
 
13579
 
 
13580
# The host system.
 
13581
host_alias=$host_alias
 
13582
host=$host
 
13583
host_os=$host_os
 
13584
 
 
13585
# The build system.
 
13586
build_alias=$build_alias
 
13587
build=$build
 
13588
build_os=$build_os
 
13589
 
 
13590
# An echo program that does not interpret backslashes.
 
13591
echo=$lt_echo
 
13592
 
 
13593
# The archiver.
 
13594
AR=$lt_AR
 
13595
AR_FLAGS=$lt_AR_FLAGS
 
13596
 
 
13597
# A C compiler.
 
13598
LTCC=$lt_LTCC
 
13599
 
 
13600
# LTCC compiler flags.
 
13601
LTCFLAGS=$lt_LTCFLAGS
 
13602
 
 
13603
# A language-specific compiler.
 
13604
CC=$lt_compiler_CXX
 
13605
 
 
13606
# Is the compiler the GNU C compiler?
 
13607
with_gcc=$GCC_CXX
 
13608
 
 
13609
# An ERE matcher.
 
13610
EGREP=$lt_EGREP
 
13611
 
 
13612
# The linker used to build libraries.
 
13613
LD=$lt_LD_CXX
 
13614
 
 
13615
# Whether we need hard or soft links.
 
13616
LN_S=$lt_LN_S
 
13617
 
 
13618
# A BSD-compatible nm program.
 
13619
NM=$lt_NM
 
13620
 
 
13621
# A symbol stripping program
 
13622
STRIP=$lt_STRIP
 
13623
 
 
13624
# Used to examine libraries when file_magic_cmd begins "file"
 
13625
MAGIC_CMD=$MAGIC_CMD
 
13626
 
 
13627
# Used on cygwin: DLL creation program.
 
13628
DLLTOOL="$DLLTOOL"
 
13629
 
 
13630
# Used on cygwin: object dumper.
 
13631
OBJDUMP="$OBJDUMP"
 
13632
 
 
13633
# Used on cygwin: assembler.
 
13634
AS="$AS"
 
13635
 
 
13636
# The name of the directory that contains temporary libtool files.
 
13637
objdir=$objdir
 
13638
 
 
13639
# How to create reloadable object files.
 
13640
reload_flag=$lt_reload_flag
 
13641
reload_cmds=$lt_reload_cmds
 
13642
 
 
13643
# How to pass a linker flag through the compiler.
 
13644
wl=$lt_lt_prog_compiler_wl_CXX
 
13645
 
 
13646
# Object file suffix (normally "o").
 
13647
objext="$ac_objext"
 
13648
 
 
13649
# Old archive suffix (normally "a").
 
13650
libext="$libext"
 
13651
 
 
13652
# Shared library suffix (normally ".so").
 
13653
shrext_cmds='$shrext_cmds'
 
13654
 
 
13655
# Executable file suffix (normally "").
 
13656
exeext="$exeext"
 
13657
 
 
13658
# Additional compiler flags for building library objects.
 
13659
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13660
pic_mode=$pic_mode
 
13661
 
 
13662
# What is the maximum length of a command?
 
13663
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13664
 
 
13665
# Does compiler simultaneously support -c and -o options?
 
13666
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13667
 
 
13668
# Must we lock files when doing compilation?
 
13669
need_locks=$lt_need_locks
 
13670
 
 
13671
# Do we need the lib prefix for modules?
 
13672
need_lib_prefix=$need_lib_prefix
 
13673
 
 
13674
# Do we need a version for libraries?
 
13675
need_version=$need_version
 
13676
 
 
13677
# Whether dlopen is supported.
 
13678
dlopen_support=$enable_dlopen
 
13679
 
 
13680
# Whether dlopen of programs is supported.
 
13681
dlopen_self=$enable_dlopen_self
 
13682
 
 
13683
# Whether dlopen of statically linked programs is supported.
 
13684
dlopen_self_static=$enable_dlopen_self_static
 
13685
 
 
13686
# Compiler flag to prevent dynamic linking.
 
13687
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13688
 
 
13689
# Compiler flag to turn off builtin functions.
 
13690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13691
 
 
13692
# Compiler flag to allow reflexive dlopens.
 
13693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13694
 
 
13695
# Compiler flag to generate shared objects directly from archives.
 
13696
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13697
 
 
13698
# Compiler flag to generate thread-safe objects.
 
13699
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13700
 
 
13701
# Library versioning type.
 
13702
version_type=$version_type
 
13703
 
 
13704
# Format of library name prefix.
 
13705
libname_spec=$lt_libname_spec
 
13706
 
 
13707
# List of archive names.  First name is the real one, the rest are links.
 
13708
# The last name is the one that the linker finds with -lNAME.
 
13709
library_names_spec=$lt_library_names_spec
 
13710
 
 
13711
# The coded name of the library, if different from the real name.
 
13712
soname_spec=$lt_soname_spec
 
13713
 
 
13714
# Commands used to build and install an old-style archive.
 
13715
RANLIB=$lt_RANLIB
 
13716
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13717
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13719
 
 
13720
# Create an old-style archive from a shared archive.
 
13721
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13722
 
 
13723
# Create a temporary old-style archive to link instead of a shared archive.
 
13724
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13725
 
 
13726
# Commands used to build and install a shared archive.
 
13727
archive_cmds=$lt_archive_cmds_CXX
 
13728
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13729
postinstall_cmds=$lt_postinstall_cmds
 
13730
postuninstall_cmds=$lt_postuninstall_cmds
 
13731
 
 
13732
# Commands used to build a loadable module (assumed same as above if empty)
 
13733
module_cmds=$lt_module_cmds_CXX
 
13734
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13735
 
 
13736
# Commands to strip libraries.
 
13737
old_striplib=$lt_old_striplib
 
13738
striplib=$lt_striplib
 
13739
 
 
13740
# Dependencies to place before the objects being linked to create a
 
13741
# shared library.
 
13742
predep_objects=$lt_predep_objects_CXX
 
13743
 
 
13744
# Dependencies to place after the objects being linked to create a
 
13745
# shared library.
 
13746
postdep_objects=$lt_postdep_objects_CXX
 
13747
 
 
13748
# Dependencies to place before the objects being linked to create a
 
13749
# shared library.
 
13750
predeps=$lt_predeps_CXX
 
13751
 
 
13752
# Dependencies to place after the objects being linked to create a
 
13753
# shared library.
 
13754
postdeps=$lt_postdeps_CXX
 
13755
 
 
13756
# The directories searched by this compiler when creating a shared
 
13757
# library
 
13758
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
13759
 
 
13760
# The library search path used internally by the compiler when linking
 
13761
# a shared library.
 
13762
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13763
 
 
13764
# Method to check whether dependent libraries are shared objects.
 
13765
deplibs_check_method=$lt_deplibs_check_method
 
13766
 
 
13767
# Command to use when deplibs_check_method == file_magic.
 
13768
file_magic_cmd=$lt_file_magic_cmd
 
13769
 
 
13770
# Flag that allows shared libraries with undefined symbols to be built.
 
13771
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13772
 
 
13773
# Flag that forces no undefined symbols.
 
13774
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13775
 
 
13776
# Commands used to finish a libtool library installation in a directory.
 
13777
finish_cmds=$lt_finish_cmds
 
13778
 
 
13779
# Same as above, but a single script fragment to be evaled but not shown.
 
13780
finish_eval=$lt_finish_eval
 
13781
 
 
13782
# Take the output of nm and produce a listing of raw symbols and C names.
 
13783
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13784
 
 
13785
# Transform the output of nm in a proper C declaration
 
13786
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13787
 
 
13788
# Transform the output of nm in a C name address pair
 
13789
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13790
 
 
13791
# This is the shared library runtime path variable.
 
13792
runpath_var=$runpath_var
 
13793
 
 
13794
# This is the shared library path variable.
 
13795
shlibpath_var=$shlibpath_var
 
13796
 
 
13797
# Is shlibpath searched before the hard-coded library search path?
 
13798
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13799
 
 
13800
# How to hardcode a shared library path into an executable.
 
13801
hardcode_action=$hardcode_action_CXX
 
13802
 
 
13803
# Whether we should hardcode library paths into libraries.
 
13804
hardcode_into_libs=$hardcode_into_libs
 
13805
 
 
13806
# Flag to hardcode \$libdir into a binary during linking.
 
13807
# This must work even if \$libdir does not exist.
 
13808
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13809
 
 
13810
# If ld is used when linking, flag to hardcode \$libdir into
 
13811
# a binary during linking. This must work even if \$libdir does
 
13812
# not exist.
 
13813
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13814
 
 
13815
# Whether we need a single -rpath flag with a separated argument.
 
13816
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13817
 
 
13818
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13819
# resulting binary.
 
13820
hardcode_direct=$hardcode_direct_CXX
 
13821
 
 
13822
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13823
# resulting binary.
 
13824
hardcode_minus_L=$hardcode_minus_L_CXX
 
13825
 
 
13826
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13827
# the resulting binary.
 
13828
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13829
 
 
13830
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13831
# and all subsequent libraries and executables linked against it.
 
13832
hardcode_automatic=$hardcode_automatic_CXX
 
13833
 
 
13834
# Variables whose values should be saved in libtool wrapper scripts and
 
13835
# restored at relink time.
 
13836
variables_saved_for_relink="$variables_saved_for_relink"
 
13837
 
 
13838
# Whether libtool must link a program against all its dependency libraries.
 
13839
link_all_deplibs=$link_all_deplibs_CXX
 
13840
 
 
13841
# Compile-time system search path for libraries
 
13842
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13843
 
 
13844
# Run-time system search path for libraries
 
13845
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13846
 
 
13847
# Fix the shell variable \$srcfile for the compiler.
 
13848
fix_srcfile_path=$lt_fix_srcfile_path
 
13849
 
 
13850
# Set to yes if exported symbols are required.
 
13851
always_export_symbols=$always_export_symbols_CXX
 
13852
 
 
13853
# The commands to list exported symbols.
 
13854
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13855
 
 
13856
# The commands to extract the exported symbol list from a shared archive.
 
13857
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13858
 
 
13859
# Symbols that should not be listed in the preloaded symbols.
 
13860
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13861
 
 
13862
# Symbols that must always be exported.
 
13863
include_expsyms=$lt_include_expsyms_CXX
 
13864
 
 
13865
# ### END LIBTOOL TAG CONFIG: $tagname
 
13866
 
 
13867
__EOF__
 
13868
 
 
13869
 
 
13870
else
 
13871
  # If there is no Makefile yet, we rely on a make rule to execute
 
13872
  # `config.status --recheck' to rerun these tests and create the
 
13873
  # libtool script then.
 
13874
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13875
  if test -f "$ltmain_in"; then
 
13876
    test -f Makefile && make "$ltmain"
 
13877
  fi
 
13878
fi
 
13879
 
 
13880
 
 
13881
ac_ext=c
 
13882
ac_cpp='$CPP $CPPFLAGS'
 
13883
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13884
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13885
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13886
 
 
13887
CC=$lt_save_CC
 
13888
LDCXX=$LD
 
13889
LD=$lt_save_LD
 
13890
GCC=$lt_save_GCC
 
13891
with_gnu_ldcxx=$with_gnu_ld
 
13892
with_gnu_ld=$lt_save_with_gnu_ld
 
13893
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13894
lt_cv_path_LD=$lt_save_path_LD
 
13895
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13896
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13897
 
 
13898
        else
 
13899
          tagname=""
 
13900
        fi
 
13901
        ;;
 
13902
 
 
13903
      F77)
 
13904
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13905
 
 
13906
ac_ext=f
 
13907
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13908
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13909
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13910
 
 
13911
 
 
13912
archive_cmds_need_lc_F77=no
 
13913
allow_undefined_flag_F77=
 
13914
always_export_symbols_F77=no
 
13915
archive_expsym_cmds_F77=
 
13916
export_dynamic_flag_spec_F77=
 
13917
hardcode_direct_F77=no
 
13918
hardcode_libdir_flag_spec_F77=
 
13919
hardcode_libdir_flag_spec_ld_F77=
 
13920
hardcode_libdir_separator_F77=
 
13921
hardcode_minus_L_F77=no
 
13922
hardcode_automatic_F77=no
 
13923
module_cmds_F77=
 
13924
module_expsym_cmds_F77=
 
13925
link_all_deplibs_F77=unknown
 
13926
old_archive_cmds_F77=$old_archive_cmds
 
13927
no_undefined_flag_F77=
 
13928
whole_archive_flag_spec_F77=
 
13929
enable_shared_with_static_runtimes_F77=no
 
13930
 
 
13931
# Source file extension for f77 test sources.
 
13932
ac_ext=f
 
13933
 
 
13934
# Object file extension for compiled f77 test sources.
 
13935
objext=o
 
13936
objext_F77=$objext
 
13937
 
 
13938
# Code to be used in simple compile tests
 
13939
lt_simple_compile_test_code="\
 
13940
      subroutine t
 
13941
      return
 
13942
      end
 
13943
"
 
13944
 
 
13945
# Code to be used in simple link tests
 
13946
lt_simple_link_test_code="\
 
13947
      program t
 
13948
      end
 
13949
"
 
13950
 
 
13951
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13952
 
 
13953
# If no C compiler was specified, use CC.
 
13954
LTCC=${LTCC-"$CC"}
 
13955
 
 
13956
# If no C compiler flags were specified, use CFLAGS.
 
13957
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13958
 
 
13959
# Allow CC to be a program name with arguments.
 
13960
compiler=$CC
 
13961
 
 
13962
 
 
13963
# save warnings/boilerplate of simple test code
 
13964
ac_outfile=conftest.$ac_objext
 
13965
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13966
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13967
_lt_compiler_boilerplate=`cat conftest.err`
 
13968
$rm conftest*
 
13969
 
 
13970
ac_outfile=conftest.$ac_objext
 
13971
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
13972
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13973
_lt_linker_boilerplate=`cat conftest.err`
 
13974
$rm -r conftest*
 
13975
 
 
13976
 
 
13977
# Allow CC to be a program name with arguments.
 
13978
lt_save_CC="$CC"
 
13979
CC=${F77-"f77"}
 
13980
compiler=$CC
 
13981
compiler_F77=$CC
 
13982
for cc_temp in $compiler""; do
 
13983
  case $cc_temp in
 
13984
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13985
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13986
    \-*) ;;
 
13987
    *) break;;
 
13988
  esac
 
13989
done
 
13990
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13991
 
 
13992
 
 
13993
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13994
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
13995
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13996
$as_echo "$can_build_shared" >&6; }
 
13997
 
 
13998
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13999
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
14000
test "$can_build_shared" = "no" && enable_shared=no
 
14001
 
 
14002
# On AIX, shared libraries and static libraries use the same namespace, and
 
14003
# are all built from PIC.
 
14004
case $host_os in
 
14005
aix3*)
 
14006
  test "$enable_shared" = yes && enable_static=no
 
14007
  if test -n "$RANLIB"; then
 
14008
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14009
    postinstall_cmds='$RANLIB $lib'
 
14010
  fi
 
14011
  ;;
 
14012
aix[4-9]*)
 
14013
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14014
    test "$enable_shared" = yes && enable_static=no
 
14015
  fi
 
14016
  ;;
 
14017
esac
 
14018
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14019
$as_echo "$enable_shared" >&6; }
 
14020
 
 
14021
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14022
$as_echo_n "checking whether to build static libraries... " >&6; }
 
14023
# Make sure either enable_shared or enable_static is yes.
 
14024
test "$enable_shared" = yes || enable_static=yes
 
14025
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14026
$as_echo "$enable_static" >&6; }
 
14027
 
 
14028
GCC_F77="$G77"
 
14029
LD_F77="$LD"
 
14030
 
 
14031
lt_prog_compiler_wl_F77=
 
14032
lt_prog_compiler_pic_F77=
 
14033
lt_prog_compiler_static_F77=
 
14034
 
 
14035
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14036
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14037
 
 
14038
  if test "$GCC" = yes; then
 
14039
    lt_prog_compiler_wl_F77='-Wl,'
 
14040
    lt_prog_compiler_static_F77='-static'
 
14041
 
 
14042
    case $host_os in
 
14043
      aix*)
 
14044
      # All AIX code is PIC.
 
14045
      if test "$host_cpu" = ia64; then
 
14046
        # AIX 5 now supports IA64 processor
 
14047
        lt_prog_compiler_static_F77='-Bstatic'
 
14048
      fi
 
14049
      ;;
 
14050
 
 
14051
    amigaos*)
 
14052
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14053
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14054
      # like `-m68040'.
 
14055
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14056
      ;;
 
14057
 
 
14058
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14059
      # PIC is the default for these OSes.
 
14060
      ;;
 
14061
 
 
14062
    mingw* | cygwin* | pw32* | os2*)
 
14063
      # This hack is so that the source file can tell whether it is being
 
14064
      # built for inclusion in a dll (and should export symbols for example).
 
14065
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14066
      # (--disable-auto-import) libraries
 
14067
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14068
      ;;
 
14069
 
 
14070
    darwin* | rhapsody*)
 
14071
      # PIC is the default on this platform
 
14072
      # Common symbols not allowed in MH_DYLIB files
 
14073
      lt_prog_compiler_pic_F77='-fno-common'
 
14074
      ;;
 
14075
 
 
14076
    interix[3-9]*)
 
14077
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14078
      # Instead, we relocate shared libraries at runtime.
 
14079
      ;;
 
14080
 
 
14081
    msdosdjgpp*)
 
14082
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14083
      # on systems that don't support them.
 
14084
      lt_prog_compiler_can_build_shared_F77=no
 
14085
      enable_shared=no
 
14086
      ;;
 
14087
 
 
14088
    sysv4*MP*)
 
14089
      if test -d /usr/nec; then
 
14090
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14091
      fi
 
14092
      ;;
 
14093
 
 
14094
    hpux*)
 
14095
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14096
      # not for PA HP-UX.
 
14097
      case $host_cpu in
 
14098
      hppa*64*|ia64*)
 
14099
        # +Z the default
 
14100
        ;;
 
14101
      *)
 
14102
        lt_prog_compiler_pic_F77='-fPIC'
 
14103
        ;;
 
14104
      esac
 
14105
      ;;
 
14106
 
 
14107
    *)
 
14108
      lt_prog_compiler_pic_F77='-fPIC'
 
14109
      ;;
 
14110
    esac
 
14111
  else
 
14112
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14113
    case $host_os in
 
14114
    aix*)
 
14115
      lt_prog_compiler_wl_F77='-Wl,'
 
14116
      if test "$host_cpu" = ia64; then
 
14117
        # AIX 5 now supports IA64 processor
 
14118
        lt_prog_compiler_static_F77='-Bstatic'
 
14119
      else
 
14120
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14121
      fi
 
14122
      ;;
 
14123
      darwin*)
 
14124
        # PIC is the default on this platform
 
14125
        # Common symbols not allowed in MH_DYLIB files
 
14126
       case $cc_basename in
 
14127
         xlc*)
 
14128
         lt_prog_compiler_pic_F77='-qnocommon'
 
14129
         lt_prog_compiler_wl_F77='-Wl,'
 
14130
         ;;
 
14131
       esac
 
14132
       ;;
 
14133
 
 
14134
    mingw* | cygwin* | pw32* | os2*)
 
14135
      # This hack is so that the source file can tell whether it is being
 
14136
      # built for inclusion in a dll (and should export symbols for example).
 
14137
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14138
      ;;
 
14139
 
 
14140
    hpux9* | hpux10* | hpux11*)
 
14141
      lt_prog_compiler_wl_F77='-Wl,'
 
14142
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14143
      # not for PA HP-UX.
 
14144
      case $host_cpu in
 
14145
      hppa*64*|ia64*)
 
14146
        # +Z the default
 
14147
        ;;
 
14148
      *)
 
14149
        lt_prog_compiler_pic_F77='+Z'
 
14150
        ;;
 
14151
      esac
 
14152
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14153
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14154
      ;;
 
14155
 
 
14156
    irix5* | irix6* | nonstopux*)
 
14157
      lt_prog_compiler_wl_F77='-Wl,'
 
14158
      # PIC (with -KPIC) is the default.
 
14159
      lt_prog_compiler_static_F77='-non_shared'
 
14160
      ;;
 
14161
 
 
14162
    newsos6)
 
14163
      lt_prog_compiler_pic_F77='-KPIC'
 
14164
      lt_prog_compiler_static_F77='-Bstatic'
 
14165
      ;;
 
14166
 
 
14167
    linux* | k*bsd*-gnu)
 
14168
      case $cc_basename in
 
14169
      icc* | ecc*)
 
14170
        lt_prog_compiler_wl_F77='-Wl,'
 
14171
        lt_prog_compiler_pic_F77='-KPIC'
 
14172
        lt_prog_compiler_static_F77='-static'
 
14173
        ;;
 
14174
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14175
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14176
        # which looks to be a dead project)
 
14177
        lt_prog_compiler_wl_F77='-Wl,'
 
14178
        lt_prog_compiler_pic_F77='-fpic'
 
14179
        lt_prog_compiler_static_F77='-Bstatic'
 
14180
        ;;
 
14181
      ccc*)
 
14182
        lt_prog_compiler_wl_F77='-Wl,'
 
14183
        # All Alpha code is PIC.
 
14184
        lt_prog_compiler_static_F77='-non_shared'
 
14185
        ;;
 
14186
      *)
 
14187
        case `$CC -V 2>&1 | sed 5q` in
 
14188
        *Sun\ C*)
 
14189
          # Sun C 5.9
 
14190
          lt_prog_compiler_pic_F77='-KPIC'
 
14191
          lt_prog_compiler_static_F77='-Bstatic'
 
14192
          lt_prog_compiler_wl_F77='-Wl,'
 
14193
          ;;
 
14194
        *Sun\ F*)
 
14195
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14196
          lt_prog_compiler_pic_F77='-KPIC'
 
14197
          lt_prog_compiler_static_F77='-Bstatic'
 
14198
          lt_prog_compiler_wl_F77=''
 
14199
          ;;
 
14200
        esac
 
14201
        ;;
 
14202
      esac
 
14203
      ;;
 
14204
 
 
14205
    osf3* | osf4* | osf5*)
 
14206
      lt_prog_compiler_wl_F77='-Wl,'
 
14207
      # All OSF/1 code is PIC.
 
14208
      lt_prog_compiler_static_F77='-non_shared'
 
14209
      ;;
 
14210
 
 
14211
    rdos*)
 
14212
      lt_prog_compiler_static_F77='-non_shared'
 
14213
      ;;
 
14214
 
 
14215
    solaris*)
 
14216
      lt_prog_compiler_pic_F77='-KPIC'
 
14217
      lt_prog_compiler_static_F77='-Bstatic'
 
14218
      case $cc_basename in
 
14219
      f77* | f90* | f95*)
 
14220
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14221
      *)
 
14222
        lt_prog_compiler_wl_F77='-Wl,';;
 
14223
      esac
 
14224
      ;;
 
14225
 
 
14226
    sunos4*)
 
14227
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14228
      lt_prog_compiler_pic_F77='-PIC'
 
14229
      lt_prog_compiler_static_F77='-Bstatic'
 
14230
      ;;
 
14231
 
 
14232
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14233
      lt_prog_compiler_wl_F77='-Wl,'
 
14234
      lt_prog_compiler_pic_F77='-KPIC'
 
14235
      lt_prog_compiler_static_F77='-Bstatic'
 
14236
      ;;
 
14237
 
 
14238
    sysv4*MP*)
 
14239
      if test -d /usr/nec ;then
 
14240
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14241
        lt_prog_compiler_static_F77='-Bstatic'
 
14242
      fi
 
14243
      ;;
 
14244
 
 
14245
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14246
      lt_prog_compiler_wl_F77='-Wl,'
 
14247
      lt_prog_compiler_pic_F77='-KPIC'
 
14248
      lt_prog_compiler_static_F77='-Bstatic'
 
14249
      ;;
 
14250
 
 
14251
    unicos*)
 
14252
      lt_prog_compiler_wl_F77='-Wl,'
 
14253
      lt_prog_compiler_can_build_shared_F77=no
 
14254
      ;;
 
14255
 
 
14256
    uts4*)
 
14257
      lt_prog_compiler_pic_F77='-pic'
 
14258
      lt_prog_compiler_static_F77='-Bstatic'
 
14259
      ;;
 
14260
 
 
14261
    *)
 
14262
      lt_prog_compiler_can_build_shared_F77=no
 
14263
      ;;
 
14264
    esac
 
14265
  fi
 
14266
 
 
14267
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14268
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
14269
 
 
14270
#
 
14271
# Check to make sure the PIC flag actually works.
 
14272
#
 
14273
if test -n "$lt_prog_compiler_pic_F77"; then
 
14274
 
 
14275
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14276
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
14277
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14278
  $as_echo_n "(cached) " >&6
 
14279
else
 
14280
  lt_cv_prog_compiler_pic_works_F77=no
 
14281
  ac_outfile=conftest.$ac_objext
 
14282
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14283
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14284
   # Insert the option either (1) after the last *FLAGS variable, or
 
14285
   # (2) before a word containing "conftest.", or (3) at the end.
 
14286
   # Note that $ac_compile itself does not contain backslashes and begins
 
14287
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14288
   # The option is referenced via a variable to avoid confusing sed.
 
14289
   lt_compile=`echo "$ac_compile" | $SED \
 
14290
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14291
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14292
   -e 's:$: $lt_compiler_flag:'`
 
14293
   (eval echo "\"\$as_me:14293: $lt_compile\"" >&5)
 
14294
   (eval "$lt_compile" 2>conftest.err)
 
14295
   ac_status=$?
 
14296
   cat conftest.err >&5
 
14297
   echo "$as_me:14297: \$? = $ac_status" >&5
 
14298
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14299
     # The compiler can only warn and ignore the option if not recognized
 
14300
     # So say no if there are warnings other than the usual output.
 
14301
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14302
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14303
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14304
       lt_cv_prog_compiler_pic_works_F77=yes
 
14305
     fi
 
14306
   fi
 
14307
   $rm conftest*
 
14308
 
 
14309
fi
 
14310
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14311
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14312
 
 
14313
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14314
    case $lt_prog_compiler_pic_F77 in
 
14315
     "" | " "*) ;;
 
14316
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14317
     esac
 
14318
else
 
14319
    lt_prog_compiler_pic_F77=
 
14320
     lt_prog_compiler_can_build_shared_F77=no
 
14321
fi
 
14322
 
 
14323
fi
 
14324
case $host_os in
 
14325
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14326
  *djgpp*)
 
14327
    lt_prog_compiler_pic_F77=
 
14328
    ;;
 
14329
  *)
 
14330
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14331
    ;;
 
14332
esac
 
14333
 
 
14334
#
 
14335
# Check to make sure the static flag actually works.
 
14336
#
 
14337
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14338
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14339
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14340
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14341
  $as_echo_n "(cached) " >&6
 
14342
else
 
14343
  lt_cv_prog_compiler_static_works_F77=no
 
14344
   save_LDFLAGS="$LDFLAGS"
 
14345
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14346
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14347
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14348
     # The linker can only warn and ignore the option if not recognized
 
14349
     # So say no if there are warnings
 
14350
     if test -s conftest.err; then
 
14351
       # Append any errors to the config.log.
 
14352
       cat conftest.err 1>&5
 
14353
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14354
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14355
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14356
         lt_cv_prog_compiler_static_works_F77=yes
 
14357
       fi
 
14358
     else
 
14359
       lt_cv_prog_compiler_static_works_F77=yes
 
14360
     fi
 
14361
   fi
 
14362
   $rm -r conftest*
 
14363
   LDFLAGS="$save_LDFLAGS"
 
14364
 
 
14365
fi
 
14366
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14367
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14368
 
 
14369
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14370
    :
 
14371
else
 
14372
    lt_prog_compiler_static_F77=
 
14373
fi
 
14374
 
 
14375
 
 
14376
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14377
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14378
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14379
  $as_echo_n "(cached) " >&6
 
14380
else
 
14381
  lt_cv_prog_compiler_c_o_F77=no
 
14382
   $rm -r conftest 2>/dev/null
 
14383
   mkdir conftest
 
14384
   cd conftest
 
14385
   mkdir out
 
14386
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14387
 
 
14388
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14389
   # Insert the option either (1) after the last *FLAGS variable, or
 
14390
   # (2) before a word containing "conftest.", or (3) at the end.
 
14391
   # Note that $ac_compile itself does not contain backslashes and begins
 
14392
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14393
   lt_compile=`echo "$ac_compile" | $SED \
 
14394
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14395
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14396
   -e 's:$: $lt_compiler_flag:'`
 
14397
   (eval echo "\"\$as_me:14397: $lt_compile\"" >&5)
 
14398
   (eval "$lt_compile" 2>out/conftest.err)
 
14399
   ac_status=$?
 
14400
   cat out/conftest.err >&5
 
14401
   echo "$as_me:14401: \$? = $ac_status" >&5
 
14402
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14403
   then
 
14404
     # The compiler can only warn and ignore the option if not recognized
 
14405
     # So say no if there are warnings
 
14406
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14407
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14408
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14409
       lt_cv_prog_compiler_c_o_F77=yes
 
14410
     fi
 
14411
   fi
 
14412
   chmod u+w . 2>&5
 
14413
   $rm conftest*
 
14414
   # SGI C++ compiler will create directory out/ii_files/ for
 
14415
   # template instantiation
 
14416
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14417
   $rm out/* && rmdir out
 
14418
   cd ..
 
14419
   rmdir conftest
 
14420
   $rm conftest*
 
14421
 
 
14422
fi
 
14423
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14424
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14425
 
 
14426
 
 
14427
hard_links="nottested"
 
14428
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14429
  # do not overwrite the value of need_locks provided by the user
 
14430
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14431
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14432
  hard_links=yes
 
14433
  $rm conftest*
 
14434
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14435
  touch conftest.a
 
14436
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14437
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14438
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
14439
$as_echo "$hard_links" >&6; }
 
14440
  if test "$hard_links" = no; then
 
14441
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14442
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14443
    need_locks=warn
 
14444
  fi
 
14445
else
 
14446
  need_locks=no
 
14447
fi
 
14448
 
 
14449
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14450
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14451
 
 
14452
  runpath_var=
 
14453
  allow_undefined_flag_F77=
 
14454
  enable_shared_with_static_runtimes_F77=no
 
14455
  archive_cmds_F77=
 
14456
  archive_expsym_cmds_F77=
 
14457
  old_archive_From_new_cmds_F77=
 
14458
  old_archive_from_expsyms_cmds_F77=
 
14459
  export_dynamic_flag_spec_F77=
 
14460
  whole_archive_flag_spec_F77=
 
14461
  thread_safe_flag_spec_F77=
 
14462
  hardcode_libdir_flag_spec_F77=
 
14463
  hardcode_libdir_flag_spec_ld_F77=
 
14464
  hardcode_libdir_separator_F77=
 
14465
  hardcode_direct_F77=no
 
14466
  hardcode_minus_L_F77=no
 
14467
  hardcode_shlibpath_var_F77=unsupported
 
14468
  link_all_deplibs_F77=unknown
 
14469
  hardcode_automatic_F77=no
 
14470
  module_cmds_F77=
 
14471
  module_expsym_cmds_F77=
 
14472
  always_export_symbols_F77=no
 
14473
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14474
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14475
  # included in the symbol list
 
14476
  include_expsyms_F77=
 
14477
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14478
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14479
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14480
  # as well as any symbol that contains `d'.
 
14481
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14482
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14483
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14484
  # the symbol is explicitly referenced.  Since portable code cannot
 
14485
  # rely on this symbol name, it's probably fine to never include it in
 
14486
  # preloaded symbol tables.
 
14487
  # Exclude shared library initialization/finalization symbols.
 
14488
  extract_expsyms_cmds=
 
14489
  # Just being paranoid about ensuring that cc_basename is set.
 
14490
  for cc_temp in $compiler""; do
 
14491
  case $cc_temp in
 
14492
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14493
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14494
    \-*) ;;
 
14495
    *) break;;
 
14496
  esac
 
14497
done
 
14498
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14499
 
 
14500
  case $host_os in
 
14501
  cygwin* | mingw* | pw32*)
 
14502
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14503
    # When not using gcc, we currently assume that we are using
 
14504
    # Microsoft Visual C++.
 
14505
    if test "$GCC" != yes; then
 
14506
      with_gnu_ld=no
 
14507
    fi
 
14508
    ;;
 
14509
  interix*)
 
14510
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14511
    with_gnu_ld=yes
 
14512
    ;;
 
14513
  openbsd*)
 
14514
    with_gnu_ld=no
 
14515
    ;;
 
14516
  esac
 
14517
 
 
14518
  ld_shlibs_F77=yes
 
14519
  if test "$with_gnu_ld" = yes; then
 
14520
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14521
    wlarc='${wl}'
 
14522
 
 
14523
    # Set some defaults for GNU ld with shared library support. These
 
14524
    # are reset later if shared libraries are not supported. Putting them
 
14525
    # here allows them to be overridden if necessary.
 
14526
    runpath_var=LD_RUN_PATH
 
14527
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14528
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14529
    # ancient GNU ld didn't support --whole-archive et. al.
 
14530
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14531
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14532
      else
 
14533
        whole_archive_flag_spec_F77=
 
14534
    fi
 
14535
    supports_anon_versioning=no
 
14536
    case `$LD -v 2>/dev/null` in
 
14537
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14538
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14539
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14540
      *\ 2.11.*) ;; # other 2.11 versions
 
14541
      *) supports_anon_versioning=yes ;;
 
14542
    esac
 
14543
 
 
14544
    # See if GNU ld supports shared libraries.
 
14545
    case $host_os in
 
14546
    aix[3-9]*)
 
14547
      # On AIX/PPC, the GNU linker is very broken
 
14548
      if test "$host_cpu" != ia64; then
 
14549
        ld_shlibs_F77=no
 
14550
        cat <<EOF 1>&2
 
14551
 
 
14552
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14553
*** to be unable to reliably create shared libraries on AIX.
 
14554
*** Therefore, libtool is disabling shared libraries support.  If you
 
14555
*** really care for shared libraries, you may want to modify your PATH
 
14556
*** so that a non-GNU linker is found, and then restart.
 
14557
 
 
14558
EOF
 
14559
      fi
 
14560
      ;;
 
14561
 
 
14562
    amigaos*)
 
14563
      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)'
 
14564
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14565
      hardcode_minus_L_F77=yes
 
14566
 
 
14567
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14568
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14569
      # to version 4, is to share data among multiple programs linked
 
14570
      # with the same dynamic library.  Since this doesn't match the
 
14571
      # behavior of shared libraries on other platforms, we can't use
 
14572
      # them.
 
14573
      ld_shlibs_F77=no
 
14574
      ;;
 
14575
 
 
14576
    beos*)
 
14577
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14578
        allow_undefined_flag_F77=unsupported
 
14579
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14580
        # support --undefined.  This deserves some investigation.  FIXME
 
14581
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14582
      else
 
14583
        ld_shlibs_F77=no
 
14584
      fi
 
14585
      ;;
 
14586
 
 
14587
    cygwin* | mingw* | pw32*)
 
14588
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14589
      # as there is no search path for DLLs.
 
14590
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14591
      allow_undefined_flag_F77=unsupported
 
14592
      always_export_symbols_F77=no
 
14593
      enable_shared_with_static_runtimes_F77=yes
 
14594
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14595
 
 
14596
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14597
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14598
        # If the export-symbols file already is a .def file (1st line
 
14599
        # is EXPORTS), use it as is; otherwise, prepend...
 
14600
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14601
          cp $export_symbols $output_objdir/$soname.def;
 
14602
        else
 
14603
          echo EXPORTS > $output_objdir/$soname.def;
 
14604
          cat $export_symbols >> $output_objdir/$soname.def;
 
14605
        fi~
 
14606
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14607
      else
 
14608
        ld_shlibs_F77=no
 
14609
      fi
 
14610
      ;;
 
14611
 
 
14612
    interix[3-9]*)
 
14613
      hardcode_direct_F77=no
 
14614
      hardcode_shlibpath_var_F77=no
 
14615
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14616
      export_dynamic_flag_spec_F77='${wl}-E'
 
14617
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14618
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14619
      # default) and relocated if they conflict, which is a slow very memory
 
14620
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14621
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14622
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14623
      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'
 
14624
      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'
 
14625
      ;;
 
14626
 
 
14627
    gnu* | linux* | k*bsd*-gnu)
 
14628
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14629
        tmp_addflag=
 
14630
        case $cc_basename,$host_cpu in
 
14631
        pgcc*)                          # Portland Group C compiler
 
14632
          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'
 
14633
          tmp_addflag=' $pic_flag'
 
14634
          ;;
 
14635
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14636
          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'
 
14637
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14638
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14639
          tmp_addflag=' -i_dynamic' ;;
 
14640
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14641
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14642
        ifc* | ifort*)                  # Intel Fortran compiler
 
14643
          tmp_addflag=' -nofor_main' ;;
 
14644
        esac
 
14645
        case `$CC -V 2>&1 | sed 5q` in
 
14646
        *Sun\ C*)                       # Sun C 5.9
 
14647
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14648
          tmp_sharedflag='-G' ;;
 
14649
        *Sun\ F*)                       # Sun Fortran 8.3
 
14650
          tmp_sharedflag='-G' ;;
 
14651
        *)
 
14652
          tmp_sharedflag='-shared' ;;
 
14653
        esac
 
14654
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14655
 
 
14656
        if test $supports_anon_versioning = yes; then
 
14657
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14658
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14659
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14660
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14661
        fi
 
14662
      else
 
14663
        ld_shlibs_F77=no
 
14664
      fi
 
14665
      ;;
 
14666
 
 
14667
    netbsd*)
 
14668
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14669
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14670
        wlarc=
 
14671
      else
 
14672
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14673
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14674
      fi
 
14675
      ;;
 
14676
 
 
14677
    solaris*)
 
14678
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14679
        ld_shlibs_F77=no
 
14680
        cat <<EOF 1>&2
 
14681
 
 
14682
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14683
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14684
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14685
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14686
*** your PATH or compiler configuration so that the native linker is
 
14687
*** used, and then restart.
 
14688
 
 
14689
EOF
 
14690
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14691
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14692
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14693
      else
 
14694
        ld_shlibs_F77=no
 
14695
      fi
 
14696
      ;;
 
14697
 
 
14698
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14699
      case `$LD -v 2>&1` in
 
14700
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14701
        ld_shlibs_F77=no
 
14702
        cat <<_LT_EOF 1>&2
 
14703
 
 
14704
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14705
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14706
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14707
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14708
*** your PATH or compiler configuration so that the native linker is
 
14709
*** used, and then restart.
 
14710
 
 
14711
_LT_EOF
 
14712
        ;;
 
14713
        *)
 
14714
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14715
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14716
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14717
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14718
          else
 
14719
            ld_shlibs_F77=no
 
14720
          fi
 
14721
        ;;
 
14722
      esac
 
14723
      ;;
 
14724
 
 
14725
    sunos4*)
 
14726
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14727
      wlarc=
 
14728
      hardcode_direct_F77=yes
 
14729
      hardcode_shlibpath_var_F77=no
 
14730
      ;;
 
14731
 
 
14732
    *)
 
14733
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14734
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14735
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14736
      else
 
14737
        ld_shlibs_F77=no
 
14738
      fi
 
14739
      ;;
 
14740
    esac
 
14741
 
 
14742
    if test "$ld_shlibs_F77" = no; then
 
14743
      runpath_var=
 
14744
      hardcode_libdir_flag_spec_F77=
 
14745
      export_dynamic_flag_spec_F77=
 
14746
      whole_archive_flag_spec_F77=
 
14747
    fi
 
14748
  else
 
14749
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14750
    case $host_os in
 
14751
    aix3*)
 
14752
      allow_undefined_flag_F77=unsupported
 
14753
      always_export_symbols_F77=yes
 
14754
      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'
 
14755
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14756
      # are no directories specified by -L.
 
14757
      hardcode_minus_L_F77=yes
 
14758
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14759
        # Neither direct hardcoding nor static linking is supported with a
 
14760
        # broken collect2.
 
14761
        hardcode_direct_F77=unsupported
 
14762
      fi
 
14763
      ;;
 
14764
 
 
14765
    aix[4-9]*)
 
14766
      if test "$host_cpu" = ia64; then
 
14767
        # On IA64, the linker does run time linking by default, so we don't
 
14768
        # have to do anything special.
 
14769
        aix_use_runtimelinking=no
 
14770
        exp_sym_flag='-Bexport'
 
14771
        no_entry_flag=""
 
14772
      else
 
14773
        # If we're using GNU nm, then we don't want the "-C" option.
 
14774
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14775
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14776
          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'
 
14777
        else
 
14778
          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'
 
14779
        fi
 
14780
        aix_use_runtimelinking=no
 
14781
 
 
14782
        # Test if we are trying to use run time linking or normal
 
14783
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14784
        # need to do runtime linking.
 
14785
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
14786
          for ld_flag in $LDFLAGS; do
 
14787
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14788
            aix_use_runtimelinking=yes
 
14789
            break
 
14790
          fi
 
14791
          done
 
14792
          ;;
 
14793
        esac
 
14794
 
 
14795
        exp_sym_flag='-bexport'
 
14796
        no_entry_flag='-bnoentry'
 
14797
      fi
 
14798
 
 
14799
      # When large executables or shared objects are built, AIX ld can
 
14800
      # have problems creating the table of contents.  If linking a library
 
14801
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14802
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14803
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14804
 
 
14805
      archive_cmds_F77=''
 
14806
      hardcode_direct_F77=yes
 
14807
      hardcode_libdir_separator_F77=':'
 
14808
      link_all_deplibs_F77=yes
 
14809
 
 
14810
      if test "$GCC" = yes; then
 
14811
        case $host_os in aix4.[012]|aix4.[012].*)
 
14812
        # We only want to do this on AIX 4.2 and lower, the check
 
14813
        # below for broken collect2 doesn't work under 4.3+
 
14814
          collect2name=`${CC} -print-prog-name=collect2`
 
14815
          if test -f "$collect2name" && \
 
14816
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14817
          then
 
14818
          # We have reworked collect2
 
14819
          :
 
14820
          else
 
14821
          # We have old collect2
 
14822
          hardcode_direct_F77=unsupported
 
14823
          # It fails to find uninstalled libraries when the uninstalled
 
14824
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14825
          # to unsupported forces relinking
 
14826
          hardcode_minus_L_F77=yes
 
14827
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14828
          hardcode_libdir_separator_F77=
 
14829
          fi
 
14830
          ;;
 
14831
        esac
 
14832
        shared_flag='-shared'
 
14833
        if test "$aix_use_runtimelinking" = yes; then
 
14834
          shared_flag="$shared_flag "'${wl}-G'
 
14835
        fi
 
14836
      else
 
14837
        # not using gcc
 
14838
        if test "$host_cpu" = ia64; then
 
14839
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14840
        # chokes on -Wl,-G. The following line is correct:
 
14841
          shared_flag='-G'
 
14842
        else
 
14843
          if test "$aix_use_runtimelinking" = yes; then
 
14844
            shared_flag='${wl}-G'
 
14845
          else
 
14846
            shared_flag='${wl}-bM:SRE'
 
14847
          fi
 
14848
        fi
 
14849
      fi
 
14850
 
 
14851
      # It seems that -bexpall does not export symbols beginning with
 
14852
      # underscore (_), so it is better to generate a list of symbols to export.
 
14853
      always_export_symbols_F77=yes
 
14854
      if test "$aix_use_runtimelinking" = yes; then
 
14855
        # Warning - without using the other runtime loading flags (-brtl),
 
14856
        # -berok will link without error, but may produce a broken library.
 
14857
        allow_undefined_flag_F77='-berok'
 
14858
       # Determine the default libpath from the value encoded in an empty executable.
 
14859
       cat >conftest.$ac_ext <<_ACEOF
 
14860
      program main
 
14861
 
 
14862
      end
 
14863
_ACEOF
 
14864
rm -f conftest.$ac_objext conftest$ac_exeext
 
14865
if { (ac_try="$ac_link"
 
14866
case "(($ac_try" in
 
14867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14868
  *) ac_try_echo=$ac_try;;
 
14869
esac
 
14870
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14871
$as_echo "$ac_try_echo") >&5
 
14872
  (eval "$ac_link") 2>conftest.er1
 
14873
  ac_status=$?
 
14874
  grep -v '^ *+' conftest.er1 >conftest.err
 
14875
  rm -f conftest.er1
 
14876
  cat conftest.err >&5
 
14877
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14878
  (exit $ac_status); } && {
 
14879
         test -z "$ac_f77_werror_flag" ||
 
14880
         test ! -s conftest.err
 
14881
       } && test -s conftest$ac_exeext && {
 
14882
         test "$cross_compiling" = yes ||
 
14883
         $as_test_x conftest$ac_exeext
 
14884
       }; then
 
14885
 
 
14886
lt_aix_libpath_sed='
 
14887
    /Import File Strings/,/^$/ {
 
14888
        /^0/ {
 
14889
            s/^0  *\(.*\)$/\1/
 
14890
            p
 
14891
        }
 
14892
    }'
 
14893
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14894
# Check for a 64-bit object if we didn't find anything.
 
14895
if test -z "$aix_libpath"; then
 
14896
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14897
fi
 
14898
else
 
14899
  $as_echo "$as_me: failed program was:" >&5
 
14900
sed 's/^/| /' conftest.$ac_ext >&5
 
14901
 
 
14902
 
 
14903
fi
 
14904
 
 
14905
rm -rf conftest.dSYM
 
14906
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14907
      conftest$ac_exeext conftest.$ac_ext
 
14908
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14909
 
 
14910
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14911
        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"
 
14912
       else
 
14913
        if test "$host_cpu" = ia64; then
 
14914
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14915
          allow_undefined_flag_F77="-z nodefs"
 
14916
          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"
 
14917
        else
 
14918
         # Determine the default libpath from the value encoded in an empty executable.
 
14919
         cat >conftest.$ac_ext <<_ACEOF
 
14920
      program main
 
14921
 
 
14922
      end
 
14923
_ACEOF
 
14924
rm -f conftest.$ac_objext conftest$ac_exeext
 
14925
if { (ac_try="$ac_link"
 
14926
case "(($ac_try" in
 
14927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14928
  *) ac_try_echo=$ac_try;;
 
14929
esac
 
14930
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14931
$as_echo "$ac_try_echo") >&5
 
14932
  (eval "$ac_link") 2>conftest.er1
 
14933
  ac_status=$?
 
14934
  grep -v '^ *+' conftest.er1 >conftest.err
 
14935
  rm -f conftest.er1
 
14936
  cat conftest.err >&5
 
14937
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14938
  (exit $ac_status); } && {
 
14939
         test -z "$ac_f77_werror_flag" ||
 
14940
         test ! -s conftest.err
 
14941
       } && test -s conftest$ac_exeext && {
 
14942
         test "$cross_compiling" = yes ||
 
14943
         $as_test_x conftest$ac_exeext
 
14944
       }; then
 
14945
 
 
14946
lt_aix_libpath_sed='
 
14947
    /Import File Strings/,/^$/ {
 
14948
        /^0/ {
 
14949
            s/^0  *\(.*\)$/\1/
 
14950
            p
 
14951
        }
 
14952
    }'
 
14953
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14954
# Check for a 64-bit object if we didn't find anything.
 
14955
if test -z "$aix_libpath"; then
 
14956
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14957
fi
 
14958
else
 
14959
  $as_echo "$as_me: failed program was:" >&5
 
14960
sed 's/^/| /' conftest.$ac_ext >&5
 
14961
 
 
14962
 
 
14963
fi
 
14964
 
 
14965
rm -rf conftest.dSYM
 
14966
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14967
      conftest$ac_exeext conftest.$ac_ext
 
14968
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14969
 
 
14970
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14971
          # Warning - without using the other run time loading flags,
 
14972
          # -berok will link without error, but may produce a broken library.
 
14973
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14974
          allow_undefined_flag_F77=' ${wl}-berok'
 
14975
          # Exported symbols can be pulled into shared objects from archives
 
14976
          whole_archive_flag_spec_F77='$convenience'
 
14977
          archive_cmds_need_lc_F77=yes
 
14978
          # This is similar to how AIX traditionally builds its shared libraries.
 
14979
          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'
 
14980
        fi
 
14981
      fi
 
14982
      ;;
 
14983
 
 
14984
    amigaos*)
 
14985
      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)'
 
14986
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14987
      hardcode_minus_L_F77=yes
 
14988
      # see comment about different semantics on the GNU ld section
 
14989
      ld_shlibs_F77=no
 
14990
      ;;
 
14991
 
 
14992
    bsdi[45]*)
 
14993
      export_dynamic_flag_spec_F77=-rdynamic
 
14994
      ;;
 
14995
 
 
14996
    cygwin* | mingw* | pw32*)
 
14997
      # When not using gcc, we currently assume that we are using
 
14998
      # Microsoft Visual C++.
 
14999
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15000
      # no search path for DLLs.
 
15001
      hardcode_libdir_flag_spec_F77=' '
 
15002
      allow_undefined_flag_F77=unsupported
 
15003
      # Tell ltmain to make .lib files, not .a files.
 
15004
      libext=lib
 
15005
      # Tell ltmain to make .dll files, not .so files.
 
15006
      shrext_cmds=".dll"
 
15007
      # FIXME: Setting linknames here is a bad hack.
 
15008
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15009
      # The linker will automatically build a .lib file if we build a DLL.
 
15010
      old_archive_From_new_cmds_F77='true'
 
15011
      # FIXME: Should let the user specify the lib program.
 
15012
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15013
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15014
      enable_shared_with_static_runtimes_F77=yes
 
15015
      ;;
 
15016
 
 
15017
    darwin* | rhapsody*)
 
15018
      case $host_os in
 
15019
        rhapsody* | darwin1.[012])
 
15020
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15021
         ;;
 
15022
       *) # Darwin 1.3 on
 
15023
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15024
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15025
         else
 
15026
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15027
             10.[012])
 
15028
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15029
               ;;
 
15030
             10.*)
 
15031
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15032
               ;;
 
15033
           esac
 
15034
         fi
 
15035
         ;;
 
15036
      esac
 
15037
      archive_cmds_need_lc_F77=no
 
15038
      hardcode_direct_F77=no
 
15039
      hardcode_automatic_F77=yes
 
15040
      hardcode_shlibpath_var_F77=unsupported
 
15041
      whole_archive_flag_spec_F77=''
 
15042
      link_all_deplibs_F77=yes
 
15043
    if test "$GCC" = yes ; then
 
15044
        output_verbose_link_cmd='echo'
 
15045
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15046
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15047
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
15048
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
15049
    else
 
15050
      case $cc_basename in
 
15051
        xlc*)
 
15052
         output_verbose_link_cmd='echo'
 
15053
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15054
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15055
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15056
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15057
          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}'
 
15058
          ;;
 
15059
       *)
 
15060
         ld_shlibs_F77=no
 
15061
          ;;
 
15062
      esac
 
15063
    fi
 
15064
      ;;
 
15065
 
 
15066
    dgux*)
 
15067
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15068
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15069
      hardcode_shlibpath_var_F77=no
 
15070
      ;;
 
15071
 
 
15072
    freebsd1*)
 
15073
      ld_shlibs_F77=no
 
15074
      ;;
 
15075
 
 
15076
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15077
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15078
    # does not break anything, and helps significantly (at the cost of a little
 
15079
    # extra space).
 
15080
    freebsd2.2*)
 
15081
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15082
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15083
      hardcode_direct_F77=yes
 
15084
      hardcode_shlibpath_var_F77=no
 
15085
      ;;
 
15086
 
 
15087
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15088
    freebsd2*)
 
15089
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15090
      hardcode_direct_F77=yes
 
15091
      hardcode_minus_L_F77=yes
 
15092
      hardcode_shlibpath_var_F77=no
 
15093
      ;;
 
15094
 
 
15095
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15096
    freebsd* | dragonfly*)
 
15097
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15098
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15099
      hardcode_direct_F77=yes
 
15100
      hardcode_shlibpath_var_F77=no
 
15101
      ;;
 
15102
 
 
15103
    hpux9*)
 
15104
      if test "$GCC" = yes; then
 
15105
        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'
 
15106
      else
 
15107
        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'
 
15108
      fi
 
15109
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15110
      hardcode_libdir_separator_F77=:
 
15111
      hardcode_direct_F77=yes
 
15112
 
 
15113
      # hardcode_minus_L: Not really in the search PATH,
 
15114
      # but as the default location of the library.
 
15115
      hardcode_minus_L_F77=yes
 
15116
      export_dynamic_flag_spec_F77='${wl}-E'
 
15117
      ;;
 
15118
 
 
15119
    hpux10*)
 
15120
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15121
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15122
      else
 
15123
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15124
      fi
 
15125
      if test "$with_gnu_ld" = no; then
 
15126
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15127
        hardcode_libdir_separator_F77=:
 
15128
 
 
15129
        hardcode_direct_F77=yes
 
15130
        export_dynamic_flag_spec_F77='${wl}-E'
 
15131
 
 
15132
        # hardcode_minus_L: Not really in the search PATH,
 
15133
        # but as the default location of the library.
 
15134
        hardcode_minus_L_F77=yes
 
15135
      fi
 
15136
      ;;
 
15137
 
 
15138
    hpux11*)
 
15139
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15140
        case $host_cpu in
 
15141
        hppa*64*)
 
15142
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15143
          ;;
 
15144
        ia64*)
 
15145
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15146
          ;;
 
15147
        *)
 
15148
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15149
          ;;
 
15150
        esac
 
15151
      else
 
15152
        case $host_cpu in
 
15153
        hppa*64*)
 
15154
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15155
          ;;
 
15156
        ia64*)
 
15157
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15158
          ;;
 
15159
        *)
 
15160
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15161
          ;;
 
15162
        esac
 
15163
      fi
 
15164
      if test "$with_gnu_ld" = no; then
 
15165
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15166
        hardcode_libdir_separator_F77=:
 
15167
 
 
15168
        case $host_cpu in
 
15169
        hppa*64*|ia64*)
 
15170
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15171
          hardcode_direct_F77=no
 
15172
          hardcode_shlibpath_var_F77=no
 
15173
          ;;
 
15174
        *)
 
15175
          hardcode_direct_F77=yes
 
15176
          export_dynamic_flag_spec_F77='${wl}-E'
 
15177
 
 
15178
          # hardcode_minus_L: Not really in the search PATH,
 
15179
          # but as the default location of the library.
 
15180
          hardcode_minus_L_F77=yes
 
15181
          ;;
 
15182
        esac
 
15183
      fi
 
15184
      ;;
 
15185
 
 
15186
    irix5* | irix6* | nonstopux*)
 
15187
      if test "$GCC" = yes; then
 
15188
        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'
 
15189
      else
 
15190
        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'
 
15191
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15192
      fi
 
15193
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15194
      hardcode_libdir_separator_F77=:
 
15195
      link_all_deplibs_F77=yes
 
15196
      ;;
 
15197
 
 
15198
    netbsd*)
 
15199
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15200
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15201
      else
 
15202
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15203
      fi
 
15204
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15205
      hardcode_direct_F77=yes
 
15206
      hardcode_shlibpath_var_F77=no
 
15207
      ;;
 
15208
 
 
15209
    newsos6)
 
15210
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15211
      hardcode_direct_F77=yes
 
15212
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15213
      hardcode_libdir_separator_F77=:
 
15214
      hardcode_shlibpath_var_F77=no
 
15215
      ;;
 
15216
 
 
15217
    openbsd*)
 
15218
      if test -f /usr/libexec/ld.so; then
 
15219
        hardcode_direct_F77=yes
 
15220
        hardcode_shlibpath_var_F77=no
 
15221
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15222
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15223
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15224
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15225
          export_dynamic_flag_spec_F77='${wl}-E'
 
15226
        else
 
15227
          case $host_os in
 
15228
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15229
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15230
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15231
             ;;
 
15232
           *)
 
15233
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15234
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15235
             ;;
 
15236
          esac
 
15237
        fi
 
15238
      else
 
15239
        ld_shlibs_F77=no
 
15240
      fi
 
15241
      ;;
 
15242
 
 
15243
    os2*)
 
15244
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15245
      hardcode_minus_L_F77=yes
 
15246
      allow_undefined_flag_F77=unsupported
 
15247
      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'
 
15248
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15249
      ;;
 
15250
 
 
15251
    osf3*)
 
15252
      if test "$GCC" = yes; then
 
15253
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15254
        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'
 
15255
      else
 
15256
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15257
        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'
 
15258
      fi
 
15259
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15260
      hardcode_libdir_separator_F77=:
 
15261
      ;;
 
15262
 
 
15263
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15264
      if test "$GCC" = yes; then
 
15265
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15266
        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'
 
15267
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15268
      else
 
15269
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15270
        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'
 
15271
        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~
 
15272
        $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'
 
15273
 
 
15274
        # Both c and cxx compiler support -rpath directly
 
15275
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15276
      fi
 
15277
      hardcode_libdir_separator_F77=:
 
15278
      ;;
 
15279
 
 
15280
    solaris*)
 
15281
      no_undefined_flag_F77=' -z text'
 
15282
      if test "$GCC" = yes; then
 
15283
        wlarc='${wl}'
 
15284
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15285
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15286
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15287
      else
 
15288
        wlarc=''
 
15289
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15290
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15291
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15292
      fi
 
15293
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15294
      hardcode_shlibpath_var_F77=no
 
15295
      case $host_os in
 
15296
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15297
      *)
 
15298
        # The compiler driver will combine and reorder linker options,
 
15299
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15300
        # but is careful enough not to reorder.
 
15301
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15302
        if test "$GCC" = yes; then
 
15303
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15304
        else
 
15305
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15306
        fi
 
15307
        ;;
 
15308
      esac
 
15309
      link_all_deplibs_F77=yes
 
15310
      ;;
 
15311
 
 
15312
    sunos4*)
 
15313
      if test "x$host_vendor" = xsequent; then
 
15314
        # Use $CC to link under sequent, because it throws in some extra .o
 
15315
        # files that make .init and .fini sections work.
 
15316
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15317
      else
 
15318
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15319
      fi
 
15320
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15321
      hardcode_direct_F77=yes
 
15322
      hardcode_minus_L_F77=yes
 
15323
      hardcode_shlibpath_var_F77=no
 
15324
      ;;
 
15325
 
 
15326
    sysv4)
 
15327
      case $host_vendor in
 
15328
        sni)
 
15329
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15330
          hardcode_direct_F77=yes # is this really true???
 
15331
        ;;
 
15332
        siemens)
 
15333
          ## LD is ld it makes a PLAMLIB
 
15334
          ## CC just makes a GrossModule.
 
15335
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15336
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15337
          hardcode_direct_F77=no
 
15338
        ;;
 
15339
        motorola)
 
15340
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15341
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15342
        ;;
 
15343
      esac
 
15344
      runpath_var='LD_RUN_PATH'
 
15345
      hardcode_shlibpath_var_F77=no
 
15346
      ;;
 
15347
 
 
15348
    sysv4.3*)
 
15349
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15350
      hardcode_shlibpath_var_F77=no
 
15351
      export_dynamic_flag_spec_F77='-Bexport'
 
15352
      ;;
 
15353
 
 
15354
    sysv4*MP*)
 
15355
      if test -d /usr/nec; then
 
15356
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15357
        hardcode_shlibpath_var_F77=no
 
15358
        runpath_var=LD_RUN_PATH
 
15359
        hardcode_runpath_var=yes
 
15360
        ld_shlibs_F77=yes
 
15361
      fi
 
15362
      ;;
 
15363
 
 
15364
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15365
      no_undefined_flag_F77='${wl}-z,text'
 
15366
      archive_cmds_need_lc_F77=no
 
15367
      hardcode_shlibpath_var_F77=no
 
15368
      runpath_var='LD_RUN_PATH'
 
15369
 
 
15370
      if test "$GCC" = yes; then
 
15371
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15372
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15373
      else
 
15374
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15375
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15376
      fi
 
15377
      ;;
 
15378
 
 
15379
    sysv5* | sco3.2v5* | sco5v6*)
 
15380
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15381
      # link with -lc, and that would cause any symbols used from libc to
 
15382
      # always be unresolved, which means just about no library would
 
15383
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15384
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15385
      # as -z defs.
 
15386
      no_undefined_flag_F77='${wl}-z,text'
 
15387
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15388
      archive_cmds_need_lc_F77=no
 
15389
      hardcode_shlibpath_var_F77=no
 
15390
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15391
      hardcode_libdir_separator_F77=':'
 
15392
      link_all_deplibs_F77=yes
 
15393
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15394
      runpath_var='LD_RUN_PATH'
 
15395
 
 
15396
      if test "$GCC" = yes; then
 
15397
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15398
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15399
      else
 
15400
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15401
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15402
      fi
 
15403
      ;;
 
15404
 
 
15405
    uts4*)
 
15406
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15407
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15408
      hardcode_shlibpath_var_F77=no
 
15409
      ;;
 
15410
 
 
15411
    *)
 
15412
      ld_shlibs_F77=no
 
15413
      ;;
 
15414
    esac
 
15415
  fi
 
15416
 
 
15417
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15418
$as_echo "$ld_shlibs_F77" >&6; }
 
15419
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15420
 
 
15421
#
 
15422
# Do we need to explicitly link libc?
 
15423
#
 
15424
case "x$archive_cmds_need_lc_F77" in
 
15425
x|xyes)
 
15426
  # Assume -lc should be added
 
15427
  archive_cmds_need_lc_F77=yes
 
15428
 
 
15429
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15430
    case $archive_cmds_F77 in
 
15431
    *'~'*)
 
15432
      # FIXME: we may have to deal with multi-command sequences.
 
15433
      ;;
 
15434
    '$CC '*)
 
15435
      # Test whether the compiler implicitly links with -lc since on some
 
15436
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15437
      # to ld, don't add -lc before -lgcc.
 
15438
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15439
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
15440
      $rm conftest*
 
15441
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15442
 
 
15443
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15444
  (eval $ac_compile) 2>&5
 
15445
  ac_status=$?
 
15446
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15447
  (exit $ac_status); } 2>conftest.err; then
 
15448
        soname=conftest
 
15449
        lib=conftest
 
15450
        libobjs=conftest.$ac_objext
 
15451
        deplibs=
 
15452
        wl=$lt_prog_compiler_wl_F77
 
15453
        pic_flag=$lt_prog_compiler_pic_F77
 
15454
        compiler_flags=-v
 
15455
        linker_flags=-v
 
15456
        verstring=
 
15457
        output_objdir=.
 
15458
        libname=conftest
 
15459
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15460
        allow_undefined_flag_F77=
 
15461
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15462
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15463
  ac_status=$?
 
15464
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15465
  (exit $ac_status); }
 
15466
        then
 
15467
          archive_cmds_need_lc_F77=no
 
15468
        else
 
15469
          archive_cmds_need_lc_F77=yes
 
15470
        fi
 
15471
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15472
      else
 
15473
        cat conftest.err 1>&5
 
15474
      fi
 
15475
      $rm conftest*
 
15476
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15477
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
15478
      ;;
 
15479
    esac
 
15480
  fi
 
15481
  ;;
 
15482
esac
 
15483
 
 
15484
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15485
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15486
library_names_spec=
 
15487
libname_spec='lib$name'
 
15488
soname_spec=
 
15489
shrext_cmds=".so"
 
15490
postinstall_cmds=
 
15491
postuninstall_cmds=
 
15492
finish_cmds=
 
15493
finish_eval=
 
15494
shlibpath_var=
 
15495
shlibpath_overrides_runpath=unknown
 
15496
version_type=none
 
15497
dynamic_linker="$host_os ld.so"
 
15498
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15499
 
 
15500
need_lib_prefix=unknown
 
15501
hardcode_into_libs=no
 
15502
 
 
15503
# when you set need_version to no, make sure it does not cause -set_version
 
15504
# flags to be left without arguments
 
15505
need_version=unknown
 
15506
 
 
15507
case $host_os in
 
15508
aix3*)
 
15509
  version_type=linux
 
15510
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15511
  shlibpath_var=LIBPATH
 
15512
 
 
15513
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15514
  soname_spec='${libname}${release}${shared_ext}$major'
 
15515
  ;;
 
15516
 
 
15517
aix[4-9]*)
 
15518
  version_type=linux
 
15519
  need_lib_prefix=no
 
15520
  need_version=no
 
15521
  hardcode_into_libs=yes
 
15522
  if test "$host_cpu" = ia64; then
 
15523
    # AIX 5 supports IA64
 
15524
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15525
    shlibpath_var=LD_LIBRARY_PATH
 
15526
  else
 
15527
    # With GCC up to 2.95.x, collect2 would create an import file
 
15528
    # for dependence libraries.  The import file would start with
 
15529
    # the line `#! .'.  This would cause the generated library to
 
15530
    # depend on `.', always an invalid library.  This was fixed in
 
15531
    # development snapshots of GCC prior to 3.0.
 
15532
    case $host_os in
 
15533
      aix4 | aix4.[01] | aix4.[01].*)
 
15534
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15535
           echo ' yes '
 
15536
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15537
        :
 
15538
      else
 
15539
        can_build_shared=no
 
15540
      fi
 
15541
      ;;
 
15542
    esac
 
15543
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15544
    # soname into executable. Probably we can add versioning support to
 
15545
    # collect2, so additional links can be useful in future.
 
15546
    if test "$aix_use_runtimelinking" = yes; then
 
15547
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15548
      # instead of lib<name>.a to let people know that these are not
 
15549
      # typical AIX shared libraries.
 
15550
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15551
    else
 
15552
      # We preserve .a as extension for shared libraries through AIX4.2
 
15553
      # and later when we are not doing run time linking.
 
15554
      library_names_spec='${libname}${release}.a $libname.a'
 
15555
      soname_spec='${libname}${release}${shared_ext}$major'
 
15556
    fi
 
15557
    shlibpath_var=LIBPATH
 
15558
  fi
 
15559
  ;;
 
15560
 
 
15561
amigaos*)
 
15562
  library_names_spec='$libname.ixlibrary $libname.a'
 
15563
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15564
  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'
 
15565
  ;;
 
15566
 
 
15567
beos*)
 
15568
  library_names_spec='${libname}${shared_ext}'
 
15569
  dynamic_linker="$host_os ld.so"
 
15570
  shlibpath_var=LIBRARY_PATH
 
15571
  ;;
 
15572
 
 
15573
bsdi[45]*)
 
15574
  version_type=linux
 
15575
  need_version=no
 
15576
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15577
  soname_spec='${libname}${release}${shared_ext}$major'
 
15578
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15579
  shlibpath_var=LD_LIBRARY_PATH
 
15580
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15581
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15582
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15583
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15584
  # libtool to hard-code these into programs
 
15585
  ;;
 
15586
 
 
15587
cygwin* | mingw* | pw32*)
 
15588
  version_type=windows
 
15589
  shrext_cmds=".dll"
 
15590
  need_version=no
 
15591
  need_lib_prefix=no
 
15592
 
 
15593
  case $GCC,$host_os in
 
15594
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15595
    library_names_spec='$libname.dll.a'
 
15596
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15597
    postinstall_cmds='base_file=`basename \${file}`~
 
15598
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15599
      dldir=$destdir/`dirname \$dlpath`~
 
15600
      test -d \$dldir || mkdir -p \$dldir~
 
15601
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15602
      chmod a+x \$dldir/$dlname'
 
15603
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15604
      dlpath=$dir/\$dldll~
 
15605
       $rm \$dlpath'
 
15606
    shlibpath_overrides_runpath=yes
 
15607
 
 
15608
    case $host_os in
 
15609
    cygwin*)
 
15610
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15611
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15612
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15613
      ;;
 
15614
    mingw*)
 
15615
      # MinGW DLLs use traditional 'lib' prefix
 
15616
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15617
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15618
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15619
        # It is most probably a Windows format PATH printed by
 
15620
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15621
        # path with ; separators, and with drive letters. We can handle the
 
15622
        # drive letters (cygwin fileutils understands them), so leave them,
 
15623
        # especially as we might pass files found there to a mingw objdump,
 
15624
        # which wouldn't understand a cygwinified path. Ahh.
 
15625
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15626
      else
 
15627
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15628
      fi
 
15629
      ;;
 
15630
    pw32*)
 
15631
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15632
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15633
      ;;
 
15634
    esac
 
15635
    ;;
 
15636
 
 
15637
  *)
 
15638
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15639
    ;;
 
15640
  esac
 
15641
  dynamic_linker='Win32 ld.exe'
 
15642
  # FIXME: first we should search . and the directory the executable is in
 
15643
  shlibpath_var=PATH
 
15644
  ;;
 
15645
 
 
15646
darwin* | rhapsody*)
 
15647
  dynamic_linker="$host_os dyld"
 
15648
  version_type=darwin
 
15649
  need_lib_prefix=no
 
15650
  need_version=no
 
15651
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15652
  soname_spec='${libname}${release}${major}$shared_ext'
 
15653
  shlibpath_overrides_runpath=yes
 
15654
  shlibpath_var=DYLD_LIBRARY_PATH
 
15655
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15656
 
 
15657
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15658
  ;;
 
15659
 
 
15660
dgux*)
 
15661
  version_type=linux
 
15662
  need_lib_prefix=no
 
15663
  need_version=no
 
15664
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15665
  soname_spec='${libname}${release}${shared_ext}$major'
 
15666
  shlibpath_var=LD_LIBRARY_PATH
 
15667
  ;;
 
15668
 
 
15669
freebsd1*)
 
15670
  dynamic_linker=no
 
15671
  ;;
 
15672
 
 
15673
freebsd* | dragonfly*)
 
15674
  # DragonFly does not have aout.  When/if they implement a new
 
15675
  # versioning mechanism, adjust this.
 
15676
  if test -x /usr/bin/objformat; then
 
15677
    objformat=`/usr/bin/objformat`
 
15678
  else
 
15679
    case $host_os in
 
15680
    freebsd[123]*) objformat=aout ;;
 
15681
    *) objformat=elf ;;
 
15682
    esac
 
15683
  fi
 
15684
  version_type=freebsd-$objformat
 
15685
  case $version_type in
 
15686
    freebsd-elf*)
 
15687
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15688
      need_version=no
 
15689
      need_lib_prefix=no
 
15690
      ;;
 
15691
    freebsd-*)
 
15692
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15693
      need_version=yes
 
15694
      ;;
 
15695
  esac
 
15696
  shlibpath_var=LD_LIBRARY_PATH
 
15697
  case $host_os in
 
15698
  freebsd2*)
 
15699
    shlibpath_overrides_runpath=yes
 
15700
    ;;
 
15701
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15702
    shlibpath_overrides_runpath=yes
 
15703
    hardcode_into_libs=yes
 
15704
    ;;
 
15705
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15706
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15707
    shlibpath_overrides_runpath=no
 
15708
    hardcode_into_libs=yes
 
15709
    ;;
 
15710
  *) # from 4.6 on, and DragonFly
 
15711
    shlibpath_overrides_runpath=yes
 
15712
    hardcode_into_libs=yes
 
15713
    ;;
 
15714
  esac
 
15715
  ;;
 
15716
 
 
15717
gnu*)
 
15718
  version_type=linux
 
15719
  need_lib_prefix=no
 
15720
  need_version=no
 
15721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15722
  soname_spec='${libname}${release}${shared_ext}$major'
 
15723
  shlibpath_var=LD_LIBRARY_PATH
 
15724
  hardcode_into_libs=yes
 
15725
  ;;
 
15726
 
 
15727
hpux9* | hpux10* | hpux11*)
 
15728
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15729
  # link against other versions.
 
15730
  version_type=sunos
 
15731
  need_lib_prefix=no
 
15732
  need_version=no
 
15733
  case $host_cpu in
 
15734
  ia64*)
 
15735
    shrext_cmds='.so'
 
15736
    hardcode_into_libs=yes
 
15737
    dynamic_linker="$host_os dld.so"
 
15738
    shlibpath_var=LD_LIBRARY_PATH
 
15739
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15740
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15741
    soname_spec='${libname}${release}${shared_ext}$major'
 
15742
    if test "X$HPUX_IA64_MODE" = X32; then
 
15743
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15744
    else
 
15745
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15746
    fi
 
15747
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15748
    ;;
 
15749
   hppa*64*)
 
15750
     shrext_cmds='.sl'
 
15751
     hardcode_into_libs=yes
 
15752
     dynamic_linker="$host_os dld.sl"
 
15753
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15754
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15755
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15756
     soname_spec='${libname}${release}${shared_ext}$major'
 
15757
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15758
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15759
     ;;
 
15760
   *)
 
15761
    shrext_cmds='.sl'
 
15762
    dynamic_linker="$host_os dld.sl"
 
15763
    shlibpath_var=SHLIB_PATH
 
15764
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15765
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15766
    soname_spec='${libname}${release}${shared_ext}$major'
 
15767
    ;;
 
15768
  esac
 
15769
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15770
  postinstall_cmds='chmod 555 $lib'
 
15771
  ;;
 
15772
 
 
15773
interix[3-9]*)
 
15774
  version_type=linux
 
15775
  need_lib_prefix=no
 
15776
  need_version=no
 
15777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15778
  soname_spec='${libname}${release}${shared_ext}$major'
 
15779
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15780
  shlibpath_var=LD_LIBRARY_PATH
 
15781
  shlibpath_overrides_runpath=no
 
15782
  hardcode_into_libs=yes
 
15783
  ;;
 
15784
 
 
15785
irix5* | irix6* | nonstopux*)
 
15786
  case $host_os in
 
15787
    nonstopux*) version_type=nonstopux ;;
 
15788
    *)
 
15789
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15790
                version_type=linux
 
15791
        else
 
15792
                version_type=irix
 
15793
        fi ;;
 
15794
  esac
 
15795
  need_lib_prefix=no
 
15796
  need_version=no
 
15797
  soname_spec='${libname}${release}${shared_ext}$major'
 
15798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15799
  case $host_os in
 
15800
  irix5* | nonstopux*)
 
15801
    libsuff= shlibsuff=
 
15802
    ;;
 
15803
  *)
 
15804
    case $LD in # libtool.m4 will add one of these switches to LD
 
15805
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15806
      libsuff= shlibsuff= libmagic=32-bit;;
 
15807
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15808
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15809
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15810
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15811
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15812
    esac
 
15813
    ;;
 
15814
  esac
 
15815
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15816
  shlibpath_overrides_runpath=no
 
15817
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15818
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15819
  hardcode_into_libs=yes
 
15820
  ;;
 
15821
 
 
15822
# No shared lib support for Linux oldld, aout, or coff.
 
15823
linux*oldld* | linux*aout* | linux*coff*)
 
15824
  dynamic_linker=no
 
15825
  ;;
 
15826
 
 
15827
# This must be Linux ELF.
 
15828
linux* | k*bsd*-gnu)
 
15829
  version_type=linux
 
15830
  need_lib_prefix=no
 
15831
  need_version=no
 
15832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15833
  soname_spec='${libname}${release}${shared_ext}$major'
 
15834
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15835
  shlibpath_var=LD_LIBRARY_PATH
 
15836
  shlibpath_overrides_runpath=no
 
15837
  # This implies no fast_install, which is unacceptable.
 
15838
  # Some rework will be needed to allow for fast_install
 
15839
  # before this can be enabled.
 
15840
  hardcode_into_libs=yes
 
15841
 
 
15842
  # Append ld.so.conf contents to the search path
 
15843
  if test -f /etc/ld.so.conf; then
 
15844
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15845
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15846
  fi
 
15847
 
 
15848
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15849
  # powerpc, because MkLinux only supported shared libraries with the
 
15850
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15851
  # most powerpc-linux boxes support dynamic linking these days and
 
15852
  # people can always --disable-shared, the test was removed, and we
 
15853
  # assume the GNU/Linux dynamic linker is in use.
 
15854
  dynamic_linker='GNU/Linux ld.so'
 
15855
  ;;
 
15856
 
 
15857
netbsd*)
 
15858
  version_type=sunos
 
15859
  need_lib_prefix=no
 
15860
  need_version=no
 
15861
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15862
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15863
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15864
    dynamic_linker='NetBSD (a.out) ld.so'
 
15865
  else
 
15866
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15867
    soname_spec='${libname}${release}${shared_ext}$major'
 
15868
    dynamic_linker='NetBSD ld.elf_so'
 
15869
  fi
 
15870
  shlibpath_var=LD_LIBRARY_PATH
 
15871
  shlibpath_overrides_runpath=yes
 
15872
  hardcode_into_libs=yes
 
15873
  ;;
 
15874
 
 
15875
newsos6)
 
15876
  version_type=linux
 
15877
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15878
  shlibpath_var=LD_LIBRARY_PATH
 
15879
  shlibpath_overrides_runpath=yes
 
15880
  ;;
 
15881
 
 
15882
nto-qnx*)
 
15883
  version_type=linux
 
15884
  need_lib_prefix=no
 
15885
  need_version=no
 
15886
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15887
  soname_spec='${libname}${release}${shared_ext}$major'
 
15888
  shlibpath_var=LD_LIBRARY_PATH
 
15889
  shlibpath_overrides_runpath=yes
 
15890
  ;;
 
15891
 
 
15892
openbsd*)
 
15893
  version_type=sunos
 
15894
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15895
  need_lib_prefix=no
 
15896
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15897
  case $host_os in
 
15898
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15899
    *)                         need_version=no  ;;
 
15900
  esac
 
15901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15902
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15903
  shlibpath_var=LD_LIBRARY_PATH
 
15904
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15905
    case $host_os in
 
15906
      openbsd2.[89] | openbsd2.[89].*)
 
15907
        shlibpath_overrides_runpath=no
 
15908
        ;;
 
15909
      *)
 
15910
        shlibpath_overrides_runpath=yes
 
15911
        ;;
 
15912
      esac
 
15913
  else
 
15914
    shlibpath_overrides_runpath=yes
 
15915
  fi
 
15916
  ;;
 
15917
 
 
15918
os2*)
 
15919
  libname_spec='$name'
 
15920
  shrext_cmds=".dll"
 
15921
  need_lib_prefix=no
 
15922
  library_names_spec='$libname${shared_ext} $libname.a'
 
15923
  dynamic_linker='OS/2 ld.exe'
 
15924
  shlibpath_var=LIBPATH
 
15925
  ;;
 
15926
 
 
15927
osf3* | osf4* | osf5*)
 
15928
  version_type=osf
 
15929
  need_lib_prefix=no
 
15930
  need_version=no
 
15931
  soname_spec='${libname}${release}${shared_ext}$major'
 
15932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15933
  shlibpath_var=LD_LIBRARY_PATH
 
15934
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15935
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15936
  ;;
 
15937
 
 
15938
rdos*)
 
15939
  dynamic_linker=no
 
15940
  ;;
 
15941
 
 
15942
solaris*)
 
15943
  version_type=linux
 
15944
  need_lib_prefix=no
 
15945
  need_version=no
 
15946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15947
  soname_spec='${libname}${release}${shared_ext}$major'
 
15948
  shlibpath_var=LD_LIBRARY_PATH
 
15949
  shlibpath_overrides_runpath=yes
 
15950
  hardcode_into_libs=yes
 
15951
  # ldd complains unless libraries are executable
 
15952
  postinstall_cmds='chmod +x $lib'
 
15953
  ;;
 
15954
 
 
15955
sunos4*)
 
15956
  version_type=sunos
 
15957
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15958
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15959
  shlibpath_var=LD_LIBRARY_PATH
 
15960
  shlibpath_overrides_runpath=yes
 
15961
  if test "$with_gnu_ld" = yes; then
 
15962
    need_lib_prefix=no
 
15963
  fi
 
15964
  need_version=yes
 
15965
  ;;
 
15966
 
 
15967
sysv4 | sysv4.3*)
 
15968
  version_type=linux
 
15969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15970
  soname_spec='${libname}${release}${shared_ext}$major'
 
15971
  shlibpath_var=LD_LIBRARY_PATH
 
15972
  case $host_vendor in
 
15973
    sni)
 
15974
      shlibpath_overrides_runpath=no
 
15975
      need_lib_prefix=no
 
15976
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15977
      runpath_var=LD_RUN_PATH
 
15978
      ;;
 
15979
    siemens)
 
15980
      need_lib_prefix=no
 
15981
      ;;
 
15982
    motorola)
 
15983
      need_lib_prefix=no
 
15984
      need_version=no
 
15985
      shlibpath_overrides_runpath=no
 
15986
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15987
      ;;
 
15988
  esac
 
15989
  ;;
 
15990
 
 
15991
sysv4*MP*)
 
15992
  if test -d /usr/nec ;then
 
15993
    version_type=linux
 
15994
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15995
    soname_spec='$libname${shared_ext}.$major'
 
15996
    shlibpath_var=LD_LIBRARY_PATH
 
15997
  fi
 
15998
  ;;
 
15999
 
 
16000
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16001
  version_type=freebsd-elf
 
16002
  need_lib_prefix=no
 
16003
  need_version=no
 
16004
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16005
  soname_spec='${libname}${release}${shared_ext}$major'
 
16006
  shlibpath_var=LD_LIBRARY_PATH
 
16007
  hardcode_into_libs=yes
 
16008
  if test "$with_gnu_ld" = yes; then
 
16009
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16010
    shlibpath_overrides_runpath=no
 
16011
  else
 
16012
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16013
    shlibpath_overrides_runpath=yes
 
16014
    case $host_os in
 
16015
      sco3.2v5*)
 
16016
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16017
        ;;
 
16018
    esac
 
16019
  fi
 
16020
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16021
  ;;
 
16022
 
 
16023
uts4*)
 
16024
  version_type=linux
 
16025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16026
  soname_spec='${libname}${release}${shared_ext}$major'
 
16027
  shlibpath_var=LD_LIBRARY_PATH
 
16028
  ;;
 
16029
 
 
16030
*)
 
16031
  dynamic_linker=no
 
16032
  ;;
 
16033
esac
 
16034
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16035
$as_echo "$dynamic_linker" >&6; }
 
16036
test "$dynamic_linker" = no && can_build_shared=no
 
16037
 
 
16038
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16039
  $as_echo_n "(cached) " >&6
 
16040
else
 
16041
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16042
fi
 
16043
 
 
16044
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16045
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16046
  $as_echo_n "(cached) " >&6
 
16047
else
 
16048
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16049
fi
 
16050
 
 
16051
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16052
 
 
16053
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16054
if test "$GCC" = yes; then
 
16055
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16056
fi
 
16057
 
 
16058
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16059
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16060
hardcode_action_F77=
 
16061
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16062
   test -n "$runpath_var_F77" || \
 
16063
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16064
 
 
16065
  # We can hardcode non-existant directories.
 
16066
  if test "$hardcode_direct_F77" != no &&
 
16067
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16068
     # have to relink, otherwise we might link with an installed library
 
16069
     # when we should be linking with a yet-to-be-installed one
 
16070
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16071
     test "$hardcode_minus_L_F77" != no; then
 
16072
    # Linking always hardcodes the temporary library directory.
 
16073
    hardcode_action_F77=relink
 
16074
  else
 
16075
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16076
    hardcode_action_F77=immediate
 
16077
  fi
 
16078
else
 
16079
  # We cannot hardcode anything, or else we can only hardcode existing
 
16080
  # directories.
 
16081
  hardcode_action_F77=unsupported
 
16082
fi
 
16083
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16084
$as_echo "$hardcode_action_F77" >&6; }
 
16085
 
 
16086
if test "$hardcode_action_F77" = relink; then
 
16087
  # Fast installation is not supported
 
16088
  enable_fast_install=no
 
16089
elif test "$shlibpath_overrides_runpath" = yes ||
 
16090
     test "$enable_shared" = no; then
 
16091
  # Fast installation is not necessary
 
16092
  enable_fast_install=needless
 
16093
fi
 
16094
 
 
16095
 
 
16096
# The else clause should only fire when bootstrapping the
 
16097
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16098
# with your package, and you will get complaints that there are
 
16099
# no rules to generate ltmain.sh.
 
16100
if test -f "$ltmain"; then
 
16101
  # See if we are running on zsh, and set the options which allow our commands through
 
16102
  # without removal of \ escapes.
 
16103
  if test -n "${ZSH_VERSION+set}" ; then
 
16104
    setopt NO_GLOB_SUBST
 
16105
  fi
 
16106
  # Now quote all the things that may contain metacharacters while being
 
16107
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16108
  # variables and quote the copies for generation of the libtool script.
 
16109
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16110
    SED SHELL STRIP \
 
16111
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16112
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16113
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16114
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16115
    lt_cv_sys_global_symbol_to_c_name_address \
 
16116
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16117
    old_postinstall_cmds old_postuninstall_cmds \
 
16118
    compiler_F77 \
 
16119
    CC_F77 \
 
16120
    LD_F77 \
 
16121
    lt_prog_compiler_wl_F77 \
 
16122
    lt_prog_compiler_pic_F77 \
 
16123
    lt_prog_compiler_static_F77 \
 
16124
    lt_prog_compiler_no_builtin_flag_F77 \
 
16125
    export_dynamic_flag_spec_F77 \
 
16126
    thread_safe_flag_spec_F77 \
 
16127
    whole_archive_flag_spec_F77 \
 
16128
    enable_shared_with_static_runtimes_F77 \
 
16129
    old_archive_cmds_F77 \
 
16130
    old_archive_from_new_cmds_F77 \
 
16131
    predep_objects_F77 \
 
16132
    postdep_objects_F77 \
 
16133
    predeps_F77 \
 
16134
    postdeps_F77 \
 
16135
    compiler_lib_search_path_F77 \
 
16136
    compiler_lib_search_dirs_F77 \
 
16137
    archive_cmds_F77 \
 
16138
    archive_expsym_cmds_F77 \
 
16139
    postinstall_cmds_F77 \
 
16140
    postuninstall_cmds_F77 \
 
16141
    old_archive_from_expsyms_cmds_F77 \
 
16142
    allow_undefined_flag_F77 \
 
16143
    no_undefined_flag_F77 \
 
16144
    export_symbols_cmds_F77 \
 
16145
    hardcode_libdir_flag_spec_F77 \
 
16146
    hardcode_libdir_flag_spec_ld_F77 \
 
16147
    hardcode_libdir_separator_F77 \
 
16148
    hardcode_automatic_F77 \
 
16149
    module_cmds_F77 \
 
16150
    module_expsym_cmds_F77 \
 
16151
    lt_cv_prog_compiler_c_o_F77 \
 
16152
    fix_srcfile_path_F77 \
 
16153
    exclude_expsyms_F77 \
 
16154
    include_expsyms_F77; do
 
16155
 
 
16156
    case $var in
 
16157
    old_archive_cmds_F77 | \
 
16158
    old_archive_from_new_cmds_F77 | \
 
16159
    archive_cmds_F77 | \
 
16160
    archive_expsym_cmds_F77 | \
 
16161
    module_cmds_F77 | \
 
16162
    module_expsym_cmds_F77 | \
 
16163
    old_archive_from_expsyms_cmds_F77 | \
 
16164
    export_symbols_cmds_F77 | \
 
16165
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16166
    postinstall_cmds | postuninstall_cmds | \
 
16167
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16168
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16169
      # Double-quote double-evaled strings.
 
16170
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16171
      ;;
 
16172
    *)
 
16173
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16174
      ;;
 
16175
    esac
 
16176
  done
 
16177
 
 
16178
  case $lt_echo in
 
16179
  *'\$0 --fallback-echo"')
 
16180
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16181
    ;;
 
16182
  esac
 
16183
 
 
16184
cfgfile="$ofile"
 
16185
 
 
16186
  cat <<__EOF__ >> "$cfgfile"
 
16187
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16188
 
 
16189
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16190
 
 
16191
# Shell to use when invoking shell scripts.
 
16192
SHELL=$lt_SHELL
 
16193
 
 
16194
# Whether or not to build shared libraries.
 
16195
build_libtool_libs=$enable_shared
 
16196
 
 
16197
# Whether or not to build static libraries.
 
16198
build_old_libs=$enable_static
 
16199
 
 
16200
# Whether or not to add -lc for building shared libraries.
 
16201
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16202
 
 
16203
# Whether or not to disallow shared libs when runtime libs are static
 
16204
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16205
 
 
16206
# Whether or not to optimize for fast installation.
 
16207
fast_install=$enable_fast_install
 
16208
 
 
16209
# The host system.
 
16210
host_alias=$host_alias
 
16211
host=$host
 
16212
host_os=$host_os
 
16213
 
 
16214
# The build system.
 
16215
build_alias=$build_alias
 
16216
build=$build
 
16217
build_os=$build_os
 
16218
 
 
16219
# An echo program that does not interpret backslashes.
 
16220
echo=$lt_echo
 
16221
 
 
16222
# The archiver.
 
16223
AR=$lt_AR
 
16224
AR_FLAGS=$lt_AR_FLAGS
 
16225
 
 
16226
# A C compiler.
 
16227
LTCC=$lt_LTCC
 
16228
 
 
16229
# LTCC compiler flags.
 
16230
LTCFLAGS=$lt_LTCFLAGS
 
16231
 
 
16232
# A language-specific compiler.
 
16233
CC=$lt_compiler_F77
 
16234
 
 
16235
# Is the compiler the GNU C compiler?
 
16236
with_gcc=$GCC_F77
 
16237
 
 
16238
# An ERE matcher.
 
16239
EGREP=$lt_EGREP
 
16240
 
 
16241
# The linker used to build libraries.
 
16242
LD=$lt_LD_F77
 
16243
 
 
16244
# Whether we need hard or soft links.
 
16245
LN_S=$lt_LN_S
 
16246
 
 
16247
# A BSD-compatible nm program.
 
16248
NM=$lt_NM
 
16249
 
 
16250
# A symbol stripping program
 
16251
STRIP=$lt_STRIP
 
16252
 
 
16253
# Used to examine libraries when file_magic_cmd begins "file"
 
16254
MAGIC_CMD=$MAGIC_CMD
 
16255
 
 
16256
# Used on cygwin: DLL creation program.
 
16257
DLLTOOL="$DLLTOOL"
 
16258
 
 
16259
# Used on cygwin: object dumper.
 
16260
OBJDUMP="$OBJDUMP"
 
16261
 
 
16262
# Used on cygwin: assembler.
 
16263
AS="$AS"
 
16264
 
 
16265
# The name of the directory that contains temporary libtool files.
 
16266
objdir=$objdir
 
16267
 
 
16268
# How to create reloadable object files.
 
16269
reload_flag=$lt_reload_flag
 
16270
reload_cmds=$lt_reload_cmds
 
16271
 
 
16272
# How to pass a linker flag through the compiler.
 
16273
wl=$lt_lt_prog_compiler_wl_F77
 
16274
 
 
16275
# Object file suffix (normally "o").
 
16276
objext="$ac_objext"
 
16277
 
 
16278
# Old archive suffix (normally "a").
 
16279
libext="$libext"
 
16280
 
 
16281
# Shared library suffix (normally ".so").
 
16282
shrext_cmds='$shrext_cmds'
 
16283
 
 
16284
# Executable file suffix (normally "").
 
16285
exeext="$exeext"
 
16286
 
 
16287
# Additional compiler flags for building library objects.
 
16288
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16289
pic_mode=$pic_mode
 
16290
 
 
16291
# What is the maximum length of a command?
 
16292
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16293
 
 
16294
# Does compiler simultaneously support -c and -o options?
 
16295
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16296
 
 
16297
# Must we lock files when doing compilation?
 
16298
need_locks=$lt_need_locks
 
16299
 
 
16300
# Do we need the lib prefix for modules?
 
16301
need_lib_prefix=$need_lib_prefix
 
16302
 
 
16303
# Do we need a version for libraries?
 
16304
need_version=$need_version
 
16305
 
 
16306
# Whether dlopen is supported.
 
16307
dlopen_support=$enable_dlopen
 
16308
 
 
16309
# Whether dlopen of programs is supported.
 
16310
dlopen_self=$enable_dlopen_self
 
16311
 
 
16312
# Whether dlopen of statically linked programs is supported.
 
16313
dlopen_self_static=$enable_dlopen_self_static
 
16314
 
 
16315
# Compiler flag to prevent dynamic linking.
 
16316
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16317
 
 
16318
# Compiler flag to turn off builtin functions.
 
16319
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16320
 
 
16321
# Compiler flag to allow reflexive dlopens.
 
16322
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16323
 
 
16324
# Compiler flag to generate shared objects directly from archives.
 
16325
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16326
 
 
16327
# Compiler flag to generate thread-safe objects.
 
16328
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16329
 
 
16330
# Library versioning type.
 
16331
version_type=$version_type
 
16332
 
 
16333
# Format of library name prefix.
 
16334
libname_spec=$lt_libname_spec
 
16335
 
 
16336
# List of archive names.  First name is the real one, the rest are links.
 
16337
# The last name is the one that the linker finds with -lNAME.
 
16338
library_names_spec=$lt_library_names_spec
 
16339
 
 
16340
# The coded name of the library, if different from the real name.
 
16341
soname_spec=$lt_soname_spec
 
16342
 
 
16343
# Commands used to build and install an old-style archive.
 
16344
RANLIB=$lt_RANLIB
 
16345
old_archive_cmds=$lt_old_archive_cmds_F77
 
16346
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16347
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16348
 
 
16349
# Create an old-style archive from a shared archive.
 
16350
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16351
 
 
16352
# Create a temporary old-style archive to link instead of a shared archive.
 
16353
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16354
 
 
16355
# Commands used to build and install a shared archive.
 
16356
archive_cmds=$lt_archive_cmds_F77
 
16357
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16358
postinstall_cmds=$lt_postinstall_cmds
 
16359
postuninstall_cmds=$lt_postuninstall_cmds
 
16360
 
 
16361
# Commands used to build a loadable module (assumed same as above if empty)
 
16362
module_cmds=$lt_module_cmds_F77
 
16363
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16364
 
 
16365
# Commands to strip libraries.
 
16366
old_striplib=$lt_old_striplib
 
16367
striplib=$lt_striplib
 
16368
 
 
16369
# Dependencies to place before the objects being linked to create a
 
16370
# shared library.
 
16371
predep_objects=$lt_predep_objects_F77
 
16372
 
 
16373
# Dependencies to place after the objects being linked to create a
 
16374
# shared library.
 
16375
postdep_objects=$lt_postdep_objects_F77
 
16376
 
 
16377
# Dependencies to place before the objects being linked to create a
 
16378
# shared library.
 
16379
predeps=$lt_predeps_F77
 
16380
 
 
16381
# Dependencies to place after the objects being linked to create a
 
16382
# shared library.
 
16383
postdeps=$lt_postdeps_F77
 
16384
 
 
16385
# The directories searched by this compiler when creating a shared
 
16386
# library
 
16387
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16388
 
 
16389
# The library search path used internally by the compiler when linking
 
16390
# a shared library.
 
16391
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16392
 
 
16393
# Method to check whether dependent libraries are shared objects.
 
16394
deplibs_check_method=$lt_deplibs_check_method
 
16395
 
 
16396
# Command to use when deplibs_check_method == file_magic.
 
16397
file_magic_cmd=$lt_file_magic_cmd
 
16398
 
 
16399
# Flag that allows shared libraries with undefined symbols to be built.
 
16400
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16401
 
 
16402
# Flag that forces no undefined symbols.
 
16403
no_undefined_flag=$lt_no_undefined_flag_F77
 
16404
 
 
16405
# Commands used to finish a libtool library installation in a directory.
 
16406
finish_cmds=$lt_finish_cmds
 
16407
 
 
16408
# Same as above, but a single script fragment to be evaled but not shown.
 
16409
finish_eval=$lt_finish_eval
 
16410
 
 
16411
# Take the output of nm and produce a listing of raw symbols and C names.
 
16412
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16413
 
 
16414
# Transform the output of nm in a proper C declaration
 
16415
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16416
 
 
16417
# Transform the output of nm in a C name address pair
 
16418
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16419
 
 
16420
# This is the shared library runtime path variable.
 
16421
runpath_var=$runpath_var
 
16422
 
 
16423
# This is the shared library path variable.
 
16424
shlibpath_var=$shlibpath_var
 
16425
 
 
16426
# Is shlibpath searched before the hard-coded library search path?
 
16427
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16428
 
 
16429
# How to hardcode a shared library path into an executable.
 
16430
hardcode_action=$hardcode_action_F77
 
16431
 
 
16432
# Whether we should hardcode library paths into libraries.
 
16433
hardcode_into_libs=$hardcode_into_libs
 
16434
 
 
16435
# Flag to hardcode \$libdir into a binary during linking.
 
16436
# This must work even if \$libdir does not exist.
 
16437
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16438
 
 
16439
# If ld is used when linking, flag to hardcode \$libdir into
 
16440
# a binary during linking. This must work even if \$libdir does
 
16441
# not exist.
 
16442
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16443
 
 
16444
# Whether we need a single -rpath flag with a separated argument.
 
16445
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16446
 
 
16447
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16448
# resulting binary.
 
16449
hardcode_direct=$hardcode_direct_F77
 
16450
 
 
16451
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16452
# resulting binary.
 
16453
hardcode_minus_L=$hardcode_minus_L_F77
 
16454
 
 
16455
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16456
# the resulting binary.
 
16457
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16458
 
 
16459
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16460
# and all subsequent libraries and executables linked against it.
 
16461
hardcode_automatic=$hardcode_automatic_F77
 
16462
 
 
16463
# Variables whose values should be saved in libtool wrapper scripts and
 
16464
# restored at relink time.
 
16465
variables_saved_for_relink="$variables_saved_for_relink"
 
16466
 
 
16467
# Whether libtool must link a program against all its dependency libraries.
 
16468
link_all_deplibs=$link_all_deplibs_F77
 
16469
 
 
16470
# Compile-time system search path for libraries
 
16471
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16472
 
 
16473
# Run-time system search path for libraries
 
16474
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16475
 
 
16476
# Fix the shell variable \$srcfile for the compiler.
 
16477
fix_srcfile_path=$lt_fix_srcfile_path
 
16478
 
 
16479
# Set to yes if exported symbols are required.
 
16480
always_export_symbols=$always_export_symbols_F77
 
16481
 
 
16482
# The commands to list exported symbols.
 
16483
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16484
 
 
16485
# The commands to extract the exported symbol list from a shared archive.
 
16486
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16487
 
 
16488
# Symbols that should not be listed in the preloaded symbols.
 
16489
exclude_expsyms=$lt_exclude_expsyms_F77
 
16490
 
 
16491
# Symbols that must always be exported.
 
16492
include_expsyms=$lt_include_expsyms_F77
 
16493
 
 
16494
# ### END LIBTOOL TAG CONFIG: $tagname
 
16495
 
 
16496
__EOF__
 
16497
 
 
16498
 
 
16499
else
 
16500
  # If there is no Makefile yet, we rely on a make rule to execute
 
16501
  # `config.status --recheck' to rerun these tests and create the
 
16502
  # libtool script then.
 
16503
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16504
  if test -f "$ltmain_in"; then
 
16505
    test -f Makefile && make "$ltmain"
 
16506
  fi
 
16507
fi
 
16508
 
 
16509
 
 
16510
ac_ext=c
 
16511
ac_cpp='$CPP $CPPFLAGS'
 
16512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16515
 
 
16516
CC="$lt_save_CC"
 
16517
 
 
16518
        else
 
16519
          tagname=""
 
16520
        fi
 
16521
        ;;
 
16522
 
 
16523
      GCJ)
 
16524
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16525
 
 
16526
 
 
16527
# Source file extension for Java test sources.
 
16528
ac_ext=java
 
16529
 
 
16530
# Object file extension for compiled Java test sources.
 
16531
objext=o
 
16532
objext_GCJ=$objext
 
16533
 
 
16534
# Code to be used in simple compile tests
 
16535
lt_simple_compile_test_code="class foo {}"
 
16536
 
 
16537
# Code to be used in simple link tests
 
16538
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16539
 
 
16540
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16541
 
 
16542
# If no C compiler was specified, use CC.
 
16543
LTCC=${LTCC-"$CC"}
 
16544
 
 
16545
# If no C compiler flags were specified, use CFLAGS.
 
16546
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16547
 
 
16548
# Allow CC to be a program name with arguments.
 
16549
compiler=$CC
 
16550
 
 
16551
 
 
16552
# save warnings/boilerplate of simple test code
 
16553
ac_outfile=conftest.$ac_objext
 
16554
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16555
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16556
_lt_compiler_boilerplate=`cat conftest.err`
 
16557
$rm conftest*
 
16558
 
 
16559
ac_outfile=conftest.$ac_objext
 
16560
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16561
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16562
_lt_linker_boilerplate=`cat conftest.err`
 
16563
$rm -r conftest*
 
16564
 
 
16565
 
 
16566
# Allow CC to be a program name with arguments.
 
16567
lt_save_CC="$CC"
 
16568
CC=${GCJ-"gcj"}
 
16569
compiler=$CC
 
16570
compiler_GCJ=$CC
 
16571
for cc_temp in $compiler""; do
 
16572
  case $cc_temp in
 
16573
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16574
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16575
    \-*) ;;
 
16576
    *) break;;
 
16577
  esac
 
16578
done
 
16579
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16580
 
 
16581
 
 
16582
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16583
archive_cmds_need_lc_GCJ=no
 
16584
 
 
16585
old_archive_cmds_GCJ=$old_archive_cmds
 
16586
 
 
16587
 
 
16588
lt_prog_compiler_no_builtin_flag_GCJ=
 
16589
 
 
16590
if test "$GCC" = yes; then
 
16591
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16592
 
 
16593
 
 
16594
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16595
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
16596
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16597
  $as_echo_n "(cached) " >&6
 
16598
else
 
16599
  lt_cv_prog_compiler_rtti_exceptions=no
 
16600
  ac_outfile=conftest.$ac_objext
 
16601
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16602
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16603
   # Insert the option either (1) after the last *FLAGS variable, or
 
16604
   # (2) before a word containing "conftest.", or (3) at the end.
 
16605
   # Note that $ac_compile itself does not contain backslashes and begins
 
16606
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16607
   # The option is referenced via a variable to avoid confusing sed.
 
16608
   lt_compile=`echo "$ac_compile" | $SED \
 
16609
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16610
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16611
   -e 's:$: $lt_compiler_flag:'`
 
16612
   (eval echo "\"\$as_me:16612: $lt_compile\"" >&5)
 
16613
   (eval "$lt_compile" 2>conftest.err)
 
16614
   ac_status=$?
 
16615
   cat conftest.err >&5
 
16616
   echo "$as_me:16616: \$? = $ac_status" >&5
 
16617
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16618
     # The compiler can only warn and ignore the option if not recognized
 
16619
     # So say no if there are warnings other than the usual output.
 
16620
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16621
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16622
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16623
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16624
     fi
 
16625
   fi
 
16626
   $rm conftest*
 
16627
 
 
16628
fi
 
16629
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16630
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16631
 
 
16632
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16633
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16634
else
 
16635
    :
 
16636
fi
 
16637
 
 
16638
fi
 
16639
 
 
16640
lt_prog_compiler_wl_GCJ=
 
16641
lt_prog_compiler_pic_GCJ=
 
16642
lt_prog_compiler_static_GCJ=
 
16643
 
 
16644
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16645
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
16646
 
 
16647
  if test "$GCC" = yes; then
 
16648
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16649
    lt_prog_compiler_static_GCJ='-static'
 
16650
 
 
16651
    case $host_os in
 
16652
      aix*)
 
16653
      # All AIX code is PIC.
 
16654
      if test "$host_cpu" = ia64; then
 
16655
        # AIX 5 now supports IA64 processor
 
16656
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16657
      fi
 
16658
      ;;
 
16659
 
 
16660
    amigaos*)
 
16661
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16662
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16663
      # like `-m68040'.
 
16664
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16665
      ;;
 
16666
 
 
16667
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16668
      # PIC is the default for these OSes.
 
16669
      ;;
 
16670
 
 
16671
    mingw* | cygwin* | pw32* | os2*)
 
16672
      # This hack is so that the source file can tell whether it is being
 
16673
      # built for inclusion in a dll (and should export symbols for example).
 
16674
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16675
      # (--disable-auto-import) libraries
 
16676
 
 
16677
      ;;
 
16678
 
 
16679
    darwin* | rhapsody*)
 
16680
      # PIC is the default on this platform
 
16681
      # Common symbols not allowed in MH_DYLIB files
 
16682
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16683
      ;;
 
16684
 
 
16685
    interix[3-9]*)
 
16686
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16687
      # Instead, we relocate shared libraries at runtime.
 
16688
      ;;
 
16689
 
 
16690
    msdosdjgpp*)
 
16691
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16692
      # on systems that don't support them.
 
16693
      lt_prog_compiler_can_build_shared_GCJ=no
 
16694
      enable_shared=no
 
16695
      ;;
 
16696
 
 
16697
    sysv4*MP*)
 
16698
      if test -d /usr/nec; then
 
16699
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16700
      fi
 
16701
      ;;
 
16702
 
 
16703
    hpux*)
 
16704
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16705
      # not for PA HP-UX.
 
16706
      case $host_cpu in
 
16707
      hppa*64*|ia64*)
 
16708
        # +Z the default
 
16709
        ;;
 
16710
      *)
 
16711
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16712
        ;;
 
16713
      esac
 
16714
      ;;
 
16715
 
 
16716
    *)
 
16717
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16718
      ;;
 
16719
    esac
 
16720
  else
 
16721
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16722
    case $host_os in
 
16723
    aix*)
 
16724
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16725
      if test "$host_cpu" = ia64; then
 
16726
        # AIX 5 now supports IA64 processor
 
16727
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16728
      else
 
16729
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16730
      fi
 
16731
      ;;
 
16732
      darwin*)
 
16733
        # PIC is the default on this platform
 
16734
        # Common symbols not allowed in MH_DYLIB files
 
16735
       case $cc_basename in
 
16736
         xlc*)
 
16737
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16738
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16739
         ;;
 
16740
       esac
 
16741
       ;;
 
16742
 
 
16743
    mingw* | cygwin* | pw32* | os2*)
 
16744
      # This hack is so that the source file can tell whether it is being
 
16745
      # built for inclusion in a dll (and should export symbols for example).
 
16746
 
 
16747
      ;;
 
16748
 
 
16749
    hpux9* | hpux10* | hpux11*)
 
16750
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16751
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16752
      # not for PA HP-UX.
 
16753
      case $host_cpu in
 
16754
      hppa*64*|ia64*)
 
16755
        # +Z the default
 
16756
        ;;
 
16757
      *)
 
16758
        lt_prog_compiler_pic_GCJ='+Z'
 
16759
        ;;
 
16760
      esac
 
16761
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16762
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16763
      ;;
 
16764
 
 
16765
    irix5* | irix6* | nonstopux*)
 
16766
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16767
      # PIC (with -KPIC) is the default.
 
16768
      lt_prog_compiler_static_GCJ='-non_shared'
 
16769
      ;;
 
16770
 
 
16771
    newsos6)
 
16772
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16773
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16774
      ;;
 
16775
 
 
16776
    linux* | k*bsd*-gnu)
 
16777
      case $cc_basename in
 
16778
      icc* | ecc*)
 
16779
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16780
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16781
        lt_prog_compiler_static_GCJ='-static'
 
16782
        ;;
 
16783
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16784
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16785
        # which looks to be a dead project)
 
16786
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16787
        lt_prog_compiler_pic_GCJ='-fpic'
 
16788
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16789
        ;;
 
16790
      ccc*)
 
16791
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16792
        # All Alpha code is PIC.
 
16793
        lt_prog_compiler_static_GCJ='-non_shared'
 
16794
        ;;
 
16795
      *)
 
16796
        case `$CC -V 2>&1 | sed 5q` in
 
16797
        *Sun\ C*)
 
16798
          # Sun C 5.9
 
16799
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16800
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16801
          lt_prog_compiler_wl_GCJ='-Wl,'
 
16802
          ;;
 
16803
        *Sun\ F*)
 
16804
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16805
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16806
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16807
          lt_prog_compiler_wl_GCJ=''
 
16808
          ;;
 
16809
        esac
 
16810
        ;;
 
16811
      esac
 
16812
      ;;
 
16813
 
 
16814
    osf3* | osf4* | osf5*)
 
16815
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16816
      # All OSF/1 code is PIC.
 
16817
      lt_prog_compiler_static_GCJ='-non_shared'
 
16818
      ;;
 
16819
 
 
16820
    rdos*)
 
16821
      lt_prog_compiler_static_GCJ='-non_shared'
 
16822
      ;;
 
16823
 
 
16824
    solaris*)
 
16825
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16826
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16827
      case $cc_basename in
 
16828
      f77* | f90* | f95*)
 
16829
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16830
      *)
 
16831
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16832
      esac
 
16833
      ;;
 
16834
 
 
16835
    sunos4*)
 
16836
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16837
      lt_prog_compiler_pic_GCJ='-PIC'
 
16838
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16839
      ;;
 
16840
 
 
16841
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16842
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16843
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16844
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16845
      ;;
 
16846
 
 
16847
    sysv4*MP*)
 
16848
      if test -d /usr/nec ;then
 
16849
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16850
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16851
      fi
 
16852
      ;;
 
16853
 
 
16854
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16855
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16856
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16857
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16858
      ;;
 
16859
 
 
16860
    unicos*)
 
16861
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16862
      lt_prog_compiler_can_build_shared_GCJ=no
 
16863
      ;;
 
16864
 
 
16865
    uts4*)
 
16866
      lt_prog_compiler_pic_GCJ='-pic'
 
16867
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16868
      ;;
 
16869
 
 
16870
    *)
 
16871
      lt_prog_compiler_can_build_shared_GCJ=no
 
16872
      ;;
 
16873
    esac
 
16874
  fi
 
16875
 
 
16876
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16877
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
16878
 
 
16879
#
 
16880
# Check to make sure the PIC flag actually works.
 
16881
#
 
16882
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16883
 
 
16884
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16885
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
16886
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
16887
  $as_echo_n "(cached) " >&6
 
16888
else
 
16889
  lt_cv_prog_compiler_pic_works_GCJ=no
 
16890
  ac_outfile=conftest.$ac_objext
 
16891
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16892
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16893
   # Insert the option either (1) after the last *FLAGS variable, or
 
16894
   # (2) before a word containing "conftest.", or (3) at the end.
 
16895
   # Note that $ac_compile itself does not contain backslashes and begins
 
16896
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16897
   # The option is referenced via a variable to avoid confusing sed.
 
16898
   lt_compile=`echo "$ac_compile" | $SED \
 
16899
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16900
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16901
   -e 's:$: $lt_compiler_flag:'`
 
16902
   (eval echo "\"\$as_me:16902: $lt_compile\"" >&5)
 
16903
   (eval "$lt_compile" 2>conftest.err)
 
16904
   ac_status=$?
 
16905
   cat conftest.err >&5
 
16906
   echo "$as_me:16906: \$? = $ac_status" >&5
 
16907
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16908
     # The compiler can only warn and ignore the option if not recognized
 
16909
     # So say no if there are warnings other than the usual output.
 
16910
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16911
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16912
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16913
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
16914
     fi
 
16915
   fi
 
16916
   $rm conftest*
 
16917
 
 
16918
fi
 
16919
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
16920
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
16921
 
 
16922
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
16923
    case $lt_prog_compiler_pic_GCJ in
 
16924
     "" | " "*) ;;
 
16925
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16926
     esac
 
16927
else
 
16928
    lt_prog_compiler_pic_GCJ=
 
16929
     lt_prog_compiler_can_build_shared_GCJ=no
 
16930
fi
 
16931
 
 
16932
fi
 
16933
case $host_os in
 
16934
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16935
  *djgpp*)
 
16936
    lt_prog_compiler_pic_GCJ=
 
16937
    ;;
 
16938
  *)
 
16939
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16940
    ;;
 
16941
esac
 
16942
 
 
16943
#
 
16944
# Check to make sure the static flag actually works.
 
16945
#
 
16946
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16947
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16948
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
16949
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
16950
  $as_echo_n "(cached) " >&6
 
16951
else
 
16952
  lt_cv_prog_compiler_static_works_GCJ=no
 
16953
   save_LDFLAGS="$LDFLAGS"
 
16954
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16955
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
16956
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16957
     # The linker can only warn and ignore the option if not recognized
 
16958
     # So say no if there are warnings
 
16959
     if test -s conftest.err; then
 
16960
       # Append any errors to the config.log.
 
16961
       cat conftest.err 1>&5
 
16962
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16963
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16964
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16965
         lt_cv_prog_compiler_static_works_GCJ=yes
 
16966
       fi
 
16967
     else
 
16968
       lt_cv_prog_compiler_static_works_GCJ=yes
 
16969
     fi
 
16970
   fi
 
16971
   $rm -r conftest*
 
16972
   LDFLAGS="$save_LDFLAGS"
 
16973
 
 
16974
fi
 
16975
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
16976
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
16977
 
 
16978
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
16979
    :
 
16980
else
 
16981
    lt_prog_compiler_static_GCJ=
 
16982
fi
 
16983
 
 
16984
 
 
16985
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16986
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
16987
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16988
  $as_echo_n "(cached) " >&6
 
16989
else
 
16990
  lt_cv_prog_compiler_c_o_GCJ=no
 
16991
   $rm -r conftest 2>/dev/null
 
16992
   mkdir conftest
 
16993
   cd conftest
 
16994
   mkdir out
 
16995
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16996
 
 
16997
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16998
   # Insert the option either (1) after the last *FLAGS variable, or
 
16999
   # (2) before a word containing "conftest.", or (3) at the end.
 
17000
   # Note that $ac_compile itself does not contain backslashes and begins
 
17001
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17002
   lt_compile=`echo "$ac_compile" | $SED \
 
17003
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17004
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17005
   -e 's:$: $lt_compiler_flag:'`
 
17006
   (eval echo "\"\$as_me:17006: $lt_compile\"" >&5)
 
17007
   (eval "$lt_compile" 2>out/conftest.err)
 
17008
   ac_status=$?
 
17009
   cat out/conftest.err >&5
 
17010
   echo "$as_me:17010: \$? = $ac_status" >&5
 
17011
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17012
   then
 
17013
     # The compiler can only warn and ignore the option if not recognized
 
17014
     # So say no if there are warnings
 
17015
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17016
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17017
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17018
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17019
     fi
 
17020
   fi
 
17021
   chmod u+w . 2>&5
 
17022
   $rm conftest*
 
17023
   # SGI C++ compiler will create directory out/ii_files/ for
 
17024
   # template instantiation
 
17025
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17026
   $rm out/* && rmdir out
 
17027
   cd ..
 
17028
   rmdir conftest
 
17029
   $rm conftest*
 
17030
 
 
17031
fi
 
17032
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17033
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17034
 
 
17035
 
 
17036
hard_links="nottested"
 
17037
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17038
  # do not overwrite the value of need_locks provided by the user
 
17039
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17040
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
17041
  hard_links=yes
 
17042
  $rm conftest*
 
17043
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17044
  touch conftest.a
 
17045
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17046
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17047
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
17048
$as_echo "$hard_links" >&6; }
 
17049
  if test "$hard_links" = no; then
 
17050
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17051
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17052
    need_locks=warn
 
17053
  fi
 
17054
else
 
17055
  need_locks=no
 
17056
fi
 
17057
 
 
17058
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17059
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17060
 
 
17061
  runpath_var=
 
17062
  allow_undefined_flag_GCJ=
 
17063
  enable_shared_with_static_runtimes_GCJ=no
 
17064
  archive_cmds_GCJ=
 
17065
  archive_expsym_cmds_GCJ=
 
17066
  old_archive_From_new_cmds_GCJ=
 
17067
  old_archive_from_expsyms_cmds_GCJ=
 
17068
  export_dynamic_flag_spec_GCJ=
 
17069
  whole_archive_flag_spec_GCJ=
 
17070
  thread_safe_flag_spec_GCJ=
 
17071
  hardcode_libdir_flag_spec_GCJ=
 
17072
  hardcode_libdir_flag_spec_ld_GCJ=
 
17073
  hardcode_libdir_separator_GCJ=
 
17074
  hardcode_direct_GCJ=no
 
17075
  hardcode_minus_L_GCJ=no
 
17076
  hardcode_shlibpath_var_GCJ=unsupported
 
17077
  link_all_deplibs_GCJ=unknown
 
17078
  hardcode_automatic_GCJ=no
 
17079
  module_cmds_GCJ=
 
17080
  module_expsym_cmds_GCJ=
 
17081
  always_export_symbols_GCJ=no
 
17082
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17083
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17084
  # included in the symbol list
 
17085
  include_expsyms_GCJ=
 
17086
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17087
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17088
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17089
  # as well as any symbol that contains `d'.
 
17090
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17091
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17092
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17093
  # the symbol is explicitly referenced.  Since portable code cannot
 
17094
  # rely on this symbol name, it's probably fine to never include it in
 
17095
  # preloaded symbol tables.
 
17096
  # Exclude shared library initialization/finalization symbols.
 
17097
  extract_expsyms_cmds=
 
17098
  # Just being paranoid about ensuring that cc_basename is set.
 
17099
  for cc_temp in $compiler""; do
 
17100
  case $cc_temp in
 
17101
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17102
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17103
    \-*) ;;
 
17104
    *) break;;
 
17105
  esac
 
17106
done
 
17107
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17108
 
 
17109
  case $host_os in
 
17110
  cygwin* | mingw* | pw32*)
 
17111
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17112
    # When not using gcc, we currently assume that we are using
 
17113
    # Microsoft Visual C++.
 
17114
    if test "$GCC" != yes; then
 
17115
      with_gnu_ld=no
 
17116
    fi
 
17117
    ;;
 
17118
  interix*)
 
17119
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17120
    with_gnu_ld=yes
 
17121
    ;;
 
17122
  openbsd*)
 
17123
    with_gnu_ld=no
 
17124
    ;;
 
17125
  esac
 
17126
 
 
17127
  ld_shlibs_GCJ=yes
 
17128
  if test "$with_gnu_ld" = yes; then
 
17129
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17130
    wlarc='${wl}'
 
17131
 
 
17132
    # Set some defaults for GNU ld with shared library support. These
 
17133
    # are reset later if shared libraries are not supported. Putting them
 
17134
    # here allows them to be overridden if necessary.
 
17135
    runpath_var=LD_RUN_PATH
 
17136
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17137
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17138
    # ancient GNU ld didn't support --whole-archive et. al.
 
17139
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17140
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17141
      else
 
17142
        whole_archive_flag_spec_GCJ=
 
17143
    fi
 
17144
    supports_anon_versioning=no
 
17145
    case `$LD -v 2>/dev/null` in
 
17146
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17147
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17148
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17149
      *\ 2.11.*) ;; # other 2.11 versions
 
17150
      *) supports_anon_versioning=yes ;;
 
17151
    esac
 
17152
 
 
17153
    # See if GNU ld supports shared libraries.
 
17154
    case $host_os in
 
17155
    aix[3-9]*)
 
17156
      # On AIX/PPC, the GNU linker is very broken
 
17157
      if test "$host_cpu" != ia64; then
 
17158
        ld_shlibs_GCJ=no
 
17159
        cat <<EOF 1>&2
 
17160
 
 
17161
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17162
*** to be unable to reliably create shared libraries on AIX.
 
17163
*** Therefore, libtool is disabling shared libraries support.  If you
 
17164
*** really care for shared libraries, you may want to modify your PATH
 
17165
*** so that a non-GNU linker is found, and then restart.
 
17166
 
 
17167
EOF
 
17168
      fi
 
17169
      ;;
 
17170
 
 
17171
    amigaos*)
 
17172
      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)'
 
17173
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17174
      hardcode_minus_L_GCJ=yes
 
17175
 
 
17176
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17177
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17178
      # to version 4, is to share data among multiple programs linked
 
17179
      # with the same dynamic library.  Since this doesn't match the
 
17180
      # behavior of shared libraries on other platforms, we can't use
 
17181
      # them.
 
17182
      ld_shlibs_GCJ=no
 
17183
      ;;
 
17184
 
 
17185
    beos*)
 
17186
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17187
        allow_undefined_flag_GCJ=unsupported
 
17188
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17189
        # support --undefined.  This deserves some investigation.  FIXME
 
17190
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17191
      else
 
17192
        ld_shlibs_GCJ=no
 
17193
      fi
 
17194
      ;;
 
17195
 
 
17196
    cygwin* | mingw* | pw32*)
 
17197
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17198
      # as there is no search path for DLLs.
 
17199
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17200
      allow_undefined_flag_GCJ=unsupported
 
17201
      always_export_symbols_GCJ=no
 
17202
      enable_shared_with_static_runtimes_GCJ=yes
 
17203
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17204
 
 
17205
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17206
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17207
        # If the export-symbols file already is a .def file (1st line
 
17208
        # is EXPORTS), use it as is; otherwise, prepend...
 
17209
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17210
          cp $export_symbols $output_objdir/$soname.def;
 
17211
        else
 
17212
          echo EXPORTS > $output_objdir/$soname.def;
 
17213
          cat $export_symbols >> $output_objdir/$soname.def;
 
17214
        fi~
 
17215
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17216
      else
 
17217
        ld_shlibs_GCJ=no
 
17218
      fi
 
17219
      ;;
 
17220
 
 
17221
    interix[3-9]*)
 
17222
      hardcode_direct_GCJ=no
 
17223
      hardcode_shlibpath_var_GCJ=no
 
17224
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17225
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17226
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17227
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17228
      # default) and relocated if they conflict, which is a slow very memory
 
17229
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17230
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17231
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17232
      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'
 
17233
      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'
 
17234
      ;;
 
17235
 
 
17236
    gnu* | linux* | k*bsd*-gnu)
 
17237
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17238
        tmp_addflag=
 
17239
        case $cc_basename,$host_cpu in
 
17240
        pgcc*)                          # Portland Group C compiler
 
17241
          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'
 
17242
          tmp_addflag=' $pic_flag'
 
17243
          ;;
 
17244
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17245
          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'
 
17246
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17247
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17248
          tmp_addflag=' -i_dynamic' ;;
 
17249
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17250
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17251
        ifc* | ifort*)                  # Intel Fortran compiler
 
17252
          tmp_addflag=' -nofor_main' ;;
 
17253
        esac
 
17254
        case `$CC -V 2>&1 | sed 5q` in
 
17255
        *Sun\ C*)                       # Sun C 5.9
 
17256
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17257
          tmp_sharedflag='-G' ;;
 
17258
        *Sun\ F*)                       # Sun Fortran 8.3
 
17259
          tmp_sharedflag='-G' ;;
 
17260
        *)
 
17261
          tmp_sharedflag='-shared' ;;
 
17262
        esac
 
17263
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17264
 
 
17265
        if test $supports_anon_versioning = yes; then
 
17266
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17267
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17268
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17269
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17270
        fi
 
17271
      else
 
17272
        ld_shlibs_GCJ=no
 
17273
      fi
 
17274
      ;;
 
17275
 
 
17276
    netbsd*)
 
17277
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17278
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17279
        wlarc=
 
17280
      else
 
17281
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17282
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17283
      fi
 
17284
      ;;
 
17285
 
 
17286
    solaris*)
 
17287
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17288
        ld_shlibs_GCJ=no
 
17289
        cat <<EOF 1>&2
 
17290
 
 
17291
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17292
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17293
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17294
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17295
*** your PATH or compiler configuration so that the native linker is
 
17296
*** used, and then restart.
 
17297
 
 
17298
EOF
 
17299
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17300
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17301
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17302
      else
 
17303
        ld_shlibs_GCJ=no
 
17304
      fi
 
17305
      ;;
 
17306
 
 
17307
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17308
      case `$LD -v 2>&1` in
 
17309
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17310
        ld_shlibs_GCJ=no
 
17311
        cat <<_LT_EOF 1>&2
 
17312
 
 
17313
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17314
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17315
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17316
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17317
*** your PATH or compiler configuration so that the native linker is
 
17318
*** used, and then restart.
 
17319
 
 
17320
_LT_EOF
 
17321
        ;;
 
17322
        *)
 
17323
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17324
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17325
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17326
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17327
          else
 
17328
            ld_shlibs_GCJ=no
 
17329
          fi
 
17330
        ;;
 
17331
      esac
 
17332
      ;;
 
17333
 
 
17334
    sunos4*)
 
17335
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17336
      wlarc=
 
17337
      hardcode_direct_GCJ=yes
 
17338
      hardcode_shlibpath_var_GCJ=no
 
17339
      ;;
 
17340
 
 
17341
    *)
 
17342
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17343
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17344
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17345
      else
 
17346
        ld_shlibs_GCJ=no
 
17347
      fi
 
17348
      ;;
 
17349
    esac
 
17350
 
 
17351
    if test "$ld_shlibs_GCJ" = no; then
 
17352
      runpath_var=
 
17353
      hardcode_libdir_flag_spec_GCJ=
 
17354
      export_dynamic_flag_spec_GCJ=
 
17355
      whole_archive_flag_spec_GCJ=
 
17356
    fi
 
17357
  else
 
17358
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17359
    case $host_os in
 
17360
    aix3*)
 
17361
      allow_undefined_flag_GCJ=unsupported
 
17362
      always_export_symbols_GCJ=yes
 
17363
      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'
 
17364
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17365
      # are no directories specified by -L.
 
17366
      hardcode_minus_L_GCJ=yes
 
17367
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17368
        # Neither direct hardcoding nor static linking is supported with a
 
17369
        # broken collect2.
 
17370
        hardcode_direct_GCJ=unsupported
 
17371
      fi
 
17372
      ;;
 
17373
 
 
17374
    aix[4-9]*)
 
17375
      if test "$host_cpu" = ia64; then
 
17376
        # On IA64, the linker does run time linking by default, so we don't
 
17377
        # have to do anything special.
 
17378
        aix_use_runtimelinking=no
 
17379
        exp_sym_flag='-Bexport'
 
17380
        no_entry_flag=""
 
17381
      else
 
17382
        # If we're using GNU nm, then we don't want the "-C" option.
 
17383
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17384
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17385
          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'
 
17386
        else
 
17387
          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'
 
17388
        fi
 
17389
        aix_use_runtimelinking=no
 
17390
 
 
17391
        # Test if we are trying to use run time linking or normal
 
17392
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17393
        # need to do runtime linking.
 
17394
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17395
          for ld_flag in $LDFLAGS; do
 
17396
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17397
            aix_use_runtimelinking=yes
 
17398
            break
 
17399
          fi
 
17400
          done
 
17401
          ;;
 
17402
        esac
 
17403
 
 
17404
        exp_sym_flag='-bexport'
 
17405
        no_entry_flag='-bnoentry'
 
17406
      fi
 
17407
 
 
17408
      # When large executables or shared objects are built, AIX ld can
 
17409
      # have problems creating the table of contents.  If linking a library
 
17410
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17411
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17412
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17413
 
 
17414
      archive_cmds_GCJ=''
 
17415
      hardcode_direct_GCJ=yes
 
17416
      hardcode_libdir_separator_GCJ=':'
 
17417
      link_all_deplibs_GCJ=yes
 
17418
 
 
17419
      if test "$GCC" = yes; then
 
17420
        case $host_os in aix4.[012]|aix4.[012].*)
 
17421
        # We only want to do this on AIX 4.2 and lower, the check
 
17422
        # below for broken collect2 doesn't work under 4.3+
 
17423
          collect2name=`${CC} -print-prog-name=collect2`
 
17424
          if test -f "$collect2name" && \
 
17425
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17426
          then
 
17427
          # We have reworked collect2
 
17428
          :
 
17429
          else
 
17430
          # We have old collect2
 
17431
          hardcode_direct_GCJ=unsupported
 
17432
          # It fails to find uninstalled libraries when the uninstalled
 
17433
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17434
          # to unsupported forces relinking
 
17435
          hardcode_minus_L_GCJ=yes
 
17436
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17437
          hardcode_libdir_separator_GCJ=
 
17438
          fi
 
17439
          ;;
 
17440
        esac
 
17441
        shared_flag='-shared'
 
17442
        if test "$aix_use_runtimelinking" = yes; then
 
17443
          shared_flag="$shared_flag "'${wl}-G'
 
17444
        fi
 
17445
      else
 
17446
        # not using gcc
 
17447
        if test "$host_cpu" = ia64; then
 
17448
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17449
        # chokes on -Wl,-G. The following line is correct:
 
17450
          shared_flag='-G'
 
17451
        else
 
17452
          if test "$aix_use_runtimelinking" = yes; then
 
17453
            shared_flag='${wl}-G'
 
17454
          else
 
17455
            shared_flag='${wl}-bM:SRE'
 
17456
          fi
 
17457
        fi
 
17458
      fi
 
17459
 
 
17460
      # It seems that -bexpall does not export symbols beginning with
 
17461
      # underscore (_), so it is better to generate a list of symbols to export.
 
17462
      always_export_symbols_GCJ=yes
 
17463
      if test "$aix_use_runtimelinking" = yes; then
 
17464
        # Warning - without using the other runtime loading flags (-brtl),
 
17465
        # -berok will link without error, but may produce a broken library.
 
17466
        allow_undefined_flag_GCJ='-berok'
 
17467
       # Determine the default libpath from the value encoded in an empty executable.
 
17468
       cat >conftest.$ac_ext <<_ACEOF
 
17469
/* confdefs.h.  */
 
17470
_ACEOF
 
17471
cat confdefs.h >>conftest.$ac_ext
 
17472
cat >>conftest.$ac_ext <<_ACEOF
 
17473
/* end confdefs.h.  */
 
17474
 
 
17475
int
 
17476
main ()
 
17477
{
 
17478
 
 
17479
  ;
 
17480
  return 0;
 
17481
}
 
17482
_ACEOF
 
17483
rm -f conftest.$ac_objext conftest$ac_exeext
 
17484
if { (ac_try="$ac_link"
 
17485
case "(($ac_try" in
 
17486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17487
  *) ac_try_echo=$ac_try;;
 
17488
esac
 
17489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17490
$as_echo "$ac_try_echo") >&5
 
17491
  (eval "$ac_link") 2>conftest.er1
 
17492
  ac_status=$?
 
17493
  grep -v '^ *+' conftest.er1 >conftest.err
 
17494
  rm -f conftest.er1
 
17495
  cat conftest.err >&5
 
17496
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17497
  (exit $ac_status); } && {
 
17498
         test -z "$ac_c_werror_flag" ||
 
17499
         test ! -s conftest.err
 
17500
       } && test -s conftest$ac_exeext && {
 
17501
         test "$cross_compiling" = yes ||
 
17502
         $as_test_x conftest$ac_exeext
 
17503
       }; then
 
17504
 
 
17505
lt_aix_libpath_sed='
 
17506
    /Import File Strings/,/^$/ {
 
17507
        /^0/ {
 
17508
            s/^0  *\(.*\)$/\1/
 
17509
            p
 
17510
        }
 
17511
    }'
 
17512
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17513
# Check for a 64-bit object if we didn't find anything.
 
17514
if test -z "$aix_libpath"; then
 
17515
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17516
fi
 
17517
else
 
17518
  $as_echo "$as_me: failed program was:" >&5
 
17519
sed 's/^/| /' conftest.$ac_ext >&5
 
17520
 
 
17521
 
 
17522
fi
 
17523
 
 
17524
rm -rf conftest.dSYM
 
17525
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17526
      conftest$ac_exeext conftest.$ac_ext
 
17527
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17528
 
 
17529
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17530
        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"
 
17531
       else
 
17532
        if test "$host_cpu" = ia64; then
 
17533
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17534
          allow_undefined_flag_GCJ="-z nodefs"
 
17535
          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"
 
17536
        else
 
17537
         # Determine the default libpath from the value encoded in an empty executable.
 
17538
         cat >conftest.$ac_ext <<_ACEOF
 
17539
/* confdefs.h.  */
 
17540
_ACEOF
 
17541
cat confdefs.h >>conftest.$ac_ext
 
17542
cat >>conftest.$ac_ext <<_ACEOF
 
17543
/* end confdefs.h.  */
 
17544
 
 
17545
int
 
17546
main ()
 
17547
{
 
17548
 
 
17549
  ;
 
17550
  return 0;
 
17551
}
 
17552
_ACEOF
 
17553
rm -f conftest.$ac_objext conftest$ac_exeext
 
17554
if { (ac_try="$ac_link"
 
17555
case "(($ac_try" in
 
17556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17557
  *) ac_try_echo=$ac_try;;
 
17558
esac
 
17559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17560
$as_echo "$ac_try_echo") >&5
 
17561
  (eval "$ac_link") 2>conftest.er1
 
17562
  ac_status=$?
 
17563
  grep -v '^ *+' conftest.er1 >conftest.err
 
17564
  rm -f conftest.er1
 
17565
  cat conftest.err >&5
 
17566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17567
  (exit $ac_status); } && {
 
17568
         test -z "$ac_c_werror_flag" ||
 
17569
         test ! -s conftest.err
 
17570
       } && test -s conftest$ac_exeext && {
 
17571
         test "$cross_compiling" = yes ||
 
17572
         $as_test_x conftest$ac_exeext
 
17573
       }; then
 
17574
 
 
17575
lt_aix_libpath_sed='
 
17576
    /Import File Strings/,/^$/ {
 
17577
        /^0/ {
 
17578
            s/^0  *\(.*\)$/\1/
 
17579
            p
 
17580
        }
 
17581
    }'
 
17582
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17583
# Check for a 64-bit object if we didn't find anything.
 
17584
if test -z "$aix_libpath"; then
 
17585
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17586
fi
 
17587
else
 
17588
  $as_echo "$as_me: failed program was:" >&5
 
17589
sed 's/^/| /' conftest.$ac_ext >&5
 
17590
 
 
17591
 
 
17592
fi
 
17593
 
 
17594
rm -rf conftest.dSYM
 
17595
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17596
      conftest$ac_exeext conftest.$ac_ext
 
17597
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17598
 
 
17599
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17600
          # Warning - without using the other run time loading flags,
 
17601
          # -berok will link without error, but may produce a broken library.
 
17602
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17603
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17604
          # Exported symbols can be pulled into shared objects from archives
 
17605
          whole_archive_flag_spec_GCJ='$convenience'
 
17606
          archive_cmds_need_lc_GCJ=yes
 
17607
          # This is similar to how AIX traditionally builds its shared libraries.
 
17608
          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'
 
17609
        fi
 
17610
      fi
 
17611
      ;;
 
17612
 
 
17613
    amigaos*)
 
17614
      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)'
 
17615
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17616
      hardcode_minus_L_GCJ=yes
 
17617
      # see comment about different semantics on the GNU ld section
 
17618
      ld_shlibs_GCJ=no
 
17619
      ;;
 
17620
 
 
17621
    bsdi[45]*)
 
17622
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17623
      ;;
 
17624
 
 
17625
    cygwin* | mingw* | pw32*)
 
17626
      # When not using gcc, we currently assume that we are using
 
17627
      # Microsoft Visual C++.
 
17628
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17629
      # no search path for DLLs.
 
17630
      hardcode_libdir_flag_spec_GCJ=' '
 
17631
      allow_undefined_flag_GCJ=unsupported
 
17632
      # Tell ltmain to make .lib files, not .a files.
 
17633
      libext=lib
 
17634
      # Tell ltmain to make .dll files, not .so files.
 
17635
      shrext_cmds=".dll"
 
17636
      # FIXME: Setting linknames here is a bad hack.
 
17637
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17638
      # The linker will automatically build a .lib file if we build a DLL.
 
17639
      old_archive_From_new_cmds_GCJ='true'
 
17640
      # FIXME: Should let the user specify the lib program.
 
17641
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17642
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17643
      enable_shared_with_static_runtimes_GCJ=yes
 
17644
      ;;
 
17645
 
 
17646
    darwin* | rhapsody*)
 
17647
      case $host_os in
 
17648
        rhapsody* | darwin1.[012])
 
17649
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17650
         ;;
 
17651
       *) # Darwin 1.3 on
 
17652
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17653
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17654
         else
 
17655
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17656
             10.[012])
 
17657
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17658
               ;;
 
17659
             10.*)
 
17660
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17661
               ;;
 
17662
           esac
 
17663
         fi
 
17664
         ;;
 
17665
      esac
 
17666
      archive_cmds_need_lc_GCJ=no
 
17667
      hardcode_direct_GCJ=no
 
17668
      hardcode_automatic_GCJ=yes
 
17669
      hardcode_shlibpath_var_GCJ=unsupported
 
17670
      whole_archive_flag_spec_GCJ=''
 
17671
      link_all_deplibs_GCJ=yes
 
17672
    if test "$GCC" = yes ; then
 
17673
        output_verbose_link_cmd='echo'
 
17674
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
17675
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
17676
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
17677
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
17678
    else
 
17679
      case $cc_basename in
 
17680
        xlc*)
 
17681
         output_verbose_link_cmd='echo'
 
17682
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
17683
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17684
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17685
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17686
          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}'
 
17687
          ;;
 
17688
       *)
 
17689
         ld_shlibs_GCJ=no
 
17690
          ;;
 
17691
      esac
 
17692
    fi
 
17693
      ;;
 
17694
 
 
17695
    dgux*)
 
17696
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17697
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17698
      hardcode_shlibpath_var_GCJ=no
 
17699
      ;;
 
17700
 
 
17701
    freebsd1*)
 
17702
      ld_shlibs_GCJ=no
 
17703
      ;;
 
17704
 
 
17705
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17706
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17707
    # does not break anything, and helps significantly (at the cost of a little
 
17708
    # extra space).
 
17709
    freebsd2.2*)
 
17710
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17711
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17712
      hardcode_direct_GCJ=yes
 
17713
      hardcode_shlibpath_var_GCJ=no
 
17714
      ;;
 
17715
 
 
17716
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17717
    freebsd2*)
 
17718
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17719
      hardcode_direct_GCJ=yes
 
17720
      hardcode_minus_L_GCJ=yes
 
17721
      hardcode_shlibpath_var_GCJ=no
 
17722
      ;;
 
17723
 
 
17724
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17725
    freebsd* | dragonfly*)
 
17726
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17727
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17728
      hardcode_direct_GCJ=yes
 
17729
      hardcode_shlibpath_var_GCJ=no
 
17730
      ;;
 
17731
 
 
17732
    hpux9*)
 
17733
      if test "$GCC" = yes; then
 
17734
        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'
 
17735
      else
 
17736
        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'
 
17737
      fi
 
17738
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17739
      hardcode_libdir_separator_GCJ=:
 
17740
      hardcode_direct_GCJ=yes
 
17741
 
 
17742
      # hardcode_minus_L: Not really in the search PATH,
 
17743
      # but as the default location of the library.
 
17744
      hardcode_minus_L_GCJ=yes
 
17745
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17746
      ;;
 
17747
 
 
17748
    hpux10*)
 
17749
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17750
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17751
      else
 
17752
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17753
      fi
 
17754
      if test "$with_gnu_ld" = no; then
 
17755
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17756
        hardcode_libdir_separator_GCJ=:
 
17757
 
 
17758
        hardcode_direct_GCJ=yes
 
17759
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17760
 
 
17761
        # hardcode_minus_L: Not really in the search PATH,
 
17762
        # but as the default location of the library.
 
17763
        hardcode_minus_L_GCJ=yes
 
17764
      fi
 
17765
      ;;
 
17766
 
 
17767
    hpux11*)
 
17768
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17769
        case $host_cpu in
 
17770
        hppa*64*)
 
17771
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17772
          ;;
 
17773
        ia64*)
 
17774
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17775
          ;;
 
17776
        *)
 
17777
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17778
          ;;
 
17779
        esac
 
17780
      else
 
17781
        case $host_cpu in
 
17782
        hppa*64*)
 
17783
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17784
          ;;
 
17785
        ia64*)
 
17786
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17787
          ;;
 
17788
        *)
 
17789
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17790
          ;;
 
17791
        esac
 
17792
      fi
 
17793
      if test "$with_gnu_ld" = no; then
 
17794
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17795
        hardcode_libdir_separator_GCJ=:
 
17796
 
 
17797
        case $host_cpu in
 
17798
        hppa*64*|ia64*)
 
17799
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17800
          hardcode_direct_GCJ=no
 
17801
          hardcode_shlibpath_var_GCJ=no
 
17802
          ;;
 
17803
        *)
 
17804
          hardcode_direct_GCJ=yes
 
17805
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17806
 
 
17807
          # hardcode_minus_L: Not really in the search PATH,
 
17808
          # but as the default location of the library.
 
17809
          hardcode_minus_L_GCJ=yes
 
17810
          ;;
 
17811
        esac
 
17812
      fi
 
17813
      ;;
 
17814
 
 
17815
    irix5* | irix6* | nonstopux*)
 
17816
      if test "$GCC" = yes; then
 
17817
        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'
 
17818
      else
 
17819
        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'
 
17820
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17821
      fi
 
17822
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17823
      hardcode_libdir_separator_GCJ=:
 
17824
      link_all_deplibs_GCJ=yes
 
17825
      ;;
 
17826
 
 
17827
    netbsd*)
 
17828
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17829
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17830
      else
 
17831
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17832
      fi
 
17833
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17834
      hardcode_direct_GCJ=yes
 
17835
      hardcode_shlibpath_var_GCJ=no
 
17836
      ;;
 
17837
 
 
17838
    newsos6)
 
17839
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17840
      hardcode_direct_GCJ=yes
 
17841
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17842
      hardcode_libdir_separator_GCJ=:
 
17843
      hardcode_shlibpath_var_GCJ=no
 
17844
      ;;
 
17845
 
 
17846
    openbsd*)
 
17847
      if test -f /usr/libexec/ld.so; then
 
17848
        hardcode_direct_GCJ=yes
 
17849
        hardcode_shlibpath_var_GCJ=no
 
17850
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17851
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17852
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17853
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17854
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17855
        else
 
17856
          case $host_os in
 
17857
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17858
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17859
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17860
             ;;
 
17861
           *)
 
17862
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17863
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17864
             ;;
 
17865
          esac
 
17866
        fi
 
17867
      else
 
17868
        ld_shlibs_GCJ=no
 
17869
      fi
 
17870
      ;;
 
17871
 
 
17872
    os2*)
 
17873
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17874
      hardcode_minus_L_GCJ=yes
 
17875
      allow_undefined_flag_GCJ=unsupported
 
17876
      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'
 
17877
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17878
      ;;
 
17879
 
 
17880
    osf3*)
 
17881
      if test "$GCC" = yes; then
 
17882
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17883
        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'
 
17884
      else
 
17885
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17886
        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'
 
17887
      fi
 
17888
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17889
      hardcode_libdir_separator_GCJ=:
 
17890
      ;;
 
17891
 
 
17892
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17893
      if test "$GCC" = yes; then
 
17894
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17895
        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'
 
17896
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17897
      else
 
17898
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17899
        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'
 
17900
        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~
 
17901
        $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'
 
17902
 
 
17903
        # Both c and cxx compiler support -rpath directly
 
17904
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17905
      fi
 
17906
      hardcode_libdir_separator_GCJ=:
 
17907
      ;;
 
17908
 
 
17909
    solaris*)
 
17910
      no_undefined_flag_GCJ=' -z text'
 
17911
      if test "$GCC" = yes; then
 
17912
        wlarc='${wl}'
 
17913
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17914
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17915
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17916
      else
 
17917
        wlarc=''
 
17918
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17919
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17920
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17921
      fi
 
17922
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17923
      hardcode_shlibpath_var_GCJ=no
 
17924
      case $host_os in
 
17925
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17926
      *)
 
17927
        # The compiler driver will combine and reorder linker options,
 
17928
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17929
        # but is careful enough not to reorder.
 
17930
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17931
        if test "$GCC" = yes; then
 
17932
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17933
        else
 
17934
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
17935
        fi
 
17936
        ;;
 
17937
      esac
 
17938
      link_all_deplibs_GCJ=yes
 
17939
      ;;
 
17940
 
 
17941
    sunos4*)
 
17942
      if test "x$host_vendor" = xsequent; then
 
17943
        # Use $CC to link under sequent, because it throws in some extra .o
 
17944
        # files that make .init and .fini sections work.
 
17945
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17946
      else
 
17947
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17948
      fi
 
17949
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17950
      hardcode_direct_GCJ=yes
 
17951
      hardcode_minus_L_GCJ=yes
 
17952
      hardcode_shlibpath_var_GCJ=no
 
17953
      ;;
 
17954
 
 
17955
    sysv4)
 
17956
      case $host_vendor in
 
17957
        sni)
 
17958
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17959
          hardcode_direct_GCJ=yes # is this really true???
 
17960
        ;;
 
17961
        siemens)
 
17962
          ## LD is ld it makes a PLAMLIB
 
17963
          ## CC just makes a GrossModule.
 
17964
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17965
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17966
          hardcode_direct_GCJ=no
 
17967
        ;;
 
17968
        motorola)
 
17969
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17970
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17971
        ;;
 
17972
      esac
 
17973
      runpath_var='LD_RUN_PATH'
 
17974
      hardcode_shlibpath_var_GCJ=no
 
17975
      ;;
 
17976
 
 
17977
    sysv4.3*)
 
17978
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17979
      hardcode_shlibpath_var_GCJ=no
 
17980
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17981
      ;;
 
17982
 
 
17983
    sysv4*MP*)
 
17984
      if test -d /usr/nec; then
 
17985
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17986
        hardcode_shlibpath_var_GCJ=no
 
17987
        runpath_var=LD_RUN_PATH
 
17988
        hardcode_runpath_var=yes
 
17989
        ld_shlibs_GCJ=yes
 
17990
      fi
 
17991
      ;;
 
17992
 
 
17993
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
17994
      no_undefined_flag_GCJ='${wl}-z,text'
 
17995
      archive_cmds_need_lc_GCJ=no
 
17996
      hardcode_shlibpath_var_GCJ=no
 
17997
      runpath_var='LD_RUN_PATH'
 
17998
 
 
17999
      if test "$GCC" = yes; then
 
18000
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18001
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18002
      else
 
18003
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18004
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18005
      fi
 
18006
      ;;
 
18007
 
 
18008
    sysv5* | sco3.2v5* | sco5v6*)
 
18009
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18010
      # link with -lc, and that would cause any symbols used from libc to
 
18011
      # always be unresolved, which means just about no library would
 
18012
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18013
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18014
      # as -z defs.
 
18015
      no_undefined_flag_GCJ='${wl}-z,text'
 
18016
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18017
      archive_cmds_need_lc_GCJ=no
 
18018
      hardcode_shlibpath_var_GCJ=no
 
18019
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18020
      hardcode_libdir_separator_GCJ=':'
 
18021
      link_all_deplibs_GCJ=yes
 
18022
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18023
      runpath_var='LD_RUN_PATH'
 
18024
 
 
18025
      if test "$GCC" = yes; then
 
18026
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18027
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18028
      else
 
18029
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18030
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18031
      fi
 
18032
      ;;
 
18033
 
 
18034
    uts4*)
 
18035
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18036
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18037
      hardcode_shlibpath_var_GCJ=no
 
18038
      ;;
 
18039
 
 
18040
    *)
 
18041
      ld_shlibs_GCJ=no
 
18042
      ;;
 
18043
    esac
 
18044
  fi
 
18045
 
 
18046
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18047
$as_echo "$ld_shlibs_GCJ" >&6; }
 
18048
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18049
 
 
18050
#
 
18051
# Do we need to explicitly link libc?
 
18052
#
 
18053
case "x$archive_cmds_need_lc_GCJ" in
 
18054
x|xyes)
 
18055
  # Assume -lc should be added
 
18056
  archive_cmds_need_lc_GCJ=yes
 
18057
 
 
18058
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18059
    case $archive_cmds_GCJ in
 
18060
    *'~'*)
 
18061
      # FIXME: we may have to deal with multi-command sequences.
 
18062
      ;;
 
18063
    '$CC '*)
 
18064
      # Test whether the compiler implicitly links with -lc since on some
 
18065
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18066
      # to ld, don't add -lc before -lgcc.
 
18067
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18068
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
18069
      $rm conftest*
 
18070
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18071
 
 
18072
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18073
  (eval $ac_compile) 2>&5
 
18074
  ac_status=$?
 
18075
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18076
  (exit $ac_status); } 2>conftest.err; then
 
18077
        soname=conftest
 
18078
        lib=conftest
 
18079
        libobjs=conftest.$ac_objext
 
18080
        deplibs=
 
18081
        wl=$lt_prog_compiler_wl_GCJ
 
18082
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18083
        compiler_flags=-v
 
18084
        linker_flags=-v
 
18085
        verstring=
 
18086
        output_objdir=.
 
18087
        libname=conftest
 
18088
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18089
        allow_undefined_flag_GCJ=
 
18090
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18091
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18092
  ac_status=$?
 
18093
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18094
  (exit $ac_status); }
 
18095
        then
 
18096
          archive_cmds_need_lc_GCJ=no
 
18097
        else
 
18098
          archive_cmds_need_lc_GCJ=yes
 
18099
        fi
 
18100
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18101
      else
 
18102
        cat conftest.err 1>&5
 
18103
      fi
 
18104
      $rm conftest*
 
18105
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18106
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
18107
      ;;
 
18108
    esac
 
18109
  fi
 
18110
  ;;
 
18111
esac
 
18112
 
 
18113
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18114
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
18115
library_names_spec=
 
18116
libname_spec='lib$name'
 
18117
soname_spec=
 
18118
shrext_cmds=".so"
 
18119
postinstall_cmds=
 
18120
postuninstall_cmds=
 
18121
finish_cmds=
 
18122
finish_eval=
 
18123
shlibpath_var=
 
18124
shlibpath_overrides_runpath=unknown
 
18125
version_type=none
 
18126
dynamic_linker="$host_os ld.so"
 
18127
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18128
 
 
18129
need_lib_prefix=unknown
 
18130
hardcode_into_libs=no
 
18131
 
 
18132
# when you set need_version to no, make sure it does not cause -set_version
 
18133
# flags to be left without arguments
 
18134
need_version=unknown
 
18135
 
 
18136
case $host_os in
 
18137
aix3*)
 
18138
  version_type=linux
 
18139
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18140
  shlibpath_var=LIBPATH
 
18141
 
 
18142
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18143
  soname_spec='${libname}${release}${shared_ext}$major'
 
18144
  ;;
 
18145
 
 
18146
aix[4-9]*)
 
18147
  version_type=linux
 
18148
  need_lib_prefix=no
 
18149
  need_version=no
 
18150
  hardcode_into_libs=yes
 
18151
  if test "$host_cpu" = ia64; then
 
18152
    # AIX 5 supports IA64
 
18153
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18154
    shlibpath_var=LD_LIBRARY_PATH
 
18155
  else
 
18156
    # With GCC up to 2.95.x, collect2 would create an import file
 
18157
    # for dependence libraries.  The import file would start with
 
18158
    # the line `#! .'.  This would cause the generated library to
 
18159
    # depend on `.', always an invalid library.  This was fixed in
 
18160
    # development snapshots of GCC prior to 3.0.
 
18161
    case $host_os in
 
18162
      aix4 | aix4.[01] | aix4.[01].*)
 
18163
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18164
           echo ' yes '
 
18165
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18166
        :
 
18167
      else
 
18168
        can_build_shared=no
 
18169
      fi
 
18170
      ;;
 
18171
    esac
 
18172
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18173
    # soname into executable. Probably we can add versioning support to
 
18174
    # collect2, so additional links can be useful in future.
 
18175
    if test "$aix_use_runtimelinking" = yes; then
 
18176
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18177
      # instead of lib<name>.a to let people know that these are not
 
18178
      # typical AIX shared libraries.
 
18179
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18180
    else
 
18181
      # We preserve .a as extension for shared libraries through AIX4.2
 
18182
      # and later when we are not doing run time linking.
 
18183
      library_names_spec='${libname}${release}.a $libname.a'
 
18184
      soname_spec='${libname}${release}${shared_ext}$major'
 
18185
    fi
 
18186
    shlibpath_var=LIBPATH
 
18187
  fi
 
18188
  ;;
 
18189
 
 
18190
amigaos*)
 
18191
  library_names_spec='$libname.ixlibrary $libname.a'
 
18192
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18193
  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'
 
18194
  ;;
 
18195
 
 
18196
beos*)
 
18197
  library_names_spec='${libname}${shared_ext}'
 
18198
  dynamic_linker="$host_os ld.so"
 
18199
  shlibpath_var=LIBRARY_PATH
 
18200
  ;;
 
18201
 
 
18202
bsdi[45]*)
 
18203
  version_type=linux
 
18204
  need_version=no
 
18205
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18206
  soname_spec='${libname}${release}${shared_ext}$major'
 
18207
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18208
  shlibpath_var=LD_LIBRARY_PATH
 
18209
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18210
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18211
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18212
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18213
  # libtool to hard-code these into programs
 
18214
  ;;
 
18215
 
 
18216
cygwin* | mingw* | pw32*)
 
18217
  version_type=windows
 
18218
  shrext_cmds=".dll"
 
18219
  need_version=no
 
18220
  need_lib_prefix=no
 
18221
 
 
18222
  case $GCC,$host_os in
 
18223
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18224
    library_names_spec='$libname.dll.a'
 
18225
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18226
    postinstall_cmds='base_file=`basename \${file}`~
 
18227
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18228
      dldir=$destdir/`dirname \$dlpath`~
 
18229
      test -d \$dldir || mkdir -p \$dldir~
 
18230
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18231
      chmod a+x \$dldir/$dlname'
 
18232
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18233
      dlpath=$dir/\$dldll~
 
18234
       $rm \$dlpath'
 
18235
    shlibpath_overrides_runpath=yes
 
18236
 
 
18237
    case $host_os in
 
18238
    cygwin*)
 
18239
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18240
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18241
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18242
      ;;
 
18243
    mingw*)
 
18244
      # MinGW DLLs use traditional 'lib' prefix
 
18245
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18246
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18247
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18248
        # It is most probably a Windows format PATH printed by
 
18249
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18250
        # path with ; separators, and with drive letters. We can handle the
 
18251
        # drive letters (cygwin fileutils understands them), so leave them,
 
18252
        # especially as we might pass files found there to a mingw objdump,
 
18253
        # which wouldn't understand a cygwinified path. Ahh.
 
18254
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18255
      else
 
18256
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18257
      fi
 
18258
      ;;
 
18259
    pw32*)
 
18260
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18261
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18262
      ;;
 
18263
    esac
 
18264
    ;;
 
18265
 
 
18266
  *)
 
18267
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18268
    ;;
 
18269
  esac
 
18270
  dynamic_linker='Win32 ld.exe'
 
18271
  # FIXME: first we should search . and the directory the executable is in
 
18272
  shlibpath_var=PATH
 
18273
  ;;
 
18274
 
 
18275
darwin* | rhapsody*)
 
18276
  dynamic_linker="$host_os dyld"
 
18277
  version_type=darwin
 
18278
  need_lib_prefix=no
 
18279
  need_version=no
 
18280
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18281
  soname_spec='${libname}${release}${major}$shared_ext'
 
18282
  shlibpath_overrides_runpath=yes
 
18283
  shlibpath_var=DYLD_LIBRARY_PATH
 
18284
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18285
 
 
18286
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18287
  ;;
 
18288
 
 
18289
dgux*)
 
18290
  version_type=linux
 
18291
  need_lib_prefix=no
 
18292
  need_version=no
 
18293
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18294
  soname_spec='${libname}${release}${shared_ext}$major'
 
18295
  shlibpath_var=LD_LIBRARY_PATH
 
18296
  ;;
 
18297
 
 
18298
freebsd1*)
 
18299
  dynamic_linker=no
 
18300
  ;;
 
18301
 
 
18302
freebsd* | dragonfly*)
 
18303
  # DragonFly does not have aout.  When/if they implement a new
 
18304
  # versioning mechanism, adjust this.
 
18305
  if test -x /usr/bin/objformat; then
 
18306
    objformat=`/usr/bin/objformat`
 
18307
  else
 
18308
    case $host_os in
 
18309
    freebsd[123]*) objformat=aout ;;
 
18310
    *) objformat=elf ;;
 
18311
    esac
 
18312
  fi
 
18313
  version_type=freebsd-$objformat
 
18314
  case $version_type in
 
18315
    freebsd-elf*)
 
18316
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18317
      need_version=no
 
18318
      need_lib_prefix=no
 
18319
      ;;
 
18320
    freebsd-*)
 
18321
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18322
      need_version=yes
 
18323
      ;;
 
18324
  esac
 
18325
  shlibpath_var=LD_LIBRARY_PATH
 
18326
  case $host_os in
 
18327
  freebsd2*)
 
18328
    shlibpath_overrides_runpath=yes
 
18329
    ;;
 
18330
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18331
    shlibpath_overrides_runpath=yes
 
18332
    hardcode_into_libs=yes
 
18333
    ;;
 
18334
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18335
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18336
    shlibpath_overrides_runpath=no
 
18337
    hardcode_into_libs=yes
 
18338
    ;;
 
18339
  *) # from 4.6 on, and DragonFly
 
18340
    shlibpath_overrides_runpath=yes
 
18341
    hardcode_into_libs=yes
 
18342
    ;;
 
18343
  esac
 
18344
  ;;
 
18345
 
 
18346
gnu*)
 
18347
  version_type=linux
 
18348
  need_lib_prefix=no
 
18349
  need_version=no
 
18350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18351
  soname_spec='${libname}${release}${shared_ext}$major'
 
18352
  shlibpath_var=LD_LIBRARY_PATH
 
18353
  hardcode_into_libs=yes
 
18354
  ;;
 
18355
 
 
18356
hpux9* | hpux10* | hpux11*)
 
18357
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18358
  # link against other versions.
 
18359
  version_type=sunos
 
18360
  need_lib_prefix=no
 
18361
  need_version=no
 
18362
  case $host_cpu in
 
18363
  ia64*)
 
18364
    shrext_cmds='.so'
 
18365
    hardcode_into_libs=yes
 
18366
    dynamic_linker="$host_os dld.so"
 
18367
    shlibpath_var=LD_LIBRARY_PATH
 
18368
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18369
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18370
    soname_spec='${libname}${release}${shared_ext}$major'
 
18371
    if test "X$HPUX_IA64_MODE" = X32; then
 
18372
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18373
    else
 
18374
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18375
    fi
 
18376
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18377
    ;;
 
18378
   hppa*64*)
 
18379
     shrext_cmds='.sl'
 
18380
     hardcode_into_libs=yes
 
18381
     dynamic_linker="$host_os dld.sl"
 
18382
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18383
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
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
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18387
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18388
     ;;
 
18389
   *)
 
18390
    shrext_cmds='.sl'
 
18391
    dynamic_linker="$host_os dld.sl"
 
18392
    shlibpath_var=SHLIB_PATH
 
18393
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18394
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18395
    soname_spec='${libname}${release}${shared_ext}$major'
 
18396
    ;;
 
18397
  esac
 
18398
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18399
  postinstall_cmds='chmod 555 $lib'
 
18400
  ;;
 
18401
 
 
18402
interix[3-9]*)
 
18403
  version_type=linux
 
18404
  need_lib_prefix=no
 
18405
  need_version=no
 
18406
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18407
  soname_spec='${libname}${release}${shared_ext}$major'
 
18408
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18409
  shlibpath_var=LD_LIBRARY_PATH
 
18410
  shlibpath_overrides_runpath=no
 
18411
  hardcode_into_libs=yes
 
18412
  ;;
 
18413
 
 
18414
irix5* | irix6* | nonstopux*)
 
18415
  case $host_os in
 
18416
    nonstopux*) version_type=nonstopux ;;
 
18417
    *)
 
18418
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18419
                version_type=linux
 
18420
        else
 
18421
                version_type=irix
 
18422
        fi ;;
 
18423
  esac
 
18424
  need_lib_prefix=no
 
18425
  need_version=no
 
18426
  soname_spec='${libname}${release}${shared_ext}$major'
 
18427
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18428
  case $host_os in
 
18429
  irix5* | nonstopux*)
 
18430
    libsuff= shlibsuff=
 
18431
    ;;
 
18432
  *)
 
18433
    case $LD in # libtool.m4 will add one of these switches to LD
 
18434
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18435
      libsuff= shlibsuff= libmagic=32-bit;;
 
18436
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18437
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18438
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18439
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18440
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18441
    esac
 
18442
    ;;
 
18443
  esac
 
18444
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18445
  shlibpath_overrides_runpath=no
 
18446
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18447
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18448
  hardcode_into_libs=yes
 
18449
  ;;
 
18450
 
 
18451
# No shared lib support for Linux oldld, aout, or coff.
 
18452
linux*oldld* | linux*aout* | linux*coff*)
 
18453
  dynamic_linker=no
 
18454
  ;;
 
18455
 
 
18456
# This must be Linux ELF.
 
18457
linux* | k*bsd*-gnu)
 
18458
  version_type=linux
 
18459
  need_lib_prefix=no
 
18460
  need_version=no
 
18461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18462
  soname_spec='${libname}${release}${shared_ext}$major'
 
18463
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18464
  shlibpath_var=LD_LIBRARY_PATH
 
18465
  shlibpath_overrides_runpath=no
 
18466
  # This implies no fast_install, which is unacceptable.
 
18467
  # Some rework will be needed to allow for fast_install
 
18468
  # before this can be enabled.
 
18469
  hardcode_into_libs=yes
 
18470
 
 
18471
  # Append ld.so.conf contents to the search path
 
18472
  if test -f /etc/ld.so.conf; then
 
18473
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18474
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18475
  fi
 
18476
 
 
18477
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18478
  # powerpc, because MkLinux only supported shared libraries with the
 
18479
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18480
  # most powerpc-linux boxes support dynamic linking these days and
 
18481
  # people can always --disable-shared, the test was removed, and we
 
18482
  # assume the GNU/Linux dynamic linker is in use.
 
18483
  dynamic_linker='GNU/Linux ld.so'
 
18484
  ;;
 
18485
 
 
18486
netbsd*)
 
18487
  version_type=sunos
 
18488
  need_lib_prefix=no
 
18489
  need_version=no
 
18490
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18491
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18492
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18493
    dynamic_linker='NetBSD (a.out) ld.so'
 
18494
  else
 
18495
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18496
    soname_spec='${libname}${release}${shared_ext}$major'
 
18497
    dynamic_linker='NetBSD ld.elf_so'
 
18498
  fi
 
18499
  shlibpath_var=LD_LIBRARY_PATH
 
18500
  shlibpath_overrides_runpath=yes
 
18501
  hardcode_into_libs=yes
 
18502
  ;;
 
18503
 
 
18504
newsos6)
 
18505
  version_type=linux
 
18506
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18507
  shlibpath_var=LD_LIBRARY_PATH
 
18508
  shlibpath_overrides_runpath=yes
 
18509
  ;;
 
18510
 
 
18511
nto-qnx*)
 
18512
  version_type=linux
 
18513
  need_lib_prefix=no
 
18514
  need_version=no
 
18515
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18516
  soname_spec='${libname}${release}${shared_ext}$major'
 
18517
  shlibpath_var=LD_LIBRARY_PATH
 
18518
  shlibpath_overrides_runpath=yes
 
18519
  ;;
 
18520
 
 
18521
openbsd*)
 
18522
  version_type=sunos
 
18523
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18524
  need_lib_prefix=no
 
18525
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18526
  case $host_os in
 
18527
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18528
    *)                         need_version=no  ;;
 
18529
  esac
 
18530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18531
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18532
  shlibpath_var=LD_LIBRARY_PATH
 
18533
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18534
    case $host_os in
 
18535
      openbsd2.[89] | openbsd2.[89].*)
 
18536
        shlibpath_overrides_runpath=no
 
18537
        ;;
 
18538
      *)
 
18539
        shlibpath_overrides_runpath=yes
 
18540
        ;;
 
18541
      esac
 
18542
  else
 
18543
    shlibpath_overrides_runpath=yes
 
18544
  fi
 
18545
  ;;
 
18546
 
 
18547
os2*)
 
18548
  libname_spec='$name'
 
18549
  shrext_cmds=".dll"
 
18550
  need_lib_prefix=no
 
18551
  library_names_spec='$libname${shared_ext} $libname.a'
 
18552
  dynamic_linker='OS/2 ld.exe'
 
18553
  shlibpath_var=LIBPATH
 
18554
  ;;
 
18555
 
 
18556
osf3* | osf4* | osf5*)
 
18557
  version_type=osf
 
18558
  need_lib_prefix=no
 
18559
  need_version=no
 
18560
  soname_spec='${libname}${release}${shared_ext}$major'
 
18561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18562
  shlibpath_var=LD_LIBRARY_PATH
 
18563
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18564
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18565
  ;;
 
18566
 
 
18567
rdos*)
 
18568
  dynamic_linker=no
 
18569
  ;;
 
18570
 
 
18571
solaris*)
 
18572
  version_type=linux
 
18573
  need_lib_prefix=no
 
18574
  need_version=no
 
18575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18576
  soname_spec='${libname}${release}${shared_ext}$major'
 
18577
  shlibpath_var=LD_LIBRARY_PATH
 
18578
  shlibpath_overrides_runpath=yes
 
18579
  hardcode_into_libs=yes
 
18580
  # ldd complains unless libraries are executable
 
18581
  postinstall_cmds='chmod +x $lib'
 
18582
  ;;
 
18583
 
 
18584
sunos4*)
 
18585
  version_type=sunos
 
18586
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18587
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18588
  shlibpath_var=LD_LIBRARY_PATH
 
18589
  shlibpath_overrides_runpath=yes
 
18590
  if test "$with_gnu_ld" = yes; then
 
18591
    need_lib_prefix=no
 
18592
  fi
 
18593
  need_version=yes
 
18594
  ;;
 
18595
 
 
18596
sysv4 | sysv4.3*)
 
18597
  version_type=linux
 
18598
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18599
  soname_spec='${libname}${release}${shared_ext}$major'
 
18600
  shlibpath_var=LD_LIBRARY_PATH
 
18601
  case $host_vendor in
 
18602
    sni)
 
18603
      shlibpath_overrides_runpath=no
 
18604
      need_lib_prefix=no
 
18605
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18606
      runpath_var=LD_RUN_PATH
 
18607
      ;;
 
18608
    siemens)
 
18609
      need_lib_prefix=no
 
18610
      ;;
 
18611
    motorola)
 
18612
      need_lib_prefix=no
 
18613
      need_version=no
 
18614
      shlibpath_overrides_runpath=no
 
18615
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18616
      ;;
 
18617
  esac
 
18618
  ;;
 
18619
 
 
18620
sysv4*MP*)
 
18621
  if test -d /usr/nec ;then
 
18622
    version_type=linux
 
18623
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18624
    soname_spec='$libname${shared_ext}.$major'
 
18625
    shlibpath_var=LD_LIBRARY_PATH
 
18626
  fi
 
18627
  ;;
 
18628
 
 
18629
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18630
  version_type=freebsd-elf
 
18631
  need_lib_prefix=no
 
18632
  need_version=no
 
18633
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18634
  soname_spec='${libname}${release}${shared_ext}$major'
 
18635
  shlibpath_var=LD_LIBRARY_PATH
 
18636
  hardcode_into_libs=yes
 
18637
  if test "$with_gnu_ld" = yes; then
 
18638
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18639
    shlibpath_overrides_runpath=no
 
18640
  else
 
18641
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18642
    shlibpath_overrides_runpath=yes
 
18643
    case $host_os in
 
18644
      sco3.2v5*)
 
18645
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18646
        ;;
 
18647
    esac
 
18648
  fi
 
18649
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18650
  ;;
 
18651
 
 
18652
uts4*)
 
18653
  version_type=linux
 
18654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18655
  soname_spec='${libname}${release}${shared_ext}$major'
 
18656
  shlibpath_var=LD_LIBRARY_PATH
 
18657
  ;;
 
18658
 
 
18659
*)
 
18660
  dynamic_linker=no
 
18661
  ;;
 
18662
esac
 
18663
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18664
$as_echo "$dynamic_linker" >&6; }
 
18665
test "$dynamic_linker" = no && can_build_shared=no
 
18666
 
 
18667
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
18668
  $as_echo_n "(cached) " >&6
 
18669
else
 
18670
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
18671
fi
 
18672
 
 
18673
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
18674
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
18675
  $as_echo_n "(cached) " >&6
 
18676
else
 
18677
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
18678
fi
 
18679
 
 
18680
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
18681
 
 
18682
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18683
if test "$GCC" = yes; then
 
18684
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18685
fi
 
18686
 
 
18687
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18688
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
18689
hardcode_action_GCJ=
 
18690
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18691
   test -n "$runpath_var_GCJ" || \
 
18692
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18693
 
 
18694
  # We can hardcode non-existant directories.
 
18695
  if test "$hardcode_direct_GCJ" != no &&
 
18696
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18697
     # have to relink, otherwise we might link with an installed library
 
18698
     # when we should be linking with a yet-to-be-installed one
 
18699
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18700
     test "$hardcode_minus_L_GCJ" != no; then
 
18701
    # Linking always hardcodes the temporary library directory.
 
18702
    hardcode_action_GCJ=relink
 
18703
  else
 
18704
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18705
    hardcode_action_GCJ=immediate
 
18706
  fi
 
18707
else
 
18708
  # We cannot hardcode anything, or else we can only hardcode existing
 
18709
  # directories.
 
18710
  hardcode_action_GCJ=unsupported
 
18711
fi
 
18712
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18713
$as_echo "$hardcode_action_GCJ" >&6; }
 
18714
 
 
18715
if test "$hardcode_action_GCJ" = relink; then
 
18716
  # Fast installation is not supported
 
18717
  enable_fast_install=no
 
18718
elif test "$shlibpath_overrides_runpath" = yes ||
 
18719
     test "$enable_shared" = no; then
 
18720
  # Fast installation is not necessary
 
18721
  enable_fast_install=needless
 
18722
fi
 
18723
 
 
18724
 
 
18725
# The else clause should only fire when bootstrapping the
 
18726
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18727
# with your package, and you will get complaints that there are
 
18728
# no rules to generate ltmain.sh.
 
18729
if test -f "$ltmain"; then
 
18730
  # See if we are running on zsh, and set the options which allow our commands through
 
18731
  # without removal of \ escapes.
 
18732
  if test -n "${ZSH_VERSION+set}" ; then
 
18733
    setopt NO_GLOB_SUBST
 
18734
  fi
 
18735
  # Now quote all the things that may contain metacharacters while being
 
18736
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18737
  # variables and quote the copies for generation of the libtool script.
 
18738
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18739
    SED SHELL STRIP \
 
18740
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18741
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18742
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18743
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18744
    lt_cv_sys_global_symbol_to_c_name_address \
 
18745
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18746
    old_postinstall_cmds old_postuninstall_cmds \
 
18747
    compiler_GCJ \
 
18748
    CC_GCJ \
 
18749
    LD_GCJ \
 
18750
    lt_prog_compiler_wl_GCJ \
 
18751
    lt_prog_compiler_pic_GCJ \
 
18752
    lt_prog_compiler_static_GCJ \
 
18753
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18754
    export_dynamic_flag_spec_GCJ \
 
18755
    thread_safe_flag_spec_GCJ \
 
18756
    whole_archive_flag_spec_GCJ \
 
18757
    enable_shared_with_static_runtimes_GCJ \
 
18758
    old_archive_cmds_GCJ \
 
18759
    old_archive_from_new_cmds_GCJ \
 
18760
    predep_objects_GCJ \
 
18761
    postdep_objects_GCJ \
 
18762
    predeps_GCJ \
 
18763
    postdeps_GCJ \
 
18764
    compiler_lib_search_path_GCJ \
 
18765
    compiler_lib_search_dirs_GCJ \
 
18766
    archive_cmds_GCJ \
 
18767
    archive_expsym_cmds_GCJ \
 
18768
    postinstall_cmds_GCJ \
 
18769
    postuninstall_cmds_GCJ \
 
18770
    old_archive_from_expsyms_cmds_GCJ \
 
18771
    allow_undefined_flag_GCJ \
 
18772
    no_undefined_flag_GCJ \
 
18773
    export_symbols_cmds_GCJ \
 
18774
    hardcode_libdir_flag_spec_GCJ \
 
18775
    hardcode_libdir_flag_spec_ld_GCJ \
 
18776
    hardcode_libdir_separator_GCJ \
 
18777
    hardcode_automatic_GCJ \
 
18778
    module_cmds_GCJ \
 
18779
    module_expsym_cmds_GCJ \
 
18780
    lt_cv_prog_compiler_c_o_GCJ \
 
18781
    fix_srcfile_path_GCJ \
 
18782
    exclude_expsyms_GCJ \
 
18783
    include_expsyms_GCJ; do
 
18784
 
 
18785
    case $var in
 
18786
    old_archive_cmds_GCJ | \
 
18787
    old_archive_from_new_cmds_GCJ | \
 
18788
    archive_cmds_GCJ | \
 
18789
    archive_expsym_cmds_GCJ | \
 
18790
    module_cmds_GCJ | \
 
18791
    module_expsym_cmds_GCJ | \
 
18792
    old_archive_from_expsyms_cmds_GCJ | \
 
18793
    export_symbols_cmds_GCJ | \
 
18794
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18795
    postinstall_cmds | postuninstall_cmds | \
 
18796
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18797
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18798
      # Double-quote double-evaled strings.
 
18799
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18800
      ;;
 
18801
    *)
 
18802
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18803
      ;;
 
18804
    esac
 
18805
  done
 
18806
 
 
18807
  case $lt_echo in
 
18808
  *'\$0 --fallback-echo"')
 
18809
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18810
    ;;
 
18811
  esac
 
18812
 
 
18813
cfgfile="$ofile"
 
18814
 
 
18815
  cat <<__EOF__ >> "$cfgfile"
 
18816
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18817
 
 
18818
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18819
 
 
18820
# Shell to use when invoking shell scripts.
 
18821
SHELL=$lt_SHELL
 
18822
 
 
18823
# Whether or not to build shared libraries.
 
18824
build_libtool_libs=$enable_shared
 
18825
 
 
18826
# Whether or not to build static libraries.
 
18827
build_old_libs=$enable_static
 
18828
 
 
18829
# Whether or not to add -lc for building shared libraries.
 
18830
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18831
 
 
18832
# Whether or not to disallow shared libs when runtime libs are static
 
18833
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18834
 
 
18835
# Whether or not to optimize for fast installation.
 
18836
fast_install=$enable_fast_install
 
18837
 
 
18838
# The host system.
 
18839
host_alias=$host_alias
 
18840
host=$host
 
18841
host_os=$host_os
 
18842
 
 
18843
# The build system.
 
18844
build_alias=$build_alias
 
18845
build=$build
 
18846
build_os=$build_os
 
18847
 
 
18848
# An echo program that does not interpret backslashes.
 
18849
echo=$lt_echo
 
18850
 
 
18851
# The archiver.
 
18852
AR=$lt_AR
 
18853
AR_FLAGS=$lt_AR_FLAGS
 
18854
 
 
18855
# A C compiler.
 
18856
LTCC=$lt_LTCC
 
18857
 
 
18858
# LTCC compiler flags.
 
18859
LTCFLAGS=$lt_LTCFLAGS
 
18860
 
 
18861
# A language-specific compiler.
 
18862
CC=$lt_compiler_GCJ
 
18863
 
 
18864
# Is the compiler the GNU C compiler?
 
18865
with_gcc=$GCC_GCJ
 
18866
 
 
18867
# An ERE matcher.
 
18868
EGREP=$lt_EGREP
 
18869
 
 
18870
# The linker used to build libraries.
 
18871
LD=$lt_LD_GCJ
 
18872
 
 
18873
# Whether we need hard or soft links.
 
18874
LN_S=$lt_LN_S
 
18875
 
 
18876
# A BSD-compatible nm program.
 
18877
NM=$lt_NM
 
18878
 
 
18879
# A symbol stripping program
 
18880
STRIP=$lt_STRIP
 
18881
 
 
18882
# Used to examine libraries when file_magic_cmd begins "file"
 
18883
MAGIC_CMD=$MAGIC_CMD
 
18884
 
 
18885
# Used on cygwin: DLL creation program.
 
18886
DLLTOOL="$DLLTOOL"
 
18887
 
 
18888
# Used on cygwin: object dumper.
 
18889
OBJDUMP="$OBJDUMP"
 
18890
 
 
18891
# Used on cygwin: assembler.
 
18892
AS="$AS"
 
18893
 
 
18894
# The name of the directory that contains temporary libtool files.
 
18895
objdir=$objdir
 
18896
 
 
18897
# How to create reloadable object files.
 
18898
reload_flag=$lt_reload_flag
 
18899
reload_cmds=$lt_reload_cmds
 
18900
 
 
18901
# How to pass a linker flag through the compiler.
 
18902
wl=$lt_lt_prog_compiler_wl_GCJ
 
18903
 
 
18904
# Object file suffix (normally "o").
 
18905
objext="$ac_objext"
 
18906
 
 
18907
# Old archive suffix (normally "a").
 
18908
libext="$libext"
 
18909
 
 
18910
# Shared library suffix (normally ".so").
 
18911
shrext_cmds='$shrext_cmds'
 
18912
 
 
18913
# Executable file suffix (normally "").
 
18914
exeext="$exeext"
 
18915
 
 
18916
# Additional compiler flags for building library objects.
 
18917
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18918
pic_mode=$pic_mode
 
18919
 
 
18920
# What is the maximum length of a command?
 
18921
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18922
 
 
18923
# Does compiler simultaneously support -c and -o options?
 
18924
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18925
 
 
18926
# Must we lock files when doing compilation?
 
18927
need_locks=$lt_need_locks
 
18928
 
 
18929
# Do we need the lib prefix for modules?
 
18930
need_lib_prefix=$need_lib_prefix
 
18931
 
 
18932
# Do we need a version for libraries?
 
18933
need_version=$need_version
 
18934
 
 
18935
# Whether dlopen is supported.
 
18936
dlopen_support=$enable_dlopen
 
18937
 
 
18938
# Whether dlopen of programs is supported.
 
18939
dlopen_self=$enable_dlopen_self
 
18940
 
 
18941
# Whether dlopen of statically linked programs is supported.
 
18942
dlopen_self_static=$enable_dlopen_self_static
 
18943
 
 
18944
# Compiler flag to prevent dynamic linking.
 
18945
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18946
 
 
18947
# Compiler flag to turn off builtin functions.
 
18948
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18949
 
 
18950
# Compiler flag to allow reflexive dlopens.
 
18951
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18952
 
 
18953
# Compiler flag to generate shared objects directly from archives.
 
18954
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18955
 
 
18956
# Compiler flag to generate thread-safe objects.
 
18957
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18958
 
 
18959
# Library versioning type.
 
18960
version_type=$version_type
 
18961
 
 
18962
# Format of library name prefix.
 
18963
libname_spec=$lt_libname_spec
 
18964
 
 
18965
# List of archive names.  First name is the real one, the rest are links.
 
18966
# The last name is the one that the linker finds with -lNAME.
 
18967
library_names_spec=$lt_library_names_spec
 
18968
 
 
18969
# The coded name of the library, if different from the real name.
 
18970
soname_spec=$lt_soname_spec
 
18971
 
 
18972
# Commands used to build and install an old-style archive.
 
18973
RANLIB=$lt_RANLIB
 
18974
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18975
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18976
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18977
 
 
18978
# Create an old-style archive from a shared archive.
 
18979
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18980
 
 
18981
# Create a temporary old-style archive to link instead of a shared archive.
 
18982
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18983
 
 
18984
# Commands used to build and install a shared archive.
 
18985
archive_cmds=$lt_archive_cmds_GCJ
 
18986
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18987
postinstall_cmds=$lt_postinstall_cmds
 
18988
postuninstall_cmds=$lt_postuninstall_cmds
 
18989
 
 
18990
# Commands used to build a loadable module (assumed same as above if empty)
 
18991
module_cmds=$lt_module_cmds_GCJ
 
18992
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18993
 
 
18994
# Commands to strip libraries.
 
18995
old_striplib=$lt_old_striplib
 
18996
striplib=$lt_striplib
 
18997
 
 
18998
# Dependencies to place before the objects being linked to create a
 
18999
# shared library.
 
19000
predep_objects=$lt_predep_objects_GCJ
 
19001
 
 
19002
# Dependencies to place after the objects being linked to create a
 
19003
# shared library.
 
19004
postdep_objects=$lt_postdep_objects_GCJ
 
19005
 
 
19006
# Dependencies to place before the objects being linked to create a
 
19007
# shared library.
 
19008
predeps=$lt_predeps_GCJ
 
19009
 
 
19010
# Dependencies to place after the objects being linked to create a
 
19011
# shared library.
 
19012
postdeps=$lt_postdeps_GCJ
 
19013
 
 
19014
# The directories searched by this compiler when creating a shared
 
19015
# library
 
19016
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19017
 
 
19018
# The library search path used internally by the compiler when linking
 
19019
# a shared library.
 
19020
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19021
 
 
19022
# Method to check whether dependent libraries are shared objects.
 
19023
deplibs_check_method=$lt_deplibs_check_method
 
19024
 
 
19025
# Command to use when deplibs_check_method == file_magic.
 
19026
file_magic_cmd=$lt_file_magic_cmd
 
19027
 
 
19028
# Flag that allows shared libraries with undefined symbols to be built.
 
19029
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19030
 
 
19031
# Flag that forces no undefined symbols.
 
19032
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19033
 
 
19034
# Commands used to finish a libtool library installation in a directory.
 
19035
finish_cmds=$lt_finish_cmds
 
19036
 
 
19037
# Same as above, but a single script fragment to be evaled but not shown.
 
19038
finish_eval=$lt_finish_eval
 
19039
 
 
19040
# Take the output of nm and produce a listing of raw symbols and C names.
 
19041
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19042
 
 
19043
# Transform the output of nm in a proper C declaration
 
19044
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19045
 
 
19046
# Transform the output of nm in a C name address pair
 
19047
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19048
 
 
19049
# This is the shared library runtime path variable.
 
19050
runpath_var=$runpath_var
 
19051
 
 
19052
# This is the shared library path variable.
 
19053
shlibpath_var=$shlibpath_var
 
19054
 
 
19055
# Is shlibpath searched before the hard-coded library search path?
 
19056
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19057
 
 
19058
# How to hardcode a shared library path into an executable.
 
19059
hardcode_action=$hardcode_action_GCJ
 
19060
 
 
19061
# Whether we should hardcode library paths into libraries.
 
19062
hardcode_into_libs=$hardcode_into_libs
 
19063
 
 
19064
# Flag to hardcode \$libdir into a binary during linking.
 
19065
# This must work even if \$libdir does not exist.
 
19066
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19067
 
 
19068
# If ld is used when linking, flag to hardcode \$libdir into
 
19069
# a binary during linking. This must work even if \$libdir does
 
19070
# not exist.
 
19071
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19072
 
 
19073
# Whether we need a single -rpath flag with a separated argument.
 
19074
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19075
 
 
19076
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19077
# resulting binary.
 
19078
hardcode_direct=$hardcode_direct_GCJ
 
19079
 
 
19080
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19081
# resulting binary.
 
19082
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19083
 
 
19084
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19085
# the resulting binary.
 
19086
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19087
 
 
19088
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19089
# and all subsequent libraries and executables linked against it.
 
19090
hardcode_automatic=$hardcode_automatic_GCJ
 
19091
 
 
19092
# Variables whose values should be saved in libtool wrapper scripts and
 
19093
# restored at relink time.
 
19094
variables_saved_for_relink="$variables_saved_for_relink"
 
19095
 
 
19096
# Whether libtool must link a program against all its dependency libraries.
 
19097
link_all_deplibs=$link_all_deplibs_GCJ
 
19098
 
 
19099
# Compile-time system search path for libraries
 
19100
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19101
 
 
19102
# Run-time system search path for libraries
 
19103
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19104
 
 
19105
# Fix the shell variable \$srcfile for the compiler.
 
19106
fix_srcfile_path=$lt_fix_srcfile_path
 
19107
 
 
19108
# Set to yes if exported symbols are required.
 
19109
always_export_symbols=$always_export_symbols_GCJ
 
19110
 
 
19111
# The commands to list exported symbols.
 
19112
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19113
 
 
19114
# The commands to extract the exported symbol list from a shared archive.
 
19115
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19116
 
 
19117
# Symbols that should not be listed in the preloaded symbols.
 
19118
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19119
 
 
19120
# Symbols that must always be exported.
 
19121
include_expsyms=$lt_include_expsyms_GCJ
 
19122
 
 
19123
# ### END LIBTOOL TAG CONFIG: $tagname
 
19124
 
 
19125
__EOF__
 
19126
 
 
19127
 
 
19128
else
 
19129
  # If there is no Makefile yet, we rely on a make rule to execute
 
19130
  # `config.status --recheck' to rerun these tests and create the
 
19131
  # libtool script then.
 
19132
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19133
  if test -f "$ltmain_in"; then
 
19134
    test -f Makefile && make "$ltmain"
 
19135
  fi
 
19136
fi
 
19137
 
 
19138
 
 
19139
ac_ext=c
 
19140
ac_cpp='$CPP $CPPFLAGS'
 
19141
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19142
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19143
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19144
 
 
19145
CC="$lt_save_CC"
 
19146
 
 
19147
        else
 
19148
          tagname=""
 
19149
        fi
 
19150
        ;;
 
19151
 
 
19152
      RC)
 
19153
 
 
19154
 
 
19155
# Source file extension for RC test sources.
 
19156
ac_ext=rc
 
19157
 
 
19158
# Object file extension for compiled RC test sources.
 
19159
objext=o
 
19160
objext_RC=$objext
 
19161
 
 
19162
# Code to be used in simple compile tests
 
19163
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19164
 
 
19165
# Code to be used in simple link tests
 
19166
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19167
 
 
19168
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19169
 
 
19170
# If no C compiler was specified, use CC.
 
19171
LTCC=${LTCC-"$CC"}
 
19172
 
 
19173
# If no C compiler flags were specified, use CFLAGS.
 
19174
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19175
 
 
19176
# Allow CC to be a program name with arguments.
 
19177
compiler=$CC
 
19178
 
 
19179
 
 
19180
# save warnings/boilerplate of simple test code
 
19181
ac_outfile=conftest.$ac_objext
 
19182
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19183
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19184
_lt_compiler_boilerplate=`cat conftest.err`
 
19185
$rm conftest*
 
19186
 
 
19187
ac_outfile=conftest.$ac_objext
 
19188
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19189
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19190
_lt_linker_boilerplate=`cat conftest.err`
 
19191
$rm -r conftest*
 
19192
 
 
19193
 
 
19194
# Allow CC to be a program name with arguments.
 
19195
lt_save_CC="$CC"
 
19196
CC=${RC-"windres"}
 
19197
compiler=$CC
 
19198
compiler_RC=$CC
 
19199
for cc_temp in $compiler""; do
 
19200
  case $cc_temp in
 
19201
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19202
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19203
    \-*) ;;
 
19204
    *) break;;
 
19205
  esac
 
19206
done
 
19207
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19208
 
 
19209
lt_cv_prog_compiler_c_o_RC=yes
 
19210
 
 
19211
# The else clause should only fire when bootstrapping the
 
19212
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19213
# with your package, and you will get complaints that there are
 
19214
# no rules to generate ltmain.sh.
 
19215
if test -f "$ltmain"; then
 
19216
  # See if we are running on zsh, and set the options which allow our commands through
 
19217
  # without removal of \ escapes.
 
19218
  if test -n "${ZSH_VERSION+set}" ; then
 
19219
    setopt NO_GLOB_SUBST
 
19220
  fi
 
19221
  # Now quote all the things that may contain metacharacters while being
 
19222
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19223
  # variables and quote the copies for generation of the libtool script.
 
19224
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19225
    SED SHELL STRIP \
 
19226
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19227
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19228
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19229
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19230
    lt_cv_sys_global_symbol_to_c_name_address \
 
19231
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19232
    old_postinstall_cmds old_postuninstall_cmds \
 
19233
    compiler_RC \
 
19234
    CC_RC \
 
19235
    LD_RC \
 
19236
    lt_prog_compiler_wl_RC \
 
19237
    lt_prog_compiler_pic_RC \
 
19238
    lt_prog_compiler_static_RC \
 
19239
    lt_prog_compiler_no_builtin_flag_RC \
 
19240
    export_dynamic_flag_spec_RC \
 
19241
    thread_safe_flag_spec_RC \
 
19242
    whole_archive_flag_spec_RC \
 
19243
    enable_shared_with_static_runtimes_RC \
 
19244
    old_archive_cmds_RC \
 
19245
    old_archive_from_new_cmds_RC \
 
19246
    predep_objects_RC \
 
19247
    postdep_objects_RC \
 
19248
    predeps_RC \
 
19249
    postdeps_RC \
 
19250
    compiler_lib_search_path_RC \
 
19251
    compiler_lib_search_dirs_RC \
 
19252
    archive_cmds_RC \
 
19253
    archive_expsym_cmds_RC \
 
19254
    postinstall_cmds_RC \
 
19255
    postuninstall_cmds_RC \
 
19256
    old_archive_from_expsyms_cmds_RC \
 
19257
    allow_undefined_flag_RC \
 
19258
    no_undefined_flag_RC \
 
19259
    export_symbols_cmds_RC \
 
19260
    hardcode_libdir_flag_spec_RC \
 
19261
    hardcode_libdir_flag_spec_ld_RC \
 
19262
    hardcode_libdir_separator_RC \
 
19263
    hardcode_automatic_RC \
 
19264
    module_cmds_RC \
 
19265
    module_expsym_cmds_RC \
 
19266
    lt_cv_prog_compiler_c_o_RC \
 
19267
    fix_srcfile_path_RC \
 
19268
    exclude_expsyms_RC \
 
19269
    include_expsyms_RC; do
 
19270
 
 
19271
    case $var in
 
19272
    old_archive_cmds_RC | \
 
19273
    old_archive_from_new_cmds_RC | \
 
19274
    archive_cmds_RC | \
 
19275
    archive_expsym_cmds_RC | \
 
19276
    module_cmds_RC | \
 
19277
    module_expsym_cmds_RC | \
 
19278
    old_archive_from_expsyms_cmds_RC | \
 
19279
    export_symbols_cmds_RC | \
 
19280
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19281
    postinstall_cmds | postuninstall_cmds | \
 
19282
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19283
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19284
      # Double-quote double-evaled strings.
 
19285
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19286
      ;;
 
19287
    *)
 
19288
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19289
      ;;
 
19290
    esac
 
19291
  done
 
19292
 
 
19293
  case $lt_echo in
 
19294
  *'\$0 --fallback-echo"')
 
19295
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19296
    ;;
 
19297
  esac
 
19298
 
 
19299
cfgfile="$ofile"
 
19300
 
 
19301
  cat <<__EOF__ >> "$cfgfile"
 
19302
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19303
 
 
19304
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19305
 
 
19306
# Shell to use when invoking shell scripts.
 
19307
SHELL=$lt_SHELL
 
19308
 
 
19309
# Whether or not to build shared libraries.
 
19310
build_libtool_libs=$enable_shared
 
19311
 
 
19312
# Whether or not to build static libraries.
 
19313
build_old_libs=$enable_static
 
19314
 
 
19315
# Whether or not to add -lc for building shared libraries.
 
19316
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19317
 
 
19318
# Whether or not to disallow shared libs when runtime libs are static
 
19319
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19320
 
 
19321
# Whether or not to optimize for fast installation.
 
19322
fast_install=$enable_fast_install
 
19323
 
 
19324
# The host system.
 
19325
host_alias=$host_alias
 
19326
host=$host
 
19327
host_os=$host_os
 
19328
 
 
19329
# The build system.
 
19330
build_alias=$build_alias
 
19331
build=$build
 
19332
build_os=$build_os
 
19333
 
 
19334
# An echo program that does not interpret backslashes.
 
19335
echo=$lt_echo
 
19336
 
 
19337
# The archiver.
 
19338
AR=$lt_AR
 
19339
AR_FLAGS=$lt_AR_FLAGS
 
19340
 
 
19341
# A C compiler.
 
19342
LTCC=$lt_LTCC
 
19343
 
 
19344
# LTCC compiler flags.
 
19345
LTCFLAGS=$lt_LTCFLAGS
 
19346
 
 
19347
# A language-specific compiler.
 
19348
CC=$lt_compiler_RC
 
19349
 
 
19350
# Is the compiler the GNU C compiler?
 
19351
with_gcc=$GCC_RC
 
19352
 
 
19353
# An ERE matcher.
 
19354
EGREP=$lt_EGREP
 
19355
 
 
19356
# The linker used to build libraries.
 
19357
LD=$lt_LD_RC
 
19358
 
 
19359
# Whether we need hard or soft links.
 
19360
LN_S=$lt_LN_S
 
19361
 
 
19362
# A BSD-compatible nm program.
 
19363
NM=$lt_NM
 
19364
 
 
19365
# A symbol stripping program
 
19366
STRIP=$lt_STRIP
 
19367
 
 
19368
# Used to examine libraries when file_magic_cmd begins "file"
 
19369
MAGIC_CMD=$MAGIC_CMD
 
19370
 
 
19371
# Used on cygwin: DLL creation program.
 
19372
DLLTOOL="$DLLTOOL"
 
19373
 
 
19374
# Used on cygwin: object dumper.
 
19375
OBJDUMP="$OBJDUMP"
 
19376
 
 
19377
# Used on cygwin: assembler.
 
19378
AS="$AS"
 
19379
 
 
19380
# The name of the directory that contains temporary libtool files.
 
19381
objdir=$objdir
 
19382
 
 
19383
# How to create reloadable object files.
 
19384
reload_flag=$lt_reload_flag
 
19385
reload_cmds=$lt_reload_cmds
 
19386
 
 
19387
# How to pass a linker flag through the compiler.
 
19388
wl=$lt_lt_prog_compiler_wl_RC
 
19389
 
 
19390
# Object file suffix (normally "o").
 
19391
objext="$ac_objext"
 
19392
 
 
19393
# Old archive suffix (normally "a").
 
19394
libext="$libext"
 
19395
 
 
19396
# Shared library suffix (normally ".so").
 
19397
shrext_cmds='$shrext_cmds'
 
19398
 
 
19399
# Executable file suffix (normally "").
 
19400
exeext="$exeext"
 
19401
 
 
19402
# Additional compiler flags for building library objects.
 
19403
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19404
pic_mode=$pic_mode
 
19405
 
 
19406
# What is the maximum length of a command?
 
19407
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19408
 
 
19409
# Does compiler simultaneously support -c and -o options?
 
19410
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19411
 
 
19412
# Must we lock files when doing compilation?
 
19413
need_locks=$lt_need_locks
 
19414
 
 
19415
# Do we need the lib prefix for modules?
 
19416
need_lib_prefix=$need_lib_prefix
 
19417
 
 
19418
# Do we need a version for libraries?
 
19419
need_version=$need_version
 
19420
 
 
19421
# Whether dlopen is supported.
 
19422
dlopen_support=$enable_dlopen
 
19423
 
 
19424
# Whether dlopen of programs is supported.
 
19425
dlopen_self=$enable_dlopen_self
 
19426
 
 
19427
# Whether dlopen of statically linked programs is supported.
 
19428
dlopen_self_static=$enable_dlopen_self_static
 
19429
 
 
19430
# Compiler flag to prevent dynamic linking.
 
19431
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19432
 
 
19433
# Compiler flag to turn off builtin functions.
 
19434
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19435
 
 
19436
# Compiler flag to allow reflexive dlopens.
 
19437
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19438
 
 
19439
# Compiler flag to generate shared objects directly from archives.
 
19440
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19441
 
 
19442
# Compiler flag to generate thread-safe objects.
 
19443
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19444
 
 
19445
# Library versioning type.
 
19446
version_type=$version_type
 
19447
 
 
19448
# Format of library name prefix.
 
19449
libname_spec=$lt_libname_spec
 
19450
 
 
19451
# List of archive names.  First name is the real one, the rest are links.
 
19452
# The last name is the one that the linker finds with -lNAME.
 
19453
library_names_spec=$lt_library_names_spec
 
19454
 
 
19455
# The coded name of the library, if different from the real name.
 
19456
soname_spec=$lt_soname_spec
 
19457
 
 
19458
# Commands used to build and install an old-style archive.
 
19459
RANLIB=$lt_RANLIB
 
19460
old_archive_cmds=$lt_old_archive_cmds_RC
 
19461
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19462
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19463
 
 
19464
# Create an old-style archive from a shared archive.
 
19465
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19466
 
 
19467
# Create a temporary old-style archive to link instead of a shared archive.
 
19468
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19469
 
 
19470
# Commands used to build and install a shared archive.
 
19471
archive_cmds=$lt_archive_cmds_RC
 
19472
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19473
postinstall_cmds=$lt_postinstall_cmds
 
19474
postuninstall_cmds=$lt_postuninstall_cmds
 
19475
 
 
19476
# Commands used to build a loadable module (assumed same as above if empty)
 
19477
module_cmds=$lt_module_cmds_RC
 
19478
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19479
 
 
19480
# Commands to strip libraries.
 
19481
old_striplib=$lt_old_striplib
 
19482
striplib=$lt_striplib
 
19483
 
 
19484
# Dependencies to place before the objects being linked to create a
 
19485
# shared library.
 
19486
predep_objects=$lt_predep_objects_RC
 
19487
 
 
19488
# Dependencies to place after the objects being linked to create a
 
19489
# shared library.
 
19490
postdep_objects=$lt_postdep_objects_RC
 
19491
 
 
19492
# Dependencies to place before the objects being linked to create a
 
19493
# shared library.
 
19494
predeps=$lt_predeps_RC
 
19495
 
 
19496
# Dependencies to place after the objects being linked to create a
 
19497
# shared library.
 
19498
postdeps=$lt_postdeps_RC
 
19499
 
 
19500
# The directories searched by this compiler when creating a shared
 
19501
# library
 
19502
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19503
 
 
19504
# The library search path used internally by the compiler when linking
 
19505
# a shared library.
 
19506
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19507
 
 
19508
# Method to check whether dependent libraries are shared objects.
 
19509
deplibs_check_method=$lt_deplibs_check_method
 
19510
 
 
19511
# Command to use when deplibs_check_method == file_magic.
 
19512
file_magic_cmd=$lt_file_magic_cmd
 
19513
 
 
19514
# Flag that allows shared libraries with undefined symbols to be built.
 
19515
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19516
 
 
19517
# Flag that forces no undefined symbols.
 
19518
no_undefined_flag=$lt_no_undefined_flag_RC
 
19519
 
 
19520
# Commands used to finish a libtool library installation in a directory.
 
19521
finish_cmds=$lt_finish_cmds
 
19522
 
 
19523
# Same as above, but a single script fragment to be evaled but not shown.
 
19524
finish_eval=$lt_finish_eval
 
19525
 
 
19526
# Take the output of nm and produce a listing of raw symbols and C names.
 
19527
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19528
 
 
19529
# Transform the output of nm in a proper C declaration
 
19530
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19531
 
 
19532
# Transform the output of nm in a C name address pair
 
19533
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19534
 
 
19535
# This is the shared library runtime path variable.
 
19536
runpath_var=$runpath_var
 
19537
 
 
19538
# This is the shared library path variable.
 
19539
shlibpath_var=$shlibpath_var
 
19540
 
 
19541
# Is shlibpath searched before the hard-coded library search path?
 
19542
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19543
 
 
19544
# How to hardcode a shared library path into an executable.
 
19545
hardcode_action=$hardcode_action_RC
 
19546
 
 
19547
# Whether we should hardcode library paths into libraries.
 
19548
hardcode_into_libs=$hardcode_into_libs
 
19549
 
 
19550
# Flag to hardcode \$libdir into a binary during linking.
 
19551
# This must work even if \$libdir does not exist.
 
19552
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19553
 
 
19554
# If ld is used when linking, flag to hardcode \$libdir into
 
19555
# a binary during linking. This must work even if \$libdir does
 
19556
# not exist.
 
19557
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19558
 
 
19559
# Whether we need a single -rpath flag with a separated argument.
 
19560
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19561
 
 
19562
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19563
# resulting binary.
 
19564
hardcode_direct=$hardcode_direct_RC
 
19565
 
 
19566
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19567
# resulting binary.
 
19568
hardcode_minus_L=$hardcode_minus_L_RC
 
19569
 
 
19570
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19571
# the resulting binary.
 
19572
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19573
 
 
19574
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19575
# and all subsequent libraries and executables linked against it.
 
19576
hardcode_automatic=$hardcode_automatic_RC
 
19577
 
 
19578
# Variables whose values should be saved in libtool wrapper scripts and
 
19579
# restored at relink time.
 
19580
variables_saved_for_relink="$variables_saved_for_relink"
 
19581
 
 
19582
# Whether libtool must link a program against all its dependency libraries.
 
19583
link_all_deplibs=$link_all_deplibs_RC
 
19584
 
 
19585
# Compile-time system search path for libraries
 
19586
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19587
 
 
19588
# Run-time system search path for libraries
 
19589
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19590
 
 
19591
# Fix the shell variable \$srcfile for the compiler.
 
19592
fix_srcfile_path=$lt_fix_srcfile_path
 
19593
 
 
19594
# Set to yes if exported symbols are required.
 
19595
always_export_symbols=$always_export_symbols_RC
 
19596
 
 
19597
# The commands to list exported symbols.
 
19598
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19599
 
 
19600
# The commands to extract the exported symbol list from a shared archive.
 
19601
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19602
 
 
19603
# Symbols that should not be listed in the preloaded symbols.
 
19604
exclude_expsyms=$lt_exclude_expsyms_RC
 
19605
 
 
19606
# Symbols that must always be exported.
 
19607
include_expsyms=$lt_include_expsyms_RC
 
19608
 
 
19609
# ### END LIBTOOL TAG CONFIG: $tagname
 
19610
 
 
19611
__EOF__
 
19612
 
 
19613
 
 
19614
else
 
19615
  # If there is no Makefile yet, we rely on a make rule to execute
 
19616
  # `config.status --recheck' to rerun these tests and create the
 
19617
  # libtool script then.
 
19618
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19619
  if test -f "$ltmain_in"; then
 
19620
    test -f Makefile && make "$ltmain"
 
19621
  fi
 
19622
fi
 
19623
 
 
19624
 
 
19625
ac_ext=c
 
19626
ac_cpp='$CPP $CPPFLAGS'
 
19627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19630
 
 
19631
CC="$lt_save_CC"
 
19632
 
 
19633
        ;;
 
19634
 
 
19635
      *)
 
19636
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19637
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19638
   { (exit 1); exit 1; }; }
 
19639
        ;;
 
19640
      esac
 
19641
 
 
19642
      # Append the new tag name to the list of available tags.
 
19643
      if test -n "$tagname" ; then
 
19644
      available_tags="$available_tags $tagname"
 
19645
    fi
 
19646
    fi
 
19647
  done
 
19648
  IFS="$lt_save_ifs"
 
19649
 
 
19650
  # Now substitute the updated list of available tags.
 
19651
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19652
    mv "${ofile}T" "$ofile"
 
19653
    chmod +x "$ofile"
 
19654
  else
 
19655
    rm -f "${ofile}T"
 
19656
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19657
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19658
   { (exit 1); exit 1; }; }
 
19659
  fi
 
19660
fi
 
19661
 
 
19662
 
 
19663
 
 
19664
# This can be used to rebuild libtool when needed
 
19665
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19666
 
 
19667
# Always use our own libtool.
 
19668
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19669
 
 
19670
# Prevent multiple expansion
 
19671
 
 
19672
 
 
19673
 
 
19674
 
 
19675
 
 
19676
 
 
19677
 
 
19678
 
 
19679
 
 
19680
 
 
19681
 
 
19682
 
 
19683
 
 
19684
 
 
19685
 
 
19686
 
 
19687
 
 
19688
 
 
19689
 
 
19690
 
 
19691
 
 
19692
extrasub="$extrasub"'
 
19693
/@subdir@/{
 
19694
h
 
19695
g
 
19696
s/@subdir@/vacall_r/
 
19697
p
 
19698
g
 
19699
s/@subdir@/trampoline_r/
 
19700
p
 
19701
d
 
19702
}
 
19703
'
 
19704
 
 
19705
 
 
19706
 
 
19707
subdirs="$subdirs vacall_r trampoline_r"
 
19708
 
 
19709
cat >confcache <<\_ACEOF
 
19710
# This file is a shell script that caches the results of configure
 
19711
# tests run on this system so they can be shared between configure
 
19712
# scripts and configure runs, see configure's option --config-cache.
 
19713
# It is not useful on other systems.  If it contains results you don't
 
19714
# want to keep, you may remove or edit it.
 
19715
#
 
19716
# config.status only pays attention to the cache file if you give it
 
19717
# the --recheck option to rerun configure.
 
19718
#
 
19719
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
19720
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
19721
# following values.
 
19722
 
 
19723
_ACEOF
 
19724
 
 
19725
# The following way of writing the cache mishandles newlines in values,
 
19726
# but we know of no workaround that is simple, portable, and efficient.
 
19727
# So, we kill variables containing newlines.
 
19728
# Ultrix sh set writes to stderr and can't be redirected directly,
 
19729
# and sets the high bit in the cache file unless we assign to the vars.
 
19730
(
 
19731
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
19732
    eval ac_val=\$$ac_var
 
19733
    case $ac_val in #(
 
19734
    *${as_nl}*)
 
19735
      case $ac_var in #(
 
19736
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
19737
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
19738
      esac
 
19739
      case $ac_var in #(
 
19740
      _ | IFS | as_nl) ;; #(
 
19741
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
19742
      *) $as_unset $ac_var ;;
 
19743
      esac ;;
 
19744
    esac
 
19745
  done
 
19746
 
 
19747
  (set) 2>&1 |
 
19748
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
19749
    *${as_nl}ac_space=\ *)
 
19750
      # `set' does not quote correctly, so add quotes (double-quote
 
19751
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
19752
      sed -n \
 
19753
        "s/'/'\\\\''/g;
 
19754
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
19755
      ;; #(
 
19756
    *)
 
19757
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
19758
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
19759
      ;;
 
19760
    esac |
 
19761
    sort
 
19762
) |
 
19763
  sed '
 
19764
     /^ac_cv_env_/b end
 
19765
     t clear
 
19766
     :clear
 
19767
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
19768
     t end
 
19769
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
19770
     :end' >>confcache
 
19771
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
19772
  if test -w "$cache_file"; then
 
19773
    test "x$cache_file" != "x/dev/null" &&
 
19774
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
19775
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
19776
    cat confcache >$cache_file
 
19777
  else
 
19778
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
19779
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
19780
  fi
 
19781
fi
 
19782
rm -f confcache
 
19783
 
 
19784
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
19785
# Let make expand exec_prefix.
 
19786
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
19787
 
 
19788
DEFS=-DHAVE_CONFIG_H
 
19789
 
 
19790
ac_libobjs=
 
19791
ac_ltlibobjs=
 
19792
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
19793
  # 1. Remove the extension, and $U if already installed.
 
19794
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
19795
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
19796
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
19797
  #    will be set to the directory where LIBOBJS objects are built.
 
19798
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
19799
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
19800
done
 
19801
LIBOBJS=$ac_libobjs
 
19802
 
 
19803
LTLIBOBJS=$ac_ltlibobjs
 
19804
 
 
19805
 
 
19806
 
 
19807
: ${CONFIG_STATUS=./config.status}
 
19808
ac_write_fail=0
 
19809
ac_clean_files_save=$ac_clean_files
 
19810
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
19811
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
19812
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
19813
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19814
#! $SHELL
 
19815
# Generated by $as_me.
 
19816
# Run this file to recreate the current configuration.
 
19817
# Compiler output produced by configure, useful for debugging
 
19818
# configure, is in config.log if it exists.
 
19819
 
 
19820
debug=false
 
19821
ac_cs_recheck=false
 
19822
ac_cs_silent=false
 
19823
SHELL=\${CONFIG_SHELL-$SHELL}
 
19824
_ACEOF
 
19825
 
 
19826
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19827
## --------------------- ##
 
19828
## M4sh Initialization.  ##
 
19829
## --------------------- ##
 
19830
 
 
19831
# Be more Bourne compatible
 
19832
DUALCASE=1; export DUALCASE # for MKS sh
 
19833
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19834
  emulate sh
 
19835
  NULLCMD=:
 
19836
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
19837
  # is contrary to our usage.  Disable this feature.
 
19838
  alias -g '${1+"$@"}'='"$@"'
 
19839
  setopt NO_GLOB_SUBST
 
19840
else
 
19841
  case `(set -o) 2>/dev/null` in
 
19842
  *posix*) set -o posix ;;
 
19843
esac
 
19844
 
 
19845
fi
 
19846
 
 
19847
 
 
19848
 
 
19849
 
 
19850
# PATH needs CR
 
19851
# Avoid depending upon Character Ranges.
 
19852
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
19853
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
19854
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
19855
as_cr_digits='0123456789'
 
19856
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
19857
 
 
19858
as_nl='
 
19859
'
 
19860
export as_nl
 
19861
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
19862
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
19863
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
19864
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
19865
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
19866
  as_echo='printf %s\n'
 
19867
  as_echo_n='printf %s'
 
19868
else
 
19869
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
19870
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
19871
    as_echo_n='/usr/ucb/echo -n'
 
19872
  else
 
19873
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
19874
    as_echo_n_body='eval
 
19875
      arg=$1;
 
19876
      case $arg in
 
19877
      *"$as_nl"*)
 
19878
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
19879
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
19880
      esac;
 
19881
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
19882
    '
 
19883
    export as_echo_n_body
 
19884
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
19885
  fi
 
19886
  export as_echo_body
 
19887
  as_echo='sh -c $as_echo_body as_echo'
 
19888
fi
 
19889
 
 
19890
# The user is always right.
 
19891
if test "${PATH_SEPARATOR+set}" != set; then
 
19892
  PATH_SEPARATOR=:
 
19893
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
19894
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
19895
      PATH_SEPARATOR=';'
 
19896
  }
 
19897
fi
 
19898
 
 
19899
# Support unset when possible.
 
19900
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
19901
  as_unset=unset
 
19902
else
 
19903
  as_unset=false
 
19904
fi
 
19905
 
 
19906
 
 
19907
# IFS
 
19908
# We need space, tab and new line, in precisely that order.  Quoting is
 
19909
# there to prevent editors from complaining about space-tab.
 
19910
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
19911
# splitting by setting IFS to empty value.)
 
19912
IFS=" ""        $as_nl"
 
19913
 
 
19914
# Find who we are.  Look in the path if we contain no directory separator.
 
19915
case $0 in
 
19916
  *[\\/]* ) as_myself=$0 ;;
 
19917
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19918
for as_dir in $PATH
 
19919
do
 
19920
  IFS=$as_save_IFS
 
19921
  test -z "$as_dir" && as_dir=.
 
19922
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
19923
done
 
19924
IFS=$as_save_IFS
 
19925
 
 
19926
     ;;
 
19927
esac
 
19928
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
19929
# in which case we are not to be found in the path.
 
19930
if test "x$as_myself" = x; then
 
19931
  as_myself=$0
 
19932
fi
 
19933
if test ! -f "$as_myself"; then
 
19934
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
19935
  { (exit 1); exit 1; }
 
19936
fi
 
19937
 
 
19938
# Work around bugs in pre-3.0 UWIN ksh.
 
19939
for as_var in ENV MAIL MAILPATH
 
19940
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
19941
done
 
19942
PS1='$ '
 
19943
PS2='> '
 
19944
PS4='+ '
 
19945
 
 
19946
# NLS nuisances.
 
19947
LC_ALL=C
 
19948
export LC_ALL
 
19949
LANGUAGE=C
 
19950
export LANGUAGE
 
19951
 
 
19952
# Required to use basename.
 
19953
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
19954
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
19955
  as_expr=expr
 
19956
else
 
19957
  as_expr=false
 
19958
fi
 
19959
 
 
19960
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
19961
  as_basename=basename
 
19962
else
 
19963
  as_basename=false
 
19964
fi
 
19965
 
 
19966
 
 
19967
# Name of the executable.
 
19968
as_me=`$as_basename -- "$0" ||
 
19969
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19970
         X"$0" : 'X\(//\)$' \| \
 
19971
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
19972
$as_echo X/"$0" |
 
19973
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
19974
            s//\1/
 
19975
            q
 
19976
          }
 
19977
          /^X\/\(\/\/\)$/{
 
19978
            s//\1/
 
19979
            q
 
19980
          }
 
19981
          /^X\/\(\/\).*/{
 
19982
            s//\1/
 
19983
            q
 
19984
          }
 
19985
          s/.*/./; q'`
 
19986
 
 
19987
# CDPATH.
 
19988
$as_unset CDPATH
 
19989
 
 
19990
 
 
19991
 
 
19992
  as_lineno_1=$LINENO
 
19993
  as_lineno_2=$LINENO
 
19994
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
19995
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
19996
 
 
19997
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
19998
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
19999
  # line-number line after each line using $LINENO; the second 'sed'
 
20000
  # does the real work.  The second script uses 'N' to pair each
 
20001
  # line-number line with the line containing $LINENO, and appends
 
20002
  # trailing '-' during substitution so that $LINENO is not a special
 
20003
  # case at line end.
 
20004
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20005
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
20006
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
20007
  sed -n '
 
20008
    p
 
20009
    /[$]LINENO/=
 
20010
  ' <$as_myself |
 
20011
    sed '
 
20012
      s/[$]LINENO.*/&-/
 
20013
      t lineno
 
20014
      b
 
20015
      :lineno
 
20016
      N
 
20017
      :loop
 
20018
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
20019
      t loop
 
20020
      s/-\n.*//
 
20021
    ' >$as_me.lineno &&
 
20022
  chmod +x "$as_me.lineno" ||
 
20023
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
20024
   { (exit 1); exit 1; }; }
 
20025
 
 
20026
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20027
  # (the dirname of $[0] is not the place where we might find the
 
20028
  # original and so on.  Autoconf is especially sensitive to this).
 
20029
  . "./$as_me.lineno"
 
20030
  # Exit status is that of the last command.
 
20031
  exit
 
20032
}
 
20033
 
 
20034
 
 
20035
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
20036
  as_dirname=dirname
 
20037
else
 
20038
  as_dirname=false
 
20039
fi
 
20040
 
 
20041
ECHO_C= ECHO_N= ECHO_T=
 
20042
case `echo -n x` in
 
20043
-n*)
 
20044
  case `echo 'x\c'` in
 
20045
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
20046
  *)   ECHO_C='\c';;
 
20047
  esac;;
 
20048
*)
 
20049
  ECHO_N='-n';;
 
20050
esac
 
20051
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
20052
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
20053
  as_expr=expr
 
20054
else
 
20055
  as_expr=false
 
20056
fi
 
20057
 
 
20058
rm -f conf$$ conf$$.exe conf$$.file
 
20059
if test -d conf$$.dir; then
 
20060
  rm -f conf$$.dir/conf$$.file
 
20061
else
 
20062
  rm -f conf$$.dir
 
20063
  mkdir conf$$.dir 2>/dev/null
 
20064
fi
 
20065
if (echo >conf$$.file) 2>/dev/null; then
 
20066
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20067
    as_ln_s='ln -s'
 
20068
    # ... but there are two gotchas:
 
20069
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
20070
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
20071
    # In both cases, we have to default to `cp -p'.
 
20072
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
20073
      as_ln_s='cp -p'
 
20074
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
20075
    as_ln_s=ln
 
20076
  else
 
20077
    as_ln_s='cp -p'
 
20078
  fi
 
20079
else
 
20080
  as_ln_s='cp -p'
 
20081
fi
 
20082
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
20083
rmdir conf$$.dir 2>/dev/null
 
20084
 
 
20085
if mkdir -p . 2>/dev/null; then
 
20086
  as_mkdir_p=:
 
20087
else
 
20088
  test -d ./-p && rmdir ./-p
 
20089
  as_mkdir_p=false
 
20090
fi
 
20091
 
 
20092
if test -x / >/dev/null 2>&1; then
 
20093
  as_test_x='test -x'
 
20094
else
 
20095
  if ls -dL / >/dev/null 2>&1; then
 
20096
    as_ls_L_option=L
 
20097
  else
 
20098
    as_ls_L_option=
 
20099
  fi
 
20100
  as_test_x='
 
20101
    eval sh -c '\''
 
20102
      if test -d "$1"; then
 
20103
        test -d "$1/.";
 
20104
      else
 
20105
        case $1 in
 
20106
        -*)set "./$1";;
 
20107
        esac;
 
20108
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
20109
        ???[sx]*):;;*)false;;esac;fi
 
20110
    '\'' sh
 
20111
  '
 
20112
fi
 
20113
as_executable_p=$as_test_x
 
20114
 
 
20115
# Sed expression to map a string onto a valid CPP name.
 
20116
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20117
 
 
20118
# Sed expression to map a string onto a valid variable name.
 
20119
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20120
 
 
20121
 
 
20122
exec 6>&1
 
20123
 
 
20124
# Save the log message, to keep $[0] and so on meaningful, and to
 
20125
# report actual input values of CONFIG_FILES etc. instead of their
 
20126
# values after options handling.
 
20127
ac_log="
 
20128
This file was extended by libffcall/callback $as_me 0x010B, which was
 
20129
generated by GNU Autoconf 2.63.  Invocation command line was
 
20130
 
 
20131
  CONFIG_FILES    = $CONFIG_FILES
 
20132
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20133
  CONFIG_LINKS    = $CONFIG_LINKS
 
20134
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20135
  $ $0 $@
 
20136
 
 
20137
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
20138
"
 
20139
 
 
20140
_ACEOF
 
20141
 
 
20142
case $ac_config_files in *"
 
20143
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
20144
esac
 
20145
 
 
20146
case $ac_config_headers in *"
 
20147
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
20148
esac
 
20149
 
 
20150
 
 
20151
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20152
# Files that config.status was made for.
 
20153
config_files="$ac_config_files"
 
20154
config_headers="$ac_config_headers"
 
20155
 
 
20156
_ACEOF
 
20157
 
 
20158
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20159
ac_cs_usage="\
 
20160
\`$as_me' instantiates files from templates according to the
 
20161
current configuration.
 
20162
 
 
20163
Usage: $0 [OPTION]... [FILE]...
 
20164
 
 
20165
  -h, --help       print this help, then exit
 
20166
  -V, --version    print version number and configuration settings, then exit
 
20167
  -q, --quiet, --silent
 
20168
                   do not print progress messages
 
20169
  -d, --debug      don't remove temporary files
 
20170
      --recheck    update $as_me by reconfiguring in the same conditions
 
20171
      --file=FILE[:TEMPLATE]
 
20172
                   instantiate the configuration file FILE
 
20173
      --header=FILE[:TEMPLATE]
 
20174
                   instantiate the configuration header FILE
 
20175
 
 
20176
Configuration files:
 
20177
$config_files
 
20178
 
 
20179
Configuration headers:
 
20180
$config_headers
 
20181
 
 
20182
Report bugs to <bug-autoconf@gnu.org>."
 
20183
 
 
20184
_ACEOF
 
20185
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20186
ac_cs_version="\\
 
20187
libffcall/callback config.status 0x010B
 
20188
configured by $0, generated by GNU Autoconf 2.63,
 
20189
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
20190
 
 
20191
Copyright (C) 2008 Free Software Foundation, Inc.
 
20192
This config.status script is free software; the Free Software Foundation
 
20193
gives unlimited permission to copy, distribute and modify it."
 
20194
 
 
20195
ac_pwd='$ac_pwd'
 
20196
srcdir='$srcdir'
 
20197
INSTALL='$INSTALL'
 
20198
test -n "\$AWK" || AWK=awk
 
20199
_ACEOF
 
20200
 
 
20201
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20202
# The default lists apply if the user does not specify any file.
 
20203
ac_need_defaults=:
 
20204
while test $# != 0
 
20205
do
 
20206
  case $1 in
 
20207
  --*=*)
 
20208
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
20209
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
20210
    ac_shift=:
 
20211
    ;;
 
20212
  *)
 
20213
    ac_option=$1
 
20214
    ac_optarg=$2
 
20215
    ac_shift=shift
 
20216
    ;;
 
20217
  esac
 
20218
 
 
20219
  case $ac_option in
 
20220
  # Handling of the options.
 
20221
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
20222
    ac_cs_recheck=: ;;
 
20223
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
20224
    $as_echo "$ac_cs_version"; exit ;;
 
20225
  --debug | --debu | --deb | --de | --d | -d )
 
20226
    debug=: ;;
 
20227
  --file | --fil | --fi | --f )
 
20228
    $ac_shift
 
20229
    case $ac_optarg in
 
20230
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
20231
    esac
 
20232
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
20233
    ac_need_defaults=false;;
 
20234
  --header | --heade | --head | --hea )
 
20235
    $ac_shift
 
20236
    case $ac_optarg in
 
20237
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
20238
    esac
 
20239
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
20240
    ac_need_defaults=false;;
 
20241
  --he | --h)
 
20242
    # Conflict between --help and --header
 
20243
    { $as_echo "$as_me: error: ambiguous option: $1
 
20244
Try \`$0 --help' for more information." >&2
 
20245
   { (exit 1); exit 1; }; };;
 
20246
  --help | --hel | -h )
 
20247
    $as_echo "$ac_cs_usage"; exit ;;
 
20248
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
20249
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
20250
    ac_cs_silent=: ;;
 
20251
 
 
20252
  # This is an error.
 
20253
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
20254
Try \`$0 --help' for more information." >&2
 
20255
   { (exit 1); exit 1; }; } ;;
 
20256
 
 
20257
  *) ac_config_targets="$ac_config_targets $1"
 
20258
     ac_need_defaults=false ;;
 
20259
 
 
20260
  esac
 
20261
  shift
 
20262
done
 
20263
 
 
20264
ac_configure_extra_args=
 
20265
 
 
20266
if $ac_cs_silent; then
 
20267
  exec 6>/dev/null
 
20268
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
20269
fi
 
20270
 
 
20271
_ACEOF
 
20272
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20273
if \$ac_cs_recheck; then
 
20274
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
20275
  shift
 
20276
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
20277
  CONFIG_SHELL='$SHELL'
 
20278
  export CONFIG_SHELL
 
20279
  exec "\$@"
 
20280
fi
 
20281
 
 
20282
_ACEOF
 
20283
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20284
exec 5>>config.log
 
20285
{
 
20286
  echo
 
20287
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20288
## Running $as_me. ##
 
20289
_ASBOX
 
20290
  $as_echo "$ac_log"
 
20291
} >&5
 
20292
 
 
20293
_ACEOF
 
20294
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20295
#
 
20296
# INIT-COMMANDS
 
20297
#
 
20298
LIBFFCALL_VERSION=$PACKAGE_VERSION
 
20299
 
 
20300
_ACEOF
 
20301
 
 
20302
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20303
 
 
20304
# Handling of arguments.
 
20305
for ac_config_target in $ac_config_targets
 
20306
do
 
20307
  case $ac_config_target in
 
20308
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
20309
    "callback.h") CONFIG_HEADERS="$CONFIG_HEADERS callback.h" ;;
 
20310
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
20311
 
 
20312
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
20313
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
20314
   { (exit 1); exit 1; }; };;
 
20315
  esac
 
20316
done
 
20317
 
 
20318
 
 
20319
# If the user did not use the arguments to specify the items to instantiate,
 
20320
# then the envvar interface is used.  Set only those that are not.
 
20321
# We use the long form for the default assignment because of an extremely
 
20322
# bizarre bug on SunOS 4.1.3.
 
20323
if $ac_need_defaults; then
 
20324
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
20325
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
20326
fi
 
20327
 
 
20328
# Have a temporary directory for convenience.  Make it in the build tree
 
20329
# simply because there is no reason against having it here, and in addition,
 
20330
# creating and moving files from /tmp can sometimes cause problems.
 
20331
# Hook for its removal unless debugging.
 
20332
# Note that there is a small window in which the directory will not be cleaned:
 
20333
# after its creation but before its name has been assigned to `$tmp'.
 
20334
$debug ||
 
20335
{
 
20336
  tmp=
 
20337
  trap 'exit_status=$?
 
20338
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
20339
' 0
 
20340
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
20341
}
 
20342
# Create a (secure) tmp directory for tmp files.
 
20343
 
 
20344
{
 
20345
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
20346
  test -n "$tmp" && test -d "$tmp"
 
20347
}  ||
 
20348
{
 
20349
  tmp=./conf$$-$RANDOM
 
20350
  (umask 077 && mkdir "$tmp")
 
20351
} ||
 
20352
{
 
20353
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
20354
   { (exit 1); exit 1; }
 
20355
}
 
20356
 
 
20357
# Set up the scripts for CONFIG_FILES section.
 
20358
# No need to generate them if there are no CONFIG_FILES.
 
20359
# This happens for instance with `./config.status config.h'.
 
20360
if test -n "$CONFIG_FILES"; then
 
20361
 
 
20362
 
 
20363
ac_cr='
 
 
b"'"
 
20364
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
20365
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
20366
  ac_cs_awk_cr='\\r'
 
20367
else
 
20368
  ac_cs_awk_cr=$ac_cr
 
20369
fi
 
20370
 
 
20371
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
20372
_ACEOF
 
20373
 
 
20374
 
 
20375
{
 
20376
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
20377
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
20378
  echo "_ACEOF"
 
20379
} >conf$$subs.sh ||
 
20380
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
20381
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
20382
   { (exit 1); exit 1; }; }
 
20383
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
20384
ac_delim='%!_!# '
 
20385
for ac_last_try in false false false false false :; do
 
20386
  . ./conf$$subs.sh ||
 
20387
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
20388
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
20389
   { (exit 1); exit 1; }; }
 
20390
 
 
20391
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
20392
  if test $ac_delim_n = $ac_delim_num; then
 
20393
    break
 
20394
  elif $ac_last_try; then
 
20395
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
20396
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
20397
   { (exit 1); exit 1; }; }
 
20398
  else
 
20399
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20400
  fi
 
20401
done
 
20402
rm -f conf$$subs.sh
 
20403
 
 
20404
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20405
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
20406
_ACEOF
 
20407
sed -n '
 
20408
h
 
20409
s/^/S["/; s/!.*/"]=/
 
20410
p
 
20411
g
 
20412
s/^[^!]*!//
 
20413
:repl
 
20414
t repl
 
20415
s/'"$ac_delim"'$//
 
20416
t delim
 
20417
:nl
 
20418
h
 
20419
s/\(.\{148\}\).*/\1/
 
20420
t more1
 
20421
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
20422
p
 
20423
n
 
20424
b repl
 
20425
:more1
 
20426
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
20427
p
 
20428
g
 
20429
s/.\{148\}//
 
20430
t nl
 
20431
:delim
 
20432
h
 
20433
s/\(.\{148\}\).*/\1/
 
20434
t more2
 
20435
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
20436
p
 
20437
b
 
20438
:more2
 
20439
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
20440
p
 
20441
g
 
20442
s/.\{148\}//
 
20443
t delim
 
20444
' <conf$$subs.awk | sed '
 
20445
/^[^""]/{
 
20446
  N
 
20447
  s/\n//
 
20448
}
 
20449
' >>$CONFIG_STATUS || ac_write_fail=1
 
20450
rm -f conf$$subs.awk
 
20451
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20452
_ACAWK
 
20453
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
20454
  for (key in S) S_is_set[key] = 1
 
20455
  FS = ""
 
20456
 
 
20457
}
 
20458
{
 
20459
  line = $ 0
 
20460
  nfields = split(line, field, "@")
 
20461
  substed = 0
 
20462
  len = length(field[1])
 
20463
  for (i = 2; i < nfields; i++) {
 
20464
    key = field[i]
 
20465
    keylen = length(key)
 
20466
    if (S_is_set[key]) {
 
20467
      value = S[key]
 
20468
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
20469
      len += length(value) + length(field[++i])
 
20470
      substed = 1
 
20471
    } else
 
20472
      len += 1 + keylen
 
20473
  }
 
20474
 
 
20475
  print line
 
20476
}
 
20477
 
 
20478
_ACAWK
 
20479
_ACEOF
 
20480
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20481
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
20482
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
20483
else
 
20484
  cat
 
20485
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
20486
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
20487
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
20488
   { (exit 1); exit 1; }; }
 
20489
_ACEOF
 
20490
 
 
20491
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
20492
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
20493
# trailing colons and then remove the whole line if VPATH becomes empty
 
20494
# (actually we leave an empty line to preserve line numbers).
 
20495
if test "x$srcdir" = x.; then
 
20496
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
20497
s/:*\$(srcdir):*/:/
 
20498
s/:*\${srcdir}:*/:/
 
20499
s/:*@srcdir@:*/:/
 
20500
s/^\([^=]*=[     ]*\):*/\1/
 
20501
s/:*$//
 
20502
s/^[^=]*=[       ]*$//
 
20503
}'
 
20504
fi
 
20505
 
 
20506
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20507
fi # test -n "$CONFIG_FILES"
 
20508
 
 
20509
# Set up the scripts for CONFIG_HEADERS section.
 
20510
# No need to generate them if there are no CONFIG_HEADERS.
 
20511
# This happens for instance with `./config.status Makefile'.
 
20512
if test -n "$CONFIG_HEADERS"; then
 
20513
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
20514
BEGIN {
 
20515
_ACEOF
 
20516
 
 
20517
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
20518
# here-document in config.status, that substitutes the proper values into
 
20519
# config.h.in to produce config.h.
 
20520
 
 
20521
# Create a delimiter string that does not exist in confdefs.h, to ease
 
20522
# handling of long lines.
 
20523
ac_delim='%!_!# '
 
20524
for ac_last_try in false false :; do
 
20525
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
20526
  if test -z "$ac_t"; then
 
20527
    break
 
20528
  elif $ac_last_try; then
 
20529
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
20530
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
20531
   { (exit 1); exit 1; }; }
 
20532
  else
 
20533
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20534
  fi
 
20535
done
 
20536
 
 
20537
# For the awk script, D is an array of macro values keyed by name,
 
20538
# likewise P contains macro parameters if any.  Preserve backslash
 
20539
# newline sequences.
 
20540
 
 
20541
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
20542
sed -n '
 
20543
s/.\{148\}/&'"$ac_delim"'/g
 
20544
t rset
 
20545
:rset
 
20546
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
20547
t def
 
20548
d
 
20549
:def
 
20550
s/\\$//
 
20551
t bsnl
 
20552
s/["\\]/\\&/g
 
20553
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
20554
D["\1"]=" \3"/p
 
20555
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
20556
d
 
20557
:bsnl
 
20558
s/["\\]/\\&/g
 
20559
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
20560
D["\1"]=" \3\\\\\\n"\\/p
 
20561
t cont
 
20562
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
20563
t cont
 
20564
d
 
20565
:cont
 
20566
n
 
20567
s/.\{148\}/&'"$ac_delim"'/g
 
20568
t clear
 
20569
:clear
 
20570
s/\\$//
 
20571
t bsnlc
 
20572
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
20573
d
 
20574
:bsnlc
 
20575
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
20576
b cont
 
20577
' <confdefs.h | sed '
 
20578
s/'"$ac_delim"'/"\\\
 
20579
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
20580
 
 
20581
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20582
  for (key in D) D_is_set[key] = 1
 
20583
  FS = ""
 
20584
}
 
20585
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
20586
  line = \$ 0
 
20587
  split(line, arg, " ")
 
20588
  if (arg[1] == "#") {
 
20589
    defundef = arg[2]
 
20590
    mac1 = arg[3]
 
20591
  } else {
 
20592
    defundef = substr(arg[1], 2)
 
20593
    mac1 = arg[2]
 
20594
  }
 
20595
  split(mac1, mac2, "(") #)
 
20596
  macro = mac2[1]
 
20597
  prefix = substr(line, 1, index(line, defundef) - 1)
 
20598
  if (D_is_set[macro]) {
 
20599
    # Preserve the white space surrounding the "#".
 
20600
    print prefix "define", macro P[macro] D[macro]
 
20601
    next
 
20602
  } else {
 
20603
    # Replace #undef with comments.  This is necessary, for example,
 
20604
    # in the case of _POSIX_SOURCE, which is predefined and required
 
20605
    # on some systems where configure will not decide to define it.
 
20606
    if (defundef == "undef") {
 
20607
      print "/*", prefix defundef, macro, "*/"
 
20608
      next
 
20609
    }
 
20610
  }
 
20611
}
 
20612
{ print }
 
20613
_ACAWK
 
20614
_ACEOF
 
20615
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20616
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
20617
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
20618
   { (exit 1); exit 1; }; }
 
20619
fi # test -n "$CONFIG_HEADERS"
 
20620
 
 
20621
 
 
20622
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 
20623
shift
 
20624
for ac_tag
 
20625
do
 
20626
  case $ac_tag in
 
20627
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
20628
  esac
 
20629
  case $ac_mode$ac_tag in
 
20630
  :[FHL]*:*);;
 
20631
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
20632
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
20633
   { (exit 1); exit 1; }; };;
 
20634
  :[FH]-) ac_tag=-:-;;
 
20635
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
20636
  esac
 
20637
  ac_save_IFS=$IFS
 
20638
  IFS=:
 
20639
  set x $ac_tag
 
20640
  IFS=$ac_save_IFS
 
20641
  shift
 
20642
  ac_file=$1
 
20643
  shift
 
20644
 
 
20645
  case $ac_mode in
 
20646
  :L) ac_source=$1;;
 
20647
  :[FH])
 
20648
    ac_file_inputs=
 
20649
    for ac_f
 
20650
    do
 
20651
      case $ac_f in
 
20652
      -) ac_f="$tmp/stdin";;
 
20653
      *) # Look for the file first in the build tree, then in the source tree
 
20654
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
20655
         # because $ac_f cannot contain `:'.
 
20656
         test -f "$ac_f" ||
 
20657
           case $ac_f in
 
20658
           [\\/$]*) false;;
 
20659
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
20660
           esac ||
 
20661
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
20662
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
20663
   { (exit 1); exit 1; }; };;
 
20664
      esac
 
20665
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
20666
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
20667
    done
 
20668
 
 
20669
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20670
    # use $as_me), people would be surprised to read:
 
20671
    #    /* config.h.  Generated by config.status.  */
 
20672
    configure_input='Generated from '`
 
20673
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
20674
        `' by configure.'
 
20675
    if test x"$ac_file" != x-; then
 
20676
      configure_input="$ac_file.  $configure_input"
 
20677
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
20678
$as_echo "$as_me: creating $ac_file" >&6;}
 
20679
    fi
 
20680
    # Neutralize special characters interpreted by sed in replacement strings.
 
20681
    case $configure_input in #(
 
20682
    *\&* | *\|* | *\\* )
 
20683
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
20684
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
20685
    *) ac_sed_conf_input=$configure_input;;
 
20686
    esac
 
20687
 
 
20688
    case $ac_tag in
 
20689
    *:-:* | *:-) cat >"$tmp/stdin" \
 
20690
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
20691
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
20692
   { (exit 1); exit 1; }; } ;;
 
20693
    esac
 
20694
    ;;
 
20695
  esac
 
20696
 
 
20697
  ac_dir=`$as_dirname -- "$ac_file" ||
 
20698
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20699
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20700
         X"$ac_file" : 'X\(//\)$' \| \
 
20701
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
20702
$as_echo X"$ac_file" |
 
20703
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20704
            s//\1/
 
20705
            q
 
20706
          }
 
20707
          /^X\(\/\/\)[^/].*/{
 
20708
            s//\1/
 
20709
            q
 
20710
          }
 
20711
          /^X\(\/\/\)$/{
 
20712
            s//\1/
 
20713
            q
 
20714
          }
 
20715
          /^X\(\/\).*/{
 
20716
            s//\1/
 
20717
            q
 
20718
          }
 
20719
          s/.*/./; q'`
 
20720
  { as_dir="$ac_dir"
 
20721
  case $as_dir in #(
 
20722
  -*) as_dir=./$as_dir;;
 
20723
  esac
 
20724
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
20725
    as_dirs=
 
20726
    while :; do
 
20727
      case $as_dir in #(
 
20728
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
20729
      *) as_qdir=$as_dir;;
 
20730
      esac
 
20731
      as_dirs="'$as_qdir' $as_dirs"
 
20732
      as_dir=`$as_dirname -- "$as_dir" ||
 
20733
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20734
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20735
         X"$as_dir" : 'X\(//\)$' \| \
 
20736
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
20737
$as_echo X"$as_dir" |
 
20738
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20739
            s//\1/
 
20740
            q
 
20741
          }
 
20742
          /^X\(\/\/\)[^/].*/{
 
20743
            s//\1/
 
20744
            q
 
20745
          }
 
20746
          /^X\(\/\/\)$/{
 
20747
            s//\1/
 
20748
            q
 
20749
          }
 
20750
          /^X\(\/\).*/{
 
20751
            s//\1/
 
20752
            q
 
20753
          }
 
20754
          s/.*/./; q'`
 
20755
      test -d "$as_dir" && break
 
20756
    done
 
20757
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
20758
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
20759
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
20760
   { (exit 1); exit 1; }; }; }
 
20761
  ac_builddir=.
 
20762
 
 
20763
case "$ac_dir" in
 
20764
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20765
*)
 
20766
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
20767
  # A ".." for each directory in $ac_dir_suffix.
 
20768
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
20769
  case $ac_top_builddir_sub in
 
20770
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20771
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
20772
  esac ;;
 
20773
esac
 
20774
ac_abs_top_builddir=$ac_pwd
 
20775
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
20776
# for backward compatibility:
 
20777
ac_top_builddir=$ac_top_build_prefix
 
20778
 
 
20779
case $srcdir in
 
20780
  .)  # We are building in place.
 
20781
    ac_srcdir=.
 
20782
    ac_top_srcdir=$ac_top_builddir_sub
 
20783
    ac_abs_top_srcdir=$ac_pwd ;;
 
20784
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
20785
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20786
    ac_top_srcdir=$srcdir
 
20787
    ac_abs_top_srcdir=$srcdir ;;
 
20788
  *) # Relative name.
 
20789
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
20790
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
20791
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
20792
esac
 
20793
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
20794
 
 
20795
 
 
20796
  case $ac_mode in
 
20797
  :F)
 
20798
  #
 
20799
  # CONFIG_FILE
 
20800
  #
 
20801
 
 
20802
  case $INSTALL in
 
20803
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
20804
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
20805
  esac
 
20806
_ACEOF
 
20807
 
 
20808
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20809
# If the template does not know about datarootdir, expand it.
 
20810
# FIXME: This hack should be removed a few years after 2.60.
 
20811
ac_datarootdir_hack=; ac_datarootdir_seen=
 
20812
 
 
20813
ac_sed_dataroot='
 
20814
/datarootdir/ {
 
20815
  p
 
20816
  q
 
20817
}
 
20818
/@datadir@/p
 
20819
/@docdir@/p
 
20820
/@infodir@/p
 
20821
/@localedir@/p
 
20822
/@mandir@/p
 
20823
'
 
20824
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
20825
*datarootdir*) ac_datarootdir_seen=yes;;
 
20826
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
20827
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
20828
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
20829
_ACEOF
 
20830
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20831
  ac_datarootdir_hack='
 
20832
  s&@datadir@&$datadir&g
 
20833
  s&@docdir@&$docdir&g
 
20834
  s&@infodir@&$infodir&g
 
20835
  s&@localedir@&$localedir&g
 
20836
  s&@mandir@&$mandir&g
 
20837
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
20838
esac
 
20839
_ACEOF
 
20840
 
 
20841
# Neutralize VPATH when `$srcdir' = `.'.
 
20842
# Shell code in configure.ac might set extrasub.
 
20843
# FIXME: do we really want to maintain this feature?
 
20844
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20845
ac_sed_extra="$ac_vpsub
 
20846
$extrasub
 
20847
_ACEOF
 
20848
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20849
:t
 
20850
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20851
s|@configure_input@|$ac_sed_conf_input|;t t
 
20852
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
20853
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
20854
s&@srcdir@&$ac_srcdir&;t t
 
20855
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
20856
s&@top_srcdir@&$ac_top_srcdir&;t t
 
20857
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
20858
s&@builddir@&$ac_builddir&;t t
 
20859
s&@abs_builddir@&$ac_abs_builddir&;t t
 
20860
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
20861
s&@INSTALL@&$ac_INSTALL&;t t
 
20862
$ac_datarootdir_hack
 
20863
"
 
20864
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
20865
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
20866
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
20867
   { (exit 1); exit 1; }; }
 
20868
 
 
20869
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
20870
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
20871
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
20872
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20873
which seems to be undefined.  Please make sure it is defined." >&5
 
20874
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20875
which seems to be undefined.  Please make sure it is defined." >&2;}
 
20876
 
 
20877
  rm -f "$tmp/stdin"
 
20878
  case $ac_file in
 
20879
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
20880
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
20881
  esac \
 
20882
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
20883
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
20884
   { (exit 1); exit 1; }; }
 
20885
 ;;
 
20886
  :H)
 
20887
  #
 
20888
  # CONFIG_HEADER
 
20889
  #
 
20890
  if test x"$ac_file" != x-; then
 
20891
    {
 
20892
      $as_echo "/* $configure_input  */" \
 
20893
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
20894
    } >"$tmp/config.h" \
 
20895
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
20896
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
20897
   { (exit 1); exit 1; }; }
 
20898
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
20899
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
20900
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
20901
    else
 
20902
      rm -f "$ac_file"
 
20903
      mv "$tmp/config.h" "$ac_file" \
 
20904
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
20905
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
20906
   { (exit 1); exit 1; }; }
 
20907
    fi
 
20908
  else
 
20909
    $as_echo "/* $configure_input  */" \
 
20910
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
20911
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
20912
$as_echo "$as_me: error: could not create -" >&2;}
 
20913
   { (exit 1); exit 1; }; }
 
20914
  fi
 
20915
 ;;
 
20916
 
 
20917
 
 
20918
  esac
 
20919
 
 
20920
 
 
20921
  case $ac_file$ac_mode in
 
20922
    "callback.h":H) sed "s/@LIBFFCALL_VERSION@/${LIBFFCALL_VERSION}/" callback.h > tmp
 
20923
mv -f tmp callback.h ;;
 
20924
 
 
20925
  esac
 
20926
done # for ac_tag
 
20927
 
 
20928
 
 
20929
{ (exit 0); exit 0; }
 
20930
_ACEOF
 
20931
chmod +x $CONFIG_STATUS
 
20932
ac_clean_files=$ac_clean_files_save
 
20933
 
 
20934
test $ac_write_fail = 0 ||
 
20935
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
20936
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
20937
   { (exit 1); exit 1; }; }
 
20938
 
 
20939
 
 
20940
# configure is writing to config.log, and then calls config.status.
 
20941
# config.status does its own redirection, appending to config.log.
 
20942
# Unfortunately, on DOS this fails, as config.log is still kept open
 
20943
# by configure, so config.status won't be able to write to it; its
 
20944
# output is simply discarded.  So we exec the FD to /dev/null,
 
20945
# effectively closing config.log, so it can be properly (re)opened and
 
20946
# appended to by config.status.  When coming back to configure, we
 
20947
# need to make the FD available again.
 
20948
if test "$no_create" != yes; then
 
20949
  ac_cs_success=:
 
20950
  ac_config_status_args=
 
20951
  test "$silent" = yes &&
 
20952
    ac_config_status_args="$ac_config_status_args --quiet"
 
20953
  exec 5>/dev/null
 
20954
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
20955
  exec 5>>config.log
 
20956
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
20957
  # would make configure fail if this is the last instruction.
 
20958
  $ac_cs_success || { (exit 1); exit 1; }
 
20959
fi
 
20960
 
 
20961
#
 
20962
# CONFIG_SUBDIRS section.
 
20963
#
 
20964
if test "$no_recursion" != yes; then
 
20965
 
 
20966
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
 
20967
  # so they do not pile up.
 
20968
  ac_sub_configure_args=
 
20969
  ac_prev=
 
20970
  eval "set x $ac_configure_args"
 
20971
  shift
 
20972
  for ac_arg
 
20973
  do
 
20974
    if test -n "$ac_prev"; then
 
20975
      ac_prev=
 
20976
      continue
 
20977
    fi
 
20978
    case $ac_arg in
 
20979
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
20980
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
20981
      ac_prev=cache_file ;;
 
20982
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
20983
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
20984
    | --c=*)
 
20985
      ;;
 
20986
    --config-cache | -C)
 
20987
      ;;
 
20988
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
20989
      ac_prev=srcdir ;;
 
20990
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
20991
      ;;
 
20992
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
20993
      ac_prev=prefix ;;
 
20994
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
20995
      ;;
 
20996
    --disable-option-checking)
 
20997
      ;;
 
20998
    *)
 
20999
      case $ac_arg in
 
21000
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
21001
      esac
 
21002
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
 
21003
    esac
 
21004
  done
 
21005
 
 
21006
  # Always prepend --prefix to ensure using the same prefix
 
21007
  # in subdir configurations.
 
21008
  ac_arg="--prefix=$prefix"
 
21009
  case $ac_arg in
 
21010
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
21011
  esac
 
21012
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
 
21013
 
 
21014
  # Pass --silent
 
21015
  if test "$silent" = yes; then
 
21016
    ac_sub_configure_args="--silent $ac_sub_configure_args"
 
21017
  fi
 
21018
 
 
21019
  # Always prepend --disable-option-checking to silence warnings, since
 
21020
  # different subdirs can have different --enable and --with options.
 
21021
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
 
21022
 
 
21023
  ac_popdir=`pwd`
 
21024
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
21025
 
 
21026
    # Do not complain, so a configure script can configure whichever
 
21027
    # parts of a large source tree are present.
 
21028
    test -d "$srcdir/$ac_dir" || continue
 
21029
 
 
21030
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
 
21031
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
 
21032
    $as_echo "$ac_msg" >&6
 
21033
    { as_dir="$ac_dir"
 
21034
  case $as_dir in #(
 
21035
  -*) as_dir=./$as_dir;;
 
21036
  esac
 
21037
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
21038
    as_dirs=
 
21039
    while :; do
 
21040
      case $as_dir in #(
 
21041
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
21042
      *) as_qdir=$as_dir;;
 
21043
      esac
 
21044
      as_dirs="'$as_qdir' $as_dirs"
 
21045
      as_dir=`$as_dirname -- "$as_dir" ||
 
21046
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21047
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21048
         X"$as_dir" : 'X\(//\)$' \| \
 
21049
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
21050
$as_echo X"$as_dir" |
 
21051
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21052
            s//\1/
 
21053
            q
 
21054
          }
 
21055
          /^X\(\/\/\)[^/].*/{
 
21056
            s//\1/
 
21057
            q
 
21058
          }
 
21059
          /^X\(\/\/\)$/{
 
21060
            s//\1/
 
21061
            q
 
21062
          }
 
21063
          /^X\(\/\).*/{
 
21064
            s//\1/
 
21065
            q
 
21066
          }
 
21067
          s/.*/./; q'`
 
21068
      test -d "$as_dir" && break
 
21069
    done
 
21070
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
21071
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
21072
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
21073
   { (exit 1); exit 1; }; }; }
 
21074
    ac_builddir=.
 
21075
 
 
21076
case "$ac_dir" in
 
21077
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21078
*)
 
21079
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
21080
  # A ".." for each directory in $ac_dir_suffix.
 
21081
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
21082
  case $ac_top_builddir_sub in
 
21083
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21084
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
21085
  esac ;;
 
21086
esac
 
21087
ac_abs_top_builddir=$ac_pwd
 
21088
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
21089
# for backward compatibility:
 
21090
ac_top_builddir=$ac_top_build_prefix
 
21091
 
 
21092
case $srcdir in
 
21093
  .)  # We are building in place.
 
21094
    ac_srcdir=.
 
21095
    ac_top_srcdir=$ac_top_builddir_sub
 
21096
    ac_abs_top_srcdir=$ac_pwd ;;
 
21097
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
21098
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21099
    ac_top_srcdir=$srcdir
 
21100
    ac_abs_top_srcdir=$srcdir ;;
 
21101
  *) # Relative name.
 
21102
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
21103
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
21104
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
21105
esac
 
21106
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
21107
 
 
21108
 
 
21109
    cd "$ac_dir"
 
21110
 
 
21111
    # Check for guested configure; otherwise get Cygnus style configure.
 
21112
    if test -f "$ac_srcdir/configure.gnu"; then
 
21113
      ac_sub_configure=$ac_srcdir/configure.gnu
 
21114
    elif test -f "$ac_srcdir/configure"; then
 
21115
      ac_sub_configure=$ac_srcdir/configure
 
21116
    elif test -f "$ac_srcdir/configure.in"; then
 
21117
      # This should be Cygnus configure.
 
21118
      ac_sub_configure=$ac_aux_dir/configure
 
21119
    else
 
21120
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
21121
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
21122
      ac_sub_configure=
 
21123
    fi
 
21124
 
 
21125
    # The recursion is here.
 
21126
    if test -n "$ac_sub_configure"; then
 
21127
      # Make the cache file name correct relative to the subdirectory.
 
21128
      case $cache_file in
 
21129
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
21130
      *) # Relative name.
 
21131
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
 
21132
      esac
 
21133
 
 
21134
      { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
21135
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
21136
      # The eval makes quoting arguments work.
 
21137
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
 
21138
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
 
21139
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
21140
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
21141
   { (exit 1); exit 1; }; }
 
21142
    fi
 
21143
 
 
21144
    cd "$ac_popdir"
 
21145
  done
 
21146
fi
 
21147
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
21148
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
21149
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
21150
fi
 
21151