~coreobj/libobgtk/0.1

« back to all changes in this revision

Viewing changes to configure

  • Committer: Stefan Nuxoll
  • Date: 2008-03-25 10:23:22 UTC
  • Revision ID: stefan@tsukasa-20080325102322-ml4uoiahf6u9e6mn
Moved everything from GTK/ to libobgtk/, also began converting the 
project to autotools.  Due to this conversion and it's frustrating 4 
hours to get working, the library will only BUILD, it hasn't been setup 
to install (yet), which will be done in the next commit.

Summary: This build doesn't work, use the previous one until the 
autotool transition is complete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.61 for PACKAGE VERSION.
 
4
#
 
5
# Report bugs to <BUG-REPORT-ADDRESS>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
 
 
555
# Check that we are running under the correct shell.
 
556
SHELL=${CONFIG_SHELL-/bin/sh}
 
557
 
 
558
case X$ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
echo=${ECHO-echo}
 
566
if test "X$1" = X--no-reexec; then
 
567
  # Discard the --no-reexec flag, and continue.
 
568
  shift
 
569
elif test "X$1" = X--fallback-echo; then
 
570
  # Avoid inline document here, it may be left over
 
571
  :
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
 
574
  :
 
575
else
 
576
  # Restart under the correct shell.
 
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
578
fi
 
579
 
 
580
if test "X$1" = X--fallback-echo; then
 
581
  # used as fallback echo
 
582
  shift
 
583
  cat <<EOF
 
584
$*
 
585
EOF
 
586
  exit 0
 
587
fi
 
588
 
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
590
# if CDPATH is set.
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
592
 
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
 
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
 
630
 
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
668
      else
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
 
676
          fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
fi
 
693
 
 
694
# Copy echo and quote the copy suitably for passing to libtool from
 
695
# the Makefile, instead of quoting the original, which is used later.
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
699
fi
 
700
 
 
701
 
 
702
 
 
703
 
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
 
710
# Name of the host.
 
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
712
# so uname gets run too.
 
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
714
 
 
715
#
 
716
# Initializations.
 
717
#
 
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
 
720
ac_config_libobj_dir=.
 
721
LIBOBJS=
 
722
cross_compiling=no
 
723
subdirs=
 
724
MFLAGS=
 
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
 
727
 
 
728
# Identity of this package.
 
729
PACKAGE_NAME='PACKAGE'
 
730
PACKAGE_TARNAME='package'
 
731
PACKAGE_VERSION='VERSION'
 
732
PACKAGE_STRING='PACKAGE VERSION'
 
733
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
 
734
 
 
735
ac_unique_file="libobgtk/GTK.m"
 
736
# Factoring default headers for most tests.
 
737
ac_includes_default="\
 
738
#include <stdio.h>
 
739
#ifdef HAVE_SYS_TYPES_H
 
740
# include <sys/types.h>
 
741
#endif
 
742
#ifdef HAVE_SYS_STAT_H
 
743
# include <sys/stat.h>
 
744
#endif
 
745
#ifdef STDC_HEADERS
 
746
# include <stdlib.h>
 
747
# include <stddef.h>
 
748
#else
 
749
# ifdef HAVE_STDLIB_H
 
750
#  include <stdlib.h>
 
751
# endif
 
752
#endif
 
753
#ifdef HAVE_STRING_H
 
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
755
#  include <memory.h>
 
756
# endif
 
757
# include <string.h>
 
758
#endif
 
759
#ifdef HAVE_STRINGS_H
 
760
# include <strings.h>
 
761
#endif
 
762
#ifdef HAVE_INTTYPES_H
 
763
# include <inttypes.h>
 
764
#endif
 
765
#ifdef HAVE_STDINT_H
 
766
# include <stdint.h>
 
767
#endif
 
768
#ifdef HAVE_UNISTD_H
 
769
# include <unistd.h>
 
770
#endif"
 
771
 
 
772
ac_subst_vars='SHELL
 
773
PATH_SEPARATOR
 
774
PACKAGE_NAME
 
775
PACKAGE_TARNAME
 
776
PACKAGE_VERSION
 
777
PACKAGE_STRING
 
778
PACKAGE_BUGREPORT
 
779
exec_prefix
 
780
prefix
 
781
program_transform_name
 
782
bindir
 
783
sbindir
 
784
libexecdir
 
785
datarootdir
 
786
datadir
 
787
sysconfdir
 
788
sharedstatedir
 
789
localstatedir
 
790
includedir
 
791
oldincludedir
 
792
docdir
 
793
infodir
 
794
htmldir
 
795
dvidir
 
796
pdfdir
 
797
psdir
 
798
libdir
 
799
localedir
 
800
mandir
 
801
DEFS
 
802
ECHO_C
 
803
ECHO_N
 
804
ECHO_T
 
805
LIBS
 
806
build_alias
 
807
host_alias
 
808
target_alias
 
809
INSTALL_PROGRAM
 
810
INSTALL_SCRIPT
 
811
INSTALL_DATA
 
812
CYGPATH_W
 
813
PACKAGE
 
814
VERSION
 
815
ACLOCAL
 
816
AUTOCONF
 
817
AUTOMAKE
 
818
AUTOHEADER
 
819
MAKEINFO
 
820
install_sh
 
821
STRIP
 
822
INSTALL_STRIP_PROGRAM
 
823
mkdir_p
 
824
AWK
 
825
SET_MAKE
 
826
am__leading_dot
 
827
AMTAR
 
828
am__tar
 
829
am__untar
 
830
DEPDIR
 
831
am__include
 
832
am__quote
 
833
AMDEP_TRUE
 
834
AMDEP_FALSE
 
835
AMDEPBACKSLASH
 
836
OBJCDEPMODE
 
837
am__fastdepOBJC_TRUE
 
838
am__fastdepOBJC_FALSE
 
839
OBJC
 
840
OBJCFLAGS
 
841
LDFLAGS
 
842
CPPFLAGS
 
843
ac_ct_OBJC
 
844
EXEEXT
 
845
OBJEXT
 
846
build
 
847
build_cpu
 
848
build_vendor
 
849
build_os
 
850
host
 
851
host_cpu
 
852
host_vendor
 
853
host_os
 
854
CC
 
855
CFLAGS
 
856
ac_ct_CC
 
857
CCDEPMODE
 
858
am__fastdepCC_TRUE
 
859
am__fastdepCC_FALSE
 
860
SED
 
861
GREP
 
862
EGREP
 
863
LN_S
 
864
ECHO
 
865
AR
 
866
RANLIB
 
867
DSYMUTIL
 
868
NMEDIT
 
869
CPP
 
870
CXX
 
871
CXXFLAGS
 
872
ac_ct_CXX
 
873
CXXDEPMODE
 
874
am__fastdepCXX_TRUE
 
875
am__fastdepCXX_FALSE
 
876
CXXCPP
 
877
F77
 
878
FFLAGS
 
879
ac_ct_F77
 
880
LIBTOOL
 
881
PKG_CONFIG
 
882
DEPS_CFLAGS
 
883
DEPS_LIBS
 
884
LIBOBJS
 
885
LTLIBOBJS'
 
886
ac_subst_files=''
 
887
      ac_precious_vars='build_alias
 
888
host_alias
 
889
target_alias
 
890
OBJC
 
891
OBJCFLAGS
 
892
LDFLAGS
 
893
LIBS
 
894
CPPFLAGS
 
895
CC
 
896
CFLAGS
 
897
CPP
 
898
CXX
 
899
CXXFLAGS
 
900
CCC
 
901
CXXCPP
 
902
F77
 
903
FFLAGS
 
904
PKG_CONFIG
 
905
DEPS_CFLAGS
 
906
DEPS_LIBS'
 
907
 
 
908
 
 
909
# Initialize some variables set by options.
 
910
ac_init_help=
 
911
ac_init_version=false
 
912
# The variables have the same names as the options, with
 
913
# dashes changed to underlines.
 
914
cache_file=/dev/null
 
915
exec_prefix=NONE
 
916
no_create=
 
917
no_recursion=
 
918
prefix=NONE
 
919
program_prefix=NONE
 
920
program_suffix=NONE
 
921
program_transform_name=s,x,x,
 
922
silent=
 
923
site=
 
924
srcdir=
 
925
verbose=
 
926
x_includes=NONE
 
927
x_libraries=NONE
 
928
 
 
929
# Installation directory options.
 
930
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
931
# and all the variables that are supposed to be based on exec_prefix
 
932
# by default will actually change.
 
933
# Use braces instead of parens because sh, perl, etc. also accept them.
 
934
# (The list follows the same order as the GNU Coding Standards.)
 
935
bindir='${exec_prefix}/bin'
 
936
sbindir='${exec_prefix}/sbin'
 
937
libexecdir='${exec_prefix}/libexec'
 
938
datarootdir='${prefix}/share'
 
939
datadir='${datarootdir}'
 
940
sysconfdir='${prefix}/etc'
 
941
sharedstatedir='${prefix}/com'
 
942
localstatedir='${prefix}/var'
 
943
includedir='${prefix}/include'
 
944
oldincludedir='/usr/include'
 
945
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
946
infodir='${datarootdir}/info'
 
947
htmldir='${docdir}'
 
948
dvidir='${docdir}'
 
949
pdfdir='${docdir}'
 
950
psdir='${docdir}'
 
951
libdir='${exec_prefix}/lib'
 
952
localedir='${datarootdir}/locale'
 
953
mandir='${datarootdir}/man'
 
954
 
 
955
ac_prev=
 
956
ac_dashdash=
 
957
for ac_option
 
958
do
 
959
  # If the previous option needs an argument, assign it.
 
960
  if test -n "$ac_prev"; then
 
961
    eval $ac_prev=\$ac_option
 
962
    ac_prev=
 
963
    continue
 
964
  fi
 
965
 
 
966
  case $ac_option in
 
967
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
968
  *)    ac_optarg=yes ;;
 
969
  esac
 
970
 
 
971
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
972
 
 
973
  case $ac_dashdash$ac_option in
 
974
  --)
 
975
    ac_dashdash=yes ;;
 
976
 
 
977
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
978
    ac_prev=bindir ;;
 
979
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
980
    bindir=$ac_optarg ;;
 
981
 
 
982
  -build | --build | --buil | --bui | --bu)
 
983
    ac_prev=build_alias ;;
 
984
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
985
    build_alias=$ac_optarg ;;
 
986
 
 
987
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
988
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
989
    ac_prev=cache_file ;;
 
990
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
991
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
992
    cache_file=$ac_optarg ;;
 
993
 
 
994
  --config-cache | -C)
 
995
    cache_file=config.cache ;;
 
996
 
 
997
  -datadir | --datadir | --datadi | --datad)
 
998
    ac_prev=datadir ;;
 
999
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1000
    datadir=$ac_optarg ;;
 
1001
 
 
1002
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1003
  | --dataroo | --dataro | --datar)
 
1004
    ac_prev=datarootdir ;;
 
1005
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1006
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1007
    datarootdir=$ac_optarg ;;
 
1008
 
 
1009
  -disable-* | --disable-*)
 
1010
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1011
    # Reject names that are not valid shell variable names.
 
1012
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1013
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1014
   { (exit 1); exit 1; }; }
 
1015
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1016
    eval enable_$ac_feature=no ;;
 
1017
 
 
1018
  -docdir | --docdir | --docdi | --doc | --do)
 
1019
    ac_prev=docdir ;;
 
1020
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1021
    docdir=$ac_optarg ;;
 
1022
 
 
1023
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1024
    ac_prev=dvidir ;;
 
1025
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1026
    dvidir=$ac_optarg ;;
 
1027
 
 
1028
  -enable-* | --enable-*)
 
1029
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1030
    # Reject names that are not valid shell variable names.
 
1031
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1032
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1033
   { (exit 1); exit 1; }; }
 
1034
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1035
    eval enable_$ac_feature=\$ac_optarg ;;
 
1036
 
 
1037
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1038
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1039
  | --exec | --exe | --ex)
 
1040
    ac_prev=exec_prefix ;;
 
1041
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1042
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1043
  | --exec=* | --exe=* | --ex=*)
 
1044
    exec_prefix=$ac_optarg ;;
 
1045
 
 
1046
  -gas | --gas | --ga | --g)
 
1047
    # Obsolete; use --with-gas.
 
1048
    with_gas=yes ;;
 
1049
 
 
1050
  -help | --help | --hel | --he | -h)
 
1051
    ac_init_help=long ;;
 
1052
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1053
    ac_init_help=recursive ;;
 
1054
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1055
    ac_init_help=short ;;
 
1056
 
 
1057
  -host | --host | --hos | --ho)
 
1058
    ac_prev=host_alias ;;
 
1059
  -host=* | --host=* | --hos=* | --ho=*)
 
1060
    host_alias=$ac_optarg ;;
 
1061
 
 
1062
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1063
    ac_prev=htmldir ;;
 
1064
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1065
  | --ht=*)
 
1066
    htmldir=$ac_optarg ;;
 
1067
 
 
1068
  -includedir | --includedir | --includedi | --included | --include \
 
1069
  | --includ | --inclu | --incl | --inc)
 
1070
    ac_prev=includedir ;;
 
1071
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1072
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1073
    includedir=$ac_optarg ;;
 
1074
 
 
1075
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1076
    ac_prev=infodir ;;
 
1077
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1078
    infodir=$ac_optarg ;;
 
1079
 
 
1080
  -libdir | --libdir | --libdi | --libd)
 
1081
    ac_prev=libdir ;;
 
1082
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1083
    libdir=$ac_optarg ;;
 
1084
 
 
1085
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1086
  | --libexe | --libex | --libe)
 
1087
    ac_prev=libexecdir ;;
 
1088
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1089
  | --libexe=* | --libex=* | --libe=*)
 
1090
    libexecdir=$ac_optarg ;;
 
1091
 
 
1092
  -localedir | --localedir | --localedi | --localed | --locale)
 
1093
    ac_prev=localedir ;;
 
1094
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1095
    localedir=$ac_optarg ;;
 
1096
 
 
1097
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1098
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1099
    ac_prev=localstatedir ;;
 
1100
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1101
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1102
    localstatedir=$ac_optarg ;;
 
1103
 
 
1104
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1105
    ac_prev=mandir ;;
 
1106
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1107
    mandir=$ac_optarg ;;
 
1108
 
 
1109
  -nfp | --nfp | --nf)
 
1110
    # Obsolete; use --without-fp.
 
1111
    with_fp=no ;;
 
1112
 
 
1113
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1114
  | --no-cr | --no-c | -n)
 
1115
    no_create=yes ;;
 
1116
 
 
1117
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1118
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1119
    no_recursion=yes ;;
 
1120
 
 
1121
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1122
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1123
  | --oldin | --oldi | --old | --ol | --o)
 
1124
    ac_prev=oldincludedir ;;
 
1125
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1126
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1127
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1128
    oldincludedir=$ac_optarg ;;
 
1129
 
 
1130
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1131
    ac_prev=prefix ;;
 
1132
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1133
    prefix=$ac_optarg ;;
 
1134
 
 
1135
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1136
  | --program-pre | --program-pr | --program-p)
 
1137
    ac_prev=program_prefix ;;
 
1138
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1139
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1140
    program_prefix=$ac_optarg ;;
 
1141
 
 
1142
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1143
  | --program-suf | --program-su | --program-s)
 
1144
    ac_prev=program_suffix ;;
 
1145
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1146
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1147
    program_suffix=$ac_optarg ;;
 
1148
 
 
1149
  -program-transform-name | --program-transform-name \
 
1150
  | --program-transform-nam | --program-transform-na \
 
1151
  | --program-transform-n | --program-transform- \
 
1152
  | --program-transform | --program-transfor \
 
1153
  | --program-transfo | --program-transf \
 
1154
  | --program-trans | --program-tran \
 
1155
  | --progr-tra | --program-tr | --program-t)
 
1156
    ac_prev=program_transform_name ;;
 
1157
  -program-transform-name=* | --program-transform-name=* \
 
1158
  | --program-transform-nam=* | --program-transform-na=* \
 
1159
  | --program-transform-n=* | --program-transform-=* \
 
1160
  | --program-transform=* | --program-transfor=* \
 
1161
  | --program-transfo=* | --program-transf=* \
 
1162
  | --program-trans=* | --program-tran=* \
 
1163
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1164
    program_transform_name=$ac_optarg ;;
 
1165
 
 
1166
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1167
    ac_prev=pdfdir ;;
 
1168
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1169
    pdfdir=$ac_optarg ;;
 
1170
 
 
1171
  -psdir | --psdir | --psdi | --psd | --ps)
 
1172
    ac_prev=psdir ;;
 
1173
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1174
    psdir=$ac_optarg ;;
 
1175
 
 
1176
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1177
  | -silent | --silent | --silen | --sile | --sil)
 
1178
    silent=yes ;;
 
1179
 
 
1180
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1181
    ac_prev=sbindir ;;
 
1182
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1183
  | --sbi=* | --sb=*)
 
1184
    sbindir=$ac_optarg ;;
 
1185
 
 
1186
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1187
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1188
  | --sharedst | --shareds | --shared | --share | --shar \
 
1189
  | --sha | --sh)
 
1190
    ac_prev=sharedstatedir ;;
 
1191
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1192
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1193
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1194
  | --sha=* | --sh=*)
 
1195
    sharedstatedir=$ac_optarg ;;
 
1196
 
 
1197
  -site | --site | --sit)
 
1198
    ac_prev=site ;;
 
1199
  -site=* | --site=* | --sit=*)
 
1200
    site=$ac_optarg ;;
 
1201
 
 
1202
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1203
    ac_prev=srcdir ;;
 
1204
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1205
    srcdir=$ac_optarg ;;
 
1206
 
 
1207
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1208
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1209
    ac_prev=sysconfdir ;;
 
1210
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1211
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1212
    sysconfdir=$ac_optarg ;;
 
1213
 
 
1214
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1215
    ac_prev=target_alias ;;
 
1216
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1217
    target_alias=$ac_optarg ;;
 
1218
 
 
1219
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1220
    verbose=yes ;;
 
1221
 
 
1222
  -version | --version | --versio | --versi | --vers | -V)
 
1223
    ac_init_version=: ;;
 
1224
 
 
1225
  -with-* | --with-*)
 
1226
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1227
    # Reject names that are not valid shell variable names.
 
1228
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1229
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1230
   { (exit 1); exit 1; }; }
 
1231
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1232
    eval with_$ac_package=\$ac_optarg ;;
 
1233
 
 
1234
  -without-* | --without-*)
 
1235
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1236
    # Reject names that are not valid shell variable names.
 
1237
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1238
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1239
   { (exit 1); exit 1; }; }
 
1240
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1241
    eval with_$ac_package=no ;;
 
1242
 
 
1243
  --x)
 
1244
    # Obsolete; use --with-x.
 
1245
    with_x=yes ;;
 
1246
 
 
1247
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1248
  | --x-incl | --x-inc | --x-in | --x-i)
 
1249
    ac_prev=x_includes ;;
 
1250
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1251
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1252
    x_includes=$ac_optarg ;;
 
1253
 
 
1254
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1255
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1256
    ac_prev=x_libraries ;;
 
1257
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1258
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1259
    x_libraries=$ac_optarg ;;
 
1260
 
 
1261
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1262
Try \`$0 --help' for more information." >&2
 
1263
   { (exit 1); exit 1; }; }
 
1264
    ;;
 
1265
 
 
1266
  *=*)
 
1267
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1268
    # Reject names that are not valid shell variable names.
 
1269
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1270
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1271
   { (exit 1); exit 1; }; }
 
1272
    eval $ac_envvar=\$ac_optarg
 
1273
    export $ac_envvar ;;
 
1274
 
 
1275
  *)
 
1276
    # FIXME: should be removed in autoconf 3.0.
 
1277
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1278
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1279
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1280
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1281
    ;;
 
1282
 
 
1283
  esac
 
1284
done
 
1285
 
 
1286
if test -n "$ac_prev"; then
 
1287
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1288
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1289
   { (exit 1); exit 1; }; }
 
1290
fi
 
1291
 
 
1292
# Be sure to have absolute directory names.
 
1293
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1294
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1295
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1296
                libdir localedir mandir
 
1297
do
 
1298
  eval ac_val=\$$ac_var
 
1299
  case $ac_val in
 
1300
    [\\/$]* | ?:[\\/]* )  continue;;
 
1301
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1302
  esac
 
1303
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1304
   { (exit 1); exit 1; }; }
 
1305
done
 
1306
 
 
1307
# There might be people who depend on the old broken behavior: `$host'
 
1308
# used to hold the argument of --host etc.
 
1309
# FIXME: To remove some day.
 
1310
build=$build_alias
 
1311
host=$host_alias
 
1312
target=$target_alias
 
1313
 
 
1314
# FIXME: To remove some day.
 
1315
if test "x$host_alias" != x; then
 
1316
  if test "x$build_alias" = x; then
 
1317
    cross_compiling=maybe
 
1318
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1319
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1320
  elif test "x$build_alias" != "x$host_alias"; then
 
1321
    cross_compiling=yes
 
1322
  fi
 
1323
fi
 
1324
 
 
1325
ac_tool_prefix=
 
1326
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1327
 
 
1328
test "$silent" = yes && exec 6>/dev/null
 
1329
 
 
1330
 
 
1331
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1332
ac_ls_di=`ls -di .` &&
 
1333
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1334
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1335
   { (exit 1); exit 1; }; }
 
1336
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1337
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1338
   { (exit 1); exit 1; }; }
 
1339
 
 
1340
 
 
1341
# Find the source files, if location was not specified.
 
1342
if test -z "$srcdir"; then
 
1343
  ac_srcdir_defaulted=yes
 
1344
  # Try the directory containing this script, then the parent directory.
 
1345
  ac_confdir=`$as_dirname -- "$0" ||
 
1346
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1347
         X"$0" : 'X\(//\)[^/]' \| \
 
1348
         X"$0" : 'X\(//\)$' \| \
 
1349
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1350
echo X"$0" |
 
1351
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1352
            s//\1/
 
1353
            q
 
1354
          }
 
1355
          /^X\(\/\/\)[^/].*/{
 
1356
            s//\1/
 
1357
            q
 
1358
          }
 
1359
          /^X\(\/\/\)$/{
 
1360
            s//\1/
 
1361
            q
 
1362
          }
 
1363
          /^X\(\/\).*/{
 
1364
            s//\1/
 
1365
            q
 
1366
          }
 
1367
          s/.*/./; q'`
 
1368
  srcdir=$ac_confdir
 
1369
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1370
    srcdir=..
 
1371
  fi
 
1372
else
 
1373
  ac_srcdir_defaulted=no
 
1374
fi
 
1375
if test ! -r "$srcdir/$ac_unique_file"; then
 
1376
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1377
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1378
   { (exit 1); exit 1; }; }
 
1379
fi
 
1380
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1381
ac_abs_confdir=`(
 
1382
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1383
   { (exit 1); exit 1; }; }
 
1384
        pwd)`
 
1385
# When building in place, set srcdir=.
 
1386
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1387
  srcdir=.
 
1388
fi
 
1389
# Remove unnecessary trailing slashes from srcdir.
 
1390
# Double slashes in file names in object file debugging info
 
1391
# mess up M-x gdb in Emacs.
 
1392
case $srcdir in
 
1393
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1394
esac
 
1395
for ac_var in $ac_precious_vars; do
 
1396
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1397
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1398
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1399
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1400
done
 
1401
 
 
1402
#
 
1403
# Report the --help message.
 
1404
#
 
1405
if test "$ac_init_help" = "long"; then
 
1406
  # Omit some internal or obsolete options to make the list less imposing.
 
1407
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1408
  cat <<_ACEOF
 
1409
\`configure' configures PACKAGE VERSION to adapt to many kinds of systems.
 
1410
 
 
1411
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1412
 
 
1413
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1414
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1415
 
 
1416
Defaults for the options are specified in brackets.
 
1417
 
 
1418
Configuration:
 
1419
  -h, --help              display this help and exit
 
1420
      --help=short        display options specific to this package
 
1421
      --help=recursive    display the short help of all the included packages
 
1422
  -V, --version           display version information and exit
 
1423
  -q, --quiet, --silent   do not print \`checking...' messages
 
1424
      --cache-file=FILE   cache test results in FILE [disabled]
 
1425
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1426
  -n, --no-create         do not create output files
 
1427
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1428
 
 
1429
Installation directories:
 
1430
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1431
                          [$ac_default_prefix]
 
1432
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1433
                          [PREFIX]
 
1434
 
 
1435
By default, \`make install' will install all the files in
 
1436
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1437
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1438
for instance \`--prefix=\$HOME'.
 
1439
 
 
1440
For better control, use the options below.
 
1441
 
 
1442
Fine tuning of the installation directories:
 
1443
  --bindir=DIR           user executables [EPREFIX/bin]
 
1444
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1445
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1446
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1447
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1448
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1449
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1450
  --includedir=DIR       C header files [PREFIX/include]
 
1451
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1452
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1453
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1454
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1455
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1456
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1457
  --docdir=DIR           documentation root [DATAROOTDIR/doc/package]
 
1458
  --htmldir=DIR          html documentation [DOCDIR]
 
1459
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1460
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1461
  --psdir=DIR            ps documentation [DOCDIR]
 
1462
_ACEOF
 
1463
 
 
1464
  cat <<\_ACEOF
 
1465
 
 
1466
Program names:
 
1467
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1468
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1469
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1470
 
 
1471
System types:
 
1472
  --build=BUILD     configure for building on BUILD [guessed]
 
1473
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1474
_ACEOF
 
1475
fi
 
1476
 
 
1477
if test -n "$ac_init_help"; then
 
1478
  case $ac_init_help in
 
1479
     short | recursive ) echo "Configuration of PACKAGE VERSION:";;
 
1480
   esac
 
1481
  cat <<\_ACEOF
 
1482
 
 
1483
Optional Features:
 
1484
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1485
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1486
  --disable-dependency-tracking  speeds up one-time build
 
1487
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1488
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1489
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1490
  --enable-fast-install[=PKGS]
 
1491
                          optimize for fast installation [default=yes]
 
1492
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1493
 
 
1494
Optional Packages:
 
1495
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1496
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1497
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1498
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1499
                          both]
 
1500
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1501
 
 
1502
Some influential environment variables:
 
1503
  OBJC        Objective C compiler command
 
1504
  OBJCFLAGS   Objective C compiler flags
 
1505
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1506
              nonstandard directory <lib dir>
 
1507
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1508
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1509
              you have headers in a nonstandard directory <include dir>
 
1510
  CC          C compiler command
 
1511
  CFLAGS      C compiler flags
 
1512
  CPP         C preprocessor
 
1513
  CXX         C++ compiler command
 
1514
  CXXFLAGS    C++ compiler flags
 
1515
  CXXCPP      C++ preprocessor
 
1516
  F77         Fortran 77 compiler command
 
1517
  FFLAGS      Fortran 77 compiler flags
 
1518
  PKG_CONFIG  path to pkg-config utility
 
1519
  DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
 
1520
  DEPS_LIBS   linker flags for DEPS, overriding pkg-config
 
1521
 
 
1522
Use these variables to override the choices made by `configure' or to help
 
1523
it to find libraries and programs with nonstandard names/locations.
 
1524
 
 
1525
Report bugs to <BUG-REPORT-ADDRESS>.
 
1526
_ACEOF
 
1527
ac_status=$?
 
1528
fi
 
1529
 
 
1530
if test "$ac_init_help" = "recursive"; then
 
1531
  # If there are subdirs, report their specific --help.
 
1532
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1533
    test -d "$ac_dir" || continue
 
1534
    ac_builddir=.
 
1535
 
 
1536
case "$ac_dir" in
 
1537
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1538
*)
 
1539
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1540
  # A ".." for each directory in $ac_dir_suffix.
 
1541
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1542
  case $ac_top_builddir_sub in
 
1543
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1544
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1545
  esac ;;
 
1546
esac
 
1547
ac_abs_top_builddir=$ac_pwd
 
1548
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1549
# for backward compatibility:
 
1550
ac_top_builddir=$ac_top_build_prefix
 
1551
 
 
1552
case $srcdir in
 
1553
  .)  # We are building in place.
 
1554
    ac_srcdir=.
 
1555
    ac_top_srcdir=$ac_top_builddir_sub
 
1556
    ac_abs_top_srcdir=$ac_pwd ;;
 
1557
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1558
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1559
    ac_top_srcdir=$srcdir
 
1560
    ac_abs_top_srcdir=$srcdir ;;
 
1561
  *) # Relative name.
 
1562
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1563
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1564
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1565
esac
 
1566
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1567
 
 
1568
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1569
    # Check for guested configure.
 
1570
    if test -f "$ac_srcdir/configure.gnu"; then
 
1571
      echo &&
 
1572
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1573
    elif test -f "$ac_srcdir/configure"; then
 
1574
      echo &&
 
1575
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1576
    else
 
1577
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1578
    fi || ac_status=$?
 
1579
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1580
  done
 
1581
fi
 
1582
 
 
1583
test -n "$ac_init_help" && exit $ac_status
 
1584
if $ac_init_version; then
 
1585
  cat <<\_ACEOF
 
1586
PACKAGE configure VERSION
 
1587
generated by GNU Autoconf 2.61
 
1588
 
 
1589
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1590
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1591
This configure script is free software; the Free Software Foundation
 
1592
gives unlimited permission to copy, distribute and modify it.
 
1593
_ACEOF
 
1594
  exit
 
1595
fi
 
1596
cat >config.log <<_ACEOF
 
1597
This file contains any messages produced by compilers while
 
1598
running configure, to aid debugging if configure makes a mistake.
 
1599
 
 
1600
It was created by PACKAGE $as_me VERSION, which was
 
1601
generated by GNU Autoconf 2.61.  Invocation command line was
 
1602
 
 
1603
  $ $0 $@
 
1604
 
 
1605
_ACEOF
 
1606
exec 5>>config.log
 
1607
{
 
1608
cat <<_ASUNAME
 
1609
## --------- ##
 
1610
## Platform. ##
 
1611
## --------- ##
 
1612
 
 
1613
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1614
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1615
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1616
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1617
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1618
 
 
1619
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1620
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1621
 
 
1622
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1623
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1624
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1625
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1626
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1627
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1628
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1629
 
 
1630
_ASUNAME
 
1631
 
 
1632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1633
for as_dir in $PATH
 
1634
do
 
1635
  IFS=$as_save_IFS
 
1636
  test -z "$as_dir" && as_dir=.
 
1637
  echo "PATH: $as_dir"
 
1638
done
 
1639
IFS=$as_save_IFS
 
1640
 
 
1641
} >&5
 
1642
 
 
1643
cat >&5 <<_ACEOF
 
1644
 
 
1645
 
 
1646
## ----------- ##
 
1647
## Core tests. ##
 
1648
## ----------- ##
 
1649
 
 
1650
_ACEOF
 
1651
 
 
1652
 
 
1653
# Keep a trace of the command line.
 
1654
# Strip out --no-create and --no-recursion so they do not pile up.
 
1655
# Strip out --silent because we don't want to record it for future runs.
 
1656
# Also quote any args containing shell meta-characters.
 
1657
# Make two passes to allow for proper duplicate-argument suppression.
 
1658
ac_configure_args=
 
1659
ac_configure_args0=
 
1660
ac_configure_args1=
 
1661
ac_must_keep_next=false
 
1662
for ac_pass in 1 2
 
1663
do
 
1664
  for ac_arg
 
1665
  do
 
1666
    case $ac_arg in
 
1667
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1668
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1669
    | -silent | --silent | --silen | --sile | --sil)
 
1670
      continue ;;
 
1671
    *\'*)
 
1672
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1673
    esac
 
1674
    case $ac_pass in
 
1675
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1676
    2)
 
1677
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1678
      if test $ac_must_keep_next = true; then
 
1679
        ac_must_keep_next=false # Got value, back to normal.
 
1680
      else
 
1681
        case $ac_arg in
 
1682
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1683
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1684
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1685
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1686
            case "$ac_configure_args0 " in
 
1687
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1688
            esac
 
1689
            ;;
 
1690
          -* ) ac_must_keep_next=true ;;
 
1691
        esac
 
1692
      fi
 
1693
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1694
      ;;
 
1695
    esac
 
1696
  done
 
1697
done
 
1698
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1699
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1700
 
 
1701
# When interrupted or exit'd, cleanup temporary files, and complete
 
1702
# config.log.  We remove comments because anyway the quotes in there
 
1703
# would cause problems or look ugly.
 
1704
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1705
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1706
trap 'exit_status=$?
 
1707
  # Save into config.log some information that might help in debugging.
 
1708
  {
 
1709
    echo
 
1710
 
 
1711
    cat <<\_ASBOX
 
1712
## ---------------- ##
 
1713
## Cache variables. ##
 
1714
## ---------------- ##
 
1715
_ASBOX
 
1716
    echo
 
1717
    # The following way of writing the cache mishandles newlines in values,
 
1718
(
 
1719
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1720
    eval ac_val=\$$ac_var
 
1721
    case $ac_val in #(
 
1722
    *${as_nl}*)
 
1723
      case $ac_var in #(
 
1724
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1725
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1726
      esac
 
1727
      case $ac_var in #(
 
1728
      _ | IFS | as_nl) ;; #(
 
1729
      *) $as_unset $ac_var ;;
 
1730
      esac ;;
 
1731
    esac
 
1732
  done
 
1733
  (set) 2>&1 |
 
1734
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1735
    *${as_nl}ac_space=\ *)
 
1736
      sed -n \
 
1737
        "s/'\''/'\''\\\\'\'''\''/g;
 
1738
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1739
      ;; #(
 
1740
    *)
 
1741
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1742
      ;;
 
1743
    esac |
 
1744
    sort
 
1745
)
 
1746
    echo
 
1747
 
 
1748
    cat <<\_ASBOX
 
1749
## ----------------- ##
 
1750
## Output variables. ##
 
1751
## ----------------- ##
 
1752
_ASBOX
 
1753
    echo
 
1754
    for ac_var in $ac_subst_vars
 
1755
    do
 
1756
      eval ac_val=\$$ac_var
 
1757
      case $ac_val in
 
1758
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1759
      esac
 
1760
      echo "$ac_var='\''$ac_val'\''"
 
1761
    done | sort
 
1762
    echo
 
1763
 
 
1764
    if test -n "$ac_subst_files"; then
 
1765
      cat <<\_ASBOX
 
1766
## ------------------- ##
 
1767
## File substitutions. ##
 
1768
## ------------------- ##
 
1769
_ASBOX
 
1770
      echo
 
1771
      for ac_var in $ac_subst_files
 
1772
      do
 
1773
        eval ac_val=\$$ac_var
 
1774
        case $ac_val in
 
1775
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1776
        esac
 
1777
        echo "$ac_var='\''$ac_val'\''"
 
1778
      done | sort
 
1779
      echo
 
1780
    fi
 
1781
 
 
1782
    if test -s confdefs.h; then
 
1783
      cat <<\_ASBOX
 
1784
## ----------- ##
 
1785
## confdefs.h. ##
 
1786
## ----------- ##
 
1787
_ASBOX
 
1788
      echo
 
1789
      cat confdefs.h
 
1790
      echo
 
1791
    fi
 
1792
    test "$ac_signal" != 0 &&
 
1793
      echo "$as_me: caught signal $ac_signal"
 
1794
    echo "$as_me: exit $exit_status"
 
1795
  } >&5
 
1796
  rm -f core *.core core.conftest.* &&
 
1797
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1798
    exit $exit_status
 
1799
' 0
 
1800
for ac_signal in 1 2 13 15; do
 
1801
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1802
done
 
1803
ac_signal=0
 
1804
 
 
1805
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1806
rm -f -r conftest* confdefs.h
 
1807
 
 
1808
# Predefined preprocessor variables.
 
1809
 
 
1810
cat >>confdefs.h <<_ACEOF
 
1811
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1812
_ACEOF
 
1813
 
 
1814
 
 
1815
cat >>confdefs.h <<_ACEOF
 
1816
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1817
_ACEOF
 
1818
 
 
1819
 
 
1820
cat >>confdefs.h <<_ACEOF
 
1821
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1822
_ACEOF
 
1823
 
 
1824
 
 
1825
cat >>confdefs.h <<_ACEOF
 
1826
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1827
_ACEOF
 
1828
 
 
1829
 
 
1830
cat >>confdefs.h <<_ACEOF
 
1831
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1832
_ACEOF
 
1833
 
 
1834
 
 
1835
# Let the site file select an alternate cache file if it wants to.
 
1836
# Prefer explicitly selected file to automatically selected ones.
 
1837
if test -n "$CONFIG_SITE"; then
 
1838
  set x "$CONFIG_SITE"
 
1839
elif test "x$prefix" != xNONE; then
 
1840
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1841
else
 
1842
  set x "$ac_default_prefix/share/config.site" \
 
1843
        "$ac_default_prefix/etc/config.site"
 
1844
fi
 
1845
shift
 
1846
for ac_site_file
 
1847
do
 
1848
  if test -r "$ac_site_file"; then
 
1849
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1850
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1851
    sed 's/^/| /' "$ac_site_file" >&5
 
1852
    . "$ac_site_file"
 
1853
  fi
 
1854
done
 
1855
 
 
1856
if test -r "$cache_file"; then
 
1857
  # Some versions of bash will fail to source /dev/null (special
 
1858
  # files actually), so we avoid doing that.
 
1859
  if test -f "$cache_file"; then
 
1860
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1861
echo "$as_me: loading cache $cache_file" >&6;}
 
1862
    case $cache_file in
 
1863
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1864
      *)                      . "./$cache_file";;
 
1865
    esac
 
1866
  fi
 
1867
else
 
1868
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1869
echo "$as_me: creating cache $cache_file" >&6;}
 
1870
  >$cache_file
 
1871
fi
 
1872
 
 
1873
# Check that the precious variables saved in the cache have kept the same
 
1874
# value.
 
1875
ac_cache_corrupted=false
 
1876
for ac_var in $ac_precious_vars; do
 
1877
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1878
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1879
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1880
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1881
  case $ac_old_set,$ac_new_set in
 
1882
    set,)
 
1883
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1884
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1885
      ac_cache_corrupted=: ;;
 
1886
    ,set)
 
1887
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1888
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1889
      ac_cache_corrupted=: ;;
 
1890
    ,);;
 
1891
    *)
 
1892
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1893
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1894
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1895
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1896
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1897
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1898
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1899
        ac_cache_corrupted=:
 
1900
      fi;;
 
1901
  esac
 
1902
  # Pass precious variables to config.status.
 
1903
  if test "$ac_new_set" = set; then
 
1904
    case $ac_new_val in
 
1905
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1906
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1907
    esac
 
1908
    case " $ac_configure_args " in
 
1909
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1910
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1911
    esac
 
1912
  fi
 
1913
done
 
1914
if $ac_cache_corrupted; then
 
1915
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1916
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1917
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1918
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1919
   { (exit 1); exit 1; }; }
 
1920
fi
 
1921
 
 
1922
 
 
1923
 
 
1924
 
 
1925
 
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
ac_ext=c
 
1947
ac_cpp='$CPP $CPPFLAGS'
 
1948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1951
 
 
1952
 
 
1953
 
 
1954
ac_config_headers="$ac_config_headers config.h"
 
1955
 
 
1956
am__api_version="1.9"
 
1957
ac_aux_dir=
 
1958
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1959
  if test -f "$ac_dir/install-sh"; then
 
1960
    ac_aux_dir=$ac_dir
 
1961
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1962
    break
 
1963
  elif test -f "$ac_dir/install.sh"; then
 
1964
    ac_aux_dir=$ac_dir
 
1965
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1966
    break
 
1967
  elif test -f "$ac_dir/shtool"; then
 
1968
    ac_aux_dir=$ac_dir
 
1969
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1970
    break
 
1971
  fi
 
1972
done
 
1973
if test -z "$ac_aux_dir"; then
 
1974
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1975
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1976
   { (exit 1); exit 1; }; }
 
1977
fi
 
1978
 
 
1979
# These three variables are undocumented and unsupported,
 
1980
# and are intended to be withdrawn in a future Autoconf release.
 
1981
# They can cause serious problems if a builder's source tree is in a directory
 
1982
# whose full name contains unusual characters.
 
1983
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1984
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1985
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1986
 
 
1987
 
 
1988
# Find a good install program.  We prefer a C program (faster),
 
1989
# so one script is as good as another.  But avoid the broken or
 
1990
# incompatible versions:
 
1991
# SysV /etc/install, /usr/sbin/install
 
1992
# SunOS /usr/etc/install
 
1993
# IRIX /sbin/install
 
1994
# AIX /bin/install
 
1995
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1996
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1997
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1998
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1999
# OS/2's system install, which has a completely different semantic
 
2000
# ./install, which can be erroneously created by make from ./install.sh.
 
2001
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2002
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2003
if test -z "$INSTALL"; then
 
2004
if test "${ac_cv_path_install+set}" = set; then
 
2005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2006
else
 
2007
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2008
for as_dir in $PATH
 
2009
do
 
2010
  IFS=$as_save_IFS
 
2011
  test -z "$as_dir" && as_dir=.
 
2012
  # Account for people who put trailing slashes in PATH elements.
 
2013
case $as_dir/ in
 
2014
  ./ | .// | /cC/* | \
 
2015
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2016
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2017
  /usr/ucb/* ) ;;
 
2018
  *)
 
2019
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2020
    # Don't use installbsd from OSF since it installs stuff as root
 
2021
    # by default.
 
2022
    for ac_prog in ginstall scoinst install; do
 
2023
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2024
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2025
          if test $ac_prog = install &&
 
2026
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2027
            # AIX install.  It has an incompatible calling convention.
 
2028
            :
 
2029
          elif test $ac_prog = install &&
 
2030
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2031
            # program-specific install script used by HP pwplus--don't use.
 
2032
            :
 
2033
          else
 
2034
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2035
            break 3
 
2036
          fi
 
2037
        fi
 
2038
      done
 
2039
    done
 
2040
    ;;
 
2041
esac
 
2042
done
 
2043
IFS=$as_save_IFS
 
2044
 
 
2045
 
 
2046
fi
 
2047
  if test "${ac_cv_path_install+set}" = set; then
 
2048
    INSTALL=$ac_cv_path_install
 
2049
  else
 
2050
    # As a last resort, use the slow shell script.  Don't cache a
 
2051
    # value for INSTALL within a source directory, because that will
 
2052
    # break other packages using the cache if that directory is
 
2053
    # removed, or if the value is a relative name.
 
2054
    INSTALL=$ac_install_sh
 
2055
  fi
 
2056
fi
 
2057
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2058
echo "${ECHO_T}$INSTALL" >&6; }
 
2059
 
 
2060
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2061
# It thinks the first close brace ends the variable substitution.
 
2062
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2063
 
 
2064
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2065
 
 
2066
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2067
 
 
2068
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2069
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2070
# Just in case
 
2071
sleep 1
 
2072
echo timestamp > conftest.file
 
2073
# Do `set' in a subshell so we don't clobber the current shell's
 
2074
# arguments.  Must try -L first in case configure is actually a
 
2075
# symlink; some systems play weird games with the mod time of symlinks
 
2076
# (eg FreeBSD returns the mod time of the symlink's containing
 
2077
# directory).
 
2078
if (
 
2079
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2080
   if test "$*" = "X"; then
 
2081
      # -L didn't work.
 
2082
      set X `ls -t $srcdir/configure conftest.file`
 
2083
   fi
 
2084
   rm -f conftest.file
 
2085
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2086
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2087
 
 
2088
      # If neither matched, then we have a broken ls.  This can happen
 
2089
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2090
      # broken ls alias from the environment.  This has actually
 
2091
      # happened.  Such a system could not be considered "sane".
 
2092
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2093
alias in your environment" >&5
 
2094
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2095
alias in your environment" >&2;}
 
2096
   { (exit 1); exit 1; }; }
 
2097
   fi
 
2098
 
 
2099
   test "$2" = conftest.file
 
2100
   )
 
2101
then
 
2102
   # Ok.
 
2103
   :
 
2104
else
 
2105
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2106
Check your system clock" >&5
 
2107
echo "$as_me: error: newly created file is older than distributed files!
 
2108
Check your system clock" >&2;}
 
2109
   { (exit 1); exit 1; }; }
 
2110
fi
 
2111
{ echo "$as_me:$LINENO: result: yes" >&5
 
2112
echo "${ECHO_T}yes" >&6; }
 
2113
test "$program_prefix" != NONE &&
 
2114
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2115
# Use a double $ so make ignores it.
 
2116
test "$program_suffix" != NONE &&
 
2117
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2118
# Double any \ or $.  echo might interpret backslashes.
 
2119
# By default was `s,x,x', remove it if useless.
 
2120
cat <<\_ACEOF >conftest.sed
 
2121
s/[\\$]/&&/g;s/;s,x,x,$//
 
2122
_ACEOF
 
2123
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2124
rm -f conftest.sed
 
2125
 
 
2126
# expand $ac_aux_dir to an absolute path
 
2127
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2128
 
 
2129
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2130
# Use eval to expand $SHELL
 
2131
if eval "$MISSING --run true"; then
 
2132
  am_missing_run="$MISSING --run "
 
2133
else
 
2134
  am_missing_run=
 
2135
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2136
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2137
fi
 
2138
 
 
2139
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2140
  # We used to keeping the `.' as first argument, in order to
 
2141
  # allow $(mkdir_p) to be used without argument.  As in
 
2142
  #   $(mkdir_p) $(somedir)
 
2143
  # where $(somedir) is conditionally defined.  However this is wrong
 
2144
  # for two reasons:
 
2145
  #  1. if the package is installed by a user who cannot write `.'
 
2146
  #     make install will fail,
 
2147
  #  2. the above comment should most certainly read
 
2148
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2149
  #     so it does not work when $(somedir) is undefined and
 
2150
  #     $(DESTDIR) is not.
 
2151
  #  To support the latter case, we have to write
 
2152
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2153
  #  so the `.' trick is pointless.
 
2154
  mkdir_p='mkdir -p --'
 
2155
else
 
2156
  # On NextStep and OpenStep, the `mkdir' command does not
 
2157
  # recognize any option.  It will interpret all options as
 
2158
  # directories to create, and then abort because `.' already
 
2159
  # exists.
 
2160
  for d in ./-p ./--version;
 
2161
  do
 
2162
    test -d $d && rmdir $d
 
2163
  done
 
2164
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2165
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2166
    mkdir_p='$(mkinstalldirs)'
 
2167
  else
 
2168
    mkdir_p='$(install_sh) -d'
 
2169
  fi
 
2170
fi
 
2171
 
 
2172
for ac_prog in gawk mawk nawk awk
 
2173
do
 
2174
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2175
set dummy $ac_prog; ac_word=$2
 
2176
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2177
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2178
if test "${ac_cv_prog_AWK+set}" = set; then
 
2179
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2180
else
 
2181
  if test -n "$AWK"; then
 
2182
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2183
else
 
2184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2185
for as_dir in $PATH
 
2186
do
 
2187
  IFS=$as_save_IFS
 
2188
  test -z "$as_dir" && as_dir=.
 
2189
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2190
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2191
    ac_cv_prog_AWK="$ac_prog"
 
2192
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2193
    break 2
 
2194
  fi
 
2195
done
 
2196
done
 
2197
IFS=$as_save_IFS
 
2198
 
 
2199
fi
 
2200
fi
 
2201
AWK=$ac_cv_prog_AWK
 
2202
if test -n "$AWK"; then
 
2203
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2204
echo "${ECHO_T}$AWK" >&6; }
 
2205
else
 
2206
  { echo "$as_me:$LINENO: result: no" >&5
 
2207
echo "${ECHO_T}no" >&6; }
 
2208
fi
 
2209
 
 
2210
 
 
2211
  test -n "$AWK" && break
 
2212
done
 
2213
 
 
2214
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2215
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2216
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2217
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2219
else
 
2220
  cat >conftest.make <<\_ACEOF
 
2221
SHELL = /bin/sh
 
2222
all:
 
2223
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2224
_ACEOF
 
2225
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2226
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2227
  *@@@%%%=?*=@@@%%%*)
 
2228
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2229
  *)
 
2230
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2231
esac
 
2232
rm -f conftest.make
 
2233
fi
 
2234
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2235
  { echo "$as_me:$LINENO: result: yes" >&5
 
2236
echo "${ECHO_T}yes" >&6; }
 
2237
  SET_MAKE=
 
2238
else
 
2239
  { echo "$as_me:$LINENO: result: no" >&5
 
2240
echo "${ECHO_T}no" >&6; }
 
2241
  SET_MAKE="MAKE=${MAKE-make}"
 
2242
fi
 
2243
 
 
2244
rm -rf .tst 2>/dev/null
 
2245
mkdir .tst 2>/dev/null
 
2246
if test -d .tst; then
 
2247
  am__leading_dot=.
 
2248
else
 
2249
  am__leading_dot=_
 
2250
fi
 
2251
rmdir .tst 2>/dev/null
 
2252
 
 
2253
# test to see if srcdir already configured
 
2254
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2255
   test -f $srcdir/config.status; then
 
2256
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2257
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2258
   { (exit 1); exit 1; }; }
 
2259
fi
 
2260
 
 
2261
# test whether we have cygpath
 
2262
if test -z "$CYGPATH_W"; then
 
2263
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2264
    CYGPATH_W='cygpath -w'
 
2265
  else
 
2266
    CYGPATH_W=echo
 
2267
  fi
 
2268
fi
 
2269
 
 
2270
 
 
2271
# Define the identity of the package.
 
2272
 PACKAGE=$PACKAGE
 
2273
 VERSION=$VERSION
 
2274
 
 
2275
 
 
2276
cat >>confdefs.h <<_ACEOF
 
2277
#define PACKAGE "$PACKAGE"
 
2278
_ACEOF
 
2279
 
 
2280
 
 
2281
cat >>confdefs.h <<_ACEOF
 
2282
#define VERSION "$VERSION"
 
2283
_ACEOF
 
2284
 
 
2285
# Some tools Automake needs.
 
2286
 
 
2287
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2288
 
 
2289
 
 
2290
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2291
 
 
2292
 
 
2293
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2294
 
 
2295
 
 
2296
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2297
 
 
2298
 
 
2299
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2300
 
 
2301
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2302
 
 
2303
# Installed binaries are usually stripped using `strip' when the user
 
2304
# run `make install-strip'.  However `strip' might not be the right
 
2305
# tool to use in cross-compilation environments, therefore Automake
 
2306
# will honor the `STRIP' environment variable to overrule this program.
 
2307
if test "$cross_compiling" != no; then
 
2308
  if test -n "$ac_tool_prefix"; then
 
2309
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2310
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2311
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2313
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2315
else
 
2316
  if test -n "$STRIP"; then
 
2317
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2318
else
 
2319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2320
for as_dir in $PATH
 
2321
do
 
2322
  IFS=$as_save_IFS
 
2323
  test -z "$as_dir" && as_dir=.
 
2324
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2326
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2327
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2328
    break 2
 
2329
  fi
 
2330
done
 
2331
done
 
2332
IFS=$as_save_IFS
 
2333
 
 
2334
fi
 
2335
fi
 
2336
STRIP=$ac_cv_prog_STRIP
 
2337
if test -n "$STRIP"; then
 
2338
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2339
echo "${ECHO_T}$STRIP" >&6; }
 
2340
else
 
2341
  { echo "$as_me:$LINENO: result: no" >&5
 
2342
echo "${ECHO_T}no" >&6; }
 
2343
fi
 
2344
 
 
2345
 
 
2346
fi
 
2347
if test -z "$ac_cv_prog_STRIP"; then
 
2348
  ac_ct_STRIP=$STRIP
 
2349
  # Extract the first word of "strip", so it can be a program name with args.
 
2350
set dummy strip; ac_word=$2
 
2351
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2352
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2353
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2354
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2355
else
 
2356
  if test -n "$ac_ct_STRIP"; then
 
2357
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2358
else
 
2359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2360
for as_dir in $PATH
 
2361
do
 
2362
  IFS=$as_save_IFS
 
2363
  test -z "$as_dir" && as_dir=.
 
2364
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2365
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2366
    ac_cv_prog_ac_ct_STRIP="strip"
 
2367
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2368
    break 2
 
2369
  fi
 
2370
done
 
2371
done
 
2372
IFS=$as_save_IFS
 
2373
 
 
2374
fi
 
2375
fi
 
2376
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2377
if test -n "$ac_ct_STRIP"; then
 
2378
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2379
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2380
else
 
2381
  { echo "$as_me:$LINENO: result: no" >&5
 
2382
echo "${ECHO_T}no" >&6; }
 
2383
fi
 
2384
 
 
2385
  if test "x$ac_ct_STRIP" = x; then
 
2386
    STRIP=":"
 
2387
  else
 
2388
    case $cross_compiling:$ac_tool_warned in
 
2389
yes:)
 
2390
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2391
whose name does not start with the host triplet.  If you think this
 
2392
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2393
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2394
whose name does not start with the host triplet.  If you think this
 
2395
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2396
ac_tool_warned=yes ;;
 
2397
esac
 
2398
    STRIP=$ac_ct_STRIP
 
2399
  fi
 
2400
else
 
2401
  STRIP="$ac_cv_prog_STRIP"
 
2402
fi
 
2403
 
 
2404
fi
 
2405
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2406
 
 
2407
# We need awk for the "check" target.  The system "awk" is bad on
 
2408
# some platforms.
 
2409
# Always define AMTAR for backward compatibility.
 
2410
 
 
2411
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2412
 
 
2413
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2414
 
 
2415
 
 
2416
 
 
2417
 
 
2418
 
 
2419
# Checks for programs.
 
2420
DEPDIR="${am__leading_dot}deps"
 
2421
 
 
2422
ac_config_commands="$ac_config_commands depfiles"
 
2423
 
 
2424
 
 
2425
am_make=${MAKE-make}
 
2426
cat > confinc << 'END'
 
2427
am__doit:
 
2428
        @echo done
 
2429
.PHONY: am__doit
 
2430
END
 
2431
# If we don't find an include directive, just comment out the code.
 
2432
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2433
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2434
am__include="#"
 
2435
am__quote=
 
2436
_am_result=none
 
2437
# First try GNU make style include.
 
2438
echo "include confinc" > confmf
 
2439
# We grep out `Entering directory' and `Leaving directory'
 
2440
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2441
# In particular we don't look at `^make:' because GNU make might
 
2442
# be invoked under some other name (usually "gmake"), in which
 
2443
# case it prints its new name instead of `make'.
 
2444
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2445
   am__include=include
 
2446
   am__quote=
 
2447
   _am_result=GNU
 
2448
fi
 
2449
# Now try BSD make style include.
 
2450
if test "$am__include" = "#"; then
 
2451
   echo '.include "confinc"' > confmf
 
2452
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2453
      am__include=.include
 
2454
      am__quote="\""
 
2455
      _am_result=BSD
 
2456
   fi
 
2457
fi
 
2458
 
 
2459
 
 
2460
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2461
echo "${ECHO_T}$_am_result" >&6; }
 
2462
rm -f confinc confmf
 
2463
 
 
2464
# Check whether --enable-dependency-tracking was given.
 
2465
if test "${enable_dependency_tracking+set}" = set; then
 
2466
  enableval=$enable_dependency_tracking;
 
2467
fi
 
2468
 
 
2469
if test "x$enable_dependency_tracking" != xno; then
 
2470
  am_depcomp="$ac_aux_dir/depcomp"
 
2471
  AMDEPBACKSLASH='\'
 
2472
fi
 
2473
 
 
2474
 
 
2475
if test "x$enable_dependency_tracking" != xno; then
 
2476
  AMDEP_TRUE=
 
2477
  AMDEP_FALSE='#'
 
2478
else
 
2479
  AMDEP_TRUE='#'
 
2480
  AMDEP_FALSE=
 
2481
fi
 
2482
 
 
2483
 
 
2484
 
 
2485
 
 
2486
depcc="$OBJC" am_compiler_list='gcc3 gcc'
 
2487
 
 
2488
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2489
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
2490
if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
 
2491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2492
else
 
2493
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2494
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2495
  # making bogus files that we don't know about and never remove.  For
 
2496
  # instance it was reported that on HP-UX the gcc test will end up
 
2497
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2498
  # in D'.
 
2499
  mkdir conftest.dir
 
2500
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2501
  # using a relative directory.
 
2502
  cp "$am_depcomp" conftest.dir
 
2503
  cd conftest.dir
 
2504
  # We will build objects and dependencies in a subdirectory because
 
2505
  # it helps to detect inapplicable dependency modes.  For instance
 
2506
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2507
  # side effect of compilation, but ICC will put the dependencies in
 
2508
  # the current directory while Tru64 will put them in the object
 
2509
  # directory.
 
2510
  mkdir sub
 
2511
 
 
2512
  am_cv_OBJC_dependencies_compiler_type=none
 
2513
  if test "$am_compiler_list" = ""; then
 
2514
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2515
  fi
 
2516
  for depmode in $am_compiler_list; do
 
2517
    # Setup a source with many dependencies, because some compilers
 
2518
    # like to wrap large dependency lists on column 80 (with \), and
 
2519
    # we should not choose a depcomp mode which is confused by this.
 
2520
    #
 
2521
    # We need to recreate these files for each test, as the compiler may
 
2522
    # overwrite some of them when testing with obscure command lines.
 
2523
    # This happens at least with the AIX C compiler.
 
2524
    : > sub/conftest.c
 
2525
    for i in 1 2 3 4 5 6; do
 
2526
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2527
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2528
      # Solaris 8's {/usr,}/bin/sh.
 
2529
      touch sub/conftst$i.h
 
2530
    done
 
2531
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2532
 
 
2533
    case $depmode in
 
2534
    nosideeffect)
 
2535
      # after this tag, mechanisms are not by side-effect, so they'll
 
2536
      # only be used when explicitly requested
 
2537
      if test "x$enable_dependency_tracking" = xyes; then
 
2538
        continue
 
2539
      else
 
2540
        break
 
2541
      fi
 
2542
      ;;
 
2543
    none) break ;;
 
2544
    esac
 
2545
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2546
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2547
    # handle `-M -o', and we need to detect this.
 
2548
    if depmode=$depmode \
 
2549
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2550
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2551
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2552
         >/dev/null 2>conftest.err &&
 
2553
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2554
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2555
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2556
      # icc doesn't choke on unknown options, it will just issue warnings
 
2557
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2558
      # that says an option was ignored or not supported.
 
2559
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2560
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2561
      # The diagnosis changed in icc 8.0:
 
2562
      #   icc: Command line remark: option '-MP' not supported
 
2563
      if (grep 'ignoring option' conftest.err ||
 
2564
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
2565
        am_cv_OBJC_dependencies_compiler_type=$depmode
 
2566
        break
 
2567
      fi
 
2568
    fi
 
2569
  done
 
2570
 
 
2571
  cd ..
 
2572
  rm -rf conftest.dir
 
2573
else
 
2574
  am_cv_OBJC_dependencies_compiler_type=none
 
2575
fi
 
2576
 
 
2577
fi
 
2578
{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
 
2579
echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
 
2580
OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
 
2581
 
 
2582
 
 
2583
 
 
2584
if
 
2585
  test "x$enable_dependency_tracking" != xno \
 
2586
  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
 
2587
  am__fastdepOBJC_TRUE=
 
2588
  am__fastdepOBJC_FALSE='#'
 
2589
else
 
2590
  am__fastdepOBJC_TRUE='#'
 
2591
  am__fastdepOBJC_FALSE=
 
2592
fi
 
2593
 
 
2594
 
 
2595
ac_ext=m
 
2596
ac_cpp='$OBJCPP $CPPFLAGS'
 
2597
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2598
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2599
ac_compiler_gnu=$ac_cv_objc_compiler_gnu
 
2600
if test -n "$ac_tool_prefix"; then
 
2601
  for ac_prog in gcc objcc objc cc CC
 
2602
  do
 
2603
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2604
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2605
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2606
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2607
if test "${ac_cv_prog_OBJC+set}" = set; then
 
2608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2609
else
 
2610
  if test -n "$OBJC"; then
 
2611
  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
 
2612
else
 
2613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2614
for as_dir in $PATH
 
2615
do
 
2616
  IFS=$as_save_IFS
 
2617
  test -z "$as_dir" && as_dir=.
 
2618
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2620
    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
 
2621
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2622
    break 2
 
2623
  fi
 
2624
done
 
2625
done
 
2626
IFS=$as_save_IFS
 
2627
 
 
2628
fi
 
2629
fi
 
2630
OBJC=$ac_cv_prog_OBJC
 
2631
if test -n "$OBJC"; then
 
2632
  { echo "$as_me:$LINENO: result: $OBJC" >&5
 
2633
echo "${ECHO_T}$OBJC" >&6; }
 
2634
else
 
2635
  { echo "$as_me:$LINENO: result: no" >&5
 
2636
echo "${ECHO_T}no" >&6; }
 
2637
fi
 
2638
 
 
2639
 
 
2640
    test -n "$OBJC" && break
 
2641
  done
 
2642
fi
 
2643
if test -z "$OBJC"; then
 
2644
  ac_ct_OBJC=$OBJC
 
2645
  for ac_prog in gcc objcc objc cc CC
 
2646
do
 
2647
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2648
set dummy $ac_prog; ac_word=$2
 
2649
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2651
if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
 
2652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2653
else
 
2654
  if test -n "$ac_ct_OBJC"; then
 
2655
  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
 
2656
else
 
2657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2658
for as_dir in $PATH
 
2659
do
 
2660
  IFS=$as_save_IFS
 
2661
  test -z "$as_dir" && as_dir=.
 
2662
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2663
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2664
    ac_cv_prog_ac_ct_OBJC="$ac_prog"
 
2665
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2666
    break 2
 
2667
  fi
 
2668
done
 
2669
done
 
2670
IFS=$as_save_IFS
 
2671
 
 
2672
fi
 
2673
fi
 
2674
ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
 
2675
if test -n "$ac_ct_OBJC"; then
 
2676
  { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
 
2677
echo "${ECHO_T}$ac_ct_OBJC" >&6; }
 
2678
else
 
2679
  { echo "$as_me:$LINENO: result: no" >&5
 
2680
echo "${ECHO_T}no" >&6; }
 
2681
fi
 
2682
 
 
2683
 
 
2684
  test -n "$ac_ct_OBJC" && break
 
2685
done
 
2686
 
 
2687
  if test "x$ac_ct_OBJC" = x; then
 
2688
    OBJC="gcc"
 
2689
  else
 
2690
    case $cross_compiling:$ac_tool_warned in
 
2691
yes:)
 
2692
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2693
whose name does not start with the host triplet.  If you think this
 
2694
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2695
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2696
whose name does not start with the host triplet.  If you think this
 
2697
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2698
ac_tool_warned=yes ;;
 
2699
esac
 
2700
    OBJC=$ac_ct_OBJC
 
2701
  fi
 
2702
fi
 
2703
 
 
2704
# Provide some information about the compiler.
 
2705
echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
 
2706
ac_compiler=`set X $ac_compile; echo $2`
 
2707
{ (ac_try="$ac_compiler --version >&5"
 
2708
case "(($ac_try" in
 
2709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2710
  *) ac_try_echo=$ac_try;;
 
2711
esac
 
2712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2713
  (eval "$ac_compiler --version >&5") 2>&5
 
2714
  ac_status=$?
 
2715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2716
  (exit $ac_status); }
 
2717
{ (ac_try="$ac_compiler -v >&5"
 
2718
case "(($ac_try" in
 
2719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2720
  *) ac_try_echo=$ac_try;;
 
2721
esac
 
2722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2723
  (eval "$ac_compiler -v >&5") 2>&5
 
2724
  ac_status=$?
 
2725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2726
  (exit $ac_status); }
 
2727
{ (ac_try="$ac_compiler -V >&5"
 
2728
case "(($ac_try" in
 
2729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2730
  *) ac_try_echo=$ac_try;;
 
2731
esac
 
2732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2733
  (eval "$ac_compiler -V >&5") 2>&5
 
2734
  ac_status=$?
 
2735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2736
  (exit $ac_status); }
 
2737
 
 
2738
cat >conftest.$ac_ext <<_ACEOF
 
2739
/* confdefs.h.  */
 
2740
_ACEOF
 
2741
cat confdefs.h >>conftest.$ac_ext
 
2742
cat >>conftest.$ac_ext <<_ACEOF
 
2743
/* end confdefs.h.  */
 
2744
 
 
2745
int
 
2746
main ()
 
2747
{
 
2748
 
 
2749
  ;
 
2750
  return 0;
 
2751
}
 
2752
_ACEOF
 
2753
ac_clean_files_save=$ac_clean_files
 
2754
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2755
# Try to create an executable without -o first, disregard a.out.
 
2756
# It will help us diagnose broken compilers, and finding out an intuition
 
2757
# of exeext.
 
2758
{ echo "$as_me:$LINENO: checking for Objective C compiler default output file name" >&5
 
2759
echo $ECHO_N "checking for Objective C compiler default output file name... $ECHO_C" >&6; }
 
2760
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2761
#
 
2762
# List of possible output files, starting from the most likely.
 
2763
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2764
# only as a last resort.  b.out is created by i960 compilers.
 
2765
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2766
#
 
2767
# The IRIX 6 linker writes into existing files which may not be
 
2768
# executable, retaining their permissions.  Remove them first so a
 
2769
# subsequent execution test works.
 
2770
ac_rmfiles=
 
2771
for ac_file in $ac_files
 
2772
do
 
2773
  case $ac_file in
 
2774
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2775
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2776
  esac
 
2777
done
 
2778
rm -f $ac_rmfiles
 
2779
 
 
2780
if { (ac_try="$ac_link_default"
 
2781
case "(($ac_try" in
 
2782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2783
  *) ac_try_echo=$ac_try;;
 
2784
esac
 
2785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2786
  (eval "$ac_link_default") 2>&5
 
2787
  ac_status=$?
 
2788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2789
  (exit $ac_status); }; then
 
2790
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2791
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2792
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2793
# so that the user can short-circuit this test for compilers unknown to
 
2794
# Autoconf.
 
2795
for ac_file in $ac_files ''
 
2796
do
 
2797
  test -f "$ac_file" || continue
 
2798
  case $ac_file in
 
2799
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2800
        ;;
 
2801
    [ab].out )
 
2802
        # We found the default executable, but exeext='' is most
 
2803
        # certainly right.
 
2804
        break;;
 
2805
    *.* )
 
2806
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2807
        then :; else
 
2808
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2809
        fi
 
2810
        # We set ac_cv_exeext here because the later test for it is not
 
2811
        # safe: cross compilers may not add the suffix if given an `-o'
 
2812
        # argument, so we may need to know it at that point already.
 
2813
        # Even if this section looks crufty: it has the advantage of
 
2814
        # actually working.
 
2815
        break;;
 
2816
    * )
 
2817
        break;;
 
2818
  esac
 
2819
done
 
2820
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2821
 
 
2822
else
 
2823
  ac_file=''
 
2824
fi
 
2825
 
 
2826
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2827
echo "${ECHO_T}$ac_file" >&6; }
 
2828
if test -z "$ac_file"; then
 
2829
  echo "$as_me: failed program was:" >&5
 
2830
sed 's/^/| /' conftest.$ac_ext >&5
 
2831
 
 
2832
{ { echo "$as_me:$LINENO: error: Objective C compiler cannot create executables
 
2833
See \`config.log' for more details." >&5
 
2834
echo "$as_me: error: Objective C compiler cannot create executables
 
2835
See \`config.log' for more details." >&2;}
 
2836
   { (exit 77); exit 77; }; }
 
2837
fi
 
2838
 
 
2839
ac_exeext=$ac_cv_exeext
 
2840
 
 
2841
# Check that the compiler produces executables we can run.  If not, either
 
2842
# the compiler is broken, or we cross compile.
 
2843
{ echo "$as_me:$LINENO: checking whether the Objective C compiler works" >&5
 
2844
echo $ECHO_N "checking whether the Objective C compiler works... $ECHO_C" >&6; }
 
2845
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2846
# If not cross compiling, check that we can run a simple program.
 
2847
if test "$cross_compiling" != yes; then
 
2848
  if { ac_try='./$ac_file'
 
2849
  { (case "(($ac_try" in
 
2850
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2851
  *) ac_try_echo=$ac_try;;
 
2852
esac
 
2853
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2854
  (eval "$ac_try") 2>&5
 
2855
  ac_status=$?
 
2856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2857
  (exit $ac_status); }; }; then
 
2858
    cross_compiling=no
 
2859
  else
 
2860
    if test "$cross_compiling" = maybe; then
 
2861
        cross_compiling=yes
 
2862
    else
 
2863
        { { echo "$as_me:$LINENO: error: cannot run Objective C compiled programs.
 
2864
If you meant to cross compile, use \`--host'.
 
2865
See \`config.log' for more details." >&5
 
2866
echo "$as_me: error: cannot run Objective C compiled programs.
 
2867
If you meant to cross compile, use \`--host'.
 
2868
See \`config.log' for more details." >&2;}
 
2869
   { (exit 1); exit 1; }; }
 
2870
    fi
 
2871
  fi
 
2872
fi
 
2873
{ echo "$as_me:$LINENO: result: yes" >&5
 
2874
echo "${ECHO_T}yes" >&6; }
 
2875
 
 
2876
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2877
ac_clean_files=$ac_clean_files_save
 
2878
# Check that the compiler produces executables we can run.  If not, either
 
2879
# the compiler is broken, or we cross compile.
 
2880
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2881
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2882
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2883
echo "${ECHO_T}$cross_compiling" >&6; }
 
2884
 
 
2885
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2886
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2887
if { (ac_try="$ac_link"
 
2888
case "(($ac_try" in
 
2889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2890
  *) ac_try_echo=$ac_try;;
 
2891
esac
 
2892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2893
  (eval "$ac_link") 2>&5
 
2894
  ac_status=$?
 
2895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2896
  (exit $ac_status); }; then
 
2897
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2898
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2899
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2900
# `rm'.
 
2901
for ac_file in conftest.exe conftest conftest.*; do
 
2902
  test -f "$ac_file" || continue
 
2903
  case $ac_file in
 
2904
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2905
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2906
          break;;
 
2907
    * ) break;;
 
2908
  esac
 
2909
done
 
2910
else
 
2911
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2912
See \`config.log' for more details." >&5
 
2913
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2914
See \`config.log' for more details." >&2;}
 
2915
   { (exit 1); exit 1; }; }
 
2916
fi
 
2917
 
 
2918
rm -f conftest$ac_cv_exeext
 
2919
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2920
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2921
 
 
2922
rm -f conftest.$ac_ext
 
2923
EXEEXT=$ac_cv_exeext
 
2924
ac_exeext=$EXEEXT
 
2925
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2926
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2927
if test "${ac_cv_objext+set}" = set; then
 
2928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2929
else
 
2930
  cat >conftest.$ac_ext <<_ACEOF
 
2931
/* confdefs.h.  */
 
2932
_ACEOF
 
2933
cat confdefs.h >>conftest.$ac_ext
 
2934
cat >>conftest.$ac_ext <<_ACEOF
 
2935
/* end confdefs.h.  */
 
2936
 
 
2937
int
 
2938
main ()
 
2939
{
 
2940
 
 
2941
  ;
 
2942
  return 0;
 
2943
}
 
2944
_ACEOF
 
2945
rm -f conftest.o conftest.obj
 
2946
if { (ac_try="$ac_compile"
 
2947
case "(($ac_try" in
 
2948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2949
  *) ac_try_echo=$ac_try;;
 
2950
esac
 
2951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2952
  (eval "$ac_compile") 2>&5
 
2953
  ac_status=$?
 
2954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2955
  (exit $ac_status); }; then
 
2956
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2957
  test -f "$ac_file" || continue;
 
2958
  case $ac_file in
 
2959
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2960
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2961
       break;;
 
2962
  esac
 
2963
done
 
2964
else
 
2965
  echo "$as_me: failed program was:" >&5
 
2966
sed 's/^/| /' conftest.$ac_ext >&5
 
2967
 
 
2968
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2969
See \`config.log' for more details." >&5
 
2970
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2971
See \`config.log' for more details." >&2;}
 
2972
   { (exit 1); exit 1; }; }
 
2973
fi
 
2974
 
 
2975
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2976
fi
 
2977
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2978
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2979
OBJEXT=$ac_cv_objext
 
2980
ac_objext=$OBJEXT
 
2981
{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
 
2982
echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
 
2983
if test "${ac_cv_objc_compiler_gnu+set}" = set; then
 
2984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2985
else
 
2986
  cat >conftest.$ac_ext <<_ACEOF
 
2987
/* confdefs.h.  */
 
2988
_ACEOF
 
2989
cat confdefs.h >>conftest.$ac_ext
 
2990
cat >>conftest.$ac_ext <<_ACEOF
 
2991
/* end confdefs.h.  */
 
2992
 
 
2993
int
 
2994
main ()
 
2995
{
 
2996
#ifndef __GNUC__
 
2997
       choke me
 
2998
#endif
 
2999
 
 
3000
  ;
 
3001
  return 0;
 
3002
}
 
3003
_ACEOF
 
3004
rm -f conftest.$ac_objext
 
3005
if { (ac_try="$ac_compile"
 
3006
case "(($ac_try" in
 
3007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3008
  *) ac_try_echo=$ac_try;;
 
3009
esac
 
3010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3011
  (eval "$ac_compile") 2>conftest.er1
 
3012
  ac_status=$?
 
3013
  grep -v '^ *+' conftest.er1 >conftest.err
 
3014
  rm -f conftest.er1
 
3015
  cat conftest.err >&5
 
3016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3017
  (exit $ac_status); } && {
 
3018
         test -z "$ac_objc_werror_flag" ||
 
3019
         test ! -s conftest.err
 
3020
       } && test -s conftest.$ac_objext; then
 
3021
  ac_compiler_gnu=yes
 
3022
else
 
3023
  echo "$as_me: failed program was:" >&5
 
3024
sed 's/^/| /' conftest.$ac_ext >&5
 
3025
 
 
3026
        ac_compiler_gnu=no
 
3027
fi
 
3028
 
 
3029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3030
ac_cv_objc_compiler_gnu=$ac_compiler_gnu
 
3031
 
 
3032
fi
 
3033
{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
 
3034
echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
 
3035
GOBJC=`test $ac_compiler_gnu = yes && echo yes`
 
3036
ac_test_OBJCFLAGS=${OBJCFLAGS+set}
 
3037
ac_save_OBJCFLAGS=$OBJCFLAGS
 
3038
{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
 
3039
echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
 
3040
if test "${ac_cv_prog_objc_g+set}" = set; then
 
3041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3042
else
 
3043
  ac_save_objc_werror_flag=$ac_objc_werror_flag
 
3044
   ac_objc_werror_flag=yes
 
3045
   ac_cv_prog_objc_g=no
 
3046
   OBJCFLAGS="-g"
 
3047
   cat >conftest.$ac_ext <<_ACEOF
 
3048
/* confdefs.h.  */
 
3049
_ACEOF
 
3050
cat confdefs.h >>conftest.$ac_ext
 
3051
cat >>conftest.$ac_ext <<_ACEOF
 
3052
/* end confdefs.h.  */
 
3053
 
 
3054
int
 
3055
main ()
 
3056
{
 
3057
 
 
3058
  ;
 
3059
  return 0;
 
3060
}
 
3061
_ACEOF
 
3062
rm -f conftest.$ac_objext
 
3063
if { (ac_try="$ac_compile"
 
3064
case "(($ac_try" in
 
3065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3066
  *) ac_try_echo=$ac_try;;
 
3067
esac
 
3068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3069
  (eval "$ac_compile") 2>conftest.er1
 
3070
  ac_status=$?
 
3071
  grep -v '^ *+' conftest.er1 >conftest.err
 
3072
  rm -f conftest.er1
 
3073
  cat conftest.err >&5
 
3074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3075
  (exit $ac_status); } && {
 
3076
         test -z "$ac_objc_werror_flag" ||
 
3077
         test ! -s conftest.err
 
3078
       } && test -s conftest.$ac_objext; then
 
3079
  ac_cv_prog_objc_g=yes
 
3080
else
 
3081
  echo "$as_me: failed program was:" >&5
 
3082
sed 's/^/| /' conftest.$ac_ext >&5
 
3083
 
 
3084
        OBJCFLAGS=""
 
3085
      cat >conftest.$ac_ext <<_ACEOF
 
3086
/* confdefs.h.  */
 
3087
_ACEOF
 
3088
cat confdefs.h >>conftest.$ac_ext
 
3089
cat >>conftest.$ac_ext <<_ACEOF
 
3090
/* end confdefs.h.  */
 
3091
 
 
3092
int
 
3093
main ()
 
3094
{
 
3095
 
 
3096
  ;
 
3097
  return 0;
 
3098
}
 
3099
_ACEOF
 
3100
rm -f conftest.$ac_objext
 
3101
if { (ac_try="$ac_compile"
 
3102
case "(($ac_try" in
 
3103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3104
  *) ac_try_echo=$ac_try;;
 
3105
esac
 
3106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3107
  (eval "$ac_compile") 2>conftest.er1
 
3108
  ac_status=$?
 
3109
  grep -v '^ *+' conftest.er1 >conftest.err
 
3110
  rm -f conftest.er1
 
3111
  cat conftest.err >&5
 
3112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3113
  (exit $ac_status); } && {
 
3114
         test -z "$ac_objc_werror_flag" ||
 
3115
         test ! -s conftest.err
 
3116
       } && test -s conftest.$ac_objext; then
 
3117
  :
 
3118
else
 
3119
  echo "$as_me: failed program was:" >&5
 
3120
sed 's/^/| /' conftest.$ac_ext >&5
 
3121
 
 
3122
        ac_objc_werror_flag=$ac_save_objc_werror_flag
 
3123
         OBJCFLAGS="-g"
 
3124
         cat >conftest.$ac_ext <<_ACEOF
 
3125
/* confdefs.h.  */
 
3126
_ACEOF
 
3127
cat confdefs.h >>conftest.$ac_ext
 
3128
cat >>conftest.$ac_ext <<_ACEOF
 
3129
/* end confdefs.h.  */
 
3130
 
 
3131
int
 
3132
main ()
 
3133
{
 
3134
 
 
3135
  ;
 
3136
  return 0;
 
3137
}
 
3138
_ACEOF
 
3139
rm -f conftest.$ac_objext
 
3140
if { (ac_try="$ac_compile"
 
3141
case "(($ac_try" in
 
3142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3143
  *) ac_try_echo=$ac_try;;
 
3144
esac
 
3145
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3146
  (eval "$ac_compile") 2>conftest.er1
 
3147
  ac_status=$?
 
3148
  grep -v '^ *+' conftest.er1 >conftest.err
 
3149
  rm -f conftest.er1
 
3150
  cat conftest.err >&5
 
3151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3152
  (exit $ac_status); } && {
 
3153
         test -z "$ac_objc_werror_flag" ||
 
3154
         test ! -s conftest.err
 
3155
       } && test -s conftest.$ac_objext; then
 
3156
  ac_cv_prog_objc_g=yes
 
3157
else
 
3158
  echo "$as_me: failed program was:" >&5
 
3159
sed 's/^/| /' conftest.$ac_ext >&5
 
3160
 
 
3161
 
 
3162
fi
 
3163
 
 
3164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3165
fi
 
3166
 
 
3167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3168
fi
 
3169
 
 
3170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3171
   ac_objc_werror_flag=$ac_save_objc_werror_flag
 
3172
fi
 
3173
{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
 
3174
echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
 
3175
if test "$ac_test_OBJCFLAGS" = set; then
 
3176
  OBJCFLAGS=$ac_save_OBJCFLAGS
 
3177
elif test $ac_cv_prog_objc_g = yes; then
 
3178
  if test "$GOBJC" = yes; then
 
3179
    OBJCFLAGS="-g -O2"
 
3180
  else
 
3181
    OBJCFLAGS="-g"
 
3182
  fi
 
3183
else
 
3184
  if test "$GOBJC" = yes; then
 
3185
    OBJCFLAGS="-O2"
 
3186
  else
 
3187
    OBJCFLAGS=
 
3188
  fi
 
3189
fi
 
3190
ac_ext=c
 
3191
ac_cpp='$CPP $CPPFLAGS'
 
3192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3195
 
 
3196
# Find a good install program.  We prefer a C program (faster),
 
3197
# so one script is as good as another.  But avoid the broken or
 
3198
# incompatible versions:
 
3199
# SysV /etc/install, /usr/sbin/install
 
3200
# SunOS /usr/etc/install
 
3201
# IRIX /sbin/install
 
3202
# AIX /bin/install
 
3203
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3204
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3205
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3206
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3207
# OS/2's system install, which has a completely different semantic
 
3208
# ./install, which can be erroneously created by make from ./install.sh.
 
3209
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3210
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
3211
if test -z "$INSTALL"; then
 
3212
if test "${ac_cv_path_install+set}" = set; then
 
3213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3214
else
 
3215
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3216
for as_dir in $PATH
 
3217
do
 
3218
  IFS=$as_save_IFS
 
3219
  test -z "$as_dir" && as_dir=.
 
3220
  # Account for people who put trailing slashes in PATH elements.
 
3221
case $as_dir/ in
 
3222
  ./ | .// | /cC/* | \
 
3223
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3224
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3225
  /usr/ucb/* ) ;;
 
3226
  *)
 
3227
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3228
    # Don't use installbsd from OSF since it installs stuff as root
 
3229
    # by default.
 
3230
    for ac_prog in ginstall scoinst install; do
 
3231
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3232
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3233
          if test $ac_prog = install &&
 
3234
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3235
            # AIX install.  It has an incompatible calling convention.
 
3236
            :
 
3237
          elif test $ac_prog = install &&
 
3238
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3239
            # program-specific install script used by HP pwplus--don't use.
 
3240
            :
 
3241
          else
 
3242
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3243
            break 3
 
3244
          fi
 
3245
        fi
 
3246
      done
 
3247
    done
 
3248
    ;;
 
3249
esac
 
3250
done
 
3251
IFS=$as_save_IFS
 
3252
 
 
3253
 
 
3254
fi
 
3255
  if test "${ac_cv_path_install+set}" = set; then
 
3256
    INSTALL=$ac_cv_path_install
 
3257
  else
 
3258
    # As a last resort, use the slow shell script.  Don't cache a
 
3259
    # value for INSTALL within a source directory, because that will
 
3260
    # break other packages using the cache if that directory is
 
3261
    # removed, or if the value is a relative name.
 
3262
    INSTALL=$ac_install_sh
 
3263
  fi
 
3264
fi
 
3265
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3266
echo "${ECHO_T}$INSTALL" >&6; }
 
3267
 
 
3268
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3269
# It thinks the first close brace ends the variable substitution.
 
3270
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3271
 
 
3272
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3273
 
 
3274
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3275
 
 
3276
# Check whether --enable-shared was given.
 
3277
if test "${enable_shared+set}" = set; then
 
3278
  enableval=$enable_shared; p=${PACKAGE-default}
 
3279
    case $enableval in
 
3280
    yes) enable_shared=yes ;;
 
3281
    no) enable_shared=no ;;
 
3282
    *)
 
3283
      enable_shared=no
 
3284
      # Look at the argument we got.  We use all the common list separators.
 
3285
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3286
      for pkg in $enableval; do
 
3287
        IFS="$lt_save_ifs"
 
3288
        if test "X$pkg" = "X$p"; then
 
3289
          enable_shared=yes
 
3290
        fi
 
3291
      done
 
3292
      IFS="$lt_save_ifs"
 
3293
      ;;
 
3294
    esac
 
3295
else
 
3296
  enable_shared=yes
 
3297
fi
 
3298
 
 
3299
 
 
3300
# Check whether --enable-static was given.
 
3301
if test "${enable_static+set}" = set; then
 
3302
  enableval=$enable_static; p=${PACKAGE-default}
 
3303
    case $enableval in
 
3304
    yes) enable_static=yes ;;
 
3305
    no) enable_static=no ;;
 
3306
    *)
 
3307
     enable_static=no
 
3308
      # Look at the argument we got.  We use all the common list separators.
 
3309
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3310
      for pkg in $enableval; do
 
3311
        IFS="$lt_save_ifs"
 
3312
        if test "X$pkg" = "X$p"; then
 
3313
          enable_static=yes
 
3314
        fi
 
3315
      done
 
3316
      IFS="$lt_save_ifs"
 
3317
      ;;
 
3318
    esac
 
3319
else
 
3320
  enable_static=yes
 
3321
fi
 
3322
 
 
3323
 
 
3324
# Check whether --enable-fast-install was given.
 
3325
if test "${enable_fast_install+set}" = set; then
 
3326
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3327
    case $enableval in
 
3328
    yes) enable_fast_install=yes ;;
 
3329
    no) enable_fast_install=no ;;
 
3330
    *)
 
3331
      enable_fast_install=no
 
3332
      # Look at the argument we got.  We use all the common list separators.
 
3333
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3334
      for pkg in $enableval; do
 
3335
        IFS="$lt_save_ifs"
 
3336
        if test "X$pkg" = "X$p"; then
 
3337
          enable_fast_install=yes
 
3338
        fi
 
3339
      done
 
3340
      IFS="$lt_save_ifs"
 
3341
      ;;
 
3342
    esac
 
3343
else
 
3344
  enable_fast_install=yes
 
3345
fi
 
3346
 
 
3347
 
 
3348
# Make sure we can run config.sub.
 
3349
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3350
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3351
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3352
   { (exit 1); exit 1; }; }
 
3353
 
 
3354
{ echo "$as_me:$LINENO: checking build system type" >&5
 
3355
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
3356
if test "${ac_cv_build+set}" = set; then
 
3357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3358
else
 
3359
  ac_build_alias=$build_alias
 
3360
test "x$ac_build_alias" = x &&
 
3361
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3362
test "x$ac_build_alias" = x &&
 
3363
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3364
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3365
   { (exit 1); exit 1; }; }
 
3366
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3367
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3368
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3369
   { (exit 1); exit 1; }; }
 
3370
 
 
3371
fi
 
3372
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3373
echo "${ECHO_T}$ac_cv_build" >&6; }
 
3374
case $ac_cv_build in
 
3375
*-*-*) ;;
 
3376
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3377
echo "$as_me: error: invalid value of canonical build" >&2;}
 
3378
   { (exit 1); exit 1; }; };;
 
3379
esac
 
3380
build=$ac_cv_build
 
3381
ac_save_IFS=$IFS; IFS='-'
 
3382
set x $ac_cv_build
 
3383
shift
 
3384
build_cpu=$1
 
3385
build_vendor=$2
 
3386
shift; shift
 
3387
# Remember, the first character of IFS is used to create $*,
 
3388
# except with old shells:
 
3389
build_os=$*
 
3390
IFS=$ac_save_IFS
 
3391
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3392
 
 
3393
 
 
3394
{ echo "$as_me:$LINENO: checking host system type" >&5
 
3395
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
3396
if test "${ac_cv_host+set}" = set; then
 
3397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3398
else
 
3399
  if test "x$host_alias" = x; then
 
3400
  ac_cv_host=$ac_cv_build
 
3401
else
 
3402
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3403
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3404
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3405
   { (exit 1); exit 1; }; }
 
3406
fi
 
3407
 
 
3408
fi
 
3409
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3410
echo "${ECHO_T}$ac_cv_host" >&6; }
 
3411
case $ac_cv_host in
 
3412
*-*-*) ;;
 
3413
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3414
echo "$as_me: error: invalid value of canonical host" >&2;}
 
3415
   { (exit 1); exit 1; }; };;
 
3416
esac
 
3417
host=$ac_cv_host
 
3418
ac_save_IFS=$IFS; IFS='-'
 
3419
set x $ac_cv_host
 
3420
shift
 
3421
host_cpu=$1
 
3422
host_vendor=$2
 
3423
shift; shift
 
3424
# Remember, the first character of IFS is used to create $*,
 
3425
# except with old shells:
 
3426
host_os=$*
 
3427
IFS=$ac_save_IFS
 
3428
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3429
 
 
3430
 
 
3431
ac_ext=c
 
3432
ac_cpp='$CPP $CPPFLAGS'
 
3433
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3434
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3435
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3436
if test -n "$ac_tool_prefix"; then
 
3437
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3438
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3439
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3440
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3441
if test "${ac_cv_prog_CC+set}" = set; then
 
3442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3443
else
 
3444
  if test -n "$CC"; then
 
3445
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3446
else
 
3447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3448
for as_dir in $PATH
 
3449
do
 
3450
  IFS=$as_save_IFS
 
3451
  test -z "$as_dir" && as_dir=.
 
3452
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3453
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3454
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3455
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3456
    break 2
 
3457
  fi
 
3458
done
 
3459
done
 
3460
IFS=$as_save_IFS
 
3461
 
 
3462
fi
 
3463
fi
 
3464
CC=$ac_cv_prog_CC
 
3465
if test -n "$CC"; then
 
3466
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3467
echo "${ECHO_T}$CC" >&6; }
 
3468
else
 
3469
  { echo "$as_me:$LINENO: result: no" >&5
 
3470
echo "${ECHO_T}no" >&6; }
 
3471
fi
 
3472
 
 
3473
 
 
3474
fi
 
3475
if test -z "$ac_cv_prog_CC"; then
 
3476
  ac_ct_CC=$CC
 
3477
  # Extract the first word of "gcc", so it can be a program name with args.
 
3478
set dummy gcc; ac_word=$2
 
3479
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3480
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3481
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3483
else
 
3484
  if test -n "$ac_ct_CC"; then
 
3485
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3486
else
 
3487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3488
for as_dir in $PATH
 
3489
do
 
3490
  IFS=$as_save_IFS
 
3491
  test -z "$as_dir" && as_dir=.
 
3492
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3493
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3494
    ac_cv_prog_ac_ct_CC="gcc"
 
3495
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3496
    break 2
 
3497
  fi
 
3498
done
 
3499
done
 
3500
IFS=$as_save_IFS
 
3501
 
 
3502
fi
 
3503
fi
 
3504
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3505
if test -n "$ac_ct_CC"; then
 
3506
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3507
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3508
else
 
3509
  { echo "$as_me:$LINENO: result: no" >&5
 
3510
echo "${ECHO_T}no" >&6; }
 
3511
fi
 
3512
 
 
3513
  if test "x$ac_ct_CC" = x; then
 
3514
    CC=""
 
3515
  else
 
3516
    case $cross_compiling:$ac_tool_warned in
 
3517
yes:)
 
3518
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3519
whose name does not start with the host triplet.  If you think this
 
3520
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3521
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3522
whose name does not start with the host triplet.  If you think this
 
3523
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3524
ac_tool_warned=yes ;;
 
3525
esac
 
3526
    CC=$ac_ct_CC
 
3527
  fi
 
3528
else
 
3529
  CC="$ac_cv_prog_CC"
 
3530
fi
 
3531
 
 
3532
if test -z "$CC"; then
 
3533
          if test -n "$ac_tool_prefix"; then
 
3534
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3535
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3536
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3538
if test "${ac_cv_prog_CC+set}" = set; then
 
3539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3540
else
 
3541
  if test -n "$CC"; then
 
3542
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3543
else
 
3544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3545
for as_dir in $PATH
 
3546
do
 
3547
  IFS=$as_save_IFS
 
3548
  test -z "$as_dir" && as_dir=.
 
3549
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3550
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3551
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3552
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3553
    break 2
 
3554
  fi
 
3555
done
 
3556
done
 
3557
IFS=$as_save_IFS
 
3558
 
 
3559
fi
 
3560
fi
 
3561
CC=$ac_cv_prog_CC
 
3562
if test -n "$CC"; then
 
3563
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3564
echo "${ECHO_T}$CC" >&6; }
 
3565
else
 
3566
  { echo "$as_me:$LINENO: result: no" >&5
 
3567
echo "${ECHO_T}no" >&6; }
 
3568
fi
 
3569
 
 
3570
 
 
3571
  fi
 
3572
fi
 
3573
if test -z "$CC"; then
 
3574
  # Extract the first word of "cc", so it can be a program name with args.
 
3575
set dummy cc; ac_word=$2
 
3576
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3577
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3578
if test "${ac_cv_prog_CC+set}" = set; then
 
3579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3580
else
 
3581
  if test -n "$CC"; then
 
3582
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3583
else
 
3584
  ac_prog_rejected=no
 
3585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3586
for as_dir in $PATH
 
3587
do
 
3588
  IFS=$as_save_IFS
 
3589
  test -z "$as_dir" && as_dir=.
 
3590
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3591
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3592
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3593
       ac_prog_rejected=yes
 
3594
       continue
 
3595
     fi
 
3596
    ac_cv_prog_CC="cc"
 
3597
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3598
    break 2
 
3599
  fi
 
3600
done
 
3601
done
 
3602
IFS=$as_save_IFS
 
3603
 
 
3604
if test $ac_prog_rejected = yes; then
 
3605
  # We found a bogon in the path, so make sure we never use it.
 
3606
  set dummy $ac_cv_prog_CC
 
3607
  shift
 
3608
  if test $# != 0; then
 
3609
    # We chose a different compiler from the bogus one.
 
3610
    # However, it has the same basename, so the bogon will be chosen
 
3611
    # first if we set CC to just the basename; use the full file name.
 
3612
    shift
 
3613
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3614
  fi
 
3615
fi
 
3616
fi
 
3617
fi
 
3618
CC=$ac_cv_prog_CC
 
3619
if test -n "$CC"; then
 
3620
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3621
echo "${ECHO_T}$CC" >&6; }
 
3622
else
 
3623
  { echo "$as_me:$LINENO: result: no" >&5
 
3624
echo "${ECHO_T}no" >&6; }
 
3625
fi
 
3626
 
 
3627
 
 
3628
fi
 
3629
if test -z "$CC"; then
 
3630
  if test -n "$ac_tool_prefix"; then
 
3631
  for ac_prog in cl.exe
 
3632
  do
 
3633
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3634
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3635
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3637
if test "${ac_cv_prog_CC+set}" = set; then
 
3638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3639
else
 
3640
  if test -n "$CC"; then
 
3641
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3642
else
 
3643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3644
for as_dir in $PATH
 
3645
do
 
3646
  IFS=$as_save_IFS
 
3647
  test -z "$as_dir" && as_dir=.
 
3648
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3649
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3650
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3651
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3652
    break 2
 
3653
  fi
 
3654
done
 
3655
done
 
3656
IFS=$as_save_IFS
 
3657
 
 
3658
fi
 
3659
fi
 
3660
CC=$ac_cv_prog_CC
 
3661
if test -n "$CC"; then
 
3662
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3663
echo "${ECHO_T}$CC" >&6; }
 
3664
else
 
3665
  { echo "$as_me:$LINENO: result: no" >&5
 
3666
echo "${ECHO_T}no" >&6; }
 
3667
fi
 
3668
 
 
3669
 
 
3670
    test -n "$CC" && break
 
3671
  done
 
3672
fi
 
3673
if test -z "$CC"; then
 
3674
  ac_ct_CC=$CC
 
3675
  for ac_prog in cl.exe
 
3676
do
 
3677
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3678
set dummy $ac_prog; ac_word=$2
 
3679
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3681
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3683
else
 
3684
  if test -n "$ac_ct_CC"; then
 
3685
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3686
else
 
3687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3688
for as_dir in $PATH
 
3689
do
 
3690
  IFS=$as_save_IFS
 
3691
  test -z "$as_dir" && as_dir=.
 
3692
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3693
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3694
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3695
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3696
    break 2
 
3697
  fi
 
3698
done
 
3699
done
 
3700
IFS=$as_save_IFS
 
3701
 
 
3702
fi
 
3703
fi
 
3704
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3705
if test -n "$ac_ct_CC"; then
 
3706
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3707
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3708
else
 
3709
  { echo "$as_me:$LINENO: result: no" >&5
 
3710
echo "${ECHO_T}no" >&6; }
 
3711
fi
 
3712
 
 
3713
 
 
3714
  test -n "$ac_ct_CC" && break
 
3715
done
 
3716
 
 
3717
  if test "x$ac_ct_CC" = x; then
 
3718
    CC=""
 
3719
  else
 
3720
    case $cross_compiling:$ac_tool_warned in
 
3721
yes:)
 
3722
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3723
whose name does not start with the host triplet.  If you think this
 
3724
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3725
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3726
whose name does not start with the host triplet.  If you think this
 
3727
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3728
ac_tool_warned=yes ;;
 
3729
esac
 
3730
    CC=$ac_ct_CC
 
3731
  fi
 
3732
fi
 
3733
 
 
3734
fi
 
3735
 
 
3736
 
 
3737
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3738
See \`config.log' for more details." >&5
 
3739
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3740
See \`config.log' for more details." >&2;}
 
3741
   { (exit 1); exit 1; }; }
 
3742
 
 
3743
# Provide some information about the compiler.
 
3744
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3745
ac_compiler=`set X $ac_compile; echo $2`
 
3746
{ (ac_try="$ac_compiler --version >&5"
 
3747
case "(($ac_try" in
 
3748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3749
  *) ac_try_echo=$ac_try;;
 
3750
esac
 
3751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3752
  (eval "$ac_compiler --version >&5") 2>&5
 
3753
  ac_status=$?
 
3754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3755
  (exit $ac_status); }
 
3756
{ (ac_try="$ac_compiler -v >&5"
 
3757
case "(($ac_try" in
 
3758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3759
  *) ac_try_echo=$ac_try;;
 
3760
esac
 
3761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3762
  (eval "$ac_compiler -v >&5") 2>&5
 
3763
  ac_status=$?
 
3764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3765
  (exit $ac_status); }
 
3766
{ (ac_try="$ac_compiler -V >&5"
 
3767
case "(($ac_try" in
 
3768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3769
  *) ac_try_echo=$ac_try;;
 
3770
esac
 
3771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3772
  (eval "$ac_compiler -V >&5") 2>&5
 
3773
  ac_status=$?
 
3774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3775
  (exit $ac_status); }
 
3776
 
 
3777
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3778
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3779
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3781
else
 
3782
  cat >conftest.$ac_ext <<_ACEOF
 
3783
/* confdefs.h.  */
 
3784
_ACEOF
 
3785
cat confdefs.h >>conftest.$ac_ext
 
3786
cat >>conftest.$ac_ext <<_ACEOF
 
3787
/* end confdefs.h.  */
 
3788
 
 
3789
int
 
3790
main ()
 
3791
{
 
3792
#ifndef __GNUC__
 
3793
       choke me
 
3794
#endif
 
3795
 
 
3796
  ;
 
3797
  return 0;
 
3798
}
 
3799
_ACEOF
 
3800
rm -f conftest.$ac_objext
 
3801
if { (ac_try="$ac_compile"
 
3802
case "(($ac_try" in
 
3803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3804
  *) ac_try_echo=$ac_try;;
 
3805
esac
 
3806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3807
  (eval "$ac_compile") 2>conftest.er1
 
3808
  ac_status=$?
 
3809
  grep -v '^ *+' conftest.er1 >conftest.err
 
3810
  rm -f conftest.er1
 
3811
  cat conftest.err >&5
 
3812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3813
  (exit $ac_status); } && {
 
3814
         test -z "$ac_c_werror_flag" ||
 
3815
         test ! -s conftest.err
 
3816
       } && test -s conftest.$ac_objext; then
 
3817
  ac_compiler_gnu=yes
 
3818
else
 
3819
  echo "$as_me: failed program was:" >&5
 
3820
sed 's/^/| /' conftest.$ac_ext >&5
 
3821
 
 
3822
        ac_compiler_gnu=no
 
3823
fi
 
3824
 
 
3825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3826
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3827
 
 
3828
fi
 
3829
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3830
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3831
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3832
ac_test_CFLAGS=${CFLAGS+set}
 
3833
ac_save_CFLAGS=$CFLAGS
 
3834
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3835
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3836
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3838
else
 
3839
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3840
   ac_c_werror_flag=yes
 
3841
   ac_cv_prog_cc_g=no
 
3842
   CFLAGS="-g"
 
3843
   cat >conftest.$ac_ext <<_ACEOF
 
3844
/* confdefs.h.  */
 
3845
_ACEOF
 
3846
cat confdefs.h >>conftest.$ac_ext
 
3847
cat >>conftest.$ac_ext <<_ACEOF
 
3848
/* end confdefs.h.  */
 
3849
 
 
3850
int
 
3851
main ()
 
3852
{
 
3853
 
 
3854
  ;
 
3855
  return 0;
 
3856
}
 
3857
_ACEOF
 
3858
rm -f conftest.$ac_objext
 
3859
if { (ac_try="$ac_compile"
 
3860
case "(($ac_try" in
 
3861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3862
  *) ac_try_echo=$ac_try;;
 
3863
esac
 
3864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3865
  (eval "$ac_compile") 2>conftest.er1
 
3866
  ac_status=$?
 
3867
  grep -v '^ *+' conftest.er1 >conftest.err
 
3868
  rm -f conftest.er1
 
3869
  cat conftest.err >&5
 
3870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3871
  (exit $ac_status); } && {
 
3872
         test -z "$ac_c_werror_flag" ||
 
3873
         test ! -s conftest.err
 
3874
       } && test -s conftest.$ac_objext; then
 
3875
  ac_cv_prog_cc_g=yes
 
3876
else
 
3877
  echo "$as_me: failed program was:" >&5
 
3878
sed 's/^/| /' conftest.$ac_ext >&5
 
3879
 
 
3880
        CFLAGS=""
 
3881
      cat >conftest.$ac_ext <<_ACEOF
 
3882
/* confdefs.h.  */
 
3883
_ACEOF
 
3884
cat confdefs.h >>conftest.$ac_ext
 
3885
cat >>conftest.$ac_ext <<_ACEOF
 
3886
/* end confdefs.h.  */
 
3887
 
 
3888
int
 
3889
main ()
 
3890
{
 
3891
 
 
3892
  ;
 
3893
  return 0;
 
3894
}
 
3895
_ACEOF
 
3896
rm -f conftest.$ac_objext
 
3897
if { (ac_try="$ac_compile"
 
3898
case "(($ac_try" in
 
3899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3900
  *) ac_try_echo=$ac_try;;
 
3901
esac
 
3902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3903
  (eval "$ac_compile") 2>conftest.er1
 
3904
  ac_status=$?
 
3905
  grep -v '^ *+' conftest.er1 >conftest.err
 
3906
  rm -f conftest.er1
 
3907
  cat conftest.err >&5
 
3908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3909
  (exit $ac_status); } && {
 
3910
         test -z "$ac_c_werror_flag" ||
 
3911
         test ! -s conftest.err
 
3912
       } && test -s conftest.$ac_objext; then
 
3913
  :
 
3914
else
 
3915
  echo "$as_me: failed program was:" >&5
 
3916
sed 's/^/| /' conftest.$ac_ext >&5
 
3917
 
 
3918
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3919
         CFLAGS="-g"
 
3920
         cat >conftest.$ac_ext <<_ACEOF
 
3921
/* confdefs.h.  */
 
3922
_ACEOF
 
3923
cat confdefs.h >>conftest.$ac_ext
 
3924
cat >>conftest.$ac_ext <<_ACEOF
 
3925
/* end confdefs.h.  */
 
3926
 
 
3927
int
 
3928
main ()
 
3929
{
 
3930
 
 
3931
  ;
 
3932
  return 0;
 
3933
}
 
3934
_ACEOF
 
3935
rm -f conftest.$ac_objext
 
3936
if { (ac_try="$ac_compile"
 
3937
case "(($ac_try" in
 
3938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3939
  *) ac_try_echo=$ac_try;;
 
3940
esac
 
3941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3942
  (eval "$ac_compile") 2>conftest.er1
 
3943
  ac_status=$?
 
3944
  grep -v '^ *+' conftest.er1 >conftest.err
 
3945
  rm -f conftest.er1
 
3946
  cat conftest.err >&5
 
3947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3948
  (exit $ac_status); } && {
 
3949
         test -z "$ac_c_werror_flag" ||
 
3950
         test ! -s conftest.err
 
3951
       } && test -s conftest.$ac_objext; then
 
3952
  ac_cv_prog_cc_g=yes
 
3953
else
 
3954
  echo "$as_me: failed program was:" >&5
 
3955
sed 's/^/| /' conftest.$ac_ext >&5
 
3956
 
 
3957
 
 
3958
fi
 
3959
 
 
3960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3961
fi
 
3962
 
 
3963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3964
fi
 
3965
 
 
3966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3967
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3968
fi
 
3969
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3970
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3971
if test "$ac_test_CFLAGS" = set; then
 
3972
  CFLAGS=$ac_save_CFLAGS
 
3973
elif test $ac_cv_prog_cc_g = yes; then
 
3974
  if test "$GCC" = yes; then
 
3975
    CFLAGS="-g -O2"
 
3976
  else
 
3977
    CFLAGS="-g"
 
3978
  fi
 
3979
else
 
3980
  if test "$GCC" = yes; then
 
3981
    CFLAGS="-O2"
 
3982
  else
 
3983
    CFLAGS=
 
3984
  fi
 
3985
fi
 
3986
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3987
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3988
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3990
else
 
3991
  ac_cv_prog_cc_c89=no
 
3992
ac_save_CC=$CC
 
3993
cat >conftest.$ac_ext <<_ACEOF
 
3994
/* confdefs.h.  */
 
3995
_ACEOF
 
3996
cat confdefs.h >>conftest.$ac_ext
 
3997
cat >>conftest.$ac_ext <<_ACEOF
 
3998
/* end confdefs.h.  */
 
3999
#include <stdarg.h>
 
4000
#include <stdio.h>
 
4001
#include <sys/types.h>
 
4002
#include <sys/stat.h>
 
4003
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4004
struct buf { int x; };
 
4005
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4006
static char *e (p, i)
 
4007
     char **p;
 
4008
     int i;
 
4009
{
 
4010
  return p[i];
 
4011
}
 
4012
static char *f (char * (*g) (char **, int), char **p, ...)
 
4013
{
 
4014
  char *s;
 
4015
  va_list v;
 
4016
  va_start (v,p);
 
4017
  s = g (p, va_arg (v,int));
 
4018
  va_end (v);
 
4019
  return s;
 
4020
}
 
4021
 
 
4022
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4023
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4024
   These don't provoke an error unfortunately, instead are silently treated
 
4025
   as 'x'.  The following induces an error, until -std is added to get
 
4026
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4027
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4028
   that's true only with -std.  */
 
4029
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4030
 
 
4031
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4032
   inside strings and character constants.  */
 
4033
#define FOO(x) 'x'
 
4034
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4035
 
 
4036
int test (int i, double x);
 
4037
struct s1 {int (*f) (int a);};
 
4038
struct s2 {int (*f) (double a);};
 
4039
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4040
int argc;
 
4041
char **argv;
 
4042
int
 
4043
main ()
 
4044
{
 
4045
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4046
  ;
 
4047
  return 0;
 
4048
}
 
4049
_ACEOF
 
4050
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4051
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4052
do
 
4053
  CC="$ac_save_CC $ac_arg"
 
4054
  rm -f conftest.$ac_objext
 
4055
if { (ac_try="$ac_compile"
 
4056
case "(($ac_try" in
 
4057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4058
  *) ac_try_echo=$ac_try;;
 
4059
esac
 
4060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4061
  (eval "$ac_compile") 2>conftest.er1
 
4062
  ac_status=$?
 
4063
  grep -v '^ *+' conftest.er1 >conftest.err
 
4064
  rm -f conftest.er1
 
4065
  cat conftest.err >&5
 
4066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4067
  (exit $ac_status); } && {
 
4068
         test -z "$ac_c_werror_flag" ||
 
4069
         test ! -s conftest.err
 
4070
       } && test -s conftest.$ac_objext; then
 
4071
  ac_cv_prog_cc_c89=$ac_arg
 
4072
else
 
4073
  echo "$as_me: failed program was:" >&5
 
4074
sed 's/^/| /' conftest.$ac_ext >&5
 
4075
 
 
4076
 
 
4077
fi
 
4078
 
 
4079
rm -f core conftest.err conftest.$ac_objext
 
4080
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4081
done
 
4082
rm -f conftest.$ac_ext
 
4083
CC=$ac_save_CC
 
4084
 
 
4085
fi
 
4086
# AC_CACHE_VAL
 
4087
case "x$ac_cv_prog_cc_c89" in
 
4088
  x)
 
4089
    { echo "$as_me:$LINENO: result: none needed" >&5
 
4090
echo "${ECHO_T}none needed" >&6; } ;;
 
4091
  xno)
 
4092
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
4093
echo "${ECHO_T}unsupported" >&6; } ;;
 
4094
  *)
 
4095
    CC="$CC $ac_cv_prog_cc_c89"
 
4096
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4097
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
4098
esac
 
4099
 
 
4100
 
 
4101
ac_ext=c
 
4102
ac_cpp='$CPP $CPPFLAGS'
 
4103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4106
 
 
4107
depcc="$CC"   am_compiler_list=
 
4108
 
 
4109
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4110
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
4111
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4113
else
 
4114
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4115
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4116
  # making bogus files that we don't know about and never remove.  For
 
4117
  # instance it was reported that on HP-UX the gcc test will end up
 
4118
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4119
  # in D'.
 
4120
  mkdir conftest.dir
 
4121
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4122
  # using a relative directory.
 
4123
  cp "$am_depcomp" conftest.dir
 
4124
  cd conftest.dir
 
4125
  # We will build objects and dependencies in a subdirectory because
 
4126
  # it helps to detect inapplicable dependency modes.  For instance
 
4127
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4128
  # side effect of compilation, but ICC will put the dependencies in
 
4129
  # the current directory while Tru64 will put them in the object
 
4130
  # directory.
 
4131
  mkdir sub
 
4132
 
 
4133
  am_cv_CC_dependencies_compiler_type=none
 
4134
  if test "$am_compiler_list" = ""; then
 
4135
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4136
  fi
 
4137
  for depmode in $am_compiler_list; do
 
4138
    # Setup a source with many dependencies, because some compilers
 
4139
    # like to wrap large dependency lists on column 80 (with \), and
 
4140
    # we should not choose a depcomp mode which is confused by this.
 
4141
    #
 
4142
    # We need to recreate these files for each test, as the compiler may
 
4143
    # overwrite some of them when testing with obscure command lines.
 
4144
    # This happens at least with the AIX C compiler.
 
4145
    : > sub/conftest.c
 
4146
    for i in 1 2 3 4 5 6; do
 
4147
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4148
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4149
      # Solaris 8's {/usr,}/bin/sh.
 
4150
      touch sub/conftst$i.h
 
4151
    done
 
4152
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4153
 
 
4154
    case $depmode in
 
4155
    nosideeffect)
 
4156
      # after this tag, mechanisms are not by side-effect, so they'll
 
4157
      # only be used when explicitly requested
 
4158
      if test "x$enable_dependency_tracking" = xyes; then
 
4159
        continue
 
4160
      else
 
4161
        break
 
4162
      fi
 
4163
      ;;
 
4164
    none) break ;;
 
4165
    esac
 
4166
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4167
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4168
    # handle `-M -o', and we need to detect this.
 
4169
    if depmode=$depmode \
 
4170
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4171
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4172
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4173
         >/dev/null 2>conftest.err &&
 
4174
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4175
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4176
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4177
      # icc doesn't choke on unknown options, it will just issue warnings
 
4178
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4179
      # that says an option was ignored or not supported.
 
4180
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4181
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4182
      # The diagnosis changed in icc 8.0:
 
4183
      #   icc: Command line remark: option '-MP' not supported
 
4184
      if (grep 'ignoring option' conftest.err ||
 
4185
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4186
        am_cv_CC_dependencies_compiler_type=$depmode
 
4187
        break
 
4188
      fi
 
4189
    fi
 
4190
  done
 
4191
 
 
4192
  cd ..
 
4193
  rm -rf conftest.dir
 
4194
else
 
4195
  am_cv_CC_dependencies_compiler_type=none
 
4196
fi
 
4197
 
 
4198
fi
 
4199
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4200
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
4201
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4202
 
 
4203
 
 
4204
 
 
4205
if
 
4206
  test "x$enable_dependency_tracking" != xno \
 
4207
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4208
  am__fastdepCC_TRUE=
 
4209
  am__fastdepCC_FALSE='#'
 
4210
else
 
4211
  am__fastdepCC_TRUE='#'
 
4212
  am__fastdepCC_FALSE=
 
4213
fi
 
4214
 
 
4215
 
 
4216
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4217
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
4218
if test "${lt_cv_path_SED+set}" = set; then
 
4219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4220
else
 
4221
  # Loop through the user's path and test for sed and gsed.
 
4222
# Then use that list of sed's as ones to test for truncation.
 
4223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4224
for as_dir in $PATH
 
4225
do
 
4226
  IFS=$as_save_IFS
 
4227
  test -z "$as_dir" && as_dir=.
 
4228
  for lt_ac_prog in sed gsed; do
 
4229
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4230
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4231
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4232
      fi
 
4233
    done
 
4234
  done
 
4235
done
 
4236
IFS=$as_save_IFS
 
4237
lt_ac_max=0
 
4238
lt_ac_count=0
 
4239
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4240
# along with /bin/sed that truncates output.
 
4241
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4242
  test ! -f $lt_ac_sed && continue
 
4243
  cat /dev/null > conftest.in
 
4244
  lt_ac_count=0
 
4245
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4246
  # Check for GNU sed and select it if it is found.
 
4247
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4248
    lt_cv_path_SED=$lt_ac_sed
 
4249
    break
 
4250
  fi
 
4251
  while true; do
 
4252
    cat conftest.in conftest.in >conftest.tmp
 
4253
    mv conftest.tmp conftest.in
 
4254
    cp conftest.in conftest.nl
 
4255
    echo >>conftest.nl
 
4256
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4257
    cmp -s conftest.out conftest.nl || break
 
4258
    # 10000 chars as input seems more than enough
 
4259
    test $lt_ac_count -gt 10 && break
 
4260
    lt_ac_count=`expr $lt_ac_count + 1`
 
4261
    if test $lt_ac_count -gt $lt_ac_max; then
 
4262
      lt_ac_max=$lt_ac_count
 
4263
      lt_cv_path_SED=$lt_ac_sed
 
4264
    fi
 
4265
  done
 
4266
done
 
4267
 
 
4268
fi
 
4269
 
 
4270
SED=$lt_cv_path_SED
 
4271
 
 
4272
{ echo "$as_me:$LINENO: result: $SED" >&5
 
4273
echo "${ECHO_T}$SED" >&6; }
 
4274
 
 
4275
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4276
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4277
if test "${ac_cv_path_GREP+set}" = set; then
 
4278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4279
else
 
4280
  # Extract the first word of "grep ggrep" to use in msg output
 
4281
if test -z "$GREP"; then
 
4282
set dummy grep ggrep; ac_prog_name=$2
 
4283
if test "${ac_cv_path_GREP+set}" = set; then
 
4284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4285
else
 
4286
  ac_path_GREP_found=false
 
4287
# Loop through the user's path and test for each of PROGNAME-LIST
 
4288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4289
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4290
do
 
4291
  IFS=$as_save_IFS
 
4292
  test -z "$as_dir" && as_dir=.
 
4293
  for ac_prog in grep ggrep; do
 
4294
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4295
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4296
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4297
    # Check for GNU ac_path_GREP and select it if it is found.
 
4298
  # Check for GNU $ac_path_GREP
 
4299
case `"$ac_path_GREP" --version 2>&1` in
 
4300
*GNU*)
 
4301
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4302
*)
 
4303
  ac_count=0
 
4304
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4305
  while :
 
4306
  do
 
4307
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4308
    mv "conftest.tmp" "conftest.in"
 
4309
    cp "conftest.in" "conftest.nl"
 
4310
    echo 'GREP' >> "conftest.nl"
 
4311
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4312
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4313
    ac_count=`expr $ac_count + 1`
 
4314
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4315
      # Best one so far, save it but keep looking for a better one
 
4316
      ac_cv_path_GREP="$ac_path_GREP"
 
4317
      ac_path_GREP_max=$ac_count
 
4318
    fi
 
4319
    # 10*(2^10) chars as input seems more than enough
 
4320
    test $ac_count -gt 10 && break
 
4321
  done
 
4322
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4323
esac
 
4324
 
 
4325
 
 
4326
    $ac_path_GREP_found && break 3
 
4327
  done
 
4328
done
 
4329
 
 
4330
done
 
4331
IFS=$as_save_IFS
 
4332
 
 
4333
 
 
4334
fi
 
4335
 
 
4336
GREP="$ac_cv_path_GREP"
 
4337
if test -z "$GREP"; then
 
4338
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4339
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4340
   { (exit 1); exit 1; }; }
 
4341
fi
 
4342
 
 
4343
else
 
4344
  ac_cv_path_GREP=$GREP
 
4345
fi
 
4346
 
 
4347
 
 
4348
fi
 
4349
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4350
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4351
 GREP="$ac_cv_path_GREP"
 
4352
 
 
4353
 
 
4354
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4355
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4356
if test "${ac_cv_path_EGREP+set}" = set; then
 
4357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4358
else
 
4359
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4360
   then ac_cv_path_EGREP="$GREP -E"
 
4361
   else
 
4362
     # Extract the first word of "egrep" to use in msg output
 
4363
if test -z "$EGREP"; then
 
4364
set dummy egrep; ac_prog_name=$2
 
4365
if test "${ac_cv_path_EGREP+set}" = set; then
 
4366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4367
else
 
4368
  ac_path_EGREP_found=false
 
4369
# Loop through the user's path and test for each of PROGNAME-LIST
 
4370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4371
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4372
do
 
4373
  IFS=$as_save_IFS
 
4374
  test -z "$as_dir" && as_dir=.
 
4375
  for ac_prog in egrep; do
 
4376
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4377
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4378
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4379
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4380
  # Check for GNU $ac_path_EGREP
 
4381
case `"$ac_path_EGREP" --version 2>&1` in
 
4382
*GNU*)
 
4383
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4384
*)
 
4385
  ac_count=0
 
4386
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4387
  while :
 
4388
  do
 
4389
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4390
    mv "conftest.tmp" "conftest.in"
 
4391
    cp "conftest.in" "conftest.nl"
 
4392
    echo 'EGREP' >> "conftest.nl"
 
4393
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4394
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4395
    ac_count=`expr $ac_count + 1`
 
4396
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4397
      # Best one so far, save it but keep looking for a better one
 
4398
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4399
      ac_path_EGREP_max=$ac_count
 
4400
    fi
 
4401
    # 10*(2^10) chars as input seems more than enough
 
4402
    test $ac_count -gt 10 && break
 
4403
  done
 
4404
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4405
esac
 
4406
 
 
4407
 
 
4408
    $ac_path_EGREP_found && break 3
 
4409
  done
 
4410
done
 
4411
 
 
4412
done
 
4413
IFS=$as_save_IFS
 
4414
 
 
4415
 
 
4416
fi
 
4417
 
 
4418
EGREP="$ac_cv_path_EGREP"
 
4419
if test -z "$EGREP"; then
 
4420
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4421
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4422
   { (exit 1); exit 1; }; }
 
4423
fi
 
4424
 
 
4425
else
 
4426
  ac_cv_path_EGREP=$EGREP
 
4427
fi
 
4428
 
 
4429
 
 
4430
   fi
 
4431
fi
 
4432
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4433
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4434
 EGREP="$ac_cv_path_EGREP"
 
4435
 
 
4436
 
 
4437
 
 
4438
# Check whether --with-gnu-ld was given.
 
4439
if test "${with_gnu_ld+set}" = set; then
 
4440
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4441
else
 
4442
  with_gnu_ld=no
 
4443
fi
 
4444
 
 
4445
ac_prog=ld
 
4446
if test "$GCC" = yes; then
 
4447
  # Check if gcc -print-prog-name=ld gives a path.
 
4448
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4449
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4450
  case $host in
 
4451
  *-*-mingw*)
 
4452
    # gcc leaves a trailing carriage return which upsets mingw
 
4453
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4454
  *)
 
4455
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4456
  esac
 
4457
  case $ac_prog in
 
4458
    # Accept absolute paths.
 
4459
    [\\/]* | ?:[\\/]*)
 
4460
      re_direlt='/[^/][^/]*/\.\./'
 
4461
      # Canonicalize the pathname of ld
 
4462
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4463
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4464
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4465
      done
 
4466
      test -z "$LD" && LD="$ac_prog"
 
4467
      ;;
 
4468
  "")
 
4469
    # If it fails, then pretend we aren't using GCC.
 
4470
    ac_prog=ld
 
4471
    ;;
 
4472
  *)
 
4473
    # If it is relative, then search for the first ld in PATH.
 
4474
    with_gnu_ld=unknown
 
4475
    ;;
 
4476
  esac
 
4477
elif test "$with_gnu_ld" = yes; then
 
4478
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4479
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4480
else
 
4481
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4482
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4483
fi
 
4484
if test "${lt_cv_path_LD+set}" = set; then
 
4485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4486
else
 
4487
  if test -z "$LD"; then
 
4488
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4489
  for ac_dir in $PATH; do
 
4490
    IFS="$lt_save_ifs"
 
4491
    test -z "$ac_dir" && ac_dir=.
 
4492
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4493
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4494
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4495
      # but apparently some variants of GNU ld only accept -v.
 
4496
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4497
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4498
      *GNU* | *'with BFD'*)
 
4499
        test "$with_gnu_ld" != no && break
 
4500
        ;;
 
4501
      *)
 
4502
        test "$with_gnu_ld" != yes && break
 
4503
        ;;
 
4504
      esac
 
4505
    fi
 
4506
  done
 
4507
  IFS="$lt_save_ifs"
 
4508
else
 
4509
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4510
fi
 
4511
fi
 
4512
 
 
4513
LD="$lt_cv_path_LD"
 
4514
if test -n "$LD"; then
 
4515
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4516
echo "${ECHO_T}$LD" >&6; }
 
4517
else
 
4518
  { echo "$as_me:$LINENO: result: no" >&5
 
4519
echo "${ECHO_T}no" >&6; }
 
4520
fi
 
4521
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4522
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4523
   { (exit 1); exit 1; }; }
 
4524
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4525
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4526
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4528
else
 
4529
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4530
case `$LD -v 2>&1 </dev/null` in
 
4531
*GNU* | *'with BFD'*)
 
4532
  lt_cv_prog_gnu_ld=yes
 
4533
  ;;
 
4534
*)
 
4535
  lt_cv_prog_gnu_ld=no
 
4536
  ;;
 
4537
esac
 
4538
fi
 
4539
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4540
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4541
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4542
 
 
4543
 
 
4544
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4545
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4546
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4548
else
 
4549
  lt_cv_ld_reload_flag='-r'
 
4550
fi
 
4551
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4552
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4553
reload_flag=$lt_cv_ld_reload_flag
 
4554
case $reload_flag in
 
4555
"" | " "*) ;;
 
4556
*) reload_flag=" $reload_flag" ;;
 
4557
esac
 
4558
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4559
case $host_os in
 
4560
  darwin*)
 
4561
    if test "$GCC" = yes; then
 
4562
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4563
    else
 
4564
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4565
    fi
 
4566
    ;;
 
4567
esac
 
4568
 
 
4569
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4570
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4571
if test "${lt_cv_path_NM+set}" = set; then
 
4572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4573
else
 
4574
  if test -n "$NM"; then
 
4575
  # Let the user override the test.
 
4576
  lt_cv_path_NM="$NM"
 
4577
else
 
4578
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4579
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4580
    lt_nm_to_check="$lt_nm_to_check nm"
 
4581
  fi
 
4582
  for lt_tmp_nm in $lt_nm_to_check; do
 
4583
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4584
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4585
      IFS="$lt_save_ifs"
 
4586
      test -z "$ac_dir" && ac_dir=.
 
4587
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4588
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4589
        # Check to see if the nm accepts a BSD-compat flag.
 
4590
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4591
        #   nm: unknown option "B" ignored
 
4592
        # Tru64's nm complains that /dev/null is an invalid object file
 
4593
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4594
        */dev/null* | *'Invalid file or object type'*)
 
4595
          lt_cv_path_NM="$tmp_nm -B"
 
4596
          break
 
4597
          ;;
 
4598
        *)
 
4599
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4600
          */dev/null*)
 
4601
            lt_cv_path_NM="$tmp_nm -p"
 
4602
            break
 
4603
            ;;
 
4604
          *)
 
4605
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4606
            continue # so that we can try to find one that supports BSD flags
 
4607
            ;;
 
4608
          esac
 
4609
          ;;
 
4610
        esac
 
4611
      fi
 
4612
    done
 
4613
    IFS="$lt_save_ifs"
 
4614
  done
 
4615
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4616
fi
 
4617
fi
 
4618
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4619
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4620
NM="$lt_cv_path_NM"
 
4621
 
 
4622
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4623
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4624
LN_S=$as_ln_s
 
4625
if test "$LN_S" = "ln -s"; then
 
4626
  { echo "$as_me:$LINENO: result: yes" >&5
 
4627
echo "${ECHO_T}yes" >&6; }
 
4628
else
 
4629
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4630
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4631
fi
 
4632
 
 
4633
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4634
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4635
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4637
else
 
4638
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4639
lt_cv_file_magic_test_file=
 
4640
lt_cv_deplibs_check_method='unknown'
 
4641
# Need to set the preceding variable on all platforms that support
 
4642
# interlibrary dependencies.
 
4643
# 'none' -- dependencies not supported.
 
4644
# `unknown' -- same as none, but documents that we really don't know.
 
4645
# 'pass_all' -- all dependencies passed with no checks.
 
4646
# 'test_compile' -- check by making test program.
 
4647
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4648
# which responds to the $file_magic_cmd with a given extended regex.
 
4649
# If you have `file' or equivalent on your system and you're not sure
 
4650
# whether `pass_all' will *always* work, you probably want this one.
 
4651
 
 
4652
case $host_os in
 
4653
aix[4-9]*)
 
4654
  lt_cv_deplibs_check_method=pass_all
 
4655
  ;;
 
4656
 
 
4657
beos*)
 
4658
  lt_cv_deplibs_check_method=pass_all
 
4659
  ;;
 
4660
 
 
4661
bsdi[45]*)
 
4662
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4663
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4664
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4665
  ;;
 
4666
 
 
4667
cygwin*)
 
4668
  # func_win32_libid is a shell function defined in ltmain.sh
 
4669
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4670
  lt_cv_file_magic_cmd='func_win32_libid'
 
4671
  ;;
 
4672
 
 
4673
mingw* | pw32*)
 
4674
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4675
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4676
  # unless we find 'file', for example because we are cross-compiling.
 
4677
  if ( file / ) >/dev/null 2>&1; then
 
4678
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4679
    lt_cv_file_magic_cmd='func_win32_libid'
 
4680
  else
 
4681
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4682
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4683
  fi
 
4684
  ;;
 
4685
 
 
4686
darwin* | rhapsody*)
 
4687
  lt_cv_deplibs_check_method=pass_all
 
4688
  ;;
 
4689
 
 
4690
freebsd* | dragonfly*)
 
4691
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4692
    case $host_cpu in
 
4693
    i*86 )
 
4694
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4695
      # Let's accept both of them until this is cleared up.
 
4696
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4697
      lt_cv_file_magic_cmd=/usr/bin/file
 
4698
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4699
      ;;
 
4700
    esac
 
4701
  else
 
4702
    lt_cv_deplibs_check_method=pass_all
 
4703
  fi
 
4704
  ;;
 
4705
 
 
4706
gnu*)
 
4707
  lt_cv_deplibs_check_method=pass_all
 
4708
  ;;
 
4709
 
 
4710
hpux10.20* | hpux11*)
 
4711
  lt_cv_file_magic_cmd=/usr/bin/file
 
4712
  case $host_cpu in
 
4713
  ia64*)
 
4714
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4715
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4716
    ;;
 
4717
  hppa*64*)
 
4718
    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]'
 
4719
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4720
    ;;
 
4721
  *)
 
4722
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4723
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4724
    ;;
 
4725
  esac
 
4726
  ;;
 
4727
 
 
4728
interix[3-9]*)
 
4729
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4730
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4731
  ;;
 
4732
 
 
4733
irix5* | irix6* | nonstopux*)
 
4734
  case $LD in
 
4735
  *-32|*"-32 ") libmagic=32-bit;;
 
4736
  *-n32|*"-n32 ") libmagic=N32;;
 
4737
  *-64|*"-64 ") libmagic=64-bit;;
 
4738
  *) libmagic=never-match;;
 
4739
  esac
 
4740
  lt_cv_deplibs_check_method=pass_all
 
4741
  ;;
 
4742
 
 
4743
# This must be Linux ELF.
 
4744
linux* | k*bsd*-gnu)
 
4745
  lt_cv_deplibs_check_method=pass_all
 
4746
  ;;
 
4747
 
 
4748
netbsd* | netbsdelf*-gnu)
 
4749
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4750
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4751
  else
 
4752
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4753
  fi
 
4754
  ;;
 
4755
 
 
4756
newos6*)
 
4757
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4758
  lt_cv_file_magic_cmd=/usr/bin/file
 
4759
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4760
  ;;
 
4761
 
 
4762
nto-qnx*)
 
4763
  lt_cv_deplibs_check_method=unknown
 
4764
  ;;
 
4765
 
 
4766
openbsd*)
 
4767
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4768
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4769
  else
 
4770
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4771
  fi
 
4772
  ;;
 
4773
 
 
4774
osf3* | osf4* | osf5*)
 
4775
  lt_cv_deplibs_check_method=pass_all
 
4776
  ;;
 
4777
 
 
4778
rdos*)
 
4779
  lt_cv_deplibs_check_method=pass_all
 
4780
  ;;
 
4781
 
 
4782
solaris*)
 
4783
  lt_cv_deplibs_check_method=pass_all
 
4784
  ;;
 
4785
 
 
4786
sysv4 | sysv4.3*)
 
4787
  case $host_vendor in
 
4788
  motorola)
 
4789
    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]'
 
4790
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4791
    ;;
 
4792
  ncr)
 
4793
    lt_cv_deplibs_check_method=pass_all
 
4794
    ;;
 
4795
  sequent)
 
4796
    lt_cv_file_magic_cmd='/bin/file'
 
4797
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4798
    ;;
 
4799
  sni)
 
4800
    lt_cv_file_magic_cmd='/bin/file'
 
4801
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4802
    lt_cv_file_magic_test_file=/lib/libc.so
 
4803
    ;;
 
4804
  siemens)
 
4805
    lt_cv_deplibs_check_method=pass_all
 
4806
    ;;
 
4807
  pc)
 
4808
    lt_cv_deplibs_check_method=pass_all
 
4809
    ;;
 
4810
  esac
 
4811
  ;;
 
4812
 
 
4813
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4814
  lt_cv_deplibs_check_method=pass_all
 
4815
  ;;
 
4816
esac
 
4817
 
 
4818
fi
 
4819
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4820
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4821
file_magic_cmd=$lt_cv_file_magic_cmd
 
4822
deplibs_check_method=$lt_cv_deplibs_check_method
 
4823
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4824
 
 
4825
 
 
4826
 
 
4827
 
 
4828
# If no C compiler was specified, use CC.
 
4829
LTCC=${LTCC-"$CC"}
 
4830
 
 
4831
# If no C compiler flags were specified, use CFLAGS.
 
4832
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4833
 
 
4834
# Allow CC to be a program name with arguments.
 
4835
compiler=$CC
 
4836
 
 
4837
 
 
4838
# Check whether --enable-libtool-lock was given.
 
4839
if test "${enable_libtool_lock+set}" = set; then
 
4840
  enableval=$enable_libtool_lock;
 
4841
fi
 
4842
 
 
4843
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4844
 
 
4845
# Some flags need to be propagated to the compiler or linker for good
 
4846
# libtool support.
 
4847
case $host in
 
4848
ia64-*-hpux*)
 
4849
  # Find out which ABI we are using.
 
4850
  echo 'int i;' > conftest.$ac_ext
 
4851
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4852
  (eval $ac_compile) 2>&5
 
4853
  ac_status=$?
 
4854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4855
  (exit $ac_status); }; then
 
4856
    case `/usr/bin/file conftest.$ac_objext` in
 
4857
    *ELF-32*)
 
4858
      HPUX_IA64_MODE="32"
 
4859
      ;;
 
4860
    *ELF-64*)
 
4861
      HPUX_IA64_MODE="64"
 
4862
      ;;
 
4863
    esac
 
4864
  fi
 
4865
  rm -rf conftest*
 
4866
  ;;
 
4867
*-*-irix6*)
 
4868
  # Find out which ABI we are using.
 
4869
  echo '#line 4869 "configure"' > conftest.$ac_ext
 
4870
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4871
  (eval $ac_compile) 2>&5
 
4872
  ac_status=$?
 
4873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4874
  (exit $ac_status); }; then
 
4875
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4876
    case `/usr/bin/file conftest.$ac_objext` in
 
4877
    *32-bit*)
 
4878
      LD="${LD-ld} -melf32bsmip"
 
4879
      ;;
 
4880
    *N32*)
 
4881
      LD="${LD-ld} -melf32bmipn32"
 
4882
      ;;
 
4883
    *64-bit*)
 
4884
      LD="${LD-ld} -melf64bmip"
 
4885
      ;;
 
4886
    esac
 
4887
   else
 
4888
    case `/usr/bin/file conftest.$ac_objext` in
 
4889
    *32-bit*)
 
4890
      LD="${LD-ld} -32"
 
4891
      ;;
 
4892
    *N32*)
 
4893
      LD="${LD-ld} -n32"
 
4894
      ;;
 
4895
    *64-bit*)
 
4896
      LD="${LD-ld} -64"
 
4897
      ;;
 
4898
    esac
 
4899
   fi
 
4900
  fi
 
4901
  rm -rf conftest*
 
4902
  ;;
 
4903
 
 
4904
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4905
s390*-*linux*|sparc*-*linux*)
 
4906
  # Find out which ABI we are using.
 
4907
  echo 'int i;' > conftest.$ac_ext
 
4908
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4909
  (eval $ac_compile) 2>&5
 
4910
  ac_status=$?
 
4911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4912
  (exit $ac_status); }; then
 
4913
    case `/usr/bin/file conftest.o` in
 
4914
    *32-bit*)
 
4915
      case $host in
 
4916
        x86_64-*kfreebsd*-gnu)
 
4917
          LD="${LD-ld} -m elf_i386_fbsd"
 
4918
          ;;
 
4919
        x86_64-*linux*)
 
4920
          LD="${LD-ld} -m elf_i386"
 
4921
          ;;
 
4922
        ppc64-*linux*|powerpc64-*linux*)
 
4923
          LD="${LD-ld} -m elf32ppclinux"
 
4924
          ;;
 
4925
        s390x-*linux*)
 
4926
          LD="${LD-ld} -m elf_s390"
 
4927
          ;;
 
4928
        sparc64-*linux*)
 
4929
          LD="${LD-ld} -m elf32_sparc"
 
4930
          ;;
 
4931
      esac
 
4932
      ;;
 
4933
    *64-bit*)
 
4934
      case $host in
 
4935
        x86_64-*kfreebsd*-gnu)
 
4936
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4937
          ;;
 
4938
        x86_64-*linux*)
 
4939
          LD="${LD-ld} -m elf_x86_64"
 
4940
          ;;
 
4941
        ppc*-*linux*|powerpc*-*linux*)
 
4942
          LD="${LD-ld} -m elf64ppc"
 
4943
          ;;
 
4944
        s390*-*linux*)
 
4945
          LD="${LD-ld} -m elf64_s390"
 
4946
          ;;
 
4947
        sparc*-*linux*)
 
4948
          LD="${LD-ld} -m elf64_sparc"
 
4949
          ;;
 
4950
      esac
 
4951
      ;;
 
4952
    esac
 
4953
  fi
 
4954
  rm -rf conftest*
 
4955
  ;;
 
4956
 
 
4957
*-*-sco3.2v5*)
 
4958
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4959
  SAVE_CFLAGS="$CFLAGS"
 
4960
  CFLAGS="$CFLAGS -belf"
 
4961
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4962
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4963
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4964
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4965
else
 
4966
  ac_ext=c
 
4967
ac_cpp='$CPP $CPPFLAGS'
 
4968
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4969
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4970
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4971
 
 
4972
     cat >conftest.$ac_ext <<_ACEOF
 
4973
/* confdefs.h.  */
 
4974
_ACEOF
 
4975
cat confdefs.h >>conftest.$ac_ext
 
4976
cat >>conftest.$ac_ext <<_ACEOF
 
4977
/* end confdefs.h.  */
 
4978
 
 
4979
int
 
4980
main ()
 
4981
{
 
4982
 
 
4983
  ;
 
4984
  return 0;
 
4985
}
 
4986
_ACEOF
 
4987
rm -f conftest.$ac_objext conftest$ac_exeext
 
4988
if { (ac_try="$ac_link"
 
4989
case "(($ac_try" in
 
4990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4991
  *) ac_try_echo=$ac_try;;
 
4992
esac
 
4993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4994
  (eval "$ac_link") 2>conftest.er1
 
4995
  ac_status=$?
 
4996
  grep -v '^ *+' conftest.er1 >conftest.err
 
4997
  rm -f conftest.er1
 
4998
  cat conftest.err >&5
 
4999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5000
  (exit $ac_status); } && {
 
5001
         test -z "$ac_c_werror_flag" ||
 
5002
         test ! -s conftest.err
 
5003
       } && test -s conftest$ac_exeext &&
 
5004
       $as_test_x conftest$ac_exeext; then
 
5005
  lt_cv_cc_needs_belf=yes
 
5006
else
 
5007
  echo "$as_me: failed program was:" >&5
 
5008
sed 's/^/| /' conftest.$ac_ext >&5
 
5009
 
 
5010
        lt_cv_cc_needs_belf=no
 
5011
fi
 
5012
 
 
5013
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5014
      conftest$ac_exeext conftest.$ac_ext
 
5015
     ac_ext=c
 
5016
ac_cpp='$CPP $CPPFLAGS'
 
5017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5020
 
 
5021
fi
 
5022
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5023
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
5024
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5025
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5026
    CFLAGS="$SAVE_CFLAGS"
 
5027
  fi
 
5028
  ;;
 
5029
sparc*-*solaris*)
 
5030
  # Find out which ABI we are using.
 
5031
  echo 'int i;' > conftest.$ac_ext
 
5032
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5033
  (eval $ac_compile) 2>&5
 
5034
  ac_status=$?
 
5035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5036
  (exit $ac_status); }; then
 
5037
    case `/usr/bin/file conftest.o` in
 
5038
    *64-bit*)
 
5039
      case $lt_cv_prog_gnu_ld in
 
5040
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5041
      *)
 
5042
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5043
          LD="${LD-ld} -64"
 
5044
        fi
 
5045
        ;;
 
5046
      esac
 
5047
      ;;
 
5048
    esac
 
5049
  fi
 
5050
  rm -rf conftest*
 
5051
  ;;
 
5052
 
 
5053
 
 
5054
esac
 
5055
 
 
5056
need_locks="$enable_libtool_lock"
 
5057
 
 
5058
 
 
5059
ac_ext=c
 
5060
ac_cpp='$CPP $CPPFLAGS'
 
5061
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5062
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5063
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5064
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
5065
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
5066
# On Suns, sometimes $CPP names a directory.
 
5067
if test -n "$CPP" && test -d "$CPP"; then
 
5068
  CPP=
 
5069
fi
 
5070
if test -z "$CPP"; then
 
5071
  if test "${ac_cv_prog_CPP+set}" = set; then
 
5072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5073
else
 
5074
      # Double quotes because CPP needs to be expanded
 
5075
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5076
    do
 
5077
      ac_preproc_ok=false
 
5078
for ac_c_preproc_warn_flag in '' yes
 
5079
do
 
5080
  # Use a header file that comes with gcc, so configuring glibc
 
5081
  # with a fresh cross-compiler works.
 
5082
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5083
  # <limits.h> exists even on freestanding compilers.
 
5084
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5085
  # not just through cpp. "Syntax error" is here to catch this case.
 
5086
  cat >conftest.$ac_ext <<_ACEOF
 
5087
/* confdefs.h.  */
 
5088
_ACEOF
 
5089
cat confdefs.h >>conftest.$ac_ext
 
5090
cat >>conftest.$ac_ext <<_ACEOF
 
5091
/* end confdefs.h.  */
 
5092
#ifdef __STDC__
 
5093
# include <limits.h>
 
5094
#else
 
5095
# include <assert.h>
 
5096
#endif
 
5097
                     Syntax error
 
5098
_ACEOF
 
5099
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5100
case "(($ac_try" in
 
5101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5102
  *) ac_try_echo=$ac_try;;
 
5103
esac
 
5104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5105
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5106
  ac_status=$?
 
5107
  grep -v '^ *+' conftest.er1 >conftest.err
 
5108
  rm -f conftest.er1
 
5109
  cat conftest.err >&5
 
5110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5111
  (exit $ac_status); } >/dev/null && {
 
5112
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5113
         test ! -s conftest.err
 
5114
       }; then
 
5115
  :
 
5116
else
 
5117
  echo "$as_me: failed program was:" >&5
 
5118
sed 's/^/| /' conftest.$ac_ext >&5
 
5119
 
 
5120
  # Broken: fails on valid input.
 
5121
continue
 
5122
fi
 
5123
 
 
5124
rm -f conftest.err conftest.$ac_ext
 
5125
 
 
5126
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5127
  # can be detected and how.
 
5128
  cat >conftest.$ac_ext <<_ACEOF
 
5129
/* confdefs.h.  */
 
5130
_ACEOF
 
5131
cat confdefs.h >>conftest.$ac_ext
 
5132
cat >>conftest.$ac_ext <<_ACEOF
 
5133
/* end confdefs.h.  */
 
5134
#include <ac_nonexistent.h>
 
5135
_ACEOF
 
5136
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5137
case "(($ac_try" in
 
5138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5139
  *) ac_try_echo=$ac_try;;
 
5140
esac
 
5141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5142
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5143
  ac_status=$?
 
5144
  grep -v '^ *+' conftest.er1 >conftest.err
 
5145
  rm -f conftest.er1
 
5146
  cat conftest.err >&5
 
5147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5148
  (exit $ac_status); } >/dev/null && {
 
5149
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5150
         test ! -s conftest.err
 
5151
       }; then
 
5152
  # Broken: success on invalid input.
 
5153
continue
 
5154
else
 
5155
  echo "$as_me: failed program was:" >&5
 
5156
sed 's/^/| /' conftest.$ac_ext >&5
 
5157
 
 
5158
  # Passes both tests.
 
5159
ac_preproc_ok=:
 
5160
break
 
5161
fi
 
5162
 
 
5163
rm -f conftest.err conftest.$ac_ext
 
5164
 
 
5165
done
 
5166
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5167
rm -f conftest.err conftest.$ac_ext
 
5168
if $ac_preproc_ok; then
 
5169
  break
 
5170
fi
 
5171
 
 
5172
    done
 
5173
    ac_cv_prog_CPP=$CPP
 
5174
 
 
5175
fi
 
5176
  CPP=$ac_cv_prog_CPP
 
5177
else
 
5178
  ac_cv_prog_CPP=$CPP
 
5179
fi
 
5180
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
5181
echo "${ECHO_T}$CPP" >&6; }
 
5182
ac_preproc_ok=false
 
5183
for ac_c_preproc_warn_flag in '' yes
 
5184
do
 
5185
  # Use a header file that comes with gcc, so configuring glibc
 
5186
  # with a fresh cross-compiler works.
 
5187
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5188
  # <limits.h> exists even on freestanding compilers.
 
5189
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5190
  # not just through cpp. "Syntax error" is here to catch this case.
 
5191
  cat >conftest.$ac_ext <<_ACEOF
 
5192
/* confdefs.h.  */
 
5193
_ACEOF
 
5194
cat confdefs.h >>conftest.$ac_ext
 
5195
cat >>conftest.$ac_ext <<_ACEOF
 
5196
/* end confdefs.h.  */
 
5197
#ifdef __STDC__
 
5198
# include <limits.h>
 
5199
#else
 
5200
# include <assert.h>
 
5201
#endif
 
5202
                     Syntax error
 
5203
_ACEOF
 
5204
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5205
case "(($ac_try" in
 
5206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5207
  *) ac_try_echo=$ac_try;;
 
5208
esac
 
5209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5210
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5211
  ac_status=$?
 
5212
  grep -v '^ *+' conftest.er1 >conftest.err
 
5213
  rm -f conftest.er1
 
5214
  cat conftest.err >&5
 
5215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5216
  (exit $ac_status); } >/dev/null && {
 
5217
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5218
         test ! -s conftest.err
 
5219
       }; then
 
5220
  :
 
5221
else
 
5222
  echo "$as_me: failed program was:" >&5
 
5223
sed 's/^/| /' conftest.$ac_ext >&5
 
5224
 
 
5225
  # Broken: fails on valid input.
 
5226
continue
 
5227
fi
 
5228
 
 
5229
rm -f conftest.err conftest.$ac_ext
 
5230
 
 
5231
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5232
  # can be detected and how.
 
5233
  cat >conftest.$ac_ext <<_ACEOF
 
5234
/* confdefs.h.  */
 
5235
_ACEOF
 
5236
cat confdefs.h >>conftest.$ac_ext
 
5237
cat >>conftest.$ac_ext <<_ACEOF
 
5238
/* end confdefs.h.  */
 
5239
#include <ac_nonexistent.h>
 
5240
_ACEOF
 
5241
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5242
case "(($ac_try" in
 
5243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5244
  *) ac_try_echo=$ac_try;;
 
5245
esac
 
5246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5247
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5248
  ac_status=$?
 
5249
  grep -v '^ *+' conftest.er1 >conftest.err
 
5250
  rm -f conftest.er1
 
5251
  cat conftest.err >&5
 
5252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5253
  (exit $ac_status); } >/dev/null && {
 
5254
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5255
         test ! -s conftest.err
 
5256
       }; then
 
5257
  # Broken: success on invalid input.
 
5258
continue
 
5259
else
 
5260
  echo "$as_me: failed program was:" >&5
 
5261
sed 's/^/| /' conftest.$ac_ext >&5
 
5262
 
 
5263
  # Passes both tests.
 
5264
ac_preproc_ok=:
 
5265
break
 
5266
fi
 
5267
 
 
5268
rm -f conftest.err conftest.$ac_ext
 
5269
 
 
5270
done
 
5271
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5272
rm -f conftest.err conftest.$ac_ext
 
5273
if $ac_preproc_ok; then
 
5274
  :
 
5275
else
 
5276
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5277
See \`config.log' for more details." >&5
 
5278
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5279
See \`config.log' for more details." >&2;}
 
5280
   { (exit 1); exit 1; }; }
 
5281
fi
 
5282
 
 
5283
ac_ext=c
 
5284
ac_cpp='$CPP $CPPFLAGS'
 
5285
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5286
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5287
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5288
 
 
5289
 
 
5290
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5291
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5292
if test "${ac_cv_header_stdc+set}" = set; then
 
5293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5294
else
 
5295
  cat >conftest.$ac_ext <<_ACEOF
 
5296
/* confdefs.h.  */
 
5297
_ACEOF
 
5298
cat confdefs.h >>conftest.$ac_ext
 
5299
cat >>conftest.$ac_ext <<_ACEOF
 
5300
/* end confdefs.h.  */
 
5301
#include <stdlib.h>
 
5302
#include <stdarg.h>
 
5303
#include <string.h>
 
5304
#include <float.h>
 
5305
 
 
5306
int
 
5307
main ()
 
5308
{
 
5309
 
 
5310
  ;
 
5311
  return 0;
 
5312
}
 
5313
_ACEOF
 
5314
rm -f conftest.$ac_objext
 
5315
if { (ac_try="$ac_compile"
 
5316
case "(($ac_try" in
 
5317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5318
  *) ac_try_echo=$ac_try;;
 
5319
esac
 
5320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5321
  (eval "$ac_compile") 2>conftest.er1
 
5322
  ac_status=$?
 
5323
  grep -v '^ *+' conftest.er1 >conftest.err
 
5324
  rm -f conftest.er1
 
5325
  cat conftest.err >&5
 
5326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5327
  (exit $ac_status); } && {
 
5328
         test -z "$ac_c_werror_flag" ||
 
5329
         test ! -s conftest.err
 
5330
       } && test -s conftest.$ac_objext; then
 
5331
  ac_cv_header_stdc=yes
 
5332
else
 
5333
  echo "$as_me: failed program was:" >&5
 
5334
sed 's/^/| /' conftest.$ac_ext >&5
 
5335
 
 
5336
        ac_cv_header_stdc=no
 
5337
fi
 
5338
 
 
5339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5340
 
 
5341
if test $ac_cv_header_stdc = yes; then
 
5342
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5343
  cat >conftest.$ac_ext <<_ACEOF
 
5344
/* confdefs.h.  */
 
5345
_ACEOF
 
5346
cat confdefs.h >>conftest.$ac_ext
 
5347
cat >>conftest.$ac_ext <<_ACEOF
 
5348
/* end confdefs.h.  */
 
5349
#include <string.h>
 
5350
 
 
5351
_ACEOF
 
5352
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5353
  $EGREP "memchr" >/dev/null 2>&1; then
 
5354
  :
 
5355
else
 
5356
  ac_cv_header_stdc=no
 
5357
fi
 
5358
rm -f conftest*
 
5359
 
 
5360
fi
 
5361
 
 
5362
if test $ac_cv_header_stdc = yes; then
 
5363
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5364
  cat >conftest.$ac_ext <<_ACEOF
 
5365
/* confdefs.h.  */
 
5366
_ACEOF
 
5367
cat confdefs.h >>conftest.$ac_ext
 
5368
cat >>conftest.$ac_ext <<_ACEOF
 
5369
/* end confdefs.h.  */
 
5370
#include <stdlib.h>
 
5371
 
 
5372
_ACEOF
 
5373
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5374
  $EGREP "free" >/dev/null 2>&1; then
 
5375
  :
 
5376
else
 
5377
  ac_cv_header_stdc=no
 
5378
fi
 
5379
rm -f conftest*
 
5380
 
 
5381
fi
 
5382
 
 
5383
if test $ac_cv_header_stdc = yes; then
 
5384
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5385
  if test "$cross_compiling" = yes; then
 
5386
  :
 
5387
else
 
5388
  cat >conftest.$ac_ext <<_ACEOF
 
5389
/* confdefs.h.  */
 
5390
_ACEOF
 
5391
cat confdefs.h >>conftest.$ac_ext
 
5392
cat >>conftest.$ac_ext <<_ACEOF
 
5393
/* end confdefs.h.  */
 
5394
#include <ctype.h>
 
5395
#include <stdlib.h>
 
5396
#if ((' ' & 0x0FF) == 0x020)
 
5397
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5398
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5399
#else
 
5400
# define ISLOWER(c) \
 
5401
                   (('a' <= (c) && (c) <= 'i') \
 
5402
                     || ('j' <= (c) && (c) <= 'r') \
 
5403
                     || ('s' <= (c) && (c) <= 'z'))
 
5404
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5405
#endif
 
5406
 
 
5407
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5408
int
 
5409
main ()
 
5410
{
 
5411
  int i;
 
5412
  for (i = 0; i < 256; i++)
 
5413
    if (XOR (islower (i), ISLOWER (i))
 
5414
        || toupper (i) != TOUPPER (i))
 
5415
      return 2;
 
5416
  return 0;
 
5417
}
 
5418
_ACEOF
 
5419
rm -f conftest$ac_exeext
 
5420
if { (ac_try="$ac_link"
 
5421
case "(($ac_try" in
 
5422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5423
  *) ac_try_echo=$ac_try;;
 
5424
esac
 
5425
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5426
  (eval "$ac_link") 2>&5
 
5427
  ac_status=$?
 
5428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5429
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5430
  { (case "(($ac_try" in
 
5431
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5432
  *) ac_try_echo=$ac_try;;
 
5433
esac
 
5434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5435
  (eval "$ac_try") 2>&5
 
5436
  ac_status=$?
 
5437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5438
  (exit $ac_status); }; }; then
 
5439
  :
 
5440
else
 
5441
  echo "$as_me: program exited with status $ac_status" >&5
 
5442
echo "$as_me: failed program was:" >&5
 
5443
sed 's/^/| /' conftest.$ac_ext >&5
 
5444
 
 
5445
( exit $ac_status )
 
5446
ac_cv_header_stdc=no
 
5447
fi
 
5448
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5449
fi
 
5450
 
 
5451
 
 
5452
fi
 
5453
fi
 
5454
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5455
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5456
if test $ac_cv_header_stdc = yes; then
 
5457
 
 
5458
cat >>confdefs.h <<\_ACEOF
 
5459
#define STDC_HEADERS 1
 
5460
_ACEOF
 
5461
 
 
5462
fi
 
5463
 
 
5464
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5465
 
 
5466
 
 
5467
 
 
5468
 
 
5469
 
 
5470
 
 
5471
 
 
5472
 
 
5473
 
 
5474
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5475
                  inttypes.h stdint.h unistd.h
 
5476
do
 
5477
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5478
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5479
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5480
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5482
else
 
5483
  cat >conftest.$ac_ext <<_ACEOF
 
5484
/* confdefs.h.  */
 
5485
_ACEOF
 
5486
cat confdefs.h >>conftest.$ac_ext
 
5487
cat >>conftest.$ac_ext <<_ACEOF
 
5488
/* end confdefs.h.  */
 
5489
$ac_includes_default
 
5490
 
 
5491
#include <$ac_header>
 
5492
_ACEOF
 
5493
rm -f conftest.$ac_objext
 
5494
if { (ac_try="$ac_compile"
 
5495
case "(($ac_try" in
 
5496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5497
  *) ac_try_echo=$ac_try;;
 
5498
esac
 
5499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5500
  (eval "$ac_compile") 2>conftest.er1
 
5501
  ac_status=$?
 
5502
  grep -v '^ *+' conftest.er1 >conftest.err
 
5503
  rm -f conftest.er1
 
5504
  cat conftest.err >&5
 
5505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5506
  (exit $ac_status); } && {
 
5507
         test -z "$ac_c_werror_flag" ||
 
5508
         test ! -s conftest.err
 
5509
       } && test -s conftest.$ac_objext; then
 
5510
  eval "$as_ac_Header=yes"
 
5511
else
 
5512
  echo "$as_me: failed program was:" >&5
 
5513
sed 's/^/| /' conftest.$ac_ext >&5
 
5514
 
 
5515
        eval "$as_ac_Header=no"
 
5516
fi
 
5517
 
 
5518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5519
fi
 
5520
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5521
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5522
echo "${ECHO_T}$ac_res" >&6; }
 
5523
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5524
  cat >>confdefs.h <<_ACEOF
 
5525
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5526
_ACEOF
 
5527
 
 
5528
fi
 
5529
 
 
5530
done
 
5531
 
 
5532
 
 
5533
 
 
5534
for ac_header in dlfcn.h
 
5535
do
 
5536
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5537
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5538
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5539
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5540
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5542
fi
 
5543
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5544
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5545
echo "${ECHO_T}$ac_res" >&6; }
 
5546
else
 
5547
  # Is the header compilable?
 
5548
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5549
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5550
cat >conftest.$ac_ext <<_ACEOF
 
5551
/* confdefs.h.  */
 
5552
_ACEOF
 
5553
cat confdefs.h >>conftest.$ac_ext
 
5554
cat >>conftest.$ac_ext <<_ACEOF
 
5555
/* end confdefs.h.  */
 
5556
$ac_includes_default
 
5557
#include <$ac_header>
 
5558
_ACEOF
 
5559
rm -f conftest.$ac_objext
 
5560
if { (ac_try="$ac_compile"
 
5561
case "(($ac_try" in
 
5562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5563
  *) ac_try_echo=$ac_try;;
 
5564
esac
 
5565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5566
  (eval "$ac_compile") 2>conftest.er1
 
5567
  ac_status=$?
 
5568
  grep -v '^ *+' conftest.er1 >conftest.err
 
5569
  rm -f conftest.er1
 
5570
  cat conftest.err >&5
 
5571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5572
  (exit $ac_status); } && {
 
5573
         test -z "$ac_c_werror_flag" ||
 
5574
         test ! -s conftest.err
 
5575
       } && test -s conftest.$ac_objext; then
 
5576
  ac_header_compiler=yes
 
5577
else
 
5578
  echo "$as_me: failed program was:" >&5
 
5579
sed 's/^/| /' conftest.$ac_ext >&5
 
5580
 
 
5581
        ac_header_compiler=no
 
5582
fi
 
5583
 
 
5584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5585
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5586
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5587
 
 
5588
# Is the header present?
 
5589
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5590
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5591
cat >conftest.$ac_ext <<_ACEOF
 
5592
/* confdefs.h.  */
 
5593
_ACEOF
 
5594
cat confdefs.h >>conftest.$ac_ext
 
5595
cat >>conftest.$ac_ext <<_ACEOF
 
5596
/* end confdefs.h.  */
 
5597
#include <$ac_header>
 
5598
_ACEOF
 
5599
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5600
case "(($ac_try" in
 
5601
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5602
  *) ac_try_echo=$ac_try;;
 
5603
esac
 
5604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5605
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5606
  ac_status=$?
 
5607
  grep -v '^ *+' conftest.er1 >conftest.err
 
5608
  rm -f conftest.er1
 
5609
  cat conftest.err >&5
 
5610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5611
  (exit $ac_status); } >/dev/null && {
 
5612
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5613
         test ! -s conftest.err
 
5614
       }; then
 
5615
  ac_header_preproc=yes
 
5616
else
 
5617
  echo "$as_me: failed program was:" >&5
 
5618
sed 's/^/| /' conftest.$ac_ext >&5
 
5619
 
 
5620
  ac_header_preproc=no
 
5621
fi
 
5622
 
 
5623
rm -f conftest.err conftest.$ac_ext
 
5624
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5625
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5626
 
 
5627
# So?  What about this header?
 
5628
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5629
  yes:no: )
 
5630
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5631
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5632
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5633
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5634
    ac_header_preproc=yes
 
5635
    ;;
 
5636
  no:yes:* )
 
5637
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5638
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5639
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5640
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5641
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5642
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5643
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5644
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5645
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5646
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5647
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5648
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5649
    ( cat <<\_ASBOX
 
5650
## --------------------------------- ##
 
5651
## Report this to BUG-REPORT-ADDRESS ##
 
5652
## --------------------------------- ##
 
5653
_ASBOX
 
5654
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5655
    ;;
 
5656
esac
 
5657
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5658
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5659
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5661
else
 
5662
  eval "$as_ac_Header=\$ac_header_preproc"
 
5663
fi
 
5664
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5665
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5666
echo "${ECHO_T}$ac_res" >&6; }
 
5667
 
 
5668
fi
 
5669
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5670
  cat >>confdefs.h <<_ACEOF
 
5671
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5672
_ACEOF
 
5673
 
 
5674
fi
 
5675
 
 
5676
done
 
5677
 
 
5678
ac_ext=cpp
 
5679
ac_cpp='$CXXCPP $CPPFLAGS'
 
5680
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5681
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5682
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5683
if test -z "$CXX"; then
 
5684
  if test -n "$CCC"; then
 
5685
    CXX=$CCC
 
5686
  else
 
5687
    if test -n "$ac_tool_prefix"; then
 
5688
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5689
  do
 
5690
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5691
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5694
if test "${ac_cv_prog_CXX+set}" = set; then
 
5695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5696
else
 
5697
  if test -n "$CXX"; then
 
5698
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5699
else
 
5700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5701
for as_dir in $PATH
 
5702
do
 
5703
  IFS=$as_save_IFS
 
5704
  test -z "$as_dir" && as_dir=.
 
5705
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5706
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5707
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5708
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5709
    break 2
 
5710
  fi
 
5711
done
 
5712
done
 
5713
IFS=$as_save_IFS
 
5714
 
 
5715
fi
 
5716
fi
 
5717
CXX=$ac_cv_prog_CXX
 
5718
if test -n "$CXX"; then
 
5719
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5720
echo "${ECHO_T}$CXX" >&6; }
 
5721
else
 
5722
  { echo "$as_me:$LINENO: result: no" >&5
 
5723
echo "${ECHO_T}no" >&6; }
 
5724
fi
 
5725
 
 
5726
 
 
5727
    test -n "$CXX" && break
 
5728
  done
 
5729
fi
 
5730
if test -z "$CXX"; then
 
5731
  ac_ct_CXX=$CXX
 
5732
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5733
do
 
5734
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5735
set dummy $ac_prog; ac_word=$2
 
5736
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5738
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5740
else
 
5741
  if test -n "$ac_ct_CXX"; then
 
5742
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5743
else
 
5744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5745
for as_dir in $PATH
 
5746
do
 
5747
  IFS=$as_save_IFS
 
5748
  test -z "$as_dir" && as_dir=.
 
5749
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5750
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5751
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5752
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5753
    break 2
 
5754
  fi
 
5755
done
 
5756
done
 
5757
IFS=$as_save_IFS
 
5758
 
 
5759
fi
 
5760
fi
 
5761
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5762
if test -n "$ac_ct_CXX"; then
 
5763
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5764
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5765
else
 
5766
  { echo "$as_me:$LINENO: result: no" >&5
 
5767
echo "${ECHO_T}no" >&6; }
 
5768
fi
 
5769
 
 
5770
 
 
5771
  test -n "$ac_ct_CXX" && break
 
5772
done
 
5773
 
 
5774
  if test "x$ac_ct_CXX" = x; then
 
5775
    CXX="g++"
 
5776
  else
 
5777
    case $cross_compiling:$ac_tool_warned in
 
5778
yes:)
 
5779
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5780
whose name does not start with the host triplet.  If you think this
 
5781
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5782
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5783
whose name does not start with the host triplet.  If you think this
 
5784
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5785
ac_tool_warned=yes ;;
 
5786
esac
 
5787
    CXX=$ac_ct_CXX
 
5788
  fi
 
5789
fi
 
5790
 
 
5791
  fi
 
5792
fi
 
5793
# Provide some information about the compiler.
 
5794
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5795
ac_compiler=`set X $ac_compile; echo $2`
 
5796
{ (ac_try="$ac_compiler --version >&5"
 
5797
case "(($ac_try" in
 
5798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5799
  *) ac_try_echo=$ac_try;;
 
5800
esac
 
5801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5802
  (eval "$ac_compiler --version >&5") 2>&5
 
5803
  ac_status=$?
 
5804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5805
  (exit $ac_status); }
 
5806
{ (ac_try="$ac_compiler -v >&5"
 
5807
case "(($ac_try" in
 
5808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5809
  *) ac_try_echo=$ac_try;;
 
5810
esac
 
5811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5812
  (eval "$ac_compiler -v >&5") 2>&5
 
5813
  ac_status=$?
 
5814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5815
  (exit $ac_status); }
 
5816
{ (ac_try="$ac_compiler -V >&5"
 
5817
case "(($ac_try" in
 
5818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5819
  *) ac_try_echo=$ac_try;;
 
5820
esac
 
5821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5822
  (eval "$ac_compiler -V >&5") 2>&5
 
5823
  ac_status=$?
 
5824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5825
  (exit $ac_status); }
 
5826
 
 
5827
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5828
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5829
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5831
else
 
5832
  cat >conftest.$ac_ext <<_ACEOF
 
5833
/* confdefs.h.  */
 
5834
_ACEOF
 
5835
cat confdefs.h >>conftest.$ac_ext
 
5836
cat >>conftest.$ac_ext <<_ACEOF
 
5837
/* end confdefs.h.  */
 
5838
 
 
5839
int
 
5840
main ()
 
5841
{
 
5842
#ifndef __GNUC__
 
5843
       choke me
 
5844
#endif
 
5845
 
 
5846
  ;
 
5847
  return 0;
 
5848
}
 
5849
_ACEOF
 
5850
rm -f conftest.$ac_objext
 
5851
if { (ac_try="$ac_compile"
 
5852
case "(($ac_try" in
 
5853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5854
  *) ac_try_echo=$ac_try;;
 
5855
esac
 
5856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5857
  (eval "$ac_compile") 2>conftest.er1
 
5858
  ac_status=$?
 
5859
  grep -v '^ *+' conftest.er1 >conftest.err
 
5860
  rm -f conftest.er1
 
5861
  cat conftest.err >&5
 
5862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5863
  (exit $ac_status); } && {
 
5864
         test -z "$ac_cxx_werror_flag" ||
 
5865
         test ! -s conftest.err
 
5866
       } && test -s conftest.$ac_objext; then
 
5867
  ac_compiler_gnu=yes
 
5868
else
 
5869
  echo "$as_me: failed program was:" >&5
 
5870
sed 's/^/| /' conftest.$ac_ext >&5
 
5871
 
 
5872
        ac_compiler_gnu=no
 
5873
fi
 
5874
 
 
5875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5876
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5877
 
 
5878
fi
 
5879
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5880
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5881
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5882
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5883
ac_save_CXXFLAGS=$CXXFLAGS
 
5884
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5885
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5886
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5888
else
 
5889
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5890
   ac_cxx_werror_flag=yes
 
5891
   ac_cv_prog_cxx_g=no
 
5892
   CXXFLAGS="-g"
 
5893
   cat >conftest.$ac_ext <<_ACEOF
 
5894
/* confdefs.h.  */
 
5895
_ACEOF
 
5896
cat confdefs.h >>conftest.$ac_ext
 
5897
cat >>conftest.$ac_ext <<_ACEOF
 
5898
/* end confdefs.h.  */
 
5899
 
 
5900
int
 
5901
main ()
 
5902
{
 
5903
 
 
5904
  ;
 
5905
  return 0;
 
5906
}
 
5907
_ACEOF
 
5908
rm -f conftest.$ac_objext
 
5909
if { (ac_try="$ac_compile"
 
5910
case "(($ac_try" in
 
5911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5912
  *) ac_try_echo=$ac_try;;
 
5913
esac
 
5914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5915
  (eval "$ac_compile") 2>conftest.er1
 
5916
  ac_status=$?
 
5917
  grep -v '^ *+' conftest.er1 >conftest.err
 
5918
  rm -f conftest.er1
 
5919
  cat conftest.err >&5
 
5920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5921
  (exit $ac_status); } && {
 
5922
         test -z "$ac_cxx_werror_flag" ||
 
5923
         test ! -s conftest.err
 
5924
       } && test -s conftest.$ac_objext; then
 
5925
  ac_cv_prog_cxx_g=yes
 
5926
else
 
5927
  echo "$as_me: failed program was:" >&5
 
5928
sed 's/^/| /' conftest.$ac_ext >&5
 
5929
 
 
5930
        CXXFLAGS=""
 
5931
      cat >conftest.$ac_ext <<_ACEOF
 
5932
/* confdefs.h.  */
 
5933
_ACEOF
 
5934
cat confdefs.h >>conftest.$ac_ext
 
5935
cat >>conftest.$ac_ext <<_ACEOF
 
5936
/* end confdefs.h.  */
 
5937
 
 
5938
int
 
5939
main ()
 
5940
{
 
5941
 
 
5942
  ;
 
5943
  return 0;
 
5944
}
 
5945
_ACEOF
 
5946
rm -f conftest.$ac_objext
 
5947
if { (ac_try="$ac_compile"
 
5948
case "(($ac_try" in
 
5949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5950
  *) ac_try_echo=$ac_try;;
 
5951
esac
 
5952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5953
  (eval "$ac_compile") 2>conftest.er1
 
5954
  ac_status=$?
 
5955
  grep -v '^ *+' conftest.er1 >conftest.err
 
5956
  rm -f conftest.er1
 
5957
  cat conftest.err >&5
 
5958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5959
  (exit $ac_status); } && {
 
5960
         test -z "$ac_cxx_werror_flag" ||
 
5961
         test ! -s conftest.err
 
5962
       } && test -s conftest.$ac_objext; then
 
5963
  :
 
5964
else
 
5965
  echo "$as_me: failed program was:" >&5
 
5966
sed 's/^/| /' conftest.$ac_ext >&5
 
5967
 
 
5968
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5969
         CXXFLAGS="-g"
 
5970
         cat >conftest.$ac_ext <<_ACEOF
 
5971
/* confdefs.h.  */
 
5972
_ACEOF
 
5973
cat confdefs.h >>conftest.$ac_ext
 
5974
cat >>conftest.$ac_ext <<_ACEOF
 
5975
/* end confdefs.h.  */
 
5976
 
 
5977
int
 
5978
main ()
 
5979
{
 
5980
 
 
5981
  ;
 
5982
  return 0;
 
5983
}
 
5984
_ACEOF
 
5985
rm -f conftest.$ac_objext
 
5986
if { (ac_try="$ac_compile"
 
5987
case "(($ac_try" in
 
5988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5989
  *) ac_try_echo=$ac_try;;
 
5990
esac
 
5991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5992
  (eval "$ac_compile") 2>conftest.er1
 
5993
  ac_status=$?
 
5994
  grep -v '^ *+' conftest.er1 >conftest.err
 
5995
  rm -f conftest.er1
 
5996
  cat conftest.err >&5
 
5997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5998
  (exit $ac_status); } && {
 
5999
         test -z "$ac_cxx_werror_flag" ||
 
6000
         test ! -s conftest.err
 
6001
       } && test -s conftest.$ac_objext; then
 
6002
  ac_cv_prog_cxx_g=yes
 
6003
else
 
6004
  echo "$as_me: failed program was:" >&5
 
6005
sed 's/^/| /' conftest.$ac_ext >&5
 
6006
 
 
6007
 
 
6008
fi
 
6009
 
 
6010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6011
fi
 
6012
 
 
6013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6014
fi
 
6015
 
 
6016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6017
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6018
fi
 
6019
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6020
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
6021
if test "$ac_test_CXXFLAGS" = set; then
 
6022
  CXXFLAGS=$ac_save_CXXFLAGS
 
6023
elif test $ac_cv_prog_cxx_g = yes; then
 
6024
  if test "$GXX" = yes; then
 
6025
    CXXFLAGS="-g -O2"
 
6026
  else
 
6027
    CXXFLAGS="-g"
 
6028
  fi
 
6029
else
 
6030
  if test "$GXX" = yes; then
 
6031
    CXXFLAGS="-O2"
 
6032
  else
 
6033
    CXXFLAGS=
 
6034
  fi
 
6035
fi
 
6036
ac_ext=cpp
 
6037
ac_cpp='$CXXCPP $CPPFLAGS'
 
6038
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6039
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6040
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6041
 
 
6042
depcc="$CXX"  am_compiler_list=
 
6043
 
 
6044
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6045
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
6046
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6048
else
 
6049
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6050
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6051
  # making bogus files that we don't know about and never remove.  For
 
6052
  # instance it was reported that on HP-UX the gcc test will end up
 
6053
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6054
  # in D'.
 
6055
  mkdir conftest.dir
 
6056
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6057
  # using a relative directory.
 
6058
  cp "$am_depcomp" conftest.dir
 
6059
  cd conftest.dir
 
6060
  # We will build objects and dependencies in a subdirectory because
 
6061
  # it helps to detect inapplicable dependency modes.  For instance
 
6062
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6063
  # side effect of compilation, but ICC will put the dependencies in
 
6064
  # the current directory while Tru64 will put them in the object
 
6065
  # directory.
 
6066
  mkdir sub
 
6067
 
 
6068
  am_cv_CXX_dependencies_compiler_type=none
 
6069
  if test "$am_compiler_list" = ""; then
 
6070
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6071
  fi
 
6072
  for depmode in $am_compiler_list; do
 
6073
    # Setup a source with many dependencies, because some compilers
 
6074
    # like to wrap large dependency lists on column 80 (with \), and
 
6075
    # we should not choose a depcomp mode which is confused by this.
 
6076
    #
 
6077
    # We need to recreate these files for each test, as the compiler may
 
6078
    # overwrite some of them when testing with obscure command lines.
 
6079
    # This happens at least with the AIX C compiler.
 
6080
    : > sub/conftest.c
 
6081
    for i in 1 2 3 4 5 6; do
 
6082
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6083
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6084
      # Solaris 8's {/usr,}/bin/sh.
 
6085
      touch sub/conftst$i.h
 
6086
    done
 
6087
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6088
 
 
6089
    case $depmode in
 
6090
    nosideeffect)
 
6091
      # after this tag, mechanisms are not by side-effect, so they'll
 
6092
      # only be used when explicitly requested
 
6093
      if test "x$enable_dependency_tracking" = xyes; then
 
6094
        continue
 
6095
      else
 
6096
        break
 
6097
      fi
 
6098
      ;;
 
6099
    none) break ;;
 
6100
    esac
 
6101
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6102
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6103
    # handle `-M -o', and we need to detect this.
 
6104
    if depmode=$depmode \
 
6105
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6106
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6107
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6108
         >/dev/null 2>conftest.err &&
 
6109
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6110
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6111
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6112
      # icc doesn't choke on unknown options, it will just issue warnings
 
6113
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6114
      # that says an option was ignored or not supported.
 
6115
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6116
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6117
      # The diagnosis changed in icc 8.0:
 
6118
      #   icc: Command line remark: option '-MP' not supported
 
6119
      if (grep 'ignoring option' conftest.err ||
 
6120
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6121
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6122
        break
 
6123
      fi
 
6124
    fi
 
6125
  done
 
6126
 
 
6127
  cd ..
 
6128
  rm -rf conftest.dir
 
6129
else
 
6130
  am_cv_CXX_dependencies_compiler_type=none
 
6131
fi
 
6132
 
 
6133
fi
 
6134
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6135
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
6136
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6137
 
 
6138
 
 
6139
 
 
6140
if
 
6141
  test "x$enable_dependency_tracking" != xno \
 
6142
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6143
  am__fastdepCXX_TRUE=
 
6144
  am__fastdepCXX_FALSE='#'
 
6145
else
 
6146
  am__fastdepCXX_TRUE='#'
 
6147
  am__fastdepCXX_FALSE=
 
6148
fi
 
6149
 
 
6150
 
 
6151
 
 
6152
 
 
6153
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6154
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6155
    (test "X$CXX" != "Xg++"))) ; then
 
6156
  ac_ext=cpp
 
6157
ac_cpp='$CXXCPP $CPPFLAGS'
 
6158
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6159
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6160
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6161
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6162
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
6163
if test -z "$CXXCPP"; then
 
6164
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6166
else
 
6167
      # Double quotes because CXXCPP needs to be expanded
 
6168
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6169
    do
 
6170
      ac_preproc_ok=false
 
6171
for ac_cxx_preproc_warn_flag in '' yes
 
6172
do
 
6173
  # Use a header file that comes with gcc, so configuring glibc
 
6174
  # with a fresh cross-compiler works.
 
6175
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6176
  # <limits.h> exists even on freestanding compilers.
 
6177
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6178
  # not just through cpp. "Syntax error" is here to catch this case.
 
6179
  cat >conftest.$ac_ext <<_ACEOF
 
6180
/* confdefs.h.  */
 
6181
_ACEOF
 
6182
cat confdefs.h >>conftest.$ac_ext
 
6183
cat >>conftest.$ac_ext <<_ACEOF
 
6184
/* end confdefs.h.  */
 
6185
#ifdef __STDC__
 
6186
# include <limits.h>
 
6187
#else
 
6188
# include <assert.h>
 
6189
#endif
 
6190
                     Syntax error
 
6191
_ACEOF
 
6192
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6193
case "(($ac_try" in
 
6194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6195
  *) ac_try_echo=$ac_try;;
 
6196
esac
 
6197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6198
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6199
  ac_status=$?
 
6200
  grep -v '^ *+' conftest.er1 >conftest.err
 
6201
  rm -f conftest.er1
 
6202
  cat conftest.err >&5
 
6203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6204
  (exit $ac_status); } >/dev/null && {
 
6205
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6206
         test ! -s conftest.err
 
6207
       }; then
 
6208
  :
 
6209
else
 
6210
  echo "$as_me: failed program was:" >&5
 
6211
sed 's/^/| /' conftest.$ac_ext >&5
 
6212
 
 
6213
  # Broken: fails on valid input.
 
6214
continue
 
6215
fi
 
6216
 
 
6217
rm -f conftest.err conftest.$ac_ext
 
6218
 
 
6219
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6220
  # can be detected and how.
 
6221
  cat >conftest.$ac_ext <<_ACEOF
 
6222
/* confdefs.h.  */
 
6223
_ACEOF
 
6224
cat confdefs.h >>conftest.$ac_ext
 
6225
cat >>conftest.$ac_ext <<_ACEOF
 
6226
/* end confdefs.h.  */
 
6227
#include <ac_nonexistent.h>
 
6228
_ACEOF
 
6229
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6230
case "(($ac_try" in
 
6231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6232
  *) ac_try_echo=$ac_try;;
 
6233
esac
 
6234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6235
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6236
  ac_status=$?
 
6237
  grep -v '^ *+' conftest.er1 >conftest.err
 
6238
  rm -f conftest.er1
 
6239
  cat conftest.err >&5
 
6240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6241
  (exit $ac_status); } >/dev/null && {
 
6242
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6243
         test ! -s conftest.err
 
6244
       }; then
 
6245
  # Broken: success on invalid input.
 
6246
continue
 
6247
else
 
6248
  echo "$as_me: failed program was:" >&5
 
6249
sed 's/^/| /' conftest.$ac_ext >&5
 
6250
 
 
6251
  # Passes both tests.
 
6252
ac_preproc_ok=:
 
6253
break
 
6254
fi
 
6255
 
 
6256
rm -f conftest.err conftest.$ac_ext
 
6257
 
 
6258
done
 
6259
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6260
rm -f conftest.err conftest.$ac_ext
 
6261
if $ac_preproc_ok; then
 
6262
  break
 
6263
fi
 
6264
 
 
6265
    done
 
6266
    ac_cv_prog_CXXCPP=$CXXCPP
 
6267
 
 
6268
fi
 
6269
  CXXCPP=$ac_cv_prog_CXXCPP
 
6270
else
 
6271
  ac_cv_prog_CXXCPP=$CXXCPP
 
6272
fi
 
6273
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6274
echo "${ECHO_T}$CXXCPP" >&6; }
 
6275
ac_preproc_ok=false
 
6276
for ac_cxx_preproc_warn_flag in '' yes
 
6277
do
 
6278
  # Use a header file that comes with gcc, so configuring glibc
 
6279
  # with a fresh cross-compiler works.
 
6280
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6281
  # <limits.h> exists even on freestanding compilers.
 
6282
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6283
  # not just through cpp. "Syntax error" is here to catch this case.
 
6284
  cat >conftest.$ac_ext <<_ACEOF
 
6285
/* confdefs.h.  */
 
6286
_ACEOF
 
6287
cat confdefs.h >>conftest.$ac_ext
 
6288
cat >>conftest.$ac_ext <<_ACEOF
 
6289
/* end confdefs.h.  */
 
6290
#ifdef __STDC__
 
6291
# include <limits.h>
 
6292
#else
 
6293
# include <assert.h>
 
6294
#endif
 
6295
                     Syntax error
 
6296
_ACEOF
 
6297
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6298
case "(($ac_try" in
 
6299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6300
  *) ac_try_echo=$ac_try;;
 
6301
esac
 
6302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6303
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6304
  ac_status=$?
 
6305
  grep -v '^ *+' conftest.er1 >conftest.err
 
6306
  rm -f conftest.er1
 
6307
  cat conftest.err >&5
 
6308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6309
  (exit $ac_status); } >/dev/null && {
 
6310
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6311
         test ! -s conftest.err
 
6312
       }; then
 
6313
  :
 
6314
else
 
6315
  echo "$as_me: failed program was:" >&5
 
6316
sed 's/^/| /' conftest.$ac_ext >&5
 
6317
 
 
6318
  # Broken: fails on valid input.
 
6319
continue
 
6320
fi
 
6321
 
 
6322
rm -f conftest.err conftest.$ac_ext
 
6323
 
 
6324
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6325
  # can be detected and how.
 
6326
  cat >conftest.$ac_ext <<_ACEOF
 
6327
/* confdefs.h.  */
 
6328
_ACEOF
 
6329
cat confdefs.h >>conftest.$ac_ext
 
6330
cat >>conftest.$ac_ext <<_ACEOF
 
6331
/* end confdefs.h.  */
 
6332
#include <ac_nonexistent.h>
 
6333
_ACEOF
 
6334
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6335
case "(($ac_try" in
 
6336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6337
  *) ac_try_echo=$ac_try;;
 
6338
esac
 
6339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6340
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6341
  ac_status=$?
 
6342
  grep -v '^ *+' conftest.er1 >conftest.err
 
6343
  rm -f conftest.er1
 
6344
  cat conftest.err >&5
 
6345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6346
  (exit $ac_status); } >/dev/null && {
 
6347
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6348
         test ! -s conftest.err
 
6349
       }; then
 
6350
  # Broken: success on invalid input.
 
6351
continue
 
6352
else
 
6353
  echo "$as_me: failed program was:" >&5
 
6354
sed 's/^/| /' conftest.$ac_ext >&5
 
6355
 
 
6356
  # Passes both tests.
 
6357
ac_preproc_ok=:
 
6358
break
 
6359
fi
 
6360
 
 
6361
rm -f conftest.err conftest.$ac_ext
 
6362
 
 
6363
done
 
6364
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6365
rm -f conftest.err conftest.$ac_ext
 
6366
if $ac_preproc_ok; then
 
6367
  :
 
6368
else
 
6369
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6370
See \`config.log' for more details." >&5
 
6371
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6372
See \`config.log' for more details." >&2;}
 
6373
   { (exit 1); exit 1; }; }
 
6374
fi
 
6375
 
 
6376
ac_ext=cpp
 
6377
ac_cpp='$CXXCPP $CPPFLAGS'
 
6378
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6379
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6380
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6381
 
 
6382
fi
 
6383
 
 
6384
 
 
6385
ac_ext=f
 
6386
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6387
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6388
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6389
if test -n "$ac_tool_prefix"; then
 
6390
  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
 
6391
  do
 
6392
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6393
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6394
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6395
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6396
if test "${ac_cv_prog_F77+set}" = set; then
 
6397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6398
else
 
6399
  if test -n "$F77"; then
 
6400
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6401
else
 
6402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6403
for as_dir in $PATH
 
6404
do
 
6405
  IFS=$as_save_IFS
 
6406
  test -z "$as_dir" && as_dir=.
 
6407
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6408
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6409
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6410
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6411
    break 2
 
6412
  fi
 
6413
done
 
6414
done
 
6415
IFS=$as_save_IFS
 
6416
 
 
6417
fi
 
6418
fi
 
6419
F77=$ac_cv_prog_F77
 
6420
if test -n "$F77"; then
 
6421
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6422
echo "${ECHO_T}$F77" >&6; }
 
6423
else
 
6424
  { echo "$as_me:$LINENO: result: no" >&5
 
6425
echo "${ECHO_T}no" >&6; }
 
6426
fi
 
6427
 
 
6428
 
 
6429
    test -n "$F77" && break
 
6430
  done
 
6431
fi
 
6432
if test -z "$F77"; then
 
6433
  ac_ct_F77=$F77
 
6434
  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
 
6435
do
 
6436
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6437
set dummy $ac_prog; ac_word=$2
 
6438
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6439
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6440
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6442
else
 
6443
  if test -n "$ac_ct_F77"; then
 
6444
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6445
else
 
6446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6447
for as_dir in $PATH
 
6448
do
 
6449
  IFS=$as_save_IFS
 
6450
  test -z "$as_dir" && as_dir=.
 
6451
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6452
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6453
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6454
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6455
    break 2
 
6456
  fi
 
6457
done
 
6458
done
 
6459
IFS=$as_save_IFS
 
6460
 
 
6461
fi
 
6462
fi
 
6463
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6464
if test -n "$ac_ct_F77"; then
 
6465
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6466
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6467
else
 
6468
  { echo "$as_me:$LINENO: result: no" >&5
 
6469
echo "${ECHO_T}no" >&6; }
 
6470
fi
 
6471
 
 
6472
 
 
6473
  test -n "$ac_ct_F77" && break
 
6474
done
 
6475
 
 
6476
  if test "x$ac_ct_F77" = x; then
 
6477
    F77=""
 
6478
  else
 
6479
    case $cross_compiling:$ac_tool_warned in
 
6480
yes:)
 
6481
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6482
whose name does not start with the host triplet.  If you think this
 
6483
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6484
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6485
whose name does not start with the host triplet.  If you think this
 
6486
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6487
ac_tool_warned=yes ;;
 
6488
esac
 
6489
    F77=$ac_ct_F77
 
6490
  fi
 
6491
fi
 
6492
 
 
6493
 
 
6494
# Provide some information about the compiler.
 
6495
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6496
ac_compiler=`set X $ac_compile; echo $2`
 
6497
{ (ac_try="$ac_compiler --version >&5"
 
6498
case "(($ac_try" in
 
6499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6500
  *) ac_try_echo=$ac_try;;
 
6501
esac
 
6502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6503
  (eval "$ac_compiler --version >&5") 2>&5
 
6504
  ac_status=$?
 
6505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6506
  (exit $ac_status); }
 
6507
{ (ac_try="$ac_compiler -v >&5"
 
6508
case "(($ac_try" in
 
6509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6510
  *) ac_try_echo=$ac_try;;
 
6511
esac
 
6512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6513
  (eval "$ac_compiler -v >&5") 2>&5
 
6514
  ac_status=$?
 
6515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6516
  (exit $ac_status); }
 
6517
{ (ac_try="$ac_compiler -V >&5"
 
6518
case "(($ac_try" in
 
6519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6520
  *) ac_try_echo=$ac_try;;
 
6521
esac
 
6522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6523
  (eval "$ac_compiler -V >&5") 2>&5
 
6524
  ac_status=$?
 
6525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6526
  (exit $ac_status); }
 
6527
rm -f a.out
 
6528
 
 
6529
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6530
# input file.  (Note that this only needs to work for GNU compilers.)
 
6531
ac_save_ext=$ac_ext
 
6532
ac_ext=F
 
6533
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6534
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6535
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6537
else
 
6538
  cat >conftest.$ac_ext <<_ACEOF
 
6539
      program main
 
6540
#ifndef __GNUC__
 
6541
       choke me
 
6542
#endif
 
6543
 
 
6544
      end
 
6545
_ACEOF
 
6546
rm -f conftest.$ac_objext
 
6547
if { (ac_try="$ac_compile"
 
6548
case "(($ac_try" in
 
6549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6550
  *) ac_try_echo=$ac_try;;
 
6551
esac
 
6552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6553
  (eval "$ac_compile") 2>conftest.er1
 
6554
  ac_status=$?
 
6555
  grep -v '^ *+' conftest.er1 >conftest.err
 
6556
  rm -f conftest.er1
 
6557
  cat conftest.err >&5
 
6558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6559
  (exit $ac_status); } && {
 
6560
         test -z "$ac_f77_werror_flag" ||
 
6561
         test ! -s conftest.err
 
6562
       } && test -s conftest.$ac_objext; then
 
6563
  ac_compiler_gnu=yes
 
6564
else
 
6565
  echo "$as_me: failed program was:" >&5
 
6566
sed 's/^/| /' conftest.$ac_ext >&5
 
6567
 
 
6568
        ac_compiler_gnu=no
 
6569
fi
 
6570
 
 
6571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6572
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6573
 
 
6574
fi
 
6575
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6576
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6577
ac_ext=$ac_save_ext
 
6578
ac_test_FFLAGS=${FFLAGS+set}
 
6579
ac_save_FFLAGS=$FFLAGS
 
6580
FFLAGS=
 
6581
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6582
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6583
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6585
else
 
6586
  FFLAGS=-g
 
6587
cat >conftest.$ac_ext <<_ACEOF
 
6588
      program main
 
6589
 
 
6590
      end
 
6591
_ACEOF
 
6592
rm -f conftest.$ac_objext
 
6593
if { (ac_try="$ac_compile"
 
6594
case "(($ac_try" in
 
6595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6596
  *) ac_try_echo=$ac_try;;
 
6597
esac
 
6598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6599
  (eval "$ac_compile") 2>conftest.er1
 
6600
  ac_status=$?
 
6601
  grep -v '^ *+' conftest.er1 >conftest.err
 
6602
  rm -f conftest.er1
 
6603
  cat conftest.err >&5
 
6604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6605
  (exit $ac_status); } && {
 
6606
         test -z "$ac_f77_werror_flag" ||
 
6607
         test ! -s conftest.err
 
6608
       } && test -s conftest.$ac_objext; then
 
6609
  ac_cv_prog_f77_g=yes
 
6610
else
 
6611
  echo "$as_me: failed program was:" >&5
 
6612
sed 's/^/| /' conftest.$ac_ext >&5
 
6613
 
 
6614
        ac_cv_prog_f77_g=no
 
6615
fi
 
6616
 
 
6617
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6618
 
 
6619
fi
 
6620
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6621
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6622
if test "$ac_test_FFLAGS" = set; then
 
6623
  FFLAGS=$ac_save_FFLAGS
 
6624
elif test $ac_cv_prog_f77_g = yes; then
 
6625
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6626
    FFLAGS="-g -O2"
 
6627
  else
 
6628
    FFLAGS="-g"
 
6629
  fi
 
6630
else
 
6631
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6632
    FFLAGS="-O2"
 
6633
  else
 
6634
    FFLAGS=
 
6635
  fi
 
6636
fi
 
6637
 
 
6638
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6639
ac_ext=c
 
6640
ac_cpp='$CPP $CPPFLAGS'
 
6641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6644
 
 
6645
 
 
6646
 
 
6647
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6648
# find the maximum length of command line arguments
 
6649
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6650
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6651
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6653
else
 
6654
    i=0
 
6655
  teststring="ABCD"
 
6656
 
 
6657
  case $build_os in
 
6658
  msdosdjgpp*)
 
6659
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6660
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6661
    # during glob expansion).  Even if it were fixed, the result of this
 
6662
    # check would be larger than it should be.
 
6663
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6664
    ;;
 
6665
 
 
6666
  gnu*)
 
6667
    # Under GNU Hurd, this test is not required because there is
 
6668
    # no limit to the length of command line arguments.
 
6669
    # Libtool will interpret -1 as no limit whatsoever
 
6670
    lt_cv_sys_max_cmd_len=-1;
 
6671
    ;;
 
6672
 
 
6673
  cygwin* | mingw*)
 
6674
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6675
    # about 5 minutes as the teststring grows exponentially.
 
6676
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6677
    # you end up with a "frozen" computer, even though with patience
 
6678
    # the test eventually succeeds (with a max line length of 256k).
 
6679
    # Instead, let's just punt: use the minimum linelength reported by
 
6680
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6681
    lt_cv_sys_max_cmd_len=8192;
 
6682
    ;;
 
6683
 
 
6684
  amigaos*)
 
6685
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6686
    # So we just punt and use a minimum line length of 8192.
 
6687
    lt_cv_sys_max_cmd_len=8192;
 
6688
    ;;
 
6689
 
 
6690
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6691
    # This has been around since 386BSD, at least.  Likely further.
 
6692
    if test -x /sbin/sysctl; then
 
6693
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6694
    elif test -x /usr/sbin/sysctl; then
 
6695
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6696
    else
 
6697
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6698
    fi
 
6699
    # And add a safety zone
 
6700
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6701
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6702
    ;;
 
6703
 
 
6704
  interix*)
 
6705
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6706
    lt_cv_sys_max_cmd_len=196608
 
6707
    ;;
 
6708
 
 
6709
  osf*)
 
6710
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6711
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6712
    # nice to cause kernel panics so lets avoid the loop below.
 
6713
    # First set a reasonable default.
 
6714
    lt_cv_sys_max_cmd_len=16384
 
6715
    #
 
6716
    if test -x /sbin/sysconfig; then
 
6717
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6718
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6719
      esac
 
6720
    fi
 
6721
    ;;
 
6722
  sco3.2v5*)
 
6723
    lt_cv_sys_max_cmd_len=102400
 
6724
    ;;
 
6725
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6726
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6727
    if test -n "$kargmax"; then
 
6728
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6729
    else
 
6730
      lt_cv_sys_max_cmd_len=32768
 
6731
    fi
 
6732
    ;;
 
6733
  *)
 
6734
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6735
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6736
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6737
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6738
    else
 
6739
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6740
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6741
               = "XX$teststring") >/dev/null 2>&1 &&
 
6742
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6743
              lt_cv_sys_max_cmd_len=$new_result &&
 
6744
              test $i != 17 # 1/2 MB should be enough
 
6745
      do
 
6746
        i=`expr $i + 1`
 
6747
        teststring=$teststring$teststring
 
6748
      done
 
6749
      teststring=
 
6750
      # Add a significant safety factor because C++ compilers can tack on massive
 
6751
      # amounts of additional arguments before passing them to the linker.
 
6752
      # It appears as though 1/2 is a usable value.
 
6753
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6754
    fi
 
6755
    ;;
 
6756
  esac
 
6757
 
 
6758
fi
 
6759
 
 
6760
if test -n $lt_cv_sys_max_cmd_len ; then
 
6761
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6762
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6763
else
 
6764
  { echo "$as_me:$LINENO: result: none" >&5
 
6765
echo "${ECHO_T}none" >&6; }
 
6766
fi
 
6767
 
 
6768
 
 
6769
 
 
6770
 
 
6771
 
 
6772
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6773
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6774
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6775
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6776
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6777
else
 
6778
 
 
6779
# These are sane defaults that work on at least a few old systems.
 
6780
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6781
 
 
6782
# Character class describing NM global symbol codes.
 
6783
symcode='[BCDEGRST]'
 
6784
 
 
6785
# Regexp to match symbols that can be accessed directly from C.
 
6786
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6787
 
 
6788
# Transform an extracted symbol line into a proper C declaration
 
6789
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6790
 
 
6791
# Transform an extracted symbol line into symbol name and symbol address
 
6792
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'"
 
6793
 
 
6794
# Define system-specific variables.
 
6795
case $host_os in
 
6796
aix*)
 
6797
  symcode='[BCDT]'
 
6798
  ;;
 
6799
cygwin* | mingw* | pw32*)
 
6800
  symcode='[ABCDGISTW]'
 
6801
  ;;
 
6802
hpux*) # Its linker distinguishes data from code symbols
 
6803
  if test "$host_cpu" = ia64; then
 
6804
    symcode='[ABCDEGRST]'
 
6805
  fi
 
6806
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6807
  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'"
 
6808
  ;;
 
6809
linux* | k*bsd*-gnu)
 
6810
  if test "$host_cpu" = ia64; then
 
6811
    symcode='[ABCDGIRSTW]'
 
6812
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6813
    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'"
 
6814
  fi
 
6815
  ;;
 
6816
irix* | nonstopux*)
 
6817
  symcode='[BCDEGRST]'
 
6818
  ;;
 
6819
osf*)
 
6820
  symcode='[BCDEGQRST]'
 
6821
  ;;
 
6822
solaris*)
 
6823
  symcode='[BDRT]'
 
6824
  ;;
 
6825
sco3.2v5*)
 
6826
  symcode='[DT]'
 
6827
  ;;
 
6828
sysv4.2uw2*)
 
6829
  symcode='[DT]'
 
6830
  ;;
 
6831
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6832
  symcode='[ABDT]'
 
6833
  ;;
 
6834
sysv4)
 
6835
  symcode='[DFNSTU]'
 
6836
  ;;
 
6837
esac
 
6838
 
 
6839
# Handle CRLF in mingw tool chain
 
6840
opt_cr=
 
6841
case $build_os in
 
6842
mingw*)
 
6843
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6844
  ;;
 
6845
esac
 
6846
 
 
6847
# If we're using GNU nm, then use its standard symbol codes.
 
6848
case `$NM -V 2>&1` in
 
6849
*GNU* | *'with BFD'*)
 
6850
  symcode='[ABCDGIRSTW]' ;;
 
6851
esac
 
6852
 
 
6853
# Try without a prefix undercore, then with it.
 
6854
for ac_symprfx in "" "_"; do
 
6855
 
 
6856
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6857
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6858
 
 
6859
  # Write the raw and C identifiers.
 
6860
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6861
 
 
6862
  # Check to see that the pipe works correctly.
 
6863
  pipe_works=no
 
6864
 
 
6865
  rm -f conftest*
 
6866
  cat > conftest.$ac_ext <<EOF
 
6867
#ifdef __cplusplus
 
6868
extern "C" {
 
6869
#endif
 
6870
char nm_test_var;
 
6871
void nm_test_func(){}
 
6872
#ifdef __cplusplus
 
6873
}
 
6874
#endif
 
6875
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6876
EOF
 
6877
 
 
6878
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6879
  (eval $ac_compile) 2>&5
 
6880
  ac_status=$?
 
6881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6882
  (exit $ac_status); }; then
 
6883
    # Now try to grab the symbols.
 
6884
    nlist=conftest.nm
 
6885
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6886
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6887
  ac_status=$?
 
6888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6889
  (exit $ac_status); } && test -s "$nlist"; then
 
6890
      # Try sorting and uniquifying the output.
 
6891
      if sort "$nlist" | uniq > "$nlist"T; then
 
6892
        mv -f "$nlist"T "$nlist"
 
6893
      else
 
6894
        rm -f "$nlist"T
 
6895
      fi
 
6896
 
 
6897
      # Make sure that we snagged all the symbols we need.
 
6898
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6899
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6900
          cat <<EOF > conftest.$ac_ext
 
6901
#ifdef __cplusplus
 
6902
extern "C" {
 
6903
#endif
 
6904
 
 
6905
EOF
 
6906
          # Now generate the symbol file.
 
6907
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6908
 
 
6909
          cat <<EOF >> conftest.$ac_ext
 
6910
#if defined (__STDC__) && __STDC__
 
6911
# define lt_ptr_t void *
 
6912
#else
 
6913
# define lt_ptr_t char *
 
6914
# define const
 
6915
#endif
 
6916
 
 
6917
/* The mapping between symbol names and symbols. */
 
6918
const struct {
 
6919
  const char *name;
 
6920
  lt_ptr_t address;
 
6921
}
 
6922
lt_preloaded_symbols[] =
 
6923
{
 
6924
EOF
 
6925
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6926
          cat <<\EOF >> conftest.$ac_ext
 
6927
  {0, (lt_ptr_t) 0}
 
6928
};
 
6929
 
 
6930
#ifdef __cplusplus
 
6931
}
 
6932
#endif
 
6933
EOF
 
6934
          # Now try linking the two files.
 
6935
          mv conftest.$ac_objext conftstm.$ac_objext
 
6936
          lt_save_LIBS="$LIBS"
 
6937
          lt_save_CFLAGS="$CFLAGS"
 
6938
          LIBS="conftstm.$ac_objext"
 
6939
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6940
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6941
  (eval $ac_link) 2>&5
 
6942
  ac_status=$?
 
6943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6944
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6945
            pipe_works=yes
 
6946
          fi
 
6947
          LIBS="$lt_save_LIBS"
 
6948
          CFLAGS="$lt_save_CFLAGS"
 
6949
        else
 
6950
          echo "cannot find nm_test_func in $nlist" >&5
 
6951
        fi
 
6952
      else
 
6953
        echo "cannot find nm_test_var in $nlist" >&5
 
6954
      fi
 
6955
    else
 
6956
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6957
    fi
 
6958
  else
 
6959
    echo "$progname: failed program was:" >&5
 
6960
    cat conftest.$ac_ext >&5
 
6961
  fi
 
6962
  rm -rf conftest* conftst*
 
6963
 
 
6964
  # Do not use the global_symbol_pipe unless it works.
 
6965
  if test "$pipe_works" = yes; then
 
6966
    break
 
6967
  else
 
6968
    lt_cv_sys_global_symbol_pipe=
 
6969
  fi
 
6970
done
 
6971
 
 
6972
fi
 
6973
 
 
6974
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6975
  lt_cv_sys_global_symbol_to_cdecl=
 
6976
fi
 
6977
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6978
  { echo "$as_me:$LINENO: result: failed" >&5
 
6979
echo "${ECHO_T}failed" >&6; }
 
6980
else
 
6981
  { echo "$as_me:$LINENO: result: ok" >&5
 
6982
echo "${ECHO_T}ok" >&6; }
 
6983
fi
 
6984
 
 
6985
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6986
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6987
if test "${lt_cv_objdir+set}" = set; then
 
6988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6989
else
 
6990
  rm -f .libs 2>/dev/null
 
6991
mkdir .libs 2>/dev/null
 
6992
if test -d .libs; then
 
6993
  lt_cv_objdir=.libs
 
6994
else
 
6995
  # MS-DOS does not allow filenames that begin with a dot.
 
6996
  lt_cv_objdir=_libs
 
6997
fi
 
6998
rmdir .libs 2>/dev/null
 
6999
fi
 
7000
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7001
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
7002
objdir=$lt_cv_objdir
 
7003
 
 
7004
 
 
7005
 
 
7006
 
 
7007
 
 
7008
case $host_os in
 
7009
aix3*)
 
7010
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7011
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7012
  # vanish in a puff of smoke.
 
7013
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7014
    COLLECT_NAMES=
 
7015
    export COLLECT_NAMES
 
7016
  fi
 
7017
  ;;
 
7018
esac
 
7019
 
 
7020
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7021
# metacharacters that are still active within double-quoted strings.
 
7022
Xsed='sed -e 1s/^X//'
 
7023
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7024
 
 
7025
# Same as above, but do not quote variable references.
 
7026
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7027
 
 
7028
# Sed substitution to delay expansion of an escaped shell variable in a
 
7029
# double_quote_subst'ed string.
 
7030
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7031
 
 
7032
# Sed substitution to avoid accidental globbing in evaled expressions
 
7033
no_glob_subst='s/\*/\\\*/g'
 
7034
 
 
7035
# Constants:
 
7036
rm="rm -f"
 
7037
 
 
7038
# Global variables:
 
7039
default_ofile=libtool
 
7040
can_build_shared=yes
 
7041
 
 
7042
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7043
# which needs '.lib').
 
7044
libext=a
 
7045
ltmain="$ac_aux_dir/ltmain.sh"
 
7046
ofile="$default_ofile"
 
7047
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7048
 
 
7049
if test -n "$ac_tool_prefix"; then
 
7050
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7051
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7052
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7053
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7054
if test "${ac_cv_prog_AR+set}" = set; then
 
7055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7056
else
 
7057
  if test -n "$AR"; then
 
7058
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7059
else
 
7060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7061
for as_dir in $PATH
 
7062
do
 
7063
  IFS=$as_save_IFS
 
7064
  test -z "$as_dir" && as_dir=.
 
7065
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7066
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7067
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7068
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7069
    break 2
 
7070
  fi
 
7071
done
 
7072
done
 
7073
IFS=$as_save_IFS
 
7074
 
 
7075
fi
 
7076
fi
 
7077
AR=$ac_cv_prog_AR
 
7078
if test -n "$AR"; then
 
7079
  { echo "$as_me:$LINENO: result: $AR" >&5
 
7080
echo "${ECHO_T}$AR" >&6; }
 
7081
else
 
7082
  { echo "$as_me:$LINENO: result: no" >&5
 
7083
echo "${ECHO_T}no" >&6; }
 
7084
fi
 
7085
 
 
7086
 
 
7087
fi
 
7088
if test -z "$ac_cv_prog_AR"; then
 
7089
  ac_ct_AR=$AR
 
7090
  # Extract the first word of "ar", so it can be a program name with args.
 
7091
set dummy ar; ac_word=$2
 
7092
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7093
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7094
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7096
else
 
7097
  if test -n "$ac_ct_AR"; then
 
7098
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7099
else
 
7100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7101
for as_dir in $PATH
 
7102
do
 
7103
  IFS=$as_save_IFS
 
7104
  test -z "$as_dir" && as_dir=.
 
7105
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7106
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7107
    ac_cv_prog_ac_ct_AR="ar"
 
7108
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7109
    break 2
 
7110
  fi
 
7111
done
 
7112
done
 
7113
IFS=$as_save_IFS
 
7114
 
 
7115
fi
 
7116
fi
 
7117
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7118
if test -n "$ac_ct_AR"; then
 
7119
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7120
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
7121
else
 
7122
  { echo "$as_me:$LINENO: result: no" >&5
 
7123
echo "${ECHO_T}no" >&6; }
 
7124
fi
 
7125
 
 
7126
  if test "x$ac_ct_AR" = x; then
 
7127
    AR="false"
 
7128
  else
 
7129
    case $cross_compiling:$ac_tool_warned in
 
7130
yes:)
 
7131
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7132
whose name does not start with the host triplet.  If you think this
 
7133
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7134
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7135
whose name does not start with the host triplet.  If you think this
 
7136
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7137
ac_tool_warned=yes ;;
 
7138
esac
 
7139
    AR=$ac_ct_AR
 
7140
  fi
 
7141
else
 
7142
  AR="$ac_cv_prog_AR"
 
7143
fi
 
7144
 
 
7145
if test -n "$ac_tool_prefix"; then
 
7146
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7147
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7148
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7149
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7150
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7152
else
 
7153
  if test -n "$RANLIB"; then
 
7154
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7155
else
 
7156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7157
for as_dir in $PATH
 
7158
do
 
7159
  IFS=$as_save_IFS
 
7160
  test -z "$as_dir" && as_dir=.
 
7161
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7162
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7163
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7164
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7165
    break 2
 
7166
  fi
 
7167
done
 
7168
done
 
7169
IFS=$as_save_IFS
 
7170
 
 
7171
fi
 
7172
fi
 
7173
RANLIB=$ac_cv_prog_RANLIB
 
7174
if test -n "$RANLIB"; then
 
7175
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7176
echo "${ECHO_T}$RANLIB" >&6; }
 
7177
else
 
7178
  { echo "$as_me:$LINENO: result: no" >&5
 
7179
echo "${ECHO_T}no" >&6; }
 
7180
fi
 
7181
 
 
7182
 
 
7183
fi
 
7184
if test -z "$ac_cv_prog_RANLIB"; then
 
7185
  ac_ct_RANLIB=$RANLIB
 
7186
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7187
set dummy ranlib; ac_word=$2
 
7188
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7190
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7192
else
 
7193
  if test -n "$ac_ct_RANLIB"; then
 
7194
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7195
else
 
7196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7197
for as_dir in $PATH
 
7198
do
 
7199
  IFS=$as_save_IFS
 
7200
  test -z "$as_dir" && as_dir=.
 
7201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7202
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7203
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7204
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7205
    break 2
 
7206
  fi
 
7207
done
 
7208
done
 
7209
IFS=$as_save_IFS
 
7210
 
 
7211
fi
 
7212
fi
 
7213
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7214
if test -n "$ac_ct_RANLIB"; then
 
7215
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7216
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
7217
else
 
7218
  { echo "$as_me:$LINENO: result: no" >&5
 
7219
echo "${ECHO_T}no" >&6; }
 
7220
fi
 
7221
 
 
7222
  if test "x$ac_ct_RANLIB" = x; then
 
7223
    RANLIB=":"
 
7224
  else
 
7225
    case $cross_compiling:$ac_tool_warned in
 
7226
yes:)
 
7227
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7228
whose name does not start with the host triplet.  If you think this
 
7229
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7230
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7231
whose name does not start with the host triplet.  If you think this
 
7232
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7233
ac_tool_warned=yes ;;
 
7234
esac
 
7235
    RANLIB=$ac_ct_RANLIB
 
7236
  fi
 
7237
else
 
7238
  RANLIB="$ac_cv_prog_RANLIB"
 
7239
fi
 
7240
 
 
7241
if test -n "$ac_tool_prefix"; then
 
7242
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7243
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7244
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7246
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7248
else
 
7249
  if test -n "$STRIP"; then
 
7250
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7251
else
 
7252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7253
for as_dir in $PATH
 
7254
do
 
7255
  IFS=$as_save_IFS
 
7256
  test -z "$as_dir" && as_dir=.
 
7257
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7258
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7259
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7260
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7261
    break 2
 
7262
  fi
 
7263
done
 
7264
done
 
7265
IFS=$as_save_IFS
 
7266
 
 
7267
fi
 
7268
fi
 
7269
STRIP=$ac_cv_prog_STRIP
 
7270
if test -n "$STRIP"; then
 
7271
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7272
echo "${ECHO_T}$STRIP" >&6; }
 
7273
else
 
7274
  { echo "$as_me:$LINENO: result: no" >&5
 
7275
echo "${ECHO_T}no" >&6; }
 
7276
fi
 
7277
 
 
7278
 
 
7279
fi
 
7280
if test -z "$ac_cv_prog_STRIP"; then
 
7281
  ac_ct_STRIP=$STRIP
 
7282
  # Extract the first word of "strip", so it can be a program name with args.
 
7283
set dummy strip; ac_word=$2
 
7284
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7285
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7286
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7288
else
 
7289
  if test -n "$ac_ct_STRIP"; then
 
7290
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7291
else
 
7292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7293
for as_dir in $PATH
 
7294
do
 
7295
  IFS=$as_save_IFS
 
7296
  test -z "$as_dir" && as_dir=.
 
7297
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7298
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7299
    ac_cv_prog_ac_ct_STRIP="strip"
 
7300
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7301
    break 2
 
7302
  fi
 
7303
done
 
7304
done
 
7305
IFS=$as_save_IFS
 
7306
 
 
7307
fi
 
7308
fi
 
7309
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7310
if test -n "$ac_ct_STRIP"; then
 
7311
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7312
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
7313
else
 
7314
  { echo "$as_me:$LINENO: result: no" >&5
 
7315
echo "${ECHO_T}no" >&6; }
 
7316
fi
 
7317
 
 
7318
  if test "x$ac_ct_STRIP" = x; then
 
7319
    STRIP=":"
 
7320
  else
 
7321
    case $cross_compiling:$ac_tool_warned in
 
7322
yes:)
 
7323
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7324
whose name does not start with the host triplet.  If you think this
 
7325
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7326
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7327
whose name does not start with the host triplet.  If you think this
 
7328
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7329
ac_tool_warned=yes ;;
 
7330
esac
 
7331
    STRIP=$ac_ct_STRIP
 
7332
  fi
 
7333
else
 
7334
  STRIP="$ac_cv_prog_STRIP"
 
7335
fi
 
7336
 
 
7337
 
 
7338
old_CC="$CC"
 
7339
old_CFLAGS="$CFLAGS"
 
7340
 
 
7341
# Set sane defaults for various variables
 
7342
test -z "$AR" && AR=ar
 
7343
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7344
test -z "$AS" && AS=as
 
7345
test -z "$CC" && CC=cc
 
7346
test -z "$LTCC" && LTCC=$CC
 
7347
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7348
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7349
test -z "$LD" && LD=ld
 
7350
test -z "$LN_S" && LN_S="ln -s"
 
7351
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7352
test -z "$NM" && NM=nm
 
7353
test -z "$SED" && SED=sed
 
7354
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7355
test -z "$RANLIB" && RANLIB=:
 
7356
test -z "$STRIP" && STRIP=:
 
7357
test -z "$ac_objext" && ac_objext=o
 
7358
 
 
7359
# Determine commands to create old-style static archives.
 
7360
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7361
old_postinstall_cmds='chmod 644 $oldlib'
 
7362
old_postuninstall_cmds=
 
7363
 
 
7364
if test -n "$RANLIB"; then
 
7365
  case $host_os in
 
7366
  openbsd*)
 
7367
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7368
    ;;
 
7369
  *)
 
7370
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7371
    ;;
 
7372
  esac
 
7373
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7374
fi
 
7375
 
 
7376
for cc_temp in $compiler""; do
 
7377
  case $cc_temp in
 
7378
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7379
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7380
    \-*) ;;
 
7381
    *) break;;
 
7382
  esac
 
7383
done
 
7384
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7385
 
 
7386
 
 
7387
# Only perform the check for file, if the check method requires it
 
7388
case $deplibs_check_method in
 
7389
file_magic*)
 
7390
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7391
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7392
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7393
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7395
else
 
7396
  case $MAGIC_CMD in
 
7397
[\\/*] |  ?:[\\/]*)
 
7398
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7399
  ;;
 
7400
*)
 
7401
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7402
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7403
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7404
  for ac_dir in $ac_dummy; do
 
7405
    IFS="$lt_save_ifs"
 
7406
    test -z "$ac_dir" && ac_dir=.
 
7407
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7408
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7409
      if test -n "$file_magic_test_file"; then
 
7410
        case $deplibs_check_method in
 
7411
        "file_magic "*)
 
7412
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7413
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7414
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7415
            $EGREP "$file_magic_regex" > /dev/null; then
 
7416
            :
 
7417
          else
 
7418
            cat <<EOF 1>&2
 
7419
 
 
7420
*** Warning: the command libtool uses to detect shared libraries,
 
7421
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7422
*** The result is that libtool may fail to recognize shared libraries
 
7423
*** as such.  This will affect the creation of libtool libraries that
 
7424
*** depend on shared libraries, but programs linked with such libtool
 
7425
*** libraries will work regardless of this problem.  Nevertheless, you
 
7426
*** may want to report the problem to your system manager and/or to
 
7427
*** bug-libtool@gnu.org
 
7428
 
 
7429
EOF
 
7430
          fi ;;
 
7431
        esac
 
7432
      fi
 
7433
      break
 
7434
    fi
 
7435
  done
 
7436
  IFS="$lt_save_ifs"
 
7437
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7438
  ;;
 
7439
esac
 
7440
fi
 
7441
 
 
7442
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7443
if test -n "$MAGIC_CMD"; then
 
7444
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7445
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7446
else
 
7447
  { echo "$as_me:$LINENO: result: no" >&5
 
7448
echo "${ECHO_T}no" >&6; }
 
7449
fi
 
7450
 
 
7451
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7452
  if test -n "$ac_tool_prefix"; then
 
7453
    { echo "$as_me:$LINENO: checking for file" >&5
 
7454
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7455
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7456
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7457
else
 
7458
  case $MAGIC_CMD in
 
7459
[\\/*] |  ?:[\\/]*)
 
7460
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7461
  ;;
 
7462
*)
 
7463
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7464
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7465
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7466
  for ac_dir in $ac_dummy; do
 
7467
    IFS="$lt_save_ifs"
 
7468
    test -z "$ac_dir" && ac_dir=.
 
7469
    if test -f $ac_dir/file; then
 
7470
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7471
      if test -n "$file_magic_test_file"; then
 
7472
        case $deplibs_check_method in
 
7473
        "file_magic "*)
 
7474
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7475
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7476
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7477
            $EGREP "$file_magic_regex" > /dev/null; then
 
7478
            :
 
7479
          else
 
7480
            cat <<EOF 1>&2
 
7481
 
 
7482
*** Warning: the command libtool uses to detect shared libraries,
 
7483
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7484
*** The result is that libtool may fail to recognize shared libraries
 
7485
*** as such.  This will affect the creation of libtool libraries that
 
7486
*** depend on shared libraries, but programs linked with such libtool
 
7487
*** libraries will work regardless of this problem.  Nevertheless, you
 
7488
*** may want to report the problem to your system manager and/or to
 
7489
*** bug-libtool@gnu.org
 
7490
 
 
7491
EOF
 
7492
          fi ;;
 
7493
        esac
 
7494
      fi
 
7495
      break
 
7496
    fi
 
7497
  done
 
7498
  IFS="$lt_save_ifs"
 
7499
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7500
  ;;
 
7501
esac
 
7502
fi
 
7503
 
 
7504
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7505
if test -n "$MAGIC_CMD"; then
 
7506
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7507
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7508
else
 
7509
  { echo "$as_me:$LINENO: result: no" >&5
 
7510
echo "${ECHO_T}no" >&6; }
 
7511
fi
 
7512
 
 
7513
  else
 
7514
    MAGIC_CMD=:
 
7515
  fi
 
7516
fi
 
7517
 
 
7518
  fi
 
7519
  ;;
 
7520
esac
 
7521
 
 
7522
 
 
7523
  case $host_os in
 
7524
    rhapsody* | darwin*)
 
7525
    if test -n "$ac_tool_prefix"; then
 
7526
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7527
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7528
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7530
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7532
else
 
7533
  if test -n "$DSYMUTIL"; then
 
7534
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7535
else
 
7536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7537
for as_dir in $PATH
 
7538
do
 
7539
  IFS=$as_save_IFS
 
7540
  test -z "$as_dir" && as_dir=.
 
7541
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7542
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7543
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7544
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7545
    break 2
 
7546
  fi
 
7547
done
 
7548
done
 
7549
IFS=$as_save_IFS
 
7550
 
 
7551
fi
 
7552
fi
 
7553
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7554
if test -n "$DSYMUTIL"; then
 
7555
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7556
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7557
else
 
7558
  { echo "$as_me:$LINENO: result: no" >&5
 
7559
echo "${ECHO_T}no" >&6; }
 
7560
fi
 
7561
 
 
7562
 
 
7563
fi
 
7564
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7565
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7566
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7567
set dummy dsymutil; ac_word=$2
 
7568
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7569
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7570
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7571
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7572
else
 
7573
  if test -n "$ac_ct_DSYMUTIL"; then
 
7574
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7575
else
 
7576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7577
for as_dir in $PATH
 
7578
do
 
7579
  IFS=$as_save_IFS
 
7580
  test -z "$as_dir" && as_dir=.
 
7581
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7582
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7583
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7584
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7585
    break 2
 
7586
  fi
 
7587
done
 
7588
done
 
7589
IFS=$as_save_IFS
 
7590
 
 
7591
fi
 
7592
fi
 
7593
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7594
if test -n "$ac_ct_DSYMUTIL"; then
 
7595
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7596
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7597
else
 
7598
  { echo "$as_me:$LINENO: result: no" >&5
 
7599
echo "${ECHO_T}no" >&6; }
 
7600
fi
 
7601
 
 
7602
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7603
    DSYMUTIL=":"
 
7604
  else
 
7605
    case $cross_compiling:$ac_tool_warned in
 
7606
yes:)
 
7607
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7608
whose name does not start with the host triplet.  If you think this
 
7609
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7610
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7611
whose name does not start with the host triplet.  If you think this
 
7612
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7613
ac_tool_warned=yes ;;
 
7614
esac
 
7615
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7616
  fi
 
7617
else
 
7618
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7619
fi
 
7620
 
 
7621
    if test -n "$ac_tool_prefix"; then
 
7622
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7623
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7624
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7625
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7626
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7628
else
 
7629
  if test -n "$NMEDIT"; then
 
7630
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7631
else
 
7632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7633
for as_dir in $PATH
 
7634
do
 
7635
  IFS=$as_save_IFS
 
7636
  test -z "$as_dir" && as_dir=.
 
7637
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7638
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7639
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7640
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7641
    break 2
 
7642
  fi
 
7643
done
 
7644
done
 
7645
IFS=$as_save_IFS
 
7646
 
 
7647
fi
 
7648
fi
 
7649
NMEDIT=$ac_cv_prog_NMEDIT
 
7650
if test -n "$NMEDIT"; then
 
7651
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7652
echo "${ECHO_T}$NMEDIT" >&6; }
 
7653
else
 
7654
  { echo "$as_me:$LINENO: result: no" >&5
 
7655
echo "${ECHO_T}no" >&6; }
 
7656
fi
 
7657
 
 
7658
 
 
7659
fi
 
7660
if test -z "$ac_cv_prog_NMEDIT"; then
 
7661
  ac_ct_NMEDIT=$NMEDIT
 
7662
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7663
set dummy nmedit; ac_word=$2
 
7664
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7665
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7666
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7668
else
 
7669
  if test -n "$ac_ct_NMEDIT"; then
 
7670
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7671
else
 
7672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7673
for as_dir in $PATH
 
7674
do
 
7675
  IFS=$as_save_IFS
 
7676
  test -z "$as_dir" && as_dir=.
 
7677
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7678
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7679
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7680
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7681
    break 2
 
7682
  fi
 
7683
done
 
7684
done
 
7685
IFS=$as_save_IFS
 
7686
 
 
7687
fi
 
7688
fi
 
7689
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7690
if test -n "$ac_ct_NMEDIT"; then
 
7691
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7692
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7693
else
 
7694
  { echo "$as_me:$LINENO: result: no" >&5
 
7695
echo "${ECHO_T}no" >&6; }
 
7696
fi
 
7697
 
 
7698
  if test "x$ac_ct_NMEDIT" = x; then
 
7699
    NMEDIT=":"
 
7700
  else
 
7701
    case $cross_compiling:$ac_tool_warned in
 
7702
yes:)
 
7703
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7704
whose name does not start with the host triplet.  If you think this
 
7705
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7706
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7707
whose name does not start with the host triplet.  If you think this
 
7708
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7709
ac_tool_warned=yes ;;
 
7710
esac
 
7711
    NMEDIT=$ac_ct_NMEDIT
 
7712
  fi
 
7713
else
 
7714
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7715
fi
 
7716
 
 
7717
 
 
7718
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7719
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7720
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7722
else
 
7723
  lt_cv_apple_cc_single_mod=no
 
7724
      if test -z "${LT_MULTI_MODULE}"; then
 
7725
   # By default we will add the -single_module flag. You can override
 
7726
   # by either setting the environment variable LT_MULTI_MODULE
 
7727
   # non-empty at configure time, or by adding -multi_module to the
 
7728
   # link flags.
 
7729
   echo "int foo(void){return 1;}" > conftest.c
 
7730
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7731
     -dynamiclib ${wl}-single_module conftest.c
 
7732
   if test -f libconftest.dylib; then
 
7733
     lt_cv_apple_cc_single_mod=yes
 
7734
     rm -rf libconftest.dylib*
 
7735
   fi
 
7736
   rm conftest.c
 
7737
      fi
 
7738
fi
 
7739
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7740
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7741
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7742
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7743
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7745
else
 
7746
  lt_cv_ld_exported_symbols_list=no
 
7747
      save_LDFLAGS=$LDFLAGS
 
7748
      echo "_main" > conftest.sym
 
7749
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7750
      cat >conftest.$ac_ext <<_ACEOF
 
7751
/* confdefs.h.  */
 
7752
_ACEOF
 
7753
cat confdefs.h >>conftest.$ac_ext
 
7754
cat >>conftest.$ac_ext <<_ACEOF
 
7755
/* end confdefs.h.  */
 
7756
 
 
7757
int
 
7758
main ()
 
7759
{
 
7760
 
 
7761
  ;
 
7762
  return 0;
 
7763
}
 
7764
_ACEOF
 
7765
rm -f conftest.$ac_objext conftest$ac_exeext
 
7766
if { (ac_try="$ac_link"
 
7767
case "(($ac_try" in
 
7768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7769
  *) ac_try_echo=$ac_try;;
 
7770
esac
 
7771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7772
  (eval "$ac_link") 2>conftest.er1
 
7773
  ac_status=$?
 
7774
  grep -v '^ *+' conftest.er1 >conftest.err
 
7775
  rm -f conftest.er1
 
7776
  cat conftest.err >&5
 
7777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7778
  (exit $ac_status); } && {
 
7779
         test -z "$ac_c_werror_flag" ||
 
7780
         test ! -s conftest.err
 
7781
       } && test -s conftest$ac_exeext &&
 
7782
       $as_test_x conftest$ac_exeext; then
 
7783
  lt_cv_ld_exported_symbols_list=yes
 
7784
else
 
7785
  echo "$as_me: failed program was:" >&5
 
7786
sed 's/^/| /' conftest.$ac_ext >&5
 
7787
 
 
7788
        lt_cv_ld_exported_symbols_list=no
 
7789
fi
 
7790
 
 
7791
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7792
      conftest$ac_exeext conftest.$ac_ext
 
7793
   LDFLAGS="$save_LDFLAGS"
 
7794
 
 
7795
fi
 
7796
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7797
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7798
    case $host_os in
 
7799
    rhapsody* | darwin1.[0123])
 
7800
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7801
    darwin1.*)
 
7802
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7803
    darwin*)
 
7804
      # if running on 10.5 or later, the deployment target defaults
 
7805
      # to the OS version, if on x86, and 10.4, the deployment
 
7806
      # target defaults to 10.4. Don't you love it?
 
7807
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7808
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7809
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7810
   10.[012]*)
 
7811
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7812
   10.*)
 
7813
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7814
      esac
 
7815
    ;;
 
7816
  esac
 
7817
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7818
      _lt_dar_single_mod='$single_module'
 
7819
    fi
 
7820
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7821
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7822
    else
 
7823
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7824
    fi
 
7825
    if test "$DSYMUTIL" != ":"; then
 
7826
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7827
    else
 
7828
      _lt_dsymutil=
 
7829
    fi
 
7830
    ;;
 
7831
  esac
 
7832
 
 
7833
 
 
7834
enable_dlopen=no
 
7835
enable_win32_dll=no
 
7836
 
 
7837
# Check whether --enable-libtool-lock was given.
 
7838
if test "${enable_libtool_lock+set}" = set; then
 
7839
  enableval=$enable_libtool_lock;
 
7840
fi
 
7841
 
 
7842
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7843
 
 
7844
 
 
7845
# Check whether --with-pic was given.
 
7846
if test "${with_pic+set}" = set; then
 
7847
  withval=$with_pic; pic_mode="$withval"
 
7848
else
 
7849
  pic_mode=default
 
7850
fi
 
7851
 
 
7852
test -z "$pic_mode" && pic_mode=default
 
7853
 
 
7854
# Use C for the default configuration in the libtool script
 
7855
tagname=
 
7856
lt_save_CC="$CC"
 
7857
ac_ext=c
 
7858
ac_cpp='$CPP $CPPFLAGS'
 
7859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7862
 
 
7863
 
 
7864
# Source file extension for C test sources.
 
7865
ac_ext=c
 
7866
 
 
7867
# Object file extension for compiled C test sources.
 
7868
objext=o
 
7869
objext=$objext
 
7870
 
 
7871
# Code to be used in simple compile tests
 
7872
lt_simple_compile_test_code="int some_variable = 0;"
 
7873
 
 
7874
# Code to be used in simple link tests
 
7875
lt_simple_link_test_code='int main(){return(0);}'
 
7876
 
 
7877
 
 
7878
# If no C compiler was specified, use CC.
 
7879
LTCC=${LTCC-"$CC"}
 
7880
 
 
7881
# If no C compiler flags were specified, use CFLAGS.
 
7882
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7883
 
 
7884
# Allow CC to be a program name with arguments.
 
7885
compiler=$CC
 
7886
 
 
7887
 
 
7888
# save warnings/boilerplate of simple test code
 
7889
ac_outfile=conftest.$ac_objext
 
7890
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7891
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7892
_lt_compiler_boilerplate=`cat conftest.err`
 
7893
$rm conftest*
 
7894
 
 
7895
ac_outfile=conftest.$ac_objext
 
7896
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7897
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7898
_lt_linker_boilerplate=`cat conftest.err`
 
7899
$rm -r conftest*
 
7900
 
 
7901
 
 
7902
 
 
7903
lt_prog_compiler_no_builtin_flag=
 
7904
 
 
7905
if test "$GCC" = yes; then
 
7906
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7907
 
 
7908
 
 
7909
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7910
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7911
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7913
else
 
7914
  lt_cv_prog_compiler_rtti_exceptions=no
 
7915
  ac_outfile=conftest.$ac_objext
 
7916
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7917
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7918
   # Insert the option either (1) after the last *FLAGS variable, or
 
7919
   # (2) before a word containing "conftest.", or (3) at the end.
 
7920
   # Note that $ac_compile itself does not contain backslashes and begins
 
7921
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7922
   # The option is referenced via a variable to avoid confusing sed.
 
7923
   lt_compile=`echo "$ac_compile" | $SED \
 
7924
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7925
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7926
   -e 's:$: $lt_compiler_flag:'`
 
7927
   (eval echo "\"\$as_me:7927: $lt_compile\"" >&5)
 
7928
   (eval "$lt_compile" 2>conftest.err)
 
7929
   ac_status=$?
 
7930
   cat conftest.err >&5
 
7931
   echo "$as_me:7931: \$? = $ac_status" >&5
 
7932
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7933
     # The compiler can only warn and ignore the option if not recognized
 
7934
     # So say no if there are warnings other than the usual output.
 
7935
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7936
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7937
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7938
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7939
     fi
 
7940
   fi
 
7941
   $rm conftest*
 
7942
 
 
7943
fi
 
7944
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7945
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7946
 
 
7947
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7948
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7949
else
 
7950
    :
 
7951
fi
 
7952
 
 
7953
fi
 
7954
 
 
7955
lt_prog_compiler_wl=
 
7956
lt_prog_compiler_pic=
 
7957
lt_prog_compiler_static=
 
7958
 
 
7959
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7960
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7961
 
 
7962
  if test "$GCC" = yes; then
 
7963
    lt_prog_compiler_wl='-Wl,'
 
7964
    lt_prog_compiler_static='-static'
 
7965
 
 
7966
    case $host_os in
 
7967
      aix*)
 
7968
      # All AIX code is PIC.
 
7969
      if test "$host_cpu" = ia64; then
 
7970
        # AIX 5 now supports IA64 processor
 
7971
        lt_prog_compiler_static='-Bstatic'
 
7972
      fi
 
7973
      ;;
 
7974
 
 
7975
    amigaos*)
 
7976
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7977
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7978
      # like `-m68040'.
 
7979
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7980
      ;;
 
7981
 
 
7982
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7983
      # PIC is the default for these OSes.
 
7984
      ;;
 
7985
 
 
7986
    mingw* | cygwin* | pw32* | os2*)
 
7987
      # This hack is so that the source file can tell whether it is being
 
7988
      # built for inclusion in a dll (and should export symbols for example).
 
7989
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7990
      # (--disable-auto-import) libraries
 
7991
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7992
      ;;
 
7993
 
 
7994
    darwin* | rhapsody*)
 
7995
      # PIC is the default on this platform
 
7996
      # Common symbols not allowed in MH_DYLIB files
 
7997
      lt_prog_compiler_pic='-fno-common'
 
7998
      ;;
 
7999
 
 
8000
    interix[3-9]*)
 
8001
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8002
      # Instead, we relocate shared libraries at runtime.
 
8003
      ;;
 
8004
 
 
8005
    msdosdjgpp*)
 
8006
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8007
      # on systems that don't support them.
 
8008
      lt_prog_compiler_can_build_shared=no
 
8009
      enable_shared=no
 
8010
      ;;
 
8011
 
 
8012
    sysv4*MP*)
 
8013
      if test -d /usr/nec; then
 
8014
        lt_prog_compiler_pic=-Kconform_pic
 
8015
      fi
 
8016
      ;;
 
8017
 
 
8018
    hpux*)
 
8019
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8020
      # not for PA HP-UX.
 
8021
      case $host_cpu in
 
8022
      hppa*64*|ia64*)
 
8023
        # +Z the default
 
8024
        ;;
 
8025
      *)
 
8026
        lt_prog_compiler_pic='-fPIC'
 
8027
        ;;
 
8028
      esac
 
8029
      ;;
 
8030
 
 
8031
    *)
 
8032
      lt_prog_compiler_pic='-fPIC'
 
8033
      ;;
 
8034
    esac
 
8035
  else
 
8036
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8037
    case $host_os in
 
8038
    aix*)
 
8039
      lt_prog_compiler_wl='-Wl,'
 
8040
      if test "$host_cpu" = ia64; then
 
8041
        # AIX 5 now supports IA64 processor
 
8042
        lt_prog_compiler_static='-Bstatic'
 
8043
      else
 
8044
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8045
      fi
 
8046
      ;;
 
8047
      darwin*)
 
8048
        # PIC is the default on this platform
 
8049
        # Common symbols not allowed in MH_DYLIB files
 
8050
       case $cc_basename in
 
8051
         xlc*)
 
8052
         lt_prog_compiler_pic='-qnocommon'
 
8053
         lt_prog_compiler_wl='-Wl,'
 
8054
         ;;
 
8055
       esac
 
8056
       ;;
 
8057
 
 
8058
    mingw* | cygwin* | pw32* | os2*)
 
8059
      # This hack is so that the source file can tell whether it is being
 
8060
      # built for inclusion in a dll (and should export symbols for example).
 
8061
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8062
      ;;
 
8063
 
 
8064
    hpux9* | hpux10* | hpux11*)
 
8065
      lt_prog_compiler_wl='-Wl,'
 
8066
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8067
      # not for PA HP-UX.
 
8068
      case $host_cpu in
 
8069
      hppa*64*|ia64*)
 
8070
        # +Z the default
 
8071
        ;;
 
8072
      *)
 
8073
        lt_prog_compiler_pic='+Z'
 
8074
        ;;
 
8075
      esac
 
8076
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8077
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8078
      ;;
 
8079
 
 
8080
    irix5* | irix6* | nonstopux*)
 
8081
      lt_prog_compiler_wl='-Wl,'
 
8082
      # PIC (with -KPIC) is the default.
 
8083
      lt_prog_compiler_static='-non_shared'
 
8084
      ;;
 
8085
 
 
8086
    newsos6)
 
8087
      lt_prog_compiler_pic='-KPIC'
 
8088
      lt_prog_compiler_static='-Bstatic'
 
8089
      ;;
 
8090
 
 
8091
    linux* | k*bsd*-gnu)
 
8092
      case $cc_basename in
 
8093
      icc* | ecc*)
 
8094
        lt_prog_compiler_wl='-Wl,'
 
8095
        lt_prog_compiler_pic='-KPIC'
 
8096
        lt_prog_compiler_static='-static'
 
8097
        ;;
 
8098
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8099
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8100
        # which looks to be a dead project)
 
8101
        lt_prog_compiler_wl='-Wl,'
 
8102
        lt_prog_compiler_pic='-fpic'
 
8103
        lt_prog_compiler_static='-Bstatic'
 
8104
        ;;
 
8105
      ccc*)
 
8106
        lt_prog_compiler_wl='-Wl,'
 
8107
        # All Alpha code is PIC.
 
8108
        lt_prog_compiler_static='-non_shared'
 
8109
        ;;
 
8110
      *)
 
8111
        case `$CC -V 2>&1 | sed 5q` in
 
8112
        *Sun\ C*)
 
8113
          # Sun C 5.9
 
8114
          lt_prog_compiler_pic='-KPIC'
 
8115
          lt_prog_compiler_static='-Bstatic'
 
8116
          lt_prog_compiler_wl='-Wl,'
 
8117
          ;;
 
8118
        *Sun\ F*)
 
8119
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8120
          lt_prog_compiler_pic='-KPIC'
 
8121
          lt_prog_compiler_static='-Bstatic'
 
8122
          lt_prog_compiler_wl=''
 
8123
          ;;
 
8124
        esac
 
8125
        ;;
 
8126
      esac
 
8127
      ;;
 
8128
 
 
8129
    osf3* | osf4* | osf5*)
 
8130
      lt_prog_compiler_wl='-Wl,'
 
8131
      # All OSF/1 code is PIC.
 
8132
      lt_prog_compiler_static='-non_shared'
 
8133
      ;;
 
8134
 
 
8135
    rdos*)
 
8136
      lt_prog_compiler_static='-non_shared'
 
8137
      ;;
 
8138
 
 
8139
    solaris*)
 
8140
      lt_prog_compiler_pic='-KPIC'
 
8141
      lt_prog_compiler_static='-Bstatic'
 
8142
      case $cc_basename in
 
8143
      f77* | f90* | f95*)
 
8144
        lt_prog_compiler_wl='-Qoption ld ';;
 
8145
      *)
 
8146
        lt_prog_compiler_wl='-Wl,';;
 
8147
      esac
 
8148
      ;;
 
8149
 
 
8150
    sunos4*)
 
8151
      lt_prog_compiler_wl='-Qoption ld '
 
8152
      lt_prog_compiler_pic='-PIC'
 
8153
      lt_prog_compiler_static='-Bstatic'
 
8154
      ;;
 
8155
 
 
8156
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8157
      lt_prog_compiler_wl='-Wl,'
 
8158
      lt_prog_compiler_pic='-KPIC'
 
8159
      lt_prog_compiler_static='-Bstatic'
 
8160
      ;;
 
8161
 
 
8162
    sysv4*MP*)
 
8163
      if test -d /usr/nec ;then
 
8164
        lt_prog_compiler_pic='-Kconform_pic'
 
8165
        lt_prog_compiler_static='-Bstatic'
 
8166
      fi
 
8167
      ;;
 
8168
 
 
8169
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8170
      lt_prog_compiler_wl='-Wl,'
 
8171
      lt_prog_compiler_pic='-KPIC'
 
8172
      lt_prog_compiler_static='-Bstatic'
 
8173
      ;;
 
8174
 
 
8175
    unicos*)
 
8176
      lt_prog_compiler_wl='-Wl,'
 
8177
      lt_prog_compiler_can_build_shared=no
 
8178
      ;;
 
8179
 
 
8180
    uts4*)
 
8181
      lt_prog_compiler_pic='-pic'
 
8182
      lt_prog_compiler_static='-Bstatic'
 
8183
      ;;
 
8184
 
 
8185
    *)
 
8186
      lt_prog_compiler_can_build_shared=no
 
8187
      ;;
 
8188
    esac
 
8189
  fi
 
8190
 
 
8191
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8192
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
8193
 
 
8194
#
 
8195
# Check to make sure the PIC flag actually works.
 
8196
#
 
8197
if test -n "$lt_prog_compiler_pic"; then
 
8198
 
 
8199
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8200
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
8201
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
8202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8203
else
 
8204
  lt_cv_prog_compiler_pic_works=no
 
8205
  ac_outfile=conftest.$ac_objext
 
8206
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8207
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8208
   # Insert the option either (1) after the last *FLAGS variable, or
 
8209
   # (2) before a word containing "conftest.", or (3) at the end.
 
8210
   # Note that $ac_compile itself does not contain backslashes and begins
 
8211
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8212
   # The option is referenced via a variable to avoid confusing sed.
 
8213
   lt_compile=`echo "$ac_compile" | $SED \
 
8214
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8215
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8216
   -e 's:$: $lt_compiler_flag:'`
 
8217
   (eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
 
8218
   (eval "$lt_compile" 2>conftest.err)
 
8219
   ac_status=$?
 
8220
   cat conftest.err >&5
 
8221
   echo "$as_me:8221: \$? = $ac_status" >&5
 
8222
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8223
     # The compiler can only warn and ignore the option if not recognized
 
8224
     # So say no if there are warnings other than the usual output.
 
8225
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8226
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8227
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8228
       lt_cv_prog_compiler_pic_works=yes
 
8229
     fi
 
8230
   fi
 
8231
   $rm conftest*
 
8232
 
 
8233
fi
 
8234
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8235
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
 
8236
 
 
8237
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8238
    case $lt_prog_compiler_pic in
 
8239
     "" | " "*) ;;
 
8240
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8241
     esac
 
8242
else
 
8243
    lt_prog_compiler_pic=
 
8244
     lt_prog_compiler_can_build_shared=no
 
8245
fi
 
8246
 
 
8247
fi
 
8248
case $host_os in
 
8249
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8250
  *djgpp*)
 
8251
    lt_prog_compiler_pic=
 
8252
    ;;
 
8253
  *)
 
8254
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8255
    ;;
 
8256
esac
 
8257
 
 
8258
#
 
8259
# Check to make sure the static flag actually works.
 
8260
#
 
8261
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8262
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8263
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
8264
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8266
else
 
8267
  lt_cv_prog_compiler_static_works=no
 
8268
   save_LDFLAGS="$LDFLAGS"
 
8269
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8270
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8271
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8272
     # The linker can only warn and ignore the option if not recognized
 
8273
     # So say no if there are warnings
 
8274
     if test -s conftest.err; then
 
8275
       # Append any errors to the config.log.
 
8276
       cat conftest.err 1>&5
 
8277
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8278
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8279
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8280
         lt_cv_prog_compiler_static_works=yes
 
8281
       fi
 
8282
     else
 
8283
       lt_cv_prog_compiler_static_works=yes
 
8284
     fi
 
8285
   fi
 
8286
   $rm -r conftest*
 
8287
   LDFLAGS="$save_LDFLAGS"
 
8288
 
 
8289
fi
 
8290
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8291
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
 
8292
 
 
8293
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8294
    :
 
8295
else
 
8296
    lt_prog_compiler_static=
 
8297
fi
 
8298
 
 
8299
 
 
8300
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8301
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
8302
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8304
else
 
8305
  lt_cv_prog_compiler_c_o=no
 
8306
   $rm -r conftest 2>/dev/null
 
8307
   mkdir conftest
 
8308
   cd conftest
 
8309
   mkdir out
 
8310
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8311
 
 
8312
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8313
   # Insert the option either (1) after the last *FLAGS variable, or
 
8314
   # (2) before a word containing "conftest.", or (3) at the end.
 
8315
   # Note that $ac_compile itself does not contain backslashes and begins
 
8316
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8317
   lt_compile=`echo "$ac_compile" | $SED \
 
8318
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8319
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8320
   -e 's:$: $lt_compiler_flag:'`
 
8321
   (eval echo "\"\$as_me:8321: $lt_compile\"" >&5)
 
8322
   (eval "$lt_compile" 2>out/conftest.err)
 
8323
   ac_status=$?
 
8324
   cat out/conftest.err >&5
 
8325
   echo "$as_me:8325: \$? = $ac_status" >&5
 
8326
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8327
   then
 
8328
     # The compiler can only warn and ignore the option if not recognized
 
8329
     # So say no if there are warnings
 
8330
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8331
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8332
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8333
       lt_cv_prog_compiler_c_o=yes
 
8334
     fi
 
8335
   fi
 
8336
   chmod u+w . 2>&5
 
8337
   $rm conftest*
 
8338
   # SGI C++ compiler will create directory out/ii_files/ for
 
8339
   # template instantiation
 
8340
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8341
   $rm out/* && rmdir out
 
8342
   cd ..
 
8343
   rmdir conftest
 
8344
   $rm conftest*
 
8345
 
 
8346
fi
 
8347
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8348
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8349
 
 
8350
 
 
8351
hard_links="nottested"
 
8352
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8353
  # do not overwrite the value of need_locks provided by the user
 
8354
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8355
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
8356
  hard_links=yes
 
8357
  $rm conftest*
 
8358
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8359
  touch conftest.a
 
8360
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8361
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8362
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8363
echo "${ECHO_T}$hard_links" >&6; }
 
8364
  if test "$hard_links" = no; then
 
8365
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8366
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8367
    need_locks=warn
 
8368
  fi
 
8369
else
 
8370
  need_locks=no
 
8371
fi
 
8372
 
 
8373
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8374
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8375
 
 
8376
  runpath_var=
 
8377
  allow_undefined_flag=
 
8378
  enable_shared_with_static_runtimes=no
 
8379
  archive_cmds=
 
8380
  archive_expsym_cmds=
 
8381
  old_archive_From_new_cmds=
 
8382
  old_archive_from_expsyms_cmds=
 
8383
  export_dynamic_flag_spec=
 
8384
  whole_archive_flag_spec=
 
8385
  thread_safe_flag_spec=
 
8386
  hardcode_libdir_flag_spec=
 
8387
  hardcode_libdir_flag_spec_ld=
 
8388
  hardcode_libdir_separator=
 
8389
  hardcode_direct=no
 
8390
  hardcode_minus_L=no
 
8391
  hardcode_shlibpath_var=unsupported
 
8392
  link_all_deplibs=unknown
 
8393
  hardcode_automatic=no
 
8394
  module_cmds=
 
8395
  module_expsym_cmds=
 
8396
  always_export_symbols=no
 
8397
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8398
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8399
  # included in the symbol list
 
8400
  include_expsyms=
 
8401
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8402
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8403
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8404
  # as well as any symbol that contains `d'.
 
8405
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8406
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8407
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8408
  # the symbol is explicitly referenced.  Since portable code cannot
 
8409
  # rely on this symbol name, it's probably fine to never include it in
 
8410
  # preloaded symbol tables.
 
8411
  # Exclude shared library initialization/finalization symbols.
 
8412
  extract_expsyms_cmds=
 
8413
  # Just being paranoid about ensuring that cc_basename is set.
 
8414
  for cc_temp in $compiler""; do
 
8415
  case $cc_temp in
 
8416
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8417
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8418
    \-*) ;;
 
8419
    *) break;;
 
8420
  esac
 
8421
done
 
8422
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8423
 
 
8424
  case $host_os in
 
8425
  cygwin* | mingw* | pw32*)
 
8426
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8427
    # When not using gcc, we currently assume that we are using
 
8428
    # Microsoft Visual C++.
 
8429
    if test "$GCC" != yes; then
 
8430
      with_gnu_ld=no
 
8431
    fi
 
8432
    ;;
 
8433
  interix*)
 
8434
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8435
    with_gnu_ld=yes
 
8436
    ;;
 
8437
  openbsd*)
 
8438
    with_gnu_ld=no
 
8439
    ;;
 
8440
  esac
 
8441
 
 
8442
  ld_shlibs=yes
 
8443
  if test "$with_gnu_ld" = yes; then
 
8444
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8445
    wlarc='${wl}'
 
8446
 
 
8447
    # Set some defaults for GNU ld with shared library support. These
 
8448
    # are reset later if shared libraries are not supported. Putting them
 
8449
    # here allows them to be overridden if necessary.
 
8450
    runpath_var=LD_RUN_PATH
 
8451
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8452
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8453
    # ancient GNU ld didn't support --whole-archive et. al.
 
8454
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8455
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8456
      else
 
8457
        whole_archive_flag_spec=
 
8458
    fi
 
8459
    supports_anon_versioning=no
 
8460
    case `$LD -v 2>/dev/null` in
 
8461
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8462
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8463
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8464
      *\ 2.11.*) ;; # other 2.11 versions
 
8465
      *) supports_anon_versioning=yes ;;
 
8466
    esac
 
8467
 
 
8468
    # See if GNU ld supports shared libraries.
 
8469
    case $host_os in
 
8470
    aix[3-9]*)
 
8471
      # On AIX/PPC, the GNU linker is very broken
 
8472
      if test "$host_cpu" != ia64; then
 
8473
        ld_shlibs=no
 
8474
        cat <<EOF 1>&2
 
8475
 
 
8476
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8477
*** to be unable to reliably create shared libraries on AIX.
 
8478
*** Therefore, libtool is disabling shared libraries support.  If you
 
8479
*** really care for shared libraries, you may want to modify your PATH
 
8480
*** so that a non-GNU linker is found, and then restart.
 
8481
 
 
8482
EOF
 
8483
      fi
 
8484
      ;;
 
8485
 
 
8486
    amigaos*)
 
8487
      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)'
 
8488
      hardcode_libdir_flag_spec='-L$libdir'
 
8489
      hardcode_minus_L=yes
 
8490
 
 
8491
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8492
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8493
      # to version 4, is to share data among multiple programs linked
 
8494
      # with the same dynamic library.  Since this doesn't match the
 
8495
      # behavior of shared libraries on other platforms, we can't use
 
8496
      # them.
 
8497
      ld_shlibs=no
 
8498
      ;;
 
8499
 
 
8500
    beos*)
 
8501
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8502
        allow_undefined_flag=unsupported
 
8503
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8504
        # support --undefined.  This deserves some investigation.  FIXME
 
8505
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8506
      else
 
8507
        ld_shlibs=no
 
8508
      fi
 
8509
      ;;
 
8510
 
 
8511
    cygwin* | mingw* | pw32*)
 
8512
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8513
      # as there is no search path for DLLs.
 
8514
      hardcode_libdir_flag_spec='-L$libdir'
 
8515
      allow_undefined_flag=unsupported
 
8516
      always_export_symbols=no
 
8517
      enable_shared_with_static_runtimes=yes
 
8518
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8519
 
 
8520
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8521
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8522
        # If the export-symbols file already is a .def file (1st line
 
8523
        # is EXPORTS), use it as is; otherwise, prepend...
 
8524
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8525
          cp $export_symbols $output_objdir/$soname.def;
 
8526
        else
 
8527
          echo EXPORTS > $output_objdir/$soname.def;
 
8528
          cat $export_symbols >> $output_objdir/$soname.def;
 
8529
        fi~
 
8530
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8531
      else
 
8532
        ld_shlibs=no
 
8533
      fi
 
8534
      ;;
 
8535
 
 
8536
    interix[3-9]*)
 
8537
      hardcode_direct=no
 
8538
      hardcode_shlibpath_var=no
 
8539
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8540
      export_dynamic_flag_spec='${wl}-E'
 
8541
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8542
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8543
      # default) and relocated if they conflict, which is a slow very memory
 
8544
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8545
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8546
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8547
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8548
      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'
 
8549
      ;;
 
8550
 
 
8551
    gnu* | linux* | k*bsd*-gnu)
 
8552
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8553
        tmp_addflag=
 
8554
        case $cc_basename,$host_cpu in
 
8555
        pgcc*)                          # Portland Group C compiler
 
8556
          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'
 
8557
          tmp_addflag=' $pic_flag'
 
8558
          ;;
 
8559
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8560
          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'
 
8561
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8562
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8563
          tmp_addflag=' -i_dynamic' ;;
 
8564
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8565
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8566
        ifc* | ifort*)                  # Intel Fortran compiler
 
8567
          tmp_addflag=' -nofor_main' ;;
 
8568
        esac
 
8569
        case `$CC -V 2>&1 | sed 5q` in
 
8570
        *Sun\ C*)                       # Sun C 5.9
 
8571
          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'
 
8572
          tmp_sharedflag='-G' ;;
 
8573
        *Sun\ F*)                       # Sun Fortran 8.3
 
8574
          tmp_sharedflag='-G' ;;
 
8575
        *)
 
8576
          tmp_sharedflag='-shared' ;;
 
8577
        esac
 
8578
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8579
 
 
8580
        if test $supports_anon_versioning = yes; then
 
8581
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8582
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8583
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8584
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8585
        fi
 
8586
        link_all_deplibs=no
 
8587
      else
 
8588
        ld_shlibs=no
 
8589
      fi
 
8590
      ;;
 
8591
 
 
8592
    netbsd* | netbsdelf*-gnu)
 
8593
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8594
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8595
        wlarc=
 
8596
      else
 
8597
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8598
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8599
      fi
 
8600
      ;;
 
8601
 
 
8602
    solaris*)
 
8603
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8604
        ld_shlibs=no
 
8605
        cat <<EOF 1>&2
 
8606
 
 
8607
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8608
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8609
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8610
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8611
*** your PATH or compiler configuration so that the native linker is
 
8612
*** used, and then restart.
 
8613
 
 
8614
EOF
 
8615
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8616
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8617
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8618
      else
 
8619
        ld_shlibs=no
 
8620
      fi
 
8621
      ;;
 
8622
 
 
8623
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8624
      case `$LD -v 2>&1` in
 
8625
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8626
        ld_shlibs=no
 
8627
        cat <<_LT_EOF 1>&2
 
8628
 
 
8629
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8630
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8631
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8632
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8633
*** your PATH or compiler configuration so that the native linker is
 
8634
*** used, and then restart.
 
8635
 
 
8636
_LT_EOF
 
8637
        ;;
 
8638
        *)
 
8639
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8640
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8641
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8642
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8643
          else
 
8644
            ld_shlibs=no
 
8645
          fi
 
8646
        ;;
 
8647
      esac
 
8648
      ;;
 
8649
 
 
8650
    sunos4*)
 
8651
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8652
      wlarc=
 
8653
      hardcode_direct=yes
 
8654
      hardcode_shlibpath_var=no
 
8655
      ;;
 
8656
 
 
8657
    *)
 
8658
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8659
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8660
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8661
      else
 
8662
        ld_shlibs=no
 
8663
      fi
 
8664
      ;;
 
8665
    esac
 
8666
 
 
8667
    if test "$ld_shlibs" = no; then
 
8668
      runpath_var=
 
8669
      hardcode_libdir_flag_spec=
 
8670
      export_dynamic_flag_spec=
 
8671
      whole_archive_flag_spec=
 
8672
    fi
 
8673
  else
 
8674
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8675
    case $host_os in
 
8676
    aix3*)
 
8677
      allow_undefined_flag=unsupported
 
8678
      always_export_symbols=yes
 
8679
      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'
 
8680
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8681
      # are no directories specified by -L.
 
8682
      hardcode_minus_L=yes
 
8683
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8684
        # Neither direct hardcoding nor static linking is supported with a
 
8685
        # broken collect2.
 
8686
        hardcode_direct=unsupported
 
8687
      fi
 
8688
      ;;
 
8689
 
 
8690
    aix[4-9]*)
 
8691
      if test "$host_cpu" = ia64; then
 
8692
        # On IA64, the linker does run time linking by default, so we don't
 
8693
        # have to do anything special.
 
8694
        aix_use_runtimelinking=no
 
8695
        exp_sym_flag='-Bexport'
 
8696
        no_entry_flag=""
 
8697
      else
 
8698
        # If we're using GNU nm, then we don't want the "-C" option.
 
8699
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8700
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8701
          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'
 
8702
        else
 
8703
          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'
 
8704
        fi
 
8705
        aix_use_runtimelinking=no
 
8706
 
 
8707
        # Test if we are trying to use run time linking or normal
 
8708
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8709
        # need to do runtime linking.
 
8710
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8711
          for ld_flag in $LDFLAGS; do
 
8712
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8713
            aix_use_runtimelinking=yes
 
8714
            break
 
8715
          fi
 
8716
          done
 
8717
          ;;
 
8718
        esac
 
8719
 
 
8720
        exp_sym_flag='-bexport'
 
8721
        no_entry_flag='-bnoentry'
 
8722
      fi
 
8723
 
 
8724
      # When large executables or shared objects are built, AIX ld can
 
8725
      # have problems creating the table of contents.  If linking a library
 
8726
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8727
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8728
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8729
 
 
8730
      archive_cmds=''
 
8731
      hardcode_direct=yes
 
8732
      hardcode_libdir_separator=':'
 
8733
      link_all_deplibs=yes
 
8734
 
 
8735
      if test "$GCC" = yes; then
 
8736
        case $host_os in aix4.[012]|aix4.[012].*)
 
8737
        # We only want to do this on AIX 4.2 and lower, the check
 
8738
        # below for broken collect2 doesn't work under 4.3+
 
8739
          collect2name=`${CC} -print-prog-name=collect2`
 
8740
          if test -f "$collect2name" && \
 
8741
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8742
          then
 
8743
          # We have reworked collect2
 
8744
          :
 
8745
          else
 
8746
          # We have old collect2
 
8747
          hardcode_direct=unsupported
 
8748
          # It fails to find uninstalled libraries when the uninstalled
 
8749
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8750
          # to unsupported forces relinking
 
8751
          hardcode_minus_L=yes
 
8752
          hardcode_libdir_flag_spec='-L$libdir'
 
8753
          hardcode_libdir_separator=
 
8754
          fi
 
8755
          ;;
 
8756
        esac
 
8757
        shared_flag='-shared'
 
8758
        if test "$aix_use_runtimelinking" = yes; then
 
8759
          shared_flag="$shared_flag "'${wl}-G'
 
8760
        fi
 
8761
      else
 
8762
        # not using gcc
 
8763
        if test "$host_cpu" = ia64; then
 
8764
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8765
        # chokes on -Wl,-G. The following line is correct:
 
8766
          shared_flag='-G'
 
8767
        else
 
8768
          if test "$aix_use_runtimelinking" = yes; then
 
8769
            shared_flag='${wl}-G'
 
8770
          else
 
8771
            shared_flag='${wl}-bM:SRE'
 
8772
          fi
 
8773
        fi
 
8774
      fi
 
8775
 
 
8776
      # It seems that -bexpall does not export symbols beginning with
 
8777
      # underscore (_), so it is better to generate a list of symbols to export.
 
8778
      always_export_symbols=yes
 
8779
      if test "$aix_use_runtimelinking" = yes; then
 
8780
        # Warning - without using the other runtime loading flags (-brtl),
 
8781
        # -berok will link without error, but may produce a broken library.
 
8782
        allow_undefined_flag='-berok'
 
8783
       # Determine the default libpath from the value encoded in an empty executable.
 
8784
       cat >conftest.$ac_ext <<_ACEOF
 
8785
/* confdefs.h.  */
 
8786
_ACEOF
 
8787
cat confdefs.h >>conftest.$ac_ext
 
8788
cat >>conftest.$ac_ext <<_ACEOF
 
8789
/* end confdefs.h.  */
 
8790
 
 
8791
int
 
8792
main ()
 
8793
{
 
8794
 
 
8795
  ;
 
8796
  return 0;
 
8797
}
 
8798
_ACEOF
 
8799
rm -f conftest.$ac_objext conftest$ac_exeext
 
8800
if { (ac_try="$ac_link"
 
8801
case "(($ac_try" in
 
8802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8803
  *) ac_try_echo=$ac_try;;
 
8804
esac
 
8805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8806
  (eval "$ac_link") 2>conftest.er1
 
8807
  ac_status=$?
 
8808
  grep -v '^ *+' conftest.er1 >conftest.err
 
8809
  rm -f conftest.er1
 
8810
  cat conftest.err >&5
 
8811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8812
  (exit $ac_status); } && {
 
8813
         test -z "$ac_c_werror_flag" ||
 
8814
         test ! -s conftest.err
 
8815
       } && test -s conftest$ac_exeext &&
 
8816
       $as_test_x conftest$ac_exeext; then
 
8817
 
 
8818
lt_aix_libpath_sed='
 
8819
    /Import File Strings/,/^$/ {
 
8820
        /^0/ {
 
8821
            s/^0  *\(.*\)$/\1/
 
8822
            p
 
8823
        }
 
8824
    }'
 
8825
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8826
# Check for a 64-bit object if we didn't find anything.
 
8827
if test -z "$aix_libpath"; then
 
8828
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8829
fi
 
8830
else
 
8831
  echo "$as_me: failed program was:" >&5
 
8832
sed 's/^/| /' conftest.$ac_ext >&5
 
8833
 
 
8834
 
 
8835
fi
 
8836
 
 
8837
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8838
      conftest$ac_exeext conftest.$ac_ext
 
8839
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8840
 
 
8841
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8842
        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"
 
8843
       else
 
8844
        if test "$host_cpu" = ia64; then
 
8845
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8846
          allow_undefined_flag="-z nodefs"
 
8847
          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"
 
8848
        else
 
8849
         # Determine the default libpath from the value encoded in an empty executable.
 
8850
         cat >conftest.$ac_ext <<_ACEOF
 
8851
/* confdefs.h.  */
 
8852
_ACEOF
 
8853
cat confdefs.h >>conftest.$ac_ext
 
8854
cat >>conftest.$ac_ext <<_ACEOF
 
8855
/* end confdefs.h.  */
 
8856
 
 
8857
int
 
8858
main ()
 
8859
{
 
8860
 
 
8861
  ;
 
8862
  return 0;
 
8863
}
 
8864
_ACEOF
 
8865
rm -f conftest.$ac_objext conftest$ac_exeext
 
8866
if { (ac_try="$ac_link"
 
8867
case "(($ac_try" in
 
8868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8869
  *) ac_try_echo=$ac_try;;
 
8870
esac
 
8871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8872
  (eval "$ac_link") 2>conftest.er1
 
8873
  ac_status=$?
 
8874
  grep -v '^ *+' conftest.er1 >conftest.err
 
8875
  rm -f conftest.er1
 
8876
  cat conftest.err >&5
 
8877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8878
  (exit $ac_status); } && {
 
8879
         test -z "$ac_c_werror_flag" ||
 
8880
         test ! -s conftest.err
 
8881
       } && test -s conftest$ac_exeext &&
 
8882
       $as_test_x conftest$ac_exeext; then
 
8883
 
 
8884
lt_aix_libpath_sed='
 
8885
    /Import File Strings/,/^$/ {
 
8886
        /^0/ {
 
8887
            s/^0  *\(.*\)$/\1/
 
8888
            p
 
8889
        }
 
8890
    }'
 
8891
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8892
# Check for a 64-bit object if we didn't find anything.
 
8893
if test -z "$aix_libpath"; then
 
8894
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8895
fi
 
8896
else
 
8897
  echo "$as_me: failed program was:" >&5
 
8898
sed 's/^/| /' conftest.$ac_ext >&5
 
8899
 
 
8900
 
 
8901
fi
 
8902
 
 
8903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8904
      conftest$ac_exeext conftest.$ac_ext
 
8905
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8906
 
 
8907
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8908
          # Warning - without using the other run time loading flags,
 
8909
          # -berok will link without error, but may produce a broken library.
 
8910
          no_undefined_flag=' ${wl}-bernotok'
 
8911
          allow_undefined_flag=' ${wl}-berok'
 
8912
          # Exported symbols can be pulled into shared objects from archives
 
8913
          whole_archive_flag_spec='$convenience'
 
8914
          archive_cmds_need_lc=yes
 
8915
          # This is similar to how AIX traditionally builds its shared libraries.
 
8916
          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'
 
8917
        fi
 
8918
      fi
 
8919
      ;;
 
8920
 
 
8921
    amigaos*)
 
8922
      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)'
 
8923
      hardcode_libdir_flag_spec='-L$libdir'
 
8924
      hardcode_minus_L=yes
 
8925
      # see comment about different semantics on the GNU ld section
 
8926
      ld_shlibs=no
 
8927
      ;;
 
8928
 
 
8929
    bsdi[45]*)
 
8930
      export_dynamic_flag_spec=-rdynamic
 
8931
      ;;
 
8932
 
 
8933
    cygwin* | mingw* | pw32*)
 
8934
      # When not using gcc, we currently assume that we are using
 
8935
      # Microsoft Visual C++.
 
8936
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8937
      # no search path for DLLs.
 
8938
      hardcode_libdir_flag_spec=' '
 
8939
      allow_undefined_flag=unsupported
 
8940
      # Tell ltmain to make .lib files, not .a files.
 
8941
      libext=lib
 
8942
      # Tell ltmain to make .dll files, not .so files.
 
8943
      shrext_cmds=".dll"
 
8944
      # FIXME: Setting linknames here is a bad hack.
 
8945
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8946
      # The linker will automatically build a .lib file if we build a DLL.
 
8947
      old_archive_From_new_cmds='true'
 
8948
      # FIXME: Should let the user specify the lib program.
 
8949
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8950
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8951
      enable_shared_with_static_runtimes=yes
 
8952
      ;;
 
8953
 
 
8954
    darwin* | rhapsody*)
 
8955
      case $host_os in
 
8956
        rhapsody* | darwin1.[012])
 
8957
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8958
         ;;
 
8959
       *) # Darwin 1.3 on
 
8960
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8961
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8962
         else
 
8963
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8964
             10.[012])
 
8965
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8966
               ;;
 
8967
             10.*)
 
8968
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8969
               ;;
 
8970
           esac
 
8971
         fi
 
8972
         ;;
 
8973
      esac
 
8974
      archive_cmds_need_lc=no
 
8975
      hardcode_direct=no
 
8976
      hardcode_automatic=yes
 
8977
      hardcode_shlibpath_var=unsupported
 
8978
      whole_archive_flag_spec=''
 
8979
      link_all_deplibs=yes
 
8980
    if test "$GCC" = yes ; then
 
8981
        output_verbose_link_cmd='echo'
 
8982
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8983
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8984
        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}"
 
8985
        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}"
 
8986
    else
 
8987
      case $cc_basename in
 
8988
        xlc*)
 
8989
         output_verbose_link_cmd='echo'
 
8990
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8991
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8992
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8993
         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}'
 
8994
          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}'
 
8995
          ;;
 
8996
       *)
 
8997
         ld_shlibs=no
 
8998
          ;;
 
8999
      esac
 
9000
    fi
 
9001
      ;;
 
9002
 
 
9003
    dgux*)
 
9004
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9005
      hardcode_libdir_flag_spec='-L$libdir'
 
9006
      hardcode_shlibpath_var=no
 
9007
      ;;
 
9008
 
 
9009
    freebsd1*)
 
9010
      ld_shlibs=no
 
9011
      ;;
 
9012
 
 
9013
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9014
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9015
    # does not break anything, and helps significantly (at the cost of a little
 
9016
    # extra space).
 
9017
    freebsd2.2*)
 
9018
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9019
      hardcode_libdir_flag_spec='-R$libdir'
 
9020
      hardcode_direct=yes
 
9021
      hardcode_shlibpath_var=no
 
9022
      ;;
 
9023
 
 
9024
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9025
    freebsd2*)
 
9026
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9027
      hardcode_direct=yes
 
9028
      hardcode_minus_L=yes
 
9029
      hardcode_shlibpath_var=no
 
9030
      ;;
 
9031
 
 
9032
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9033
    freebsd* | dragonfly*)
 
9034
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9035
      hardcode_libdir_flag_spec='-R$libdir'
 
9036
      hardcode_direct=yes
 
9037
      hardcode_shlibpath_var=no
 
9038
      ;;
 
9039
 
 
9040
    hpux9*)
 
9041
      if test "$GCC" = yes; then
 
9042
        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'
 
9043
      else
 
9044
        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'
 
9045
      fi
 
9046
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9047
      hardcode_libdir_separator=:
 
9048
      hardcode_direct=yes
 
9049
 
 
9050
      # hardcode_minus_L: Not really in the search PATH,
 
9051
      # but as the default location of the library.
 
9052
      hardcode_minus_L=yes
 
9053
      export_dynamic_flag_spec='${wl}-E'
 
9054
      ;;
 
9055
 
 
9056
    hpux10*)
 
9057
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9058
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9059
      else
 
9060
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9061
      fi
 
9062
      if test "$with_gnu_ld" = no; then
 
9063
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9064
        hardcode_libdir_separator=:
 
9065
 
 
9066
        hardcode_direct=yes
 
9067
        export_dynamic_flag_spec='${wl}-E'
 
9068
 
 
9069
        # hardcode_minus_L: Not really in the search PATH,
 
9070
        # but as the default location of the library.
 
9071
        hardcode_minus_L=yes
 
9072
      fi
 
9073
      ;;
 
9074
 
 
9075
    hpux11*)
 
9076
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9077
        case $host_cpu in
 
9078
        hppa*64*)
 
9079
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9080
          ;;
 
9081
        ia64*)
 
9082
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9083
          ;;
 
9084
        *)
 
9085
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9086
          ;;
 
9087
        esac
 
9088
      else
 
9089
        case $host_cpu in
 
9090
        hppa*64*)
 
9091
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9092
          ;;
 
9093
        ia64*)
 
9094
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9095
          ;;
 
9096
        *)
 
9097
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9098
          ;;
 
9099
        esac
 
9100
      fi
 
9101
      if test "$with_gnu_ld" = no; then
 
9102
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9103
        hardcode_libdir_separator=:
 
9104
 
 
9105
        case $host_cpu in
 
9106
        hppa*64*|ia64*)
 
9107
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9108
          hardcode_direct=no
 
9109
          hardcode_shlibpath_var=no
 
9110
          ;;
 
9111
        *)
 
9112
          hardcode_direct=yes
 
9113
          export_dynamic_flag_spec='${wl}-E'
 
9114
 
 
9115
          # hardcode_minus_L: Not really in the search PATH,
 
9116
          # but as the default location of the library.
 
9117
          hardcode_minus_L=yes
 
9118
          ;;
 
9119
        esac
 
9120
      fi
 
9121
      ;;
 
9122
 
 
9123
    irix5* | irix6* | nonstopux*)
 
9124
      if test "$GCC" = yes; then
 
9125
        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'
 
9126
      else
 
9127
        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'
 
9128
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9129
      fi
 
9130
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9131
      hardcode_libdir_separator=:
 
9132
      link_all_deplibs=yes
 
9133
      ;;
 
9134
 
 
9135
    netbsd* | netbsdelf*-gnu)
 
9136
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9137
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9138
      else
 
9139
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9140
      fi
 
9141
      hardcode_libdir_flag_spec='-R$libdir'
 
9142
      hardcode_direct=yes
 
9143
      hardcode_shlibpath_var=no
 
9144
      ;;
 
9145
 
 
9146
    newsos6)
 
9147
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9148
      hardcode_direct=yes
 
9149
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9150
      hardcode_libdir_separator=:
 
9151
      hardcode_shlibpath_var=no
 
9152
      ;;
 
9153
 
 
9154
    openbsd*)
 
9155
      if test -f /usr/libexec/ld.so; then
 
9156
        hardcode_direct=yes
 
9157
        hardcode_shlibpath_var=no
 
9158
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9159
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9160
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9161
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9162
          export_dynamic_flag_spec='${wl}-E'
 
9163
        else
 
9164
          case $host_os in
 
9165
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9166
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9167
             hardcode_libdir_flag_spec='-R$libdir'
 
9168
             ;;
 
9169
           *)
 
9170
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9171
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9172
             ;;
 
9173
          esac
 
9174
        fi
 
9175
      else
 
9176
        ld_shlibs=no
 
9177
      fi
 
9178
      ;;
 
9179
 
 
9180
    os2*)
 
9181
      hardcode_libdir_flag_spec='-L$libdir'
 
9182
      hardcode_minus_L=yes
 
9183
      allow_undefined_flag=unsupported
 
9184
      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'
 
9185
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9186
      ;;
 
9187
 
 
9188
    osf3*)
 
9189
      if test "$GCC" = yes; then
 
9190
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9191
        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'
 
9192
      else
 
9193
        allow_undefined_flag=' -expect_unresolved \*'
 
9194
        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'
 
9195
      fi
 
9196
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9197
      hardcode_libdir_separator=:
 
9198
      ;;
 
9199
 
 
9200
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9201
      if test "$GCC" = yes; then
 
9202
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9203
        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'
 
9204
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9205
      else
 
9206
        allow_undefined_flag=' -expect_unresolved \*'
 
9207
        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'
 
9208
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9209
        $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'
 
9210
 
 
9211
        # Both c and cxx compiler support -rpath directly
 
9212
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9213
      fi
 
9214
      hardcode_libdir_separator=:
 
9215
      ;;
 
9216
 
 
9217
    solaris*)
 
9218
      no_undefined_flag=' -z text'
 
9219
      if test "$GCC" = yes; then
 
9220
        wlarc='${wl}'
 
9221
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9222
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9223
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9224
      else
 
9225
        wlarc=''
 
9226
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9227
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9228
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9229
      fi
 
9230
      hardcode_libdir_flag_spec='-R$libdir'
 
9231
      hardcode_shlibpath_var=no
 
9232
      case $host_os in
 
9233
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9234
      *)
 
9235
        # The compiler driver will combine and reorder linker options,
 
9236
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9237
        # but is careful enough not to reorder.
 
9238
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9239
        if test "$GCC" = yes; then
 
9240
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9241
        else
 
9242
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9243
        fi
 
9244
        ;;
 
9245
      esac
 
9246
      link_all_deplibs=yes
 
9247
      ;;
 
9248
 
 
9249
    sunos4*)
 
9250
      if test "x$host_vendor" = xsequent; then
 
9251
        # Use $CC to link under sequent, because it throws in some extra .o
 
9252
        # files that make .init and .fini sections work.
 
9253
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9254
      else
 
9255
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9256
      fi
 
9257
      hardcode_libdir_flag_spec='-L$libdir'
 
9258
      hardcode_direct=yes
 
9259
      hardcode_minus_L=yes
 
9260
      hardcode_shlibpath_var=no
 
9261
      ;;
 
9262
 
 
9263
    sysv4)
 
9264
      case $host_vendor in
 
9265
        sni)
 
9266
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9267
          hardcode_direct=yes # is this really true???
 
9268
        ;;
 
9269
        siemens)
 
9270
          ## LD is ld it makes a PLAMLIB
 
9271
          ## CC just makes a GrossModule.
 
9272
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9273
          reload_cmds='$CC -r -o $output$reload_objs'
 
9274
          hardcode_direct=no
 
9275
        ;;
 
9276
        motorola)
 
9277
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9278
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9279
        ;;
 
9280
      esac
 
9281
      runpath_var='LD_RUN_PATH'
 
9282
      hardcode_shlibpath_var=no
 
9283
      ;;
 
9284
 
 
9285
    sysv4.3*)
 
9286
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9287
      hardcode_shlibpath_var=no
 
9288
      export_dynamic_flag_spec='-Bexport'
 
9289
      ;;
 
9290
 
 
9291
    sysv4*MP*)
 
9292
      if test -d /usr/nec; then
 
9293
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9294
        hardcode_shlibpath_var=no
 
9295
        runpath_var=LD_RUN_PATH
 
9296
        hardcode_runpath_var=yes
 
9297
        ld_shlibs=yes
 
9298
      fi
 
9299
      ;;
 
9300
 
 
9301
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9302
      no_undefined_flag='${wl}-z,text'
 
9303
      archive_cmds_need_lc=no
 
9304
      hardcode_shlibpath_var=no
 
9305
      runpath_var='LD_RUN_PATH'
 
9306
 
 
9307
      if test "$GCC" = yes; then
 
9308
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9309
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9310
      else
 
9311
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9312
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9313
      fi
 
9314
      ;;
 
9315
 
 
9316
    sysv5* | sco3.2v5* | sco5v6*)
 
9317
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9318
      # link with -lc, and that would cause any symbols used from libc to
 
9319
      # always be unresolved, which means just about no library would
 
9320
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9321
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9322
      # as -z defs.
 
9323
      no_undefined_flag='${wl}-z,text'
 
9324
      allow_undefined_flag='${wl}-z,nodefs'
 
9325
      archive_cmds_need_lc=no
 
9326
      hardcode_shlibpath_var=no
 
9327
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9328
      hardcode_libdir_separator=':'
 
9329
      link_all_deplibs=yes
 
9330
      export_dynamic_flag_spec='${wl}-Bexport'
 
9331
      runpath_var='LD_RUN_PATH'
 
9332
 
 
9333
      if test "$GCC" = yes; then
 
9334
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9335
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9336
      else
 
9337
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9338
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9339
      fi
 
9340
      ;;
 
9341
 
 
9342
    uts4*)
 
9343
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9344
      hardcode_libdir_flag_spec='-L$libdir'
 
9345
      hardcode_shlibpath_var=no
 
9346
      ;;
 
9347
 
 
9348
    *)
 
9349
      ld_shlibs=no
 
9350
      ;;
 
9351
    esac
 
9352
  fi
 
9353
 
 
9354
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9355
echo "${ECHO_T}$ld_shlibs" >&6; }
 
9356
test "$ld_shlibs" = no && can_build_shared=no
 
9357
 
 
9358
#
 
9359
# Do we need to explicitly link libc?
 
9360
#
 
9361
case "x$archive_cmds_need_lc" in
 
9362
x|xyes)
 
9363
  # Assume -lc should be added
 
9364
  archive_cmds_need_lc=yes
 
9365
 
 
9366
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9367
    case $archive_cmds in
 
9368
    *'~'*)
 
9369
      # FIXME: we may have to deal with multi-command sequences.
 
9370
      ;;
 
9371
    '$CC '*)
 
9372
      # Test whether the compiler implicitly links with -lc since on some
 
9373
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9374
      # to ld, don't add -lc before -lgcc.
 
9375
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9376
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
9377
      $rm conftest*
 
9378
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9379
 
 
9380
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9381
  (eval $ac_compile) 2>&5
 
9382
  ac_status=$?
 
9383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9384
  (exit $ac_status); } 2>conftest.err; then
 
9385
        soname=conftest
 
9386
        lib=conftest
 
9387
        libobjs=conftest.$ac_objext
 
9388
        deplibs=
 
9389
        wl=$lt_prog_compiler_wl
 
9390
        pic_flag=$lt_prog_compiler_pic
 
9391
        compiler_flags=-v
 
9392
        linker_flags=-v
 
9393
        verstring=
 
9394
        output_objdir=.
 
9395
        libname=conftest
 
9396
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9397
        allow_undefined_flag=
 
9398
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9399
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9400
  ac_status=$?
 
9401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9402
  (exit $ac_status); }
 
9403
        then
 
9404
          archive_cmds_need_lc=no
 
9405
        else
 
9406
          archive_cmds_need_lc=yes
 
9407
        fi
 
9408
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9409
      else
 
9410
        cat conftest.err 1>&5
 
9411
      fi
 
9412
      $rm conftest*
 
9413
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9414
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9415
      ;;
 
9416
    esac
 
9417
  fi
 
9418
  ;;
 
9419
esac
 
9420
 
 
9421
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9422
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9423
library_names_spec=
 
9424
libname_spec='lib$name'
 
9425
soname_spec=
 
9426
shrext_cmds=".so"
 
9427
postinstall_cmds=
 
9428
postuninstall_cmds=
 
9429
finish_cmds=
 
9430
finish_eval=
 
9431
shlibpath_var=
 
9432
shlibpath_overrides_runpath=unknown
 
9433
version_type=none
 
9434
dynamic_linker="$host_os ld.so"
 
9435
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9436
 
 
9437
if test "$GCC" = yes; then
 
9438
  case $host_os in
 
9439
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9440
    *) lt_awk_arg="/^libraries:/" ;;
 
9441
  esac
 
9442
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9443
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9444
    # if the path contains ";" then we assume it to be the separator
 
9445
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9446
    # assumed that no part of a normal pathname contains ";" but that should
 
9447
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9448
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9449
  else
 
9450
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9451
  fi
 
9452
  # Ok, now we have the path, separated by spaces, we can step through it
 
9453
  # and add multilib dir if necessary.
 
9454
  lt_tmp_lt_search_path_spec=
 
9455
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9456
  for lt_sys_path in $lt_search_path_spec; do
 
9457
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9458
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9459
    else
 
9460
      test -d "$lt_sys_path" && \
 
9461
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9462
    fi
 
9463
  done
 
9464
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9465
BEGIN {RS=" "; FS="/|\n";} {
 
9466
  lt_foo="";
 
9467
  lt_count=0;
 
9468
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9469
    if ($lt_i != "" && $lt_i != ".") {
 
9470
      if ($lt_i == "..") {
 
9471
        lt_count++;
 
9472
      } else {
 
9473
        if (lt_count == 0) {
 
9474
          lt_foo="/" $lt_i lt_foo;
 
9475
        } else {
 
9476
          lt_count--;
 
9477
        }
 
9478
      }
 
9479
    }
 
9480
  }
 
9481
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9482
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9483
}'`
 
9484
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9485
else
 
9486
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9487
fi
 
9488
need_lib_prefix=unknown
 
9489
hardcode_into_libs=no
 
9490
 
 
9491
# when you set need_version to no, make sure it does not cause -set_version
 
9492
# flags to be left without arguments
 
9493
need_version=unknown
 
9494
 
 
9495
case $host_os in
 
9496
aix3*)
 
9497
  version_type=linux
 
9498
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9499
  shlibpath_var=LIBPATH
 
9500
 
 
9501
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9502
  soname_spec='${libname}${release}${shared_ext}$major'
 
9503
  ;;
 
9504
 
 
9505
aix[4-9]*)
 
9506
  version_type=linux
 
9507
  need_lib_prefix=no
 
9508
  need_version=no
 
9509
  hardcode_into_libs=yes
 
9510
  if test "$host_cpu" = ia64; then
 
9511
    # AIX 5 supports IA64
 
9512
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9513
    shlibpath_var=LD_LIBRARY_PATH
 
9514
  else
 
9515
    # With GCC up to 2.95.x, collect2 would create an import file
 
9516
    # for dependence libraries.  The import file would start with
 
9517
    # the line `#! .'.  This would cause the generated library to
 
9518
    # depend on `.', always an invalid library.  This was fixed in
 
9519
    # development snapshots of GCC prior to 3.0.
 
9520
    case $host_os in
 
9521
      aix4 | aix4.[01] | aix4.[01].*)
 
9522
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9523
           echo ' yes '
 
9524
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9525
        :
 
9526
      else
 
9527
        can_build_shared=no
 
9528
      fi
 
9529
      ;;
 
9530
    esac
 
9531
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9532
    # soname into executable. Probably we can add versioning support to
 
9533
    # collect2, so additional links can be useful in future.
 
9534
    if test "$aix_use_runtimelinking" = yes; then
 
9535
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9536
      # instead of lib<name>.a to let people know that these are not
 
9537
      # typical AIX shared libraries.
 
9538
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9539
    else
 
9540
      # We preserve .a as extension for shared libraries through AIX4.2
 
9541
      # and later when we are not doing run time linking.
 
9542
      library_names_spec='${libname}${release}.a $libname.a'
 
9543
      soname_spec='${libname}${release}${shared_ext}$major'
 
9544
    fi
 
9545
    shlibpath_var=LIBPATH
 
9546
  fi
 
9547
  ;;
 
9548
 
 
9549
amigaos*)
 
9550
  library_names_spec='$libname.ixlibrary $libname.a'
 
9551
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9552
  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'
 
9553
  ;;
 
9554
 
 
9555
beos*)
 
9556
  library_names_spec='${libname}${shared_ext}'
 
9557
  dynamic_linker="$host_os ld.so"
 
9558
  shlibpath_var=LIBRARY_PATH
 
9559
  ;;
 
9560
 
 
9561
bsdi[45]*)
 
9562
  version_type=linux
 
9563
  need_version=no
 
9564
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9565
  soname_spec='${libname}${release}${shared_ext}$major'
 
9566
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9567
  shlibpath_var=LD_LIBRARY_PATH
 
9568
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9569
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9570
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9571
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9572
  # libtool to hard-code these into programs
 
9573
  ;;
 
9574
 
 
9575
cygwin* | mingw* | pw32*)
 
9576
  version_type=windows
 
9577
  shrext_cmds=".dll"
 
9578
  need_version=no
 
9579
  need_lib_prefix=no
 
9580
 
 
9581
  case $GCC,$host_os in
 
9582
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9583
    library_names_spec='$libname.dll.a'
 
9584
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9585
    postinstall_cmds='base_file=`basename \${file}`~
 
9586
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9587
      dldir=$destdir/`dirname \$dlpath`~
 
9588
      test -d \$dldir || mkdir -p \$dldir~
 
9589
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9590
      chmod a+x \$dldir/$dlname'
 
9591
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9592
      dlpath=$dir/\$dldll~
 
9593
       $rm \$dlpath'
 
9594
    shlibpath_overrides_runpath=yes
 
9595
 
 
9596
    case $host_os in
 
9597
    cygwin*)
 
9598
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9599
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9600
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9601
      ;;
 
9602
    mingw*)
 
9603
      # MinGW DLLs use traditional 'lib' prefix
 
9604
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9605
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9606
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9607
        # It is most probably a Windows format PATH printed by
 
9608
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9609
        # path with ; separators, and with drive letters. We can handle the
 
9610
        # drive letters (cygwin fileutils understands them), so leave them,
 
9611
        # especially as we might pass files found there to a mingw objdump,
 
9612
        # which wouldn't understand a cygwinified path. Ahh.
 
9613
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9614
      else
 
9615
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9616
      fi
 
9617
      ;;
 
9618
    pw32*)
 
9619
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9620
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9621
      ;;
 
9622
    esac
 
9623
    ;;
 
9624
 
 
9625
  *)
 
9626
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9627
    ;;
 
9628
  esac
 
9629
  dynamic_linker='Win32 ld.exe'
 
9630
  # FIXME: first we should search . and the directory the executable is in
 
9631
  shlibpath_var=PATH
 
9632
  ;;
 
9633
 
 
9634
darwin* | rhapsody*)
 
9635
  dynamic_linker="$host_os dyld"
 
9636
  version_type=darwin
 
9637
  need_lib_prefix=no
 
9638
  need_version=no
 
9639
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9640
  soname_spec='${libname}${release}${major}$shared_ext'
 
9641
  shlibpath_overrides_runpath=yes
 
9642
  shlibpath_var=DYLD_LIBRARY_PATH
 
9643
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9644
 
 
9645
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9646
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9647
  ;;
 
9648
 
 
9649
dgux*)
 
9650
  version_type=linux
 
9651
  need_lib_prefix=no
 
9652
  need_version=no
 
9653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9654
  soname_spec='${libname}${release}${shared_ext}$major'
 
9655
  shlibpath_var=LD_LIBRARY_PATH
 
9656
  ;;
 
9657
 
 
9658
freebsd1*)
 
9659
  dynamic_linker=no
 
9660
  ;;
 
9661
 
 
9662
freebsd* | dragonfly*)
 
9663
  # DragonFly does not have aout.  When/if they implement a new
 
9664
  # versioning mechanism, adjust this.
 
9665
  if test -x /usr/bin/objformat; then
 
9666
    objformat=`/usr/bin/objformat`
 
9667
  else
 
9668
    case $host_os in
 
9669
    freebsd[123]*) objformat=aout ;;
 
9670
    *) objformat=elf ;;
 
9671
    esac
 
9672
  fi
 
9673
  version_type=freebsd-$objformat
 
9674
  case $version_type in
 
9675
    freebsd-elf*)
 
9676
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9677
      need_version=no
 
9678
      need_lib_prefix=no
 
9679
      ;;
 
9680
    freebsd-*)
 
9681
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9682
      need_version=yes
 
9683
      ;;
 
9684
  esac
 
9685
  shlibpath_var=LD_LIBRARY_PATH
 
9686
  case $host_os in
 
9687
  freebsd2*)
 
9688
    shlibpath_overrides_runpath=yes
 
9689
    ;;
 
9690
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9691
    shlibpath_overrides_runpath=yes
 
9692
    hardcode_into_libs=yes
 
9693
    ;;
 
9694
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9695
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9696
    shlibpath_overrides_runpath=no
 
9697
    hardcode_into_libs=yes
 
9698
    ;;
 
9699
  *) # from 4.6 on, and DragonFly
 
9700
    shlibpath_overrides_runpath=yes
 
9701
    hardcode_into_libs=yes
 
9702
    ;;
 
9703
  esac
 
9704
  ;;
 
9705
 
 
9706
gnu*)
 
9707
  version_type=linux
 
9708
  need_lib_prefix=no
 
9709
  need_version=no
 
9710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9711
  soname_spec='${libname}${release}${shared_ext}$major'
 
9712
  shlibpath_var=LD_LIBRARY_PATH
 
9713
  hardcode_into_libs=yes
 
9714
  ;;
 
9715
 
 
9716
hpux9* | hpux10* | hpux11*)
 
9717
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9718
  # link against other versions.
 
9719
  version_type=sunos
 
9720
  need_lib_prefix=no
 
9721
  need_version=no
 
9722
  case $host_cpu in
 
9723
  ia64*)
 
9724
    shrext_cmds='.so'
 
9725
    hardcode_into_libs=yes
 
9726
    dynamic_linker="$host_os dld.so"
 
9727
    shlibpath_var=LD_LIBRARY_PATH
 
9728
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9729
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9730
    soname_spec='${libname}${release}${shared_ext}$major'
 
9731
    if test "X$HPUX_IA64_MODE" = X32; then
 
9732
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9733
    else
 
9734
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9735
    fi
 
9736
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9737
    ;;
 
9738
   hppa*64*)
 
9739
     shrext_cmds='.sl'
 
9740
     hardcode_into_libs=yes
 
9741
     dynamic_linker="$host_os dld.sl"
 
9742
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9743
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9744
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9745
     soname_spec='${libname}${release}${shared_ext}$major'
 
9746
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9747
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9748
     ;;
 
9749
   *)
 
9750
    shrext_cmds='.sl'
 
9751
    dynamic_linker="$host_os dld.sl"
 
9752
    shlibpath_var=SHLIB_PATH
 
9753
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9754
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9755
    soname_spec='${libname}${release}${shared_ext}$major'
 
9756
    ;;
 
9757
  esac
 
9758
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9759
  postinstall_cmds='chmod 555 $lib'
 
9760
  ;;
 
9761
 
 
9762
interix[3-9]*)
 
9763
  version_type=linux
 
9764
  need_lib_prefix=no
 
9765
  need_version=no
 
9766
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9767
  soname_spec='${libname}${release}${shared_ext}$major'
 
9768
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9769
  shlibpath_var=LD_LIBRARY_PATH
 
9770
  shlibpath_overrides_runpath=no
 
9771
  hardcode_into_libs=yes
 
9772
  ;;
 
9773
 
 
9774
irix5* | irix6* | nonstopux*)
 
9775
  case $host_os in
 
9776
    nonstopux*) version_type=nonstopux ;;
 
9777
    *)
 
9778
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9779
                version_type=linux
 
9780
        else
 
9781
                version_type=irix
 
9782
        fi ;;
 
9783
  esac
 
9784
  need_lib_prefix=no
 
9785
  need_version=no
 
9786
  soname_spec='${libname}${release}${shared_ext}$major'
 
9787
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9788
  case $host_os in
 
9789
  irix5* | nonstopux*)
 
9790
    libsuff= shlibsuff=
 
9791
    ;;
 
9792
  *)
 
9793
    case $LD in # libtool.m4 will add one of these switches to LD
 
9794
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9795
      libsuff= shlibsuff= libmagic=32-bit;;
 
9796
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9797
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9798
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9799
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9800
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9801
    esac
 
9802
    ;;
 
9803
  esac
 
9804
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9805
  shlibpath_overrides_runpath=no
 
9806
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9807
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9808
  hardcode_into_libs=yes
 
9809
  ;;
 
9810
 
 
9811
# No shared lib support for Linux oldld, aout, or coff.
 
9812
linux*oldld* | linux*aout* | linux*coff*)
 
9813
  dynamic_linker=no
 
9814
  ;;
 
9815
 
 
9816
# This must be Linux ELF.
 
9817
linux* | k*bsd*-gnu)
 
9818
  version_type=linux
 
9819
  need_lib_prefix=no
 
9820
  need_version=no
 
9821
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9822
  soname_spec='${libname}${release}${shared_ext}$major'
 
9823
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9824
  shlibpath_var=LD_LIBRARY_PATH
 
9825
  shlibpath_overrides_runpath=no
 
9826
  # This implies no fast_install, which is unacceptable.
 
9827
  # Some rework will be needed to allow for fast_install
 
9828
  # before this can be enabled.
 
9829
  hardcode_into_libs=yes
 
9830
 
 
9831
  # Append ld.so.conf contents to the search path
 
9832
  if test -f /etc/ld.so.conf; then
 
9833
    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' ' '`
 
9834
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9835
  fi
 
9836
 
 
9837
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9838
  # powerpc, because MkLinux only supported shared libraries with the
 
9839
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9840
  # most powerpc-linux boxes support dynamic linking these days and
 
9841
  # people can always --disable-shared, the test was removed, and we
 
9842
  # assume the GNU/Linux dynamic linker is in use.
 
9843
  dynamic_linker='GNU/Linux ld.so'
 
9844
  ;;
 
9845
 
 
9846
netbsdelf*-gnu)
 
9847
  version_type=linux
 
9848
  need_lib_prefix=no
 
9849
  need_version=no
 
9850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9851
  soname_spec='${libname}${release}${shared_ext}$major'
 
9852
  shlibpath_var=LD_LIBRARY_PATH
 
9853
  shlibpath_overrides_runpath=no
 
9854
  hardcode_into_libs=yes
 
9855
  dynamic_linker='NetBSD ld.elf_so'
 
9856
  ;;
 
9857
 
 
9858
netbsd*)
 
9859
  version_type=sunos
 
9860
  need_lib_prefix=no
 
9861
  need_version=no
 
9862
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9863
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9864
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9865
    dynamic_linker='NetBSD (a.out) ld.so'
 
9866
  else
 
9867
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9868
    soname_spec='${libname}${release}${shared_ext}$major'
 
9869
    dynamic_linker='NetBSD ld.elf_so'
 
9870
  fi
 
9871
  shlibpath_var=LD_LIBRARY_PATH
 
9872
  shlibpath_overrides_runpath=yes
 
9873
  hardcode_into_libs=yes
 
9874
  ;;
 
9875
 
 
9876
newsos6)
 
9877
  version_type=linux
 
9878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9879
  shlibpath_var=LD_LIBRARY_PATH
 
9880
  shlibpath_overrides_runpath=yes
 
9881
  ;;
 
9882
 
 
9883
nto-qnx*)
 
9884
  version_type=linux
 
9885
  need_lib_prefix=no
 
9886
  need_version=no
 
9887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9888
  soname_spec='${libname}${release}${shared_ext}$major'
 
9889
  shlibpath_var=LD_LIBRARY_PATH
 
9890
  shlibpath_overrides_runpath=yes
 
9891
  ;;
 
9892
 
 
9893
openbsd*)
 
9894
  version_type=sunos
 
9895
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9896
  need_lib_prefix=no
 
9897
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9898
  case $host_os in
 
9899
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9900
    *)                         need_version=no  ;;
 
9901
  esac
 
9902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9903
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9904
  shlibpath_var=LD_LIBRARY_PATH
 
9905
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9906
    case $host_os in
 
9907
      openbsd2.[89] | openbsd2.[89].*)
 
9908
        shlibpath_overrides_runpath=no
 
9909
        ;;
 
9910
      *)
 
9911
        shlibpath_overrides_runpath=yes
 
9912
        ;;
 
9913
      esac
 
9914
  else
 
9915
    shlibpath_overrides_runpath=yes
 
9916
  fi
 
9917
  ;;
 
9918
 
 
9919
os2*)
 
9920
  libname_spec='$name'
 
9921
  shrext_cmds=".dll"
 
9922
  need_lib_prefix=no
 
9923
  library_names_spec='$libname${shared_ext} $libname.a'
 
9924
  dynamic_linker='OS/2 ld.exe'
 
9925
  shlibpath_var=LIBPATH
 
9926
  ;;
 
9927
 
 
9928
osf3* | osf4* | osf5*)
 
9929
  version_type=osf
 
9930
  need_lib_prefix=no
 
9931
  need_version=no
 
9932
  soname_spec='${libname}${release}${shared_ext}$major'
 
9933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9934
  shlibpath_var=LD_LIBRARY_PATH
 
9935
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9936
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9937
  ;;
 
9938
 
 
9939
rdos*)
 
9940
  dynamic_linker=no
 
9941
  ;;
 
9942
 
 
9943
solaris*)
 
9944
  version_type=linux
 
9945
  need_lib_prefix=no
 
9946
  need_version=no
 
9947
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9948
  soname_spec='${libname}${release}${shared_ext}$major'
 
9949
  shlibpath_var=LD_LIBRARY_PATH
 
9950
  shlibpath_overrides_runpath=yes
 
9951
  hardcode_into_libs=yes
 
9952
  # ldd complains unless libraries are executable
 
9953
  postinstall_cmds='chmod +x $lib'
 
9954
  ;;
 
9955
 
 
9956
sunos4*)
 
9957
  version_type=sunos
 
9958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9959
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9960
  shlibpath_var=LD_LIBRARY_PATH
 
9961
  shlibpath_overrides_runpath=yes
 
9962
  if test "$with_gnu_ld" = yes; then
 
9963
    need_lib_prefix=no
 
9964
  fi
 
9965
  need_version=yes
 
9966
  ;;
 
9967
 
 
9968
sysv4 | sysv4.3*)
 
9969
  version_type=linux
 
9970
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9971
  soname_spec='${libname}${release}${shared_ext}$major'
 
9972
  shlibpath_var=LD_LIBRARY_PATH
 
9973
  case $host_vendor in
 
9974
    sni)
 
9975
      shlibpath_overrides_runpath=no
 
9976
      need_lib_prefix=no
 
9977
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9978
      runpath_var=LD_RUN_PATH
 
9979
      ;;
 
9980
    siemens)
 
9981
      need_lib_prefix=no
 
9982
      ;;
 
9983
    motorola)
 
9984
      need_lib_prefix=no
 
9985
      need_version=no
 
9986
      shlibpath_overrides_runpath=no
 
9987
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9988
      ;;
 
9989
  esac
 
9990
  ;;
 
9991
 
 
9992
sysv4*MP*)
 
9993
  if test -d /usr/nec ;then
 
9994
    version_type=linux
 
9995
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9996
    soname_spec='$libname${shared_ext}.$major'
 
9997
    shlibpath_var=LD_LIBRARY_PATH
 
9998
  fi
 
9999
  ;;
 
10000
 
 
10001
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10002
  version_type=freebsd-elf
 
10003
  need_lib_prefix=no
 
10004
  need_version=no
 
10005
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10006
  soname_spec='${libname}${release}${shared_ext}$major'
 
10007
  shlibpath_var=LD_LIBRARY_PATH
 
10008
  hardcode_into_libs=yes
 
10009
  if test "$with_gnu_ld" = yes; then
 
10010
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10011
    shlibpath_overrides_runpath=no
 
10012
  else
 
10013
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10014
    shlibpath_overrides_runpath=yes
 
10015
    case $host_os in
 
10016
      sco3.2v5*)
 
10017
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10018
        ;;
 
10019
    esac
 
10020
  fi
 
10021
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10022
  ;;
 
10023
 
 
10024
uts4*)
 
10025
  version_type=linux
 
10026
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10027
  soname_spec='${libname}${release}${shared_ext}$major'
 
10028
  shlibpath_var=LD_LIBRARY_PATH
 
10029
  ;;
 
10030
 
 
10031
*)
 
10032
  dynamic_linker=no
 
10033
  ;;
 
10034
esac
 
10035
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10036
echo "${ECHO_T}$dynamic_linker" >&6; }
 
10037
test "$dynamic_linker" = no && can_build_shared=no
 
10038
 
 
10039
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10041
else
 
10042
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
10043
fi
 
10044
 
 
10045
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10046
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10048
else
 
10049
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
10050
fi
 
10051
 
 
10052
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10053
 
 
10054
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10055
if test "$GCC" = yes; then
 
10056
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10057
fi
 
10058
 
 
10059
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10060
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
10061
hardcode_action=
 
10062
if test -n "$hardcode_libdir_flag_spec" || \
 
10063
   test -n "$runpath_var" || \
 
10064
   test "X$hardcode_automatic" = "Xyes" ; then
 
10065
 
 
10066
  # We can hardcode non-existant directories.
 
10067
  if test "$hardcode_direct" != no &&
 
10068
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10069
     # have to relink, otherwise we might link with an installed library
 
10070
     # when we should be linking with a yet-to-be-installed one
 
10071
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10072
     test "$hardcode_minus_L" != no; then
 
10073
    # Linking always hardcodes the temporary library directory.
 
10074
    hardcode_action=relink
 
10075
  else
 
10076
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10077
    hardcode_action=immediate
 
10078
  fi
 
10079
else
 
10080
  # We cannot hardcode anything, or else we can only hardcode existing
 
10081
  # directories.
 
10082
  hardcode_action=unsupported
 
10083
fi
 
10084
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10085
echo "${ECHO_T}$hardcode_action" >&6; }
 
10086
 
 
10087
if test "$hardcode_action" = relink; then
 
10088
  # Fast installation is not supported
 
10089
  enable_fast_install=no
 
10090
elif test "$shlibpath_overrides_runpath" = yes ||
 
10091
     test "$enable_shared" = no; then
 
10092
  # Fast installation is not necessary
 
10093
  enable_fast_install=needless
 
10094
fi
 
10095
 
 
10096
striplib=
 
10097
old_striplib=
 
10098
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10099
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
10100
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10101
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10102
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10103
  { echo "$as_me:$LINENO: result: yes" >&5
 
10104
echo "${ECHO_T}yes" >&6; }
 
10105
else
 
10106
# FIXME - insert some real tests, host_os isn't really good enough
 
10107
  case $host_os in
 
10108
   darwin*)
 
10109
       if test -n "$STRIP" ; then
 
10110
         striplib="$STRIP -x"
 
10111
         old_striplib="$STRIP -S"
 
10112
         { echo "$as_me:$LINENO: result: yes" >&5
 
10113
echo "${ECHO_T}yes" >&6; }
 
10114
       else
 
10115
  { echo "$as_me:$LINENO: result: no" >&5
 
10116
echo "${ECHO_T}no" >&6; }
 
10117
fi
 
10118
       ;;
 
10119
   *)
 
10120
  { echo "$as_me:$LINENO: result: no" >&5
 
10121
echo "${ECHO_T}no" >&6; }
 
10122
    ;;
 
10123
  esac
 
10124
fi
 
10125
 
 
10126
if test "x$enable_dlopen" != xyes; then
 
10127
  enable_dlopen=unknown
 
10128
  enable_dlopen_self=unknown
 
10129
  enable_dlopen_self_static=unknown
 
10130
else
 
10131
  lt_cv_dlopen=no
 
10132
  lt_cv_dlopen_libs=
 
10133
 
 
10134
  case $host_os in
 
10135
  beos*)
 
10136
    lt_cv_dlopen="load_add_on"
 
10137
    lt_cv_dlopen_libs=
 
10138
    lt_cv_dlopen_self=yes
 
10139
    ;;
 
10140
 
 
10141
  mingw* | pw32*)
 
10142
    lt_cv_dlopen="LoadLibrary"
 
10143
    lt_cv_dlopen_libs=
 
10144
   ;;
 
10145
 
 
10146
  cygwin*)
 
10147
    lt_cv_dlopen="dlopen"
 
10148
    lt_cv_dlopen_libs=
 
10149
   ;;
 
10150
 
 
10151
  darwin*)
 
10152
  # if libdl is installed we need to link against it
 
10153
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10154
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10155
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10157
else
 
10158
  ac_check_lib_save_LIBS=$LIBS
 
10159
LIBS="-ldl  $LIBS"
 
10160
cat >conftest.$ac_ext <<_ACEOF
 
10161
/* confdefs.h.  */
 
10162
_ACEOF
 
10163
cat confdefs.h >>conftest.$ac_ext
 
10164
cat >>conftest.$ac_ext <<_ACEOF
 
10165
/* end confdefs.h.  */
 
10166
 
 
10167
/* Override any GCC internal prototype to avoid an error.
 
10168
   Use char because int might match the return type of a GCC
 
10169
   builtin and then its argument prototype would still apply.  */
 
10170
#ifdef __cplusplus
 
10171
extern "C"
 
10172
#endif
 
10173
char dlopen ();
 
10174
int
 
10175
main ()
 
10176
{
 
10177
return dlopen ();
 
10178
  ;
 
10179
  return 0;
 
10180
}
 
10181
_ACEOF
 
10182
rm -f conftest.$ac_objext conftest$ac_exeext
 
10183
if { (ac_try="$ac_link"
 
10184
case "(($ac_try" in
 
10185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10186
  *) ac_try_echo=$ac_try;;
 
10187
esac
 
10188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10189
  (eval "$ac_link") 2>conftest.er1
 
10190
  ac_status=$?
 
10191
  grep -v '^ *+' conftest.er1 >conftest.err
 
10192
  rm -f conftest.er1
 
10193
  cat conftest.err >&5
 
10194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10195
  (exit $ac_status); } && {
 
10196
         test -z "$ac_c_werror_flag" ||
 
10197
         test ! -s conftest.err
 
10198
       } && test -s conftest$ac_exeext &&
 
10199
       $as_test_x conftest$ac_exeext; then
 
10200
  ac_cv_lib_dl_dlopen=yes
 
10201
else
 
10202
  echo "$as_me: failed program was:" >&5
 
10203
sed 's/^/| /' conftest.$ac_ext >&5
 
10204
 
 
10205
        ac_cv_lib_dl_dlopen=no
 
10206
fi
 
10207
 
 
10208
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10209
      conftest$ac_exeext conftest.$ac_ext
 
10210
LIBS=$ac_check_lib_save_LIBS
 
10211
fi
 
10212
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10213
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10214
if test $ac_cv_lib_dl_dlopen = yes; then
 
10215
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10216
else
 
10217
 
 
10218
    lt_cv_dlopen="dyld"
 
10219
    lt_cv_dlopen_libs=
 
10220
    lt_cv_dlopen_self=yes
 
10221
 
 
10222
fi
 
10223
 
 
10224
   ;;
 
10225
 
 
10226
  *)
 
10227
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
10228
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
10229
if test "${ac_cv_func_shl_load+set}" = set; then
 
10230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10231
else
 
10232
  cat >conftest.$ac_ext <<_ACEOF
 
10233
/* confdefs.h.  */
 
10234
_ACEOF
 
10235
cat confdefs.h >>conftest.$ac_ext
 
10236
cat >>conftest.$ac_ext <<_ACEOF
 
10237
/* end confdefs.h.  */
 
10238
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10239
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10240
#define shl_load innocuous_shl_load
 
10241
 
 
10242
/* System header to define __stub macros and hopefully few prototypes,
 
10243
    which can conflict with char shl_load (); below.
 
10244
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10245
    <limits.h> exists even on freestanding compilers.  */
 
10246
 
 
10247
#ifdef __STDC__
 
10248
# include <limits.h>
 
10249
#else
 
10250
# include <assert.h>
 
10251
#endif
 
10252
 
 
10253
#undef shl_load
 
10254
 
 
10255
/* Override any GCC internal prototype to avoid an error.
 
10256
   Use char because int might match the return type of a GCC
 
10257
   builtin and then its argument prototype would still apply.  */
 
10258
#ifdef __cplusplus
 
10259
extern "C"
 
10260
#endif
 
10261
char shl_load ();
 
10262
/* The GNU C library defines this for functions which it implements
 
10263
    to always fail with ENOSYS.  Some functions are actually named
 
10264
    something starting with __ and the normal name is an alias.  */
 
10265
#if defined __stub_shl_load || defined __stub___shl_load
 
10266
choke me
 
10267
#endif
 
10268
 
 
10269
int
 
10270
main ()
 
10271
{
 
10272
return shl_load ();
 
10273
  ;
 
10274
  return 0;
 
10275
}
 
10276
_ACEOF
 
10277
rm -f conftest.$ac_objext conftest$ac_exeext
 
10278
if { (ac_try="$ac_link"
 
10279
case "(($ac_try" in
 
10280
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10281
  *) ac_try_echo=$ac_try;;
 
10282
esac
 
10283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10284
  (eval "$ac_link") 2>conftest.er1
 
10285
  ac_status=$?
 
10286
  grep -v '^ *+' conftest.er1 >conftest.err
 
10287
  rm -f conftest.er1
 
10288
  cat conftest.err >&5
 
10289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10290
  (exit $ac_status); } && {
 
10291
         test -z "$ac_c_werror_flag" ||
 
10292
         test ! -s conftest.err
 
10293
       } && test -s conftest$ac_exeext &&
 
10294
       $as_test_x conftest$ac_exeext; then
 
10295
  ac_cv_func_shl_load=yes
 
10296
else
 
10297
  echo "$as_me: failed program was:" >&5
 
10298
sed 's/^/| /' conftest.$ac_ext >&5
 
10299
 
 
10300
        ac_cv_func_shl_load=no
 
10301
fi
 
10302
 
 
10303
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10304
      conftest$ac_exeext conftest.$ac_ext
 
10305
fi
 
10306
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10307
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
10308
if test $ac_cv_func_shl_load = yes; then
 
10309
  lt_cv_dlopen="shl_load"
 
10310
else
 
10311
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10312
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
10313
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10315
else
 
10316
  ac_check_lib_save_LIBS=$LIBS
 
10317
LIBS="-ldld  $LIBS"
 
10318
cat >conftest.$ac_ext <<_ACEOF
 
10319
/* confdefs.h.  */
 
10320
_ACEOF
 
10321
cat confdefs.h >>conftest.$ac_ext
 
10322
cat >>conftest.$ac_ext <<_ACEOF
 
10323
/* end confdefs.h.  */
 
10324
 
 
10325
/* Override any GCC internal prototype to avoid an error.
 
10326
   Use char because int might match the return type of a GCC
 
10327
   builtin and then its argument prototype would still apply.  */
 
10328
#ifdef __cplusplus
 
10329
extern "C"
 
10330
#endif
 
10331
char shl_load ();
 
10332
int
 
10333
main ()
 
10334
{
 
10335
return shl_load ();
 
10336
  ;
 
10337
  return 0;
 
10338
}
 
10339
_ACEOF
 
10340
rm -f conftest.$ac_objext conftest$ac_exeext
 
10341
if { (ac_try="$ac_link"
 
10342
case "(($ac_try" in
 
10343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10344
  *) ac_try_echo=$ac_try;;
 
10345
esac
 
10346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10347
  (eval "$ac_link") 2>conftest.er1
 
10348
  ac_status=$?
 
10349
  grep -v '^ *+' conftest.er1 >conftest.err
 
10350
  rm -f conftest.er1
 
10351
  cat conftest.err >&5
 
10352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10353
  (exit $ac_status); } && {
 
10354
         test -z "$ac_c_werror_flag" ||
 
10355
         test ! -s conftest.err
 
10356
       } && test -s conftest$ac_exeext &&
 
10357
       $as_test_x conftest$ac_exeext; then
 
10358
  ac_cv_lib_dld_shl_load=yes
 
10359
else
 
10360
  echo "$as_me: failed program was:" >&5
 
10361
sed 's/^/| /' conftest.$ac_ext >&5
 
10362
 
 
10363
        ac_cv_lib_dld_shl_load=no
 
10364
fi
 
10365
 
 
10366
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10367
      conftest$ac_exeext conftest.$ac_ext
 
10368
LIBS=$ac_check_lib_save_LIBS
 
10369
fi
 
10370
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10371
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
10372
if test $ac_cv_lib_dld_shl_load = yes; then
 
10373
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10374
else
 
10375
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10376
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
10377
if test "${ac_cv_func_dlopen+set}" = set; then
 
10378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10379
else
 
10380
  cat >conftest.$ac_ext <<_ACEOF
 
10381
/* confdefs.h.  */
 
10382
_ACEOF
 
10383
cat confdefs.h >>conftest.$ac_ext
 
10384
cat >>conftest.$ac_ext <<_ACEOF
 
10385
/* end confdefs.h.  */
 
10386
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10387
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10388
#define dlopen innocuous_dlopen
 
10389
 
 
10390
/* System header to define __stub macros and hopefully few prototypes,
 
10391
    which can conflict with char dlopen (); below.
 
10392
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10393
    <limits.h> exists even on freestanding compilers.  */
 
10394
 
 
10395
#ifdef __STDC__
 
10396
# include <limits.h>
 
10397
#else
 
10398
# include <assert.h>
 
10399
#endif
 
10400
 
 
10401
#undef dlopen
 
10402
 
 
10403
/* Override any GCC internal prototype to avoid an error.
 
10404
   Use char because int might match the return type of a GCC
 
10405
   builtin and then its argument prototype would still apply.  */
 
10406
#ifdef __cplusplus
 
10407
extern "C"
 
10408
#endif
 
10409
char dlopen ();
 
10410
/* The GNU C library defines this for functions which it implements
 
10411
    to always fail with ENOSYS.  Some functions are actually named
 
10412
    something starting with __ and the normal name is an alias.  */
 
10413
#if defined __stub_dlopen || defined __stub___dlopen
 
10414
choke me
 
10415
#endif
 
10416
 
 
10417
int
 
10418
main ()
 
10419
{
 
10420
return dlopen ();
 
10421
  ;
 
10422
  return 0;
 
10423
}
 
10424
_ACEOF
 
10425
rm -f conftest.$ac_objext conftest$ac_exeext
 
10426
if { (ac_try="$ac_link"
 
10427
case "(($ac_try" in
 
10428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10429
  *) ac_try_echo=$ac_try;;
 
10430
esac
 
10431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10432
  (eval "$ac_link") 2>conftest.er1
 
10433
  ac_status=$?
 
10434
  grep -v '^ *+' conftest.er1 >conftest.err
 
10435
  rm -f conftest.er1
 
10436
  cat conftest.err >&5
 
10437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10438
  (exit $ac_status); } && {
 
10439
         test -z "$ac_c_werror_flag" ||
 
10440
         test ! -s conftest.err
 
10441
       } && test -s conftest$ac_exeext &&
 
10442
       $as_test_x conftest$ac_exeext; then
 
10443
  ac_cv_func_dlopen=yes
 
10444
else
 
10445
  echo "$as_me: failed program was:" >&5
 
10446
sed 's/^/| /' conftest.$ac_ext >&5
 
10447
 
 
10448
        ac_cv_func_dlopen=no
 
10449
fi
 
10450
 
 
10451
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10452
      conftest$ac_exeext conftest.$ac_ext
 
10453
fi
 
10454
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10455
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
10456
if test $ac_cv_func_dlopen = yes; then
 
10457
  lt_cv_dlopen="dlopen"
 
10458
else
 
10459
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10460
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10461
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10463
else
 
10464
  ac_check_lib_save_LIBS=$LIBS
 
10465
LIBS="-ldl  $LIBS"
 
10466
cat >conftest.$ac_ext <<_ACEOF
 
10467
/* confdefs.h.  */
 
10468
_ACEOF
 
10469
cat confdefs.h >>conftest.$ac_ext
 
10470
cat >>conftest.$ac_ext <<_ACEOF
 
10471
/* end confdefs.h.  */
 
10472
 
 
10473
/* Override any GCC internal prototype to avoid an error.
 
10474
   Use char because int might match the return type of a GCC
 
10475
   builtin and then its argument prototype would still apply.  */
 
10476
#ifdef __cplusplus
 
10477
extern "C"
 
10478
#endif
 
10479
char dlopen ();
 
10480
int
 
10481
main ()
 
10482
{
 
10483
return dlopen ();
 
10484
  ;
 
10485
  return 0;
 
10486
}
 
10487
_ACEOF
 
10488
rm -f conftest.$ac_objext conftest$ac_exeext
 
10489
if { (ac_try="$ac_link"
 
10490
case "(($ac_try" in
 
10491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10492
  *) ac_try_echo=$ac_try;;
 
10493
esac
 
10494
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10495
  (eval "$ac_link") 2>conftest.er1
 
10496
  ac_status=$?
 
10497
  grep -v '^ *+' conftest.er1 >conftest.err
 
10498
  rm -f conftest.er1
 
10499
  cat conftest.err >&5
 
10500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10501
  (exit $ac_status); } && {
 
10502
         test -z "$ac_c_werror_flag" ||
 
10503
         test ! -s conftest.err
 
10504
       } && test -s conftest$ac_exeext &&
 
10505
       $as_test_x conftest$ac_exeext; then
 
10506
  ac_cv_lib_dl_dlopen=yes
 
10507
else
 
10508
  echo "$as_me: failed program was:" >&5
 
10509
sed 's/^/| /' conftest.$ac_ext >&5
 
10510
 
 
10511
        ac_cv_lib_dl_dlopen=no
 
10512
fi
 
10513
 
 
10514
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10515
      conftest$ac_exeext conftest.$ac_ext
 
10516
LIBS=$ac_check_lib_save_LIBS
 
10517
fi
 
10518
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10519
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10520
if test $ac_cv_lib_dl_dlopen = yes; then
 
10521
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10522
else
 
10523
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10524
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10525
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10527
else
 
10528
  ac_check_lib_save_LIBS=$LIBS
 
10529
LIBS="-lsvld  $LIBS"
 
10530
cat >conftest.$ac_ext <<_ACEOF
 
10531
/* confdefs.h.  */
 
10532
_ACEOF
 
10533
cat confdefs.h >>conftest.$ac_ext
 
10534
cat >>conftest.$ac_ext <<_ACEOF
 
10535
/* end confdefs.h.  */
 
10536
 
 
10537
/* Override any GCC internal prototype to avoid an error.
 
10538
   Use char because int might match the return type of a GCC
 
10539
   builtin and then its argument prototype would still apply.  */
 
10540
#ifdef __cplusplus
 
10541
extern "C"
 
10542
#endif
 
10543
char dlopen ();
 
10544
int
 
10545
main ()
 
10546
{
 
10547
return dlopen ();
 
10548
  ;
 
10549
  return 0;
 
10550
}
 
10551
_ACEOF
 
10552
rm -f conftest.$ac_objext conftest$ac_exeext
 
10553
if { (ac_try="$ac_link"
 
10554
case "(($ac_try" in
 
10555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10556
  *) ac_try_echo=$ac_try;;
 
10557
esac
 
10558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10559
  (eval "$ac_link") 2>conftest.er1
 
10560
  ac_status=$?
 
10561
  grep -v '^ *+' conftest.er1 >conftest.err
 
10562
  rm -f conftest.er1
 
10563
  cat conftest.err >&5
 
10564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10565
  (exit $ac_status); } && {
 
10566
         test -z "$ac_c_werror_flag" ||
 
10567
         test ! -s conftest.err
 
10568
       } && test -s conftest$ac_exeext &&
 
10569
       $as_test_x conftest$ac_exeext; then
 
10570
  ac_cv_lib_svld_dlopen=yes
 
10571
else
 
10572
  echo "$as_me: failed program was:" >&5
 
10573
sed 's/^/| /' conftest.$ac_ext >&5
 
10574
 
 
10575
        ac_cv_lib_svld_dlopen=no
 
10576
fi
 
10577
 
 
10578
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10579
      conftest$ac_exeext conftest.$ac_ext
 
10580
LIBS=$ac_check_lib_save_LIBS
 
10581
fi
 
10582
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10583
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10584
if test $ac_cv_lib_svld_dlopen = yes; then
 
10585
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10586
else
 
10587
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10588
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10589
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10591
else
 
10592
  ac_check_lib_save_LIBS=$LIBS
 
10593
LIBS="-ldld  $LIBS"
 
10594
cat >conftest.$ac_ext <<_ACEOF
 
10595
/* confdefs.h.  */
 
10596
_ACEOF
 
10597
cat confdefs.h >>conftest.$ac_ext
 
10598
cat >>conftest.$ac_ext <<_ACEOF
 
10599
/* end confdefs.h.  */
 
10600
 
 
10601
/* Override any GCC internal prototype to avoid an error.
 
10602
   Use char because int might match the return type of a GCC
 
10603
   builtin and then its argument prototype would still apply.  */
 
10604
#ifdef __cplusplus
 
10605
extern "C"
 
10606
#endif
 
10607
char dld_link ();
 
10608
int
 
10609
main ()
 
10610
{
 
10611
return dld_link ();
 
10612
  ;
 
10613
  return 0;
 
10614
}
 
10615
_ACEOF
 
10616
rm -f conftest.$ac_objext conftest$ac_exeext
 
10617
if { (ac_try="$ac_link"
 
10618
case "(($ac_try" in
 
10619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10620
  *) ac_try_echo=$ac_try;;
 
10621
esac
 
10622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10623
  (eval "$ac_link") 2>conftest.er1
 
10624
  ac_status=$?
 
10625
  grep -v '^ *+' conftest.er1 >conftest.err
 
10626
  rm -f conftest.er1
 
10627
  cat conftest.err >&5
 
10628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10629
  (exit $ac_status); } && {
 
10630
         test -z "$ac_c_werror_flag" ||
 
10631
         test ! -s conftest.err
 
10632
       } && test -s conftest$ac_exeext &&
 
10633
       $as_test_x conftest$ac_exeext; then
 
10634
  ac_cv_lib_dld_dld_link=yes
 
10635
else
 
10636
  echo "$as_me: failed program was:" >&5
 
10637
sed 's/^/| /' conftest.$ac_ext >&5
 
10638
 
 
10639
        ac_cv_lib_dld_dld_link=no
 
10640
fi
 
10641
 
 
10642
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10643
      conftest$ac_exeext conftest.$ac_ext
 
10644
LIBS=$ac_check_lib_save_LIBS
 
10645
fi
 
10646
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10647
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10648
if test $ac_cv_lib_dld_dld_link = yes; then
 
10649
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10650
fi
 
10651
 
 
10652
 
 
10653
fi
 
10654
 
 
10655
 
 
10656
fi
 
10657
 
 
10658
 
 
10659
fi
 
10660
 
 
10661
 
 
10662
fi
 
10663
 
 
10664
 
 
10665
fi
 
10666
 
 
10667
    ;;
 
10668
  esac
 
10669
 
 
10670
  if test "x$lt_cv_dlopen" != xno; then
 
10671
    enable_dlopen=yes
 
10672
  else
 
10673
    enable_dlopen=no
 
10674
  fi
 
10675
 
 
10676
  case $lt_cv_dlopen in
 
10677
  dlopen)
 
10678
    save_CPPFLAGS="$CPPFLAGS"
 
10679
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10680
 
 
10681
    save_LDFLAGS="$LDFLAGS"
 
10682
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10683
 
 
10684
    save_LIBS="$LIBS"
 
10685
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10686
 
 
10687
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10688
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10689
if test "${lt_cv_dlopen_self+set}" = set; then
 
10690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10691
else
 
10692
          if test "$cross_compiling" = yes; then :
 
10693
  lt_cv_dlopen_self=cross
 
10694
else
 
10695
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10696
  lt_status=$lt_dlunknown
 
10697
  cat > conftest.$ac_ext <<EOF
 
10698
#line 10698 "configure"
 
10699
#include "confdefs.h"
 
10700
 
 
10701
#if HAVE_DLFCN_H
 
10702
#include <dlfcn.h>
 
10703
#endif
 
10704
 
 
10705
#include <stdio.h>
 
10706
 
 
10707
#ifdef RTLD_GLOBAL
 
10708
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10709
#else
 
10710
#  ifdef DL_GLOBAL
 
10711
#    define LT_DLGLOBAL         DL_GLOBAL
 
10712
#  else
 
10713
#    define LT_DLGLOBAL         0
 
10714
#  endif
 
10715
#endif
 
10716
 
 
10717
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10718
   find out it does not work in some platform. */
 
10719
#ifndef LT_DLLAZY_OR_NOW
 
10720
#  ifdef RTLD_LAZY
 
10721
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10722
#  else
 
10723
#    ifdef DL_LAZY
 
10724
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10725
#    else
 
10726
#      ifdef RTLD_NOW
 
10727
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10728
#      else
 
10729
#        ifdef DL_NOW
 
10730
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10731
#        else
 
10732
#          define LT_DLLAZY_OR_NOW      0
 
10733
#        endif
 
10734
#      endif
 
10735
#    endif
 
10736
#  endif
 
10737
#endif
 
10738
 
 
10739
#ifdef __cplusplus
 
10740
extern "C" void exit (int);
 
10741
#endif
 
10742
 
 
10743
void fnord() { int i=42;}
 
10744
int main ()
 
10745
{
 
10746
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10747
  int status = $lt_dlunknown;
 
10748
 
 
10749
  if (self)
 
10750
    {
 
10751
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10752
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10753
      /* dlclose (self); */
 
10754
    }
 
10755
  else
 
10756
    puts (dlerror ());
 
10757
 
 
10758
    exit (status);
 
10759
}
 
10760
EOF
 
10761
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10762
  (eval $ac_link) 2>&5
 
10763
  ac_status=$?
 
10764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10765
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10766
    (./conftest; exit; ) >&5 2>/dev/null
 
10767
    lt_status=$?
 
10768
    case x$lt_status in
 
10769
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10770
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10771
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10772
    esac
 
10773
  else :
 
10774
    # compilation failed
 
10775
    lt_cv_dlopen_self=no
 
10776
  fi
 
10777
fi
 
10778
rm -fr conftest*
 
10779
 
 
10780
 
 
10781
fi
 
10782
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10783
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10784
 
 
10785
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10786
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10787
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10788
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10789
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10791
else
 
10792
          if test "$cross_compiling" = yes; then :
 
10793
  lt_cv_dlopen_self_static=cross
 
10794
else
 
10795
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10796
  lt_status=$lt_dlunknown
 
10797
  cat > conftest.$ac_ext <<EOF
 
10798
#line 10798 "configure"
 
10799
#include "confdefs.h"
 
10800
 
 
10801
#if HAVE_DLFCN_H
 
10802
#include <dlfcn.h>
 
10803
#endif
 
10804
 
 
10805
#include <stdio.h>
 
10806
 
 
10807
#ifdef RTLD_GLOBAL
 
10808
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10809
#else
 
10810
#  ifdef DL_GLOBAL
 
10811
#    define LT_DLGLOBAL         DL_GLOBAL
 
10812
#  else
 
10813
#    define LT_DLGLOBAL         0
 
10814
#  endif
 
10815
#endif
 
10816
 
 
10817
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10818
   find out it does not work in some platform. */
 
10819
#ifndef LT_DLLAZY_OR_NOW
 
10820
#  ifdef RTLD_LAZY
 
10821
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10822
#  else
 
10823
#    ifdef DL_LAZY
 
10824
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10825
#    else
 
10826
#      ifdef RTLD_NOW
 
10827
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10828
#      else
 
10829
#        ifdef DL_NOW
 
10830
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10831
#        else
 
10832
#          define LT_DLLAZY_OR_NOW      0
 
10833
#        endif
 
10834
#      endif
 
10835
#    endif
 
10836
#  endif
 
10837
#endif
 
10838
 
 
10839
#ifdef __cplusplus
 
10840
extern "C" void exit (int);
 
10841
#endif
 
10842
 
 
10843
void fnord() { int i=42;}
 
10844
int main ()
 
10845
{
 
10846
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10847
  int status = $lt_dlunknown;
 
10848
 
 
10849
  if (self)
 
10850
    {
 
10851
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10852
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10853
      /* dlclose (self); */
 
10854
    }
 
10855
  else
 
10856
    puts (dlerror ());
 
10857
 
 
10858
    exit (status);
 
10859
}
 
10860
EOF
 
10861
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10862
  (eval $ac_link) 2>&5
 
10863
  ac_status=$?
 
10864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10865
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10866
    (./conftest; exit; ) >&5 2>/dev/null
 
10867
    lt_status=$?
 
10868
    case x$lt_status in
 
10869
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10870
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10871
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10872
    esac
 
10873
  else :
 
10874
    # compilation failed
 
10875
    lt_cv_dlopen_self_static=no
 
10876
  fi
 
10877
fi
 
10878
rm -fr conftest*
 
10879
 
 
10880
 
 
10881
fi
 
10882
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10883
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10884
    fi
 
10885
 
 
10886
    CPPFLAGS="$save_CPPFLAGS"
 
10887
    LDFLAGS="$save_LDFLAGS"
 
10888
    LIBS="$save_LIBS"
 
10889
    ;;
 
10890
  esac
 
10891
 
 
10892
  case $lt_cv_dlopen_self in
 
10893
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10894
  *) enable_dlopen_self=unknown ;;
 
10895
  esac
 
10896
 
 
10897
  case $lt_cv_dlopen_self_static in
 
10898
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10899
  *) enable_dlopen_self_static=unknown ;;
 
10900
  esac
 
10901
fi
 
10902
 
 
10903
 
 
10904
# Report which library types will actually be built
 
10905
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10906
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10907
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10908
echo "${ECHO_T}$can_build_shared" >&6; }
 
10909
 
 
10910
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10911
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10912
test "$can_build_shared" = "no" && enable_shared=no
 
10913
 
 
10914
# On AIX, shared libraries and static libraries use the same namespace, and
 
10915
# are all built from PIC.
 
10916
case $host_os in
 
10917
aix3*)
 
10918
  test "$enable_shared" = yes && enable_static=no
 
10919
  if test -n "$RANLIB"; then
 
10920
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10921
    postinstall_cmds='$RANLIB $lib'
 
10922
  fi
 
10923
  ;;
 
10924
 
 
10925
aix[4-9]*)
 
10926
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10927
    test "$enable_shared" = yes && enable_static=no
 
10928
  fi
 
10929
    ;;
 
10930
esac
 
10931
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10932
echo "${ECHO_T}$enable_shared" >&6; }
 
10933
 
 
10934
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10935
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10936
# Make sure either enable_shared or enable_static is yes.
 
10937
test "$enable_shared" = yes || enable_static=yes
 
10938
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10939
echo "${ECHO_T}$enable_static" >&6; }
 
10940
 
 
10941
# The else clause should only fire when bootstrapping the
 
10942
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10943
# with your package, and you will get complaints that there are
 
10944
# no rules to generate ltmain.sh.
 
10945
if test -f "$ltmain"; then
 
10946
  # See if we are running on zsh, and set the options which allow our commands through
 
10947
  # without removal of \ escapes.
 
10948
  if test -n "${ZSH_VERSION+set}" ; then
 
10949
    setopt NO_GLOB_SUBST
 
10950
  fi
 
10951
  # Now quote all the things that may contain metacharacters while being
 
10952
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10953
  # variables and quote the copies for generation of the libtool script.
 
10954
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10955
    SED SHELL STRIP \
 
10956
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10957
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10958
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10959
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10960
    lt_cv_sys_global_symbol_to_c_name_address \
 
10961
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10962
    old_postinstall_cmds old_postuninstall_cmds \
 
10963
    compiler \
 
10964
    CC \
 
10965
    LD \
 
10966
    lt_prog_compiler_wl \
 
10967
    lt_prog_compiler_pic \
 
10968
    lt_prog_compiler_static \
 
10969
    lt_prog_compiler_no_builtin_flag \
 
10970
    export_dynamic_flag_spec \
 
10971
    thread_safe_flag_spec \
 
10972
    whole_archive_flag_spec \
 
10973
    enable_shared_with_static_runtimes \
 
10974
    old_archive_cmds \
 
10975
    old_archive_from_new_cmds \
 
10976
    predep_objects \
 
10977
    postdep_objects \
 
10978
    predeps \
 
10979
    postdeps \
 
10980
    compiler_lib_search_path \
 
10981
    compiler_lib_search_dirs \
 
10982
    archive_cmds \
 
10983
    archive_expsym_cmds \
 
10984
    postinstall_cmds \
 
10985
    postuninstall_cmds \
 
10986
    old_archive_from_expsyms_cmds \
 
10987
    allow_undefined_flag \
 
10988
    no_undefined_flag \
 
10989
    export_symbols_cmds \
 
10990
    hardcode_libdir_flag_spec \
 
10991
    hardcode_libdir_flag_spec_ld \
 
10992
    hardcode_libdir_separator \
 
10993
    hardcode_automatic \
 
10994
    module_cmds \
 
10995
    module_expsym_cmds \
 
10996
    lt_cv_prog_compiler_c_o \
 
10997
    fix_srcfile_path \
 
10998
    exclude_expsyms \
 
10999
    include_expsyms; do
 
11000
 
 
11001
    case $var in
 
11002
    old_archive_cmds | \
 
11003
    old_archive_from_new_cmds | \
 
11004
    archive_cmds | \
 
11005
    archive_expsym_cmds | \
 
11006
    module_cmds | \
 
11007
    module_expsym_cmds | \
 
11008
    old_archive_from_expsyms_cmds | \
 
11009
    export_symbols_cmds | \
 
11010
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11011
    postinstall_cmds | postuninstall_cmds | \
 
11012
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11013
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11014
      # Double-quote double-evaled strings.
 
11015
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11016
      ;;
 
11017
    *)
 
11018
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11019
      ;;
 
11020
    esac
 
11021
  done
 
11022
 
 
11023
  case $lt_echo in
 
11024
  *'\$0 --fallback-echo"')
 
11025
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11026
    ;;
 
11027
  esac
 
11028
 
 
11029
cfgfile="${ofile}T"
 
11030
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11031
  $rm -f "$cfgfile"
 
11032
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11033
echo "$as_me: creating $ofile" >&6;}
 
11034
 
 
11035
  cat <<__EOF__ >> "$cfgfile"
 
11036
#! $SHELL
 
11037
 
 
11038
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11039
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11040
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11041
#
 
11042
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
11043
# Free Software Foundation, Inc.
 
11044
#
 
11045
# This file is part of GNU Libtool:
 
11046
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11047
#
 
11048
# This program is free software; you can redistribute it and/or modify
 
11049
# it under the terms of the GNU General Public License as published by
 
11050
# the Free Software Foundation; either version 2 of the License, or
 
11051
# (at your option) any later version.
 
11052
#
 
11053
# This program is distributed in the hope that it will be useful, but
 
11054
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11055
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11056
# General Public License for more details.
 
11057
#
 
11058
# You should have received a copy of the GNU General Public License
 
11059
# along with this program; if not, write to the Free Software
 
11060
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
11061
#
 
11062
# As a special exception to the GNU General Public License, if you
 
11063
# distribute this file as part of a program that contains a
 
11064
# configuration script generated by Autoconf, you may include it under
 
11065
# the same distribution terms that you use for the rest of that program.
 
11066
 
 
11067
# A sed program that does not truncate output.
 
11068
SED=$lt_SED
 
11069
 
 
11070
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11071
Xsed="$SED -e 1s/^X//"
 
11072
 
 
11073
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11074
# if CDPATH is set.
 
11075
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11076
 
 
11077
# The names of the tagged configurations supported by this script.
 
11078
available_tags=
 
11079
 
 
11080
# ### BEGIN LIBTOOL CONFIG
 
11081
 
 
11082
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11083
 
 
11084
# Shell to use when invoking shell scripts.
 
11085
SHELL=$lt_SHELL
 
11086
 
 
11087
# Whether or not to build shared libraries.
 
11088
build_libtool_libs=$enable_shared
 
11089
 
 
11090
# Whether or not to build static libraries.
 
11091
build_old_libs=$enable_static
 
11092
 
 
11093
# Whether or not to add -lc for building shared libraries.
 
11094
build_libtool_need_lc=$archive_cmds_need_lc
 
11095
 
 
11096
# Whether or not to disallow shared libs when runtime libs are static
 
11097
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11098
 
 
11099
# Whether or not to optimize for fast installation.
 
11100
fast_install=$enable_fast_install
 
11101
 
 
11102
# The host system.
 
11103
host_alias=$host_alias
 
11104
host=$host
 
11105
host_os=$host_os
 
11106
 
 
11107
# The build system.
 
11108
build_alias=$build_alias
 
11109
build=$build
 
11110
build_os=$build_os
 
11111
 
 
11112
# An echo program that does not interpret backslashes.
 
11113
echo=$lt_echo
 
11114
 
 
11115
# The archiver.
 
11116
AR=$lt_AR
 
11117
AR_FLAGS=$lt_AR_FLAGS
 
11118
 
 
11119
# A C compiler.
 
11120
LTCC=$lt_LTCC
 
11121
 
 
11122
# LTCC compiler flags.
 
11123
LTCFLAGS=$lt_LTCFLAGS
 
11124
 
 
11125
# A language-specific compiler.
 
11126
CC=$lt_compiler
 
11127
 
 
11128
# Is the compiler the GNU C compiler?
 
11129
with_gcc=$GCC
 
11130
 
 
11131
# An ERE matcher.
 
11132
EGREP=$lt_EGREP
 
11133
 
 
11134
# The linker used to build libraries.
 
11135
LD=$lt_LD
 
11136
 
 
11137
# Whether we need hard or soft links.
 
11138
LN_S=$lt_LN_S
 
11139
 
 
11140
# A BSD-compatible nm program.
 
11141
NM=$lt_NM
 
11142
 
 
11143
# A symbol stripping program
 
11144
STRIP=$lt_STRIP
 
11145
 
 
11146
# Used to examine libraries when file_magic_cmd begins "file"
 
11147
MAGIC_CMD=$MAGIC_CMD
 
11148
 
 
11149
# Used on cygwin: DLL creation program.
 
11150
DLLTOOL="$DLLTOOL"
 
11151
 
 
11152
# Used on cygwin: object dumper.
 
11153
OBJDUMP="$OBJDUMP"
 
11154
 
 
11155
# Used on cygwin: assembler.
 
11156
AS="$AS"
 
11157
 
 
11158
# The name of the directory that contains temporary libtool files.
 
11159
objdir=$objdir
 
11160
 
 
11161
# How to create reloadable object files.
 
11162
reload_flag=$lt_reload_flag
 
11163
reload_cmds=$lt_reload_cmds
 
11164
 
 
11165
# How to pass a linker flag through the compiler.
 
11166
wl=$lt_lt_prog_compiler_wl
 
11167
 
 
11168
# Object file suffix (normally "o").
 
11169
objext="$ac_objext"
 
11170
 
 
11171
# Old archive suffix (normally "a").
 
11172
libext="$libext"
 
11173
 
 
11174
# Shared library suffix (normally ".so").
 
11175
shrext_cmds='$shrext_cmds'
 
11176
 
 
11177
# Executable file suffix (normally "").
 
11178
exeext="$exeext"
 
11179
 
 
11180
# Additional compiler flags for building library objects.
 
11181
pic_flag=$lt_lt_prog_compiler_pic
 
11182
pic_mode=$pic_mode
 
11183
 
 
11184
# What is the maximum length of a command?
 
11185
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11186
 
 
11187
# Does compiler simultaneously support -c and -o options?
 
11188
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11189
 
 
11190
# Must we lock files when doing compilation?
 
11191
need_locks=$lt_need_locks
 
11192
 
 
11193
# Do we need the lib prefix for modules?
 
11194
need_lib_prefix=$need_lib_prefix
 
11195
 
 
11196
# Do we need a version for libraries?
 
11197
need_version=$need_version
 
11198
 
 
11199
# Whether dlopen is supported.
 
11200
dlopen_support=$enable_dlopen
 
11201
 
 
11202
# Whether dlopen of programs is supported.
 
11203
dlopen_self=$enable_dlopen_self
 
11204
 
 
11205
# Whether dlopen of statically linked programs is supported.
 
11206
dlopen_self_static=$enable_dlopen_self_static
 
11207
 
 
11208
# Compiler flag to prevent dynamic linking.
 
11209
link_static_flag=$lt_lt_prog_compiler_static
 
11210
 
 
11211
# Compiler flag to turn off builtin functions.
 
11212
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11213
 
 
11214
# Compiler flag to allow reflexive dlopens.
 
11215
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11216
 
 
11217
# Compiler flag to generate shared objects directly from archives.
 
11218
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11219
 
 
11220
# Compiler flag to generate thread-safe objects.
 
11221
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11222
 
 
11223
# Library versioning type.
 
11224
version_type=$version_type
 
11225
 
 
11226
# Format of library name prefix.
 
11227
libname_spec=$lt_libname_spec
 
11228
 
 
11229
# List of archive names.  First name is the real one, the rest are links.
 
11230
# The last name is the one that the linker finds with -lNAME.
 
11231
library_names_spec=$lt_library_names_spec
 
11232
 
 
11233
# The coded name of the library, if different from the real name.
 
11234
soname_spec=$lt_soname_spec
 
11235
 
 
11236
# Commands used to build and install an old-style archive.
 
11237
RANLIB=$lt_RANLIB
 
11238
old_archive_cmds=$lt_old_archive_cmds
 
11239
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11240
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11241
 
 
11242
# Create an old-style archive from a shared archive.
 
11243
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11244
 
 
11245
# Create a temporary old-style archive to link instead of a shared archive.
 
11246
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11247
 
 
11248
# Commands used to build and install a shared archive.
 
11249
archive_cmds=$lt_archive_cmds
 
11250
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11251
postinstall_cmds=$lt_postinstall_cmds
 
11252
postuninstall_cmds=$lt_postuninstall_cmds
 
11253
 
 
11254
# Commands used to build a loadable module (assumed same as above if empty)
 
11255
module_cmds=$lt_module_cmds
 
11256
module_expsym_cmds=$lt_module_expsym_cmds
 
11257
 
 
11258
# Commands to strip libraries.
 
11259
old_striplib=$lt_old_striplib
 
11260
striplib=$lt_striplib
 
11261
 
 
11262
# Dependencies to place before the objects being linked to create a
 
11263
# shared library.
 
11264
predep_objects=$lt_predep_objects
 
11265
 
 
11266
# Dependencies to place after the objects being linked to create a
 
11267
# shared library.
 
11268
postdep_objects=$lt_postdep_objects
 
11269
 
 
11270
# Dependencies to place before the objects being linked to create a
 
11271
# shared library.
 
11272
predeps=$lt_predeps
 
11273
 
 
11274
# Dependencies to place after the objects being linked to create a
 
11275
# shared library.
 
11276
postdeps=$lt_postdeps
 
11277
 
 
11278
# The directories searched by this compiler when creating a shared
 
11279
# library
 
11280
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11281
 
 
11282
# The library search path used internally by the compiler when linking
 
11283
# a shared library.
 
11284
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11285
 
 
11286
# Method to check whether dependent libraries are shared objects.
 
11287
deplibs_check_method=$lt_deplibs_check_method
 
11288
 
 
11289
# Command to use when deplibs_check_method == file_magic.
 
11290
file_magic_cmd=$lt_file_magic_cmd
 
11291
 
 
11292
# Flag that allows shared libraries with undefined symbols to be built.
 
11293
allow_undefined_flag=$lt_allow_undefined_flag
 
11294
 
 
11295
# Flag that forces no undefined symbols.
 
11296
no_undefined_flag=$lt_no_undefined_flag
 
11297
 
 
11298
# Commands used to finish a libtool library installation in a directory.
 
11299
finish_cmds=$lt_finish_cmds
 
11300
 
 
11301
# Same as above, but a single script fragment to be evaled but not shown.
 
11302
finish_eval=$lt_finish_eval
 
11303
 
 
11304
# Take the output of nm and produce a listing of raw symbols and C names.
 
11305
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11306
 
 
11307
# Transform the output of nm in a proper C declaration
 
11308
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11309
 
 
11310
# Transform the output of nm in a C name address pair
 
11311
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11312
 
 
11313
# This is the shared library runtime path variable.
 
11314
runpath_var=$runpath_var
 
11315
 
 
11316
# This is the shared library path variable.
 
11317
shlibpath_var=$shlibpath_var
 
11318
 
 
11319
# Is shlibpath searched before the hard-coded library search path?
 
11320
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11321
 
 
11322
# How to hardcode a shared library path into an executable.
 
11323
hardcode_action=$hardcode_action
 
11324
 
 
11325
# Whether we should hardcode library paths into libraries.
 
11326
hardcode_into_libs=$hardcode_into_libs
 
11327
 
 
11328
# Flag to hardcode \$libdir into a binary during linking.
 
11329
# This must work even if \$libdir does not exist.
 
11330
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11331
 
 
11332
# If ld is used when linking, flag to hardcode \$libdir into
 
11333
# a binary during linking. This must work even if \$libdir does
 
11334
# not exist.
 
11335
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11336
 
 
11337
# Whether we need a single -rpath flag with a separated argument.
 
11338
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11339
 
 
11340
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11341
# resulting binary.
 
11342
hardcode_direct=$hardcode_direct
 
11343
 
 
11344
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11345
# resulting binary.
 
11346
hardcode_minus_L=$hardcode_minus_L
 
11347
 
 
11348
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11349
# the resulting binary.
 
11350
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11351
 
 
11352
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11353
# and all subsequent libraries and executables linked against it.
 
11354
hardcode_automatic=$hardcode_automatic
 
11355
 
 
11356
# Variables whose values should be saved in libtool wrapper scripts and
 
11357
# restored at relink time.
 
11358
variables_saved_for_relink="$variables_saved_for_relink"
 
11359
 
 
11360
# Whether libtool must link a program against all its dependency libraries.
 
11361
link_all_deplibs=$link_all_deplibs
 
11362
 
 
11363
# Compile-time system search path for libraries
 
11364
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11365
 
 
11366
# Run-time system search path for libraries
 
11367
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11368
 
 
11369
# Fix the shell variable \$srcfile for the compiler.
 
11370
fix_srcfile_path=$lt_fix_srcfile_path
 
11371
 
 
11372
# Set to yes if exported symbols are required.
 
11373
always_export_symbols=$always_export_symbols
 
11374
 
 
11375
# The commands to list exported symbols.
 
11376
export_symbols_cmds=$lt_export_symbols_cmds
 
11377
 
 
11378
# The commands to extract the exported symbol list from a shared archive.
 
11379
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11380
 
 
11381
# Symbols that should not be listed in the preloaded symbols.
 
11382
exclude_expsyms=$lt_exclude_expsyms
 
11383
 
 
11384
# Symbols that must always be exported.
 
11385
include_expsyms=$lt_include_expsyms
 
11386
 
 
11387
# ### END LIBTOOL CONFIG
 
11388
 
 
11389
__EOF__
 
11390
 
 
11391
 
 
11392
  case $host_os in
 
11393
  aix3*)
 
11394
    cat <<\EOF >> "$cfgfile"
 
11395
 
 
11396
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11397
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11398
# vanish in a puff of smoke.
 
11399
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11400
  COLLECT_NAMES=
 
11401
  export COLLECT_NAMES
 
11402
fi
 
11403
EOF
 
11404
    ;;
 
11405
  esac
 
11406
 
 
11407
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11408
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11409
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11410
  # is reportedly fixed, but why not run on old versions too?
 
11411
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11412
 
 
11413
  mv -f "$cfgfile" "$ofile" || \
 
11414
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11415
  chmod +x "$ofile"
 
11416
 
 
11417
else
 
11418
  # If there is no Makefile yet, we rely on a make rule to execute
 
11419
  # `config.status --recheck' to rerun these tests and create the
 
11420
  # libtool script then.
 
11421
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11422
  if test -f "$ltmain_in"; then
 
11423
    test -f Makefile && make "$ltmain"
 
11424
  fi
 
11425
fi
 
11426
 
 
11427
 
 
11428
ac_ext=c
 
11429
ac_cpp='$CPP $CPPFLAGS'
 
11430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11433
 
 
11434
CC="$lt_save_CC"
 
11435
 
 
11436
 
 
11437
# Check whether --with-tags was given.
 
11438
if test "${with_tags+set}" = set; then
 
11439
  withval=$with_tags; tagnames="$withval"
 
11440
fi
 
11441
 
 
11442
 
 
11443
if test -f "$ltmain" && test -n "$tagnames"; then
 
11444
  if test ! -f "${ofile}"; then
 
11445
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11446
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11447
  fi
 
11448
 
 
11449
  if test -z "$LTCC"; then
 
11450
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11451
    if test -z "$LTCC"; then
 
11452
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11453
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11454
    else
 
11455
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11456
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11457
    fi
 
11458
  fi
 
11459
  if test -z "$LTCFLAGS"; then
 
11460
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11461
  fi
 
11462
 
 
11463
  # Extract list of available tagged configurations in $ofile.
 
11464
  # Note that this assumes the entire list is on one line.
 
11465
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11466
 
 
11467
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11468
  for tagname in $tagnames; do
 
11469
    IFS="$lt_save_ifs"
 
11470
    # Check whether tagname contains only valid characters
 
11471
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11472
    "") ;;
 
11473
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11474
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11475
   { (exit 1); exit 1; }; }
 
11476
        ;;
 
11477
    esac
 
11478
 
 
11479
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11480
    then
 
11481
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11482
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11483
   { (exit 1); exit 1; }; }
 
11484
    fi
 
11485
 
 
11486
    # Update the list of available tags.
 
11487
    if test -n "$tagname"; then
 
11488
      echo appending configuration tag \"$tagname\" to $ofile
 
11489
 
 
11490
      case $tagname in
 
11491
      CXX)
 
11492
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11493
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11494
            (test "X$CXX" != "Xg++"))) ; then
 
11495
          ac_ext=cpp
 
11496
ac_cpp='$CXXCPP $CPPFLAGS'
 
11497
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11498
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11499
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11500
 
 
11501
 
 
11502
 
 
11503
 
 
11504
archive_cmds_need_lc_CXX=no
 
11505
allow_undefined_flag_CXX=
 
11506
always_export_symbols_CXX=no
 
11507
archive_expsym_cmds_CXX=
 
11508
export_dynamic_flag_spec_CXX=
 
11509
hardcode_direct_CXX=no
 
11510
hardcode_libdir_flag_spec_CXX=
 
11511
hardcode_libdir_flag_spec_ld_CXX=
 
11512
hardcode_libdir_separator_CXX=
 
11513
hardcode_minus_L_CXX=no
 
11514
hardcode_shlibpath_var_CXX=unsupported
 
11515
hardcode_automatic_CXX=no
 
11516
module_cmds_CXX=
 
11517
module_expsym_cmds_CXX=
 
11518
link_all_deplibs_CXX=unknown
 
11519
old_archive_cmds_CXX=$old_archive_cmds
 
11520
no_undefined_flag_CXX=
 
11521
whole_archive_flag_spec_CXX=
 
11522
enable_shared_with_static_runtimes_CXX=no
 
11523
 
 
11524
# Dependencies to place before and after the object being linked:
 
11525
predep_objects_CXX=
 
11526
postdep_objects_CXX=
 
11527
predeps_CXX=
 
11528
postdeps_CXX=
 
11529
compiler_lib_search_path_CXX=
 
11530
compiler_lib_search_dirs_CXX=
 
11531
 
 
11532
# Source file extension for C++ test sources.
 
11533
ac_ext=cpp
 
11534
 
 
11535
# Object file extension for compiled C++ test sources.
 
11536
objext=o
 
11537
objext_CXX=$objext
 
11538
 
 
11539
# Code to be used in simple compile tests
 
11540
lt_simple_compile_test_code="int some_variable = 0;"
 
11541
 
 
11542
# Code to be used in simple link tests
 
11543
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11544
 
 
11545
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11546
 
 
11547
# If no C compiler was specified, use CC.
 
11548
LTCC=${LTCC-"$CC"}
 
11549
 
 
11550
# If no C compiler flags were specified, use CFLAGS.
 
11551
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11552
 
 
11553
# Allow CC to be a program name with arguments.
 
11554
compiler=$CC
 
11555
 
 
11556
 
 
11557
# save warnings/boilerplate of simple test code
 
11558
ac_outfile=conftest.$ac_objext
 
11559
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11560
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11561
_lt_compiler_boilerplate=`cat conftest.err`
 
11562
$rm conftest*
 
11563
 
 
11564
ac_outfile=conftest.$ac_objext
 
11565
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11566
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11567
_lt_linker_boilerplate=`cat conftest.err`
 
11568
$rm -r conftest*
 
11569
 
 
11570
 
 
11571
# Allow CC to be a program name with arguments.
 
11572
lt_save_CC=$CC
 
11573
lt_save_LD=$LD
 
11574
lt_save_GCC=$GCC
 
11575
GCC=$GXX
 
11576
lt_save_with_gnu_ld=$with_gnu_ld
 
11577
lt_save_path_LD=$lt_cv_path_LD
 
11578
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11579
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11580
else
 
11581
  $as_unset lt_cv_prog_gnu_ld
 
11582
fi
 
11583
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11584
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11585
else
 
11586
  $as_unset lt_cv_path_LD
 
11587
fi
 
11588
test -z "${LDCXX+set}" || LD=$LDCXX
 
11589
CC=${CXX-"c++"}
 
11590
compiler=$CC
 
11591
compiler_CXX=$CC
 
11592
for cc_temp in $compiler""; do
 
11593
  case $cc_temp in
 
11594
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11595
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11596
    \-*) ;;
 
11597
    *) break;;
 
11598
  esac
 
11599
done
 
11600
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11601
 
 
11602
 
 
11603
# We don't want -fno-exception wen compiling C++ code, so set the
 
11604
# no_builtin_flag separately
 
11605
if test "$GXX" = yes; then
 
11606
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11607
else
 
11608
  lt_prog_compiler_no_builtin_flag_CXX=
 
11609
fi
 
11610
 
 
11611
if test "$GXX" = yes; then
 
11612
  # Set up default GNU C++ configuration
 
11613
 
 
11614
 
 
11615
# Check whether --with-gnu-ld was given.
 
11616
if test "${with_gnu_ld+set}" = set; then
 
11617
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11618
else
 
11619
  with_gnu_ld=no
 
11620
fi
 
11621
 
 
11622
ac_prog=ld
 
11623
if test "$GCC" = yes; then
 
11624
  # Check if gcc -print-prog-name=ld gives a path.
 
11625
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11626
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11627
  case $host in
 
11628
  *-*-mingw*)
 
11629
    # gcc leaves a trailing carriage return which upsets mingw
 
11630
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11631
  *)
 
11632
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11633
  esac
 
11634
  case $ac_prog in
 
11635
    # Accept absolute paths.
 
11636
    [\\/]* | ?:[\\/]*)
 
11637
      re_direlt='/[^/][^/]*/\.\./'
 
11638
      # Canonicalize the pathname of ld
 
11639
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11640
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11641
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11642
      done
 
11643
      test -z "$LD" && LD="$ac_prog"
 
11644
      ;;
 
11645
  "")
 
11646
    # If it fails, then pretend we aren't using GCC.
 
11647
    ac_prog=ld
 
11648
    ;;
 
11649
  *)
 
11650
    # If it is relative, then search for the first ld in PATH.
 
11651
    with_gnu_ld=unknown
 
11652
    ;;
 
11653
  esac
 
11654
elif test "$with_gnu_ld" = yes; then
 
11655
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11656
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11657
else
 
11658
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11659
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11660
fi
 
11661
if test "${lt_cv_path_LD+set}" = set; then
 
11662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11663
else
 
11664
  if test -z "$LD"; then
 
11665
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11666
  for ac_dir in $PATH; do
 
11667
    IFS="$lt_save_ifs"
 
11668
    test -z "$ac_dir" && ac_dir=.
 
11669
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11670
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11671
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11672
      # but apparently some variants of GNU ld only accept -v.
 
11673
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11674
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11675
      *GNU* | *'with BFD'*)
 
11676
        test "$with_gnu_ld" != no && break
 
11677
        ;;
 
11678
      *)
 
11679
        test "$with_gnu_ld" != yes && break
 
11680
        ;;
 
11681
      esac
 
11682
    fi
 
11683
  done
 
11684
  IFS="$lt_save_ifs"
 
11685
else
 
11686
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11687
fi
 
11688
fi
 
11689
 
 
11690
LD="$lt_cv_path_LD"
 
11691
if test -n "$LD"; then
 
11692
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11693
echo "${ECHO_T}$LD" >&6; }
 
11694
else
 
11695
  { echo "$as_me:$LINENO: result: no" >&5
 
11696
echo "${ECHO_T}no" >&6; }
 
11697
fi
 
11698
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11699
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11700
   { (exit 1); exit 1; }; }
 
11701
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11702
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11703
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11705
else
 
11706
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11707
case `$LD -v 2>&1 </dev/null` in
 
11708
*GNU* | *'with BFD'*)
 
11709
  lt_cv_prog_gnu_ld=yes
 
11710
  ;;
 
11711
*)
 
11712
  lt_cv_prog_gnu_ld=no
 
11713
  ;;
 
11714
esac
 
11715
fi
 
11716
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11717
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11718
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11719
 
 
11720
 
 
11721
 
 
11722
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11723
  # archiving commands below assume that GNU ld is being used.
 
11724
  if test "$with_gnu_ld" = yes; then
 
11725
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11726
    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'
 
11727
 
 
11728
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11729
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11730
 
 
11731
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11732
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11733
    #     investigate it a little bit more. (MM)
 
11734
    wlarc='${wl}'
 
11735
 
 
11736
    # ancient GNU ld didn't support --whole-archive et. al.
 
11737
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11738
        grep 'no-whole-archive' > /dev/null; then
 
11739
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11740
    else
 
11741
      whole_archive_flag_spec_CXX=
 
11742
    fi
 
11743
  else
 
11744
    with_gnu_ld=no
 
11745
    wlarc=
 
11746
 
 
11747
    # A generic and very simple default shared library creation
 
11748
    # command for GNU C++ for the case where it uses the native
 
11749
    # linker, instead of GNU ld.  If possible, this setting should
 
11750
    # overridden to take advantage of the native linker features on
 
11751
    # the platform it is being used on.
 
11752
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11753
  fi
 
11754
 
 
11755
  # Commands to make compiler produce verbose output that lists
 
11756
  # what "hidden" libraries, object files and flags are used when
 
11757
  # linking a shared library.
 
11758
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11759
 
 
11760
else
 
11761
  GXX=no
 
11762
  with_gnu_ld=no
 
11763
  wlarc=
 
11764
fi
 
11765
 
 
11766
# PORTME: fill in a description of your system's C++ link characteristics
 
11767
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11768
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11769
ld_shlibs_CXX=yes
 
11770
case $host_os in
 
11771
  aix3*)
 
11772
    # FIXME: insert proper C++ library support
 
11773
    ld_shlibs_CXX=no
 
11774
    ;;
 
11775
  aix[4-9]*)
 
11776
    if test "$host_cpu" = ia64; then
 
11777
      # On IA64, the linker does run time linking by default, so we don't
 
11778
      # have to do anything special.
 
11779
      aix_use_runtimelinking=no
 
11780
      exp_sym_flag='-Bexport'
 
11781
      no_entry_flag=""
 
11782
    else
 
11783
      aix_use_runtimelinking=no
 
11784
 
 
11785
      # Test if we are trying to use run time linking or normal
 
11786
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11787
      # need to do runtime linking.
 
11788
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11789
        for ld_flag in $LDFLAGS; do
 
11790
          case $ld_flag in
 
11791
          *-brtl*)
 
11792
            aix_use_runtimelinking=yes
 
11793
            break
 
11794
            ;;
 
11795
          esac
 
11796
        done
 
11797
        ;;
 
11798
      esac
 
11799
 
 
11800
      exp_sym_flag='-bexport'
 
11801
      no_entry_flag='-bnoentry'
 
11802
    fi
 
11803
 
 
11804
    # When large executables or shared objects are built, AIX ld can
 
11805
    # have problems creating the table of contents.  If linking a library
 
11806
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11807
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11808
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11809
 
 
11810
    archive_cmds_CXX=''
 
11811
    hardcode_direct_CXX=yes
 
11812
    hardcode_libdir_separator_CXX=':'
 
11813
    link_all_deplibs_CXX=yes
 
11814
 
 
11815
    if test "$GXX" = yes; then
 
11816
      case $host_os in aix4.[012]|aix4.[012].*)
 
11817
      # We only want to do this on AIX 4.2 and lower, the check
 
11818
      # below for broken collect2 doesn't work under 4.3+
 
11819
        collect2name=`${CC} -print-prog-name=collect2`
 
11820
        if test -f "$collect2name" && \
 
11821
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11822
        then
 
11823
          # We have reworked collect2
 
11824
          :
 
11825
        else
 
11826
          # We have old collect2
 
11827
          hardcode_direct_CXX=unsupported
 
11828
          # It fails to find uninstalled libraries when the uninstalled
 
11829
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11830
          # to unsupported forces relinking
 
11831
          hardcode_minus_L_CXX=yes
 
11832
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11833
          hardcode_libdir_separator_CXX=
 
11834
        fi
 
11835
        ;;
 
11836
      esac
 
11837
      shared_flag='-shared'
 
11838
      if test "$aix_use_runtimelinking" = yes; then
 
11839
        shared_flag="$shared_flag "'${wl}-G'
 
11840
      fi
 
11841
    else
 
11842
      # not using gcc
 
11843
      if test "$host_cpu" = ia64; then
 
11844
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11845
        # chokes on -Wl,-G. The following line is correct:
 
11846
        shared_flag='-G'
 
11847
      else
 
11848
        if test "$aix_use_runtimelinking" = yes; then
 
11849
          shared_flag='${wl}-G'
 
11850
        else
 
11851
          shared_flag='${wl}-bM:SRE'
 
11852
        fi
 
11853
      fi
 
11854
    fi
 
11855
 
 
11856
    # It seems that -bexpall does not export symbols beginning with
 
11857
    # underscore (_), so it is better to generate a list of symbols to export.
 
11858
    always_export_symbols_CXX=yes
 
11859
    if test "$aix_use_runtimelinking" = yes; then
 
11860
      # Warning - without using the other runtime loading flags (-brtl),
 
11861
      # -berok will link without error, but may produce a broken library.
 
11862
      allow_undefined_flag_CXX='-berok'
 
11863
      # Determine the default libpath from the value encoded in an empty executable.
 
11864
      cat >conftest.$ac_ext <<_ACEOF
 
11865
/* confdefs.h.  */
 
11866
_ACEOF
 
11867
cat confdefs.h >>conftest.$ac_ext
 
11868
cat >>conftest.$ac_ext <<_ACEOF
 
11869
/* end confdefs.h.  */
 
11870
 
 
11871
int
 
11872
main ()
 
11873
{
 
11874
 
 
11875
  ;
 
11876
  return 0;
 
11877
}
 
11878
_ACEOF
 
11879
rm -f conftest.$ac_objext conftest$ac_exeext
 
11880
if { (ac_try="$ac_link"
 
11881
case "(($ac_try" in
 
11882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11883
  *) ac_try_echo=$ac_try;;
 
11884
esac
 
11885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11886
  (eval "$ac_link") 2>conftest.er1
 
11887
  ac_status=$?
 
11888
  grep -v '^ *+' conftest.er1 >conftest.err
 
11889
  rm -f conftest.er1
 
11890
  cat conftest.err >&5
 
11891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11892
  (exit $ac_status); } && {
 
11893
         test -z "$ac_cxx_werror_flag" ||
 
11894
         test ! -s conftest.err
 
11895
       } && test -s conftest$ac_exeext &&
 
11896
       $as_test_x conftest$ac_exeext; then
 
11897
 
 
11898
lt_aix_libpath_sed='
 
11899
    /Import File Strings/,/^$/ {
 
11900
        /^0/ {
 
11901
            s/^0  *\(.*\)$/\1/
 
11902
            p
 
11903
        }
 
11904
    }'
 
11905
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11906
# Check for a 64-bit object if we didn't find anything.
 
11907
if test -z "$aix_libpath"; then
 
11908
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11909
fi
 
11910
else
 
11911
  echo "$as_me: failed program was:" >&5
 
11912
sed 's/^/| /' conftest.$ac_ext >&5
 
11913
 
 
11914
 
 
11915
fi
 
11916
 
 
11917
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11918
      conftest$ac_exeext conftest.$ac_ext
 
11919
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11920
 
 
11921
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11922
 
 
11923
      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"
 
11924
     else
 
11925
      if test "$host_cpu" = ia64; then
 
11926
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11927
        allow_undefined_flag_CXX="-z nodefs"
 
11928
        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"
 
11929
      else
 
11930
        # Determine the default libpath from the value encoded in an empty executable.
 
11931
        cat >conftest.$ac_ext <<_ACEOF
 
11932
/* confdefs.h.  */
 
11933
_ACEOF
 
11934
cat confdefs.h >>conftest.$ac_ext
 
11935
cat >>conftest.$ac_ext <<_ACEOF
 
11936
/* end confdefs.h.  */
 
11937
 
 
11938
int
 
11939
main ()
 
11940
{
 
11941
 
 
11942
  ;
 
11943
  return 0;
 
11944
}
 
11945
_ACEOF
 
11946
rm -f conftest.$ac_objext conftest$ac_exeext
 
11947
if { (ac_try="$ac_link"
 
11948
case "(($ac_try" in
 
11949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11950
  *) ac_try_echo=$ac_try;;
 
11951
esac
 
11952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11953
  (eval "$ac_link") 2>conftest.er1
 
11954
  ac_status=$?
 
11955
  grep -v '^ *+' conftest.er1 >conftest.err
 
11956
  rm -f conftest.er1
 
11957
  cat conftest.err >&5
 
11958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11959
  (exit $ac_status); } && {
 
11960
         test -z "$ac_cxx_werror_flag" ||
 
11961
         test ! -s conftest.err
 
11962
       } && test -s conftest$ac_exeext &&
 
11963
       $as_test_x conftest$ac_exeext; then
 
11964
 
 
11965
lt_aix_libpath_sed='
 
11966
    /Import File Strings/,/^$/ {
 
11967
        /^0/ {
 
11968
            s/^0  *\(.*\)$/\1/
 
11969
            p
 
11970
        }
 
11971
    }'
 
11972
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11973
# Check for a 64-bit object if we didn't find anything.
 
11974
if test -z "$aix_libpath"; then
 
11975
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11976
fi
 
11977
else
 
11978
  echo "$as_me: failed program was:" >&5
 
11979
sed 's/^/| /' conftest.$ac_ext >&5
 
11980
 
 
11981
 
 
11982
fi
 
11983
 
 
11984
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11985
      conftest$ac_exeext conftest.$ac_ext
 
11986
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11987
 
 
11988
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11989
        # Warning - without using the other run time loading flags,
 
11990
        # -berok will link without error, but may produce a broken library.
 
11991
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11992
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11993
        # Exported symbols can be pulled into shared objects from archives
 
11994
        whole_archive_flag_spec_CXX='$convenience'
 
11995
        archive_cmds_need_lc_CXX=yes
 
11996
        # This is similar to how AIX traditionally builds its shared libraries.
 
11997
        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'
 
11998
      fi
 
11999
    fi
 
12000
    ;;
 
12001
 
 
12002
  beos*)
 
12003
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12004
      allow_undefined_flag_CXX=unsupported
 
12005
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12006
      # support --undefined.  This deserves some investigation.  FIXME
 
12007
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12008
    else
 
12009
      ld_shlibs_CXX=no
 
12010
    fi
 
12011
    ;;
 
12012
 
 
12013
  chorus*)
 
12014
    case $cc_basename in
 
12015
      *)
 
12016
        # FIXME: insert proper C++ library support
 
12017
        ld_shlibs_CXX=no
 
12018
        ;;
 
12019
    esac
 
12020
    ;;
 
12021
 
 
12022
  cygwin* | mingw* | pw32*)
 
12023
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12024
    # as there is no search path for DLLs.
 
12025
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12026
    allow_undefined_flag_CXX=unsupported
 
12027
    always_export_symbols_CXX=no
 
12028
    enable_shared_with_static_runtimes_CXX=yes
 
12029
 
 
12030
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12031
      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'
 
12032
      # If the export-symbols file already is a .def file (1st line
 
12033
      # is EXPORTS), use it as is; otherwise, prepend...
 
12034
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12035
        cp $export_symbols $output_objdir/$soname.def;
 
12036
      else
 
12037
        echo EXPORTS > $output_objdir/$soname.def;
 
12038
        cat $export_symbols >> $output_objdir/$soname.def;
 
12039
      fi~
 
12040
      $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'
 
12041
    else
 
12042
      ld_shlibs_CXX=no
 
12043
    fi
 
12044
  ;;
 
12045
      darwin* | rhapsody*)
 
12046
      archive_cmds_need_lc_CXX=no
 
12047
      hardcode_direct_CXX=no
 
12048
      hardcode_automatic_CXX=yes
 
12049
      hardcode_shlibpath_var_CXX=unsupported
 
12050
      whole_archive_flag_spec_CXX=''
 
12051
      link_all_deplibs_CXX=yes
 
12052
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12053
      if test "$GXX" = yes ; then
 
12054
      output_verbose_link_cmd='echo'
 
12055
      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}"
 
12056
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12057
      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}"
 
12058
      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}"
 
12059
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12060
        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}"
 
12061
        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}"
 
12062
      fi
 
12063
      else
 
12064
      case $cc_basename in
 
12065
        xlc*)
 
12066
         output_verbose_link_cmd='echo'
 
12067
          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'
 
12068
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12069
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12070
          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}'
 
12071
          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}'
 
12072
          ;;
 
12073
       *)
 
12074
         ld_shlibs_CXX=no
 
12075
          ;;
 
12076
      esac
 
12077
      fi
 
12078
        ;;
 
12079
 
 
12080
  dgux*)
 
12081
    case $cc_basename in
 
12082
      ec++*)
 
12083
        # FIXME: insert proper C++ library support
 
12084
        ld_shlibs_CXX=no
 
12085
        ;;
 
12086
      ghcx*)
 
12087
        # Green Hills C++ Compiler
 
12088
        # FIXME: insert proper C++ library support
 
12089
        ld_shlibs_CXX=no
 
12090
        ;;
 
12091
      *)
 
12092
        # FIXME: insert proper C++ library support
 
12093
        ld_shlibs_CXX=no
 
12094
        ;;
 
12095
    esac
 
12096
    ;;
 
12097
  freebsd[12]*)
 
12098
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12099
    ld_shlibs_CXX=no
 
12100
    ;;
 
12101
  freebsd-elf*)
 
12102
    archive_cmds_need_lc_CXX=no
 
12103
    ;;
 
12104
  freebsd* | dragonfly*)
 
12105
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12106
    # conventions
 
12107
    ld_shlibs_CXX=yes
 
12108
    ;;
 
12109
  gnu*)
 
12110
    ;;
 
12111
  hpux9*)
 
12112
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12113
    hardcode_libdir_separator_CXX=:
 
12114
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12115
    hardcode_direct_CXX=yes
 
12116
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12117
                                # but as the default
 
12118
                                # location of the library.
 
12119
 
 
12120
    case $cc_basename in
 
12121
    CC*)
 
12122
      # FIXME: insert proper C++ library support
 
12123
      ld_shlibs_CXX=no
 
12124
      ;;
 
12125
    aCC*)
 
12126
      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'
 
12127
      # Commands to make compiler produce verbose output that lists
 
12128
      # what "hidden" libraries, object files and flags are used when
 
12129
      # linking a shared library.
 
12130
      #
 
12131
      # There doesn't appear to be a way to prevent this compiler from
 
12132
      # explicitly linking system object files so we need to strip them
 
12133
      # from the output so that they don't get included in the library
 
12134
      # dependencies.
 
12135
      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'
 
12136
      ;;
 
12137
    *)
 
12138
      if test "$GXX" = yes; then
 
12139
        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'
 
12140
      else
 
12141
        # FIXME: insert proper C++ library support
 
12142
        ld_shlibs_CXX=no
 
12143
      fi
 
12144
      ;;
 
12145
    esac
 
12146
    ;;
 
12147
  hpux10*|hpux11*)
 
12148
    if test $with_gnu_ld = no; then
 
12149
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12150
      hardcode_libdir_separator_CXX=:
 
12151
 
 
12152
      case $host_cpu in
 
12153
      hppa*64*|ia64*) ;;
 
12154
      *)
 
12155
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12156
        ;;
 
12157
      esac
 
12158
    fi
 
12159
    case $host_cpu in
 
12160
    hppa*64*|ia64*)
 
12161
      hardcode_direct_CXX=no
 
12162
      hardcode_shlibpath_var_CXX=no
 
12163
      ;;
 
12164
    *)
 
12165
      hardcode_direct_CXX=yes
 
12166
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12167
                                              # but as the default
 
12168
                                              # location of the library.
 
12169
      ;;
 
12170
    esac
 
12171
 
 
12172
    case $cc_basename in
 
12173
      CC*)
 
12174
        # FIXME: insert proper C++ library support
 
12175
        ld_shlibs_CXX=no
 
12176
        ;;
 
12177
      aCC*)
 
12178
        case $host_cpu in
 
12179
        hppa*64*)
 
12180
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12181
          ;;
 
12182
        ia64*)
 
12183
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12184
          ;;
 
12185
        *)
 
12186
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12187
          ;;
 
12188
        esac
 
12189
        # Commands to make compiler produce verbose output that lists
 
12190
        # what "hidden" libraries, object files and flags are used when
 
12191
        # linking a shared library.
 
12192
        #
 
12193
        # There doesn't appear to be a way to prevent this compiler from
 
12194
        # explicitly linking system object files so we need to strip them
 
12195
        # from the output so that they don't get included in the library
 
12196
        # dependencies.
 
12197
        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'
 
12198
        ;;
 
12199
      *)
 
12200
        if test "$GXX" = yes; then
 
12201
          if test $with_gnu_ld = no; then
 
12202
            case $host_cpu in
 
12203
            hppa*64*)
 
12204
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12205
              ;;
 
12206
            ia64*)
 
12207
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12208
              ;;
 
12209
            *)
 
12210
              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'
 
12211
              ;;
 
12212
            esac
 
12213
          fi
 
12214
        else
 
12215
          # FIXME: insert proper C++ library support
 
12216
          ld_shlibs_CXX=no
 
12217
        fi
 
12218
        ;;
 
12219
    esac
 
12220
    ;;
 
12221
  interix[3-9]*)
 
12222
    hardcode_direct_CXX=no
 
12223
    hardcode_shlibpath_var_CXX=no
 
12224
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12225
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12226
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12227
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12228
    # default) and relocated if they conflict, which is a slow very memory
 
12229
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12230
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12231
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12232
    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'
 
12233
    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'
 
12234
    ;;
 
12235
  irix5* | irix6*)
 
12236
    case $cc_basename in
 
12237
      CC*)
 
12238
        # SGI C++
 
12239
        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'
 
12240
 
 
12241
        # Archives containing C++ object files must be created using
 
12242
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12243
        # necessary to make sure instantiated templates are included
 
12244
        # in the archive.
 
12245
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12246
        ;;
 
12247
      *)
 
12248
        if test "$GXX" = yes; then
 
12249
          if test "$with_gnu_ld" = no; then
 
12250
            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'
 
12251
          else
 
12252
            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'
 
12253
          fi
 
12254
        fi
 
12255
        link_all_deplibs_CXX=yes
 
12256
        ;;
 
12257
    esac
 
12258
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12259
    hardcode_libdir_separator_CXX=:
 
12260
    ;;
 
12261
  linux* | k*bsd*-gnu)
 
12262
    case $cc_basename in
 
12263
      KCC*)
 
12264
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12265
 
 
12266
        # KCC will only create a shared library if the output file
 
12267
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12268
        # to its proper name (with version) after linking.
 
12269
        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'
 
12270
        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'
 
12271
        # Commands to make compiler produce verbose output that lists
 
12272
        # what "hidden" libraries, object files and flags are used when
 
12273
        # linking a shared library.
 
12274
        #
 
12275
        # There doesn't appear to be a way to prevent this compiler from
 
12276
        # explicitly linking system object files so we need to strip them
 
12277
        # from the output so that they don't get included in the library
 
12278
        # dependencies.
 
12279
        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'
 
12280
 
 
12281
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12282
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12283
 
 
12284
        # Archives containing C++ object files must be created using
 
12285
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12286
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12287
        ;;
 
12288
      icpc*)
 
12289
        # Intel C++
 
12290
        with_gnu_ld=yes
 
12291
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12292
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12293
        # earlier do not add the objects themselves.
 
12294
        case `$CC -V 2>&1` in
 
12295
        *"Version 7."*)
 
12296
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12297
          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'
 
12298
          ;;
 
12299
        *)  # Version 8.0 or newer
 
12300
          tmp_idyn=
 
12301
          case $host_cpu in
 
12302
            ia64*) tmp_idyn=' -i_dynamic';;
 
12303
          esac
 
12304
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12305
          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'
 
12306
          ;;
 
12307
        esac
 
12308
        archive_cmds_need_lc_CXX=no
 
12309
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12310
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12311
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12312
        ;;
 
12313
      pgCC* | pgcpp*)
 
12314
        # Portland Group C++ compiler
 
12315
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12316
        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'
 
12317
 
 
12318
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12319
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12320
        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'
 
12321
        ;;
 
12322
      cxx*)
 
12323
        # Compaq C++
 
12324
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12325
        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'
 
12326
 
 
12327
        runpath_var=LD_RUN_PATH
 
12328
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12329
        hardcode_libdir_separator_CXX=:
 
12330
 
 
12331
        # Commands to make compiler produce verbose output that lists
 
12332
        # what "hidden" libraries, object files and flags are used when
 
12333
        # linking a shared library.
 
12334
        #
 
12335
        # There doesn't appear to be a way to prevent this compiler from
 
12336
        # explicitly linking system object files so we need to strip them
 
12337
        # from the output so that they don't get included in the library
 
12338
        # dependencies.
 
12339
        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'
 
12340
        ;;
 
12341
      *)
 
12342
        case `$CC -V 2>&1 | sed 5q` in
 
12343
        *Sun\ C*)
 
12344
          # Sun C++ 5.9
 
12345
          no_undefined_flag_CXX=' -zdefs'
 
12346
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12347
          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'
 
12348
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12349
          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'
 
12350
 
 
12351
          # Not sure whether something based on
 
12352
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12353
          # would be better.
 
12354
          output_verbose_link_cmd='echo'
 
12355
 
 
12356
          # Archives containing C++ object files must be created using
 
12357
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12358
          # necessary to make sure instantiated templates are included
 
12359
          # in the archive.
 
12360
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12361
          ;;
 
12362
        esac
 
12363
        ;;
 
12364
    esac
 
12365
    ;;
 
12366
  lynxos*)
 
12367
    # FIXME: insert proper C++ library support
 
12368
    ld_shlibs_CXX=no
 
12369
    ;;
 
12370
  m88k*)
 
12371
    # FIXME: insert proper C++ library support
 
12372
    ld_shlibs_CXX=no
 
12373
    ;;
 
12374
  mvs*)
 
12375
    case $cc_basename in
 
12376
      cxx*)
 
12377
        # FIXME: insert proper C++ library support
 
12378
        ld_shlibs_CXX=no
 
12379
        ;;
 
12380
      *)
 
12381
        # FIXME: insert proper C++ library support
 
12382
        ld_shlibs_CXX=no
 
12383
        ;;
 
12384
    esac
 
12385
    ;;
 
12386
  netbsd* | netbsdelf*-gnu)
 
12387
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12388
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12389
      wlarc=
 
12390
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12391
      hardcode_direct_CXX=yes
 
12392
      hardcode_shlibpath_var_CXX=no
 
12393
    fi
 
12394
    # Workaround some broken pre-1.5 toolchains
 
12395
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12396
    ;;
 
12397
  openbsd2*)
 
12398
    # C++ shared libraries are fairly broken
 
12399
    ld_shlibs_CXX=no
 
12400
    ;;
 
12401
  openbsd*)
 
12402
    if test -f /usr/libexec/ld.so; then
 
12403
      hardcode_direct_CXX=yes
 
12404
      hardcode_shlibpath_var_CXX=no
 
12405
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12406
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12407
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12408
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12409
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12410
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12411
      fi
 
12412
      output_verbose_link_cmd='echo'
 
12413
    else
 
12414
      ld_shlibs_CXX=no
 
12415
    fi
 
12416
    ;;
 
12417
  osf3*)
 
12418
    case $cc_basename in
 
12419
      KCC*)
 
12420
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12421
 
 
12422
        # KCC will only create a shared library if the output file
 
12423
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12424
        # to its proper name (with version) after linking.
 
12425
        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'
 
12426
 
 
12427
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12428
        hardcode_libdir_separator_CXX=:
 
12429
 
 
12430
        # Archives containing C++ object files must be created using
 
12431
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12432
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12433
 
 
12434
        ;;
 
12435
      RCC*)
 
12436
        # Rational C++ 2.4.1
 
12437
        # FIXME: insert proper C++ library support
 
12438
        ld_shlibs_CXX=no
 
12439
        ;;
 
12440
      cxx*)
 
12441
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12442
        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'
 
12443
 
 
12444
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12445
        hardcode_libdir_separator_CXX=:
 
12446
 
 
12447
        # Commands to make compiler produce verbose output that lists
 
12448
        # what "hidden" libraries, object files and flags are used when
 
12449
        # linking a shared library.
 
12450
        #
 
12451
        # There doesn't appear to be a way to prevent this compiler from
 
12452
        # explicitly linking system object files so we need to strip them
 
12453
        # from the output so that they don't get included in the library
 
12454
        # dependencies.
 
12455
        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'
 
12456
        ;;
 
12457
      *)
 
12458
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12459
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12460
          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'
 
12461
 
 
12462
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12463
          hardcode_libdir_separator_CXX=:
 
12464
 
 
12465
          # Commands to make compiler produce verbose output that lists
 
12466
          # what "hidden" libraries, object files and flags are used when
 
12467
          # linking a shared library.
 
12468
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12469
 
 
12470
        else
 
12471
          # FIXME: insert proper C++ library support
 
12472
          ld_shlibs_CXX=no
 
12473
        fi
 
12474
        ;;
 
12475
    esac
 
12476
    ;;
 
12477
  osf4* | osf5*)
 
12478
    case $cc_basename in
 
12479
      KCC*)
 
12480
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12481
 
 
12482
        # KCC will only create a shared library if the output file
 
12483
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12484
        # to its proper name (with version) after linking.
 
12485
        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'
 
12486
 
 
12487
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12488
        hardcode_libdir_separator_CXX=:
 
12489
 
 
12490
        # Archives containing C++ object files must be created using
 
12491
        # the KAI C++ compiler.
 
12492
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12493
        ;;
 
12494
      RCC*)
 
12495
        # Rational C++ 2.4.1
 
12496
        # FIXME: insert proper C++ library support
 
12497
        ld_shlibs_CXX=no
 
12498
        ;;
 
12499
      cxx*)
 
12500
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12501
        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'
 
12502
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12503
          echo "-hidden">> $lib.exp~
 
12504
          $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~
 
12505
          $rm $lib.exp'
 
12506
 
 
12507
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12508
        hardcode_libdir_separator_CXX=:
 
12509
 
 
12510
        # Commands to make compiler produce verbose output that lists
 
12511
        # what "hidden" libraries, object files and flags are used when
 
12512
        # linking a shared library.
 
12513
        #
 
12514
        # There doesn't appear to be a way to prevent this compiler from
 
12515
        # explicitly linking system object files so we need to strip them
 
12516
        # from the output so that they don't get included in the library
 
12517
        # dependencies.
 
12518
        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'
 
12519
        ;;
 
12520
      *)
 
12521
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12522
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12523
         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'
 
12524
 
 
12525
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12526
          hardcode_libdir_separator_CXX=:
 
12527
 
 
12528
          # Commands to make compiler produce verbose output that lists
 
12529
          # what "hidden" libraries, object files and flags are used when
 
12530
          # linking a shared library.
 
12531
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12532
 
 
12533
        else
 
12534
          # FIXME: insert proper C++ library support
 
12535
          ld_shlibs_CXX=no
 
12536
        fi
 
12537
        ;;
 
12538
    esac
 
12539
    ;;
 
12540
  psos*)
 
12541
    # FIXME: insert proper C++ library support
 
12542
    ld_shlibs_CXX=no
 
12543
    ;;
 
12544
  sunos4*)
 
12545
    case $cc_basename in
 
12546
      CC*)
 
12547
        # Sun C++ 4.x
 
12548
        # FIXME: insert proper C++ library support
 
12549
        ld_shlibs_CXX=no
 
12550
        ;;
 
12551
      lcc*)
 
12552
        # Lucid
 
12553
        # FIXME: insert proper C++ library support
 
12554
        ld_shlibs_CXX=no
 
12555
        ;;
 
12556
      *)
 
12557
        # FIXME: insert proper C++ library support
 
12558
        ld_shlibs_CXX=no
 
12559
        ;;
 
12560
    esac
 
12561
    ;;
 
12562
  solaris*)
 
12563
    case $cc_basename in
 
12564
      CC*)
 
12565
        # Sun C++ 4.2, 5.x and Centerline C++
 
12566
        archive_cmds_need_lc_CXX=yes
 
12567
        no_undefined_flag_CXX=' -zdefs'
 
12568
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12569
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12570
        $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'
 
12571
 
 
12572
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12573
        hardcode_shlibpath_var_CXX=no
 
12574
        case $host_os in
 
12575
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12576
          *)
 
12577
            # The compiler driver will combine and reorder linker options,
 
12578
            # but understands `-z linker_flag'.
 
12579
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12580
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12581
            ;;
 
12582
        esac
 
12583
        link_all_deplibs_CXX=yes
 
12584
 
 
12585
        output_verbose_link_cmd='echo'
 
12586
 
 
12587
        # Archives containing C++ object files must be created using
 
12588
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12589
        # necessary to make sure instantiated templates are included
 
12590
        # in the archive.
 
12591
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12592
        ;;
 
12593
      gcx*)
 
12594
        # Green Hills C++ Compiler
 
12595
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12596
 
 
12597
        # The C++ compiler must be used to create the archive.
 
12598
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12599
        ;;
 
12600
      *)
 
12601
        # GNU C++ compiler with Solaris linker
 
12602
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12603
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12604
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12605
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12606
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12607
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12608
 
 
12609
            # Commands to make compiler produce verbose output that lists
 
12610
            # what "hidden" libraries, object files and flags are used when
 
12611
            # linking a shared library.
 
12612
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12613
          else
 
12614
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12615
            # platform.
 
12616
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12617
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12618
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12619
 
 
12620
            # Commands to make compiler produce verbose output that lists
 
12621
            # what "hidden" libraries, object files and flags are used when
 
12622
            # linking a shared library.
 
12623
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12624
          fi
 
12625
 
 
12626
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12627
          case $host_os in
 
12628
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12629
          *)
 
12630
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12631
            ;;
 
12632
          esac
 
12633
        fi
 
12634
        ;;
 
12635
    esac
 
12636
    ;;
 
12637
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12638
    no_undefined_flag_CXX='${wl}-z,text'
 
12639
    archive_cmds_need_lc_CXX=no
 
12640
    hardcode_shlibpath_var_CXX=no
 
12641
    runpath_var='LD_RUN_PATH'
 
12642
 
 
12643
    case $cc_basename in
 
12644
      CC*)
 
12645
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12646
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12647
        ;;
 
12648
      *)
 
12649
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12650
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12651
        ;;
 
12652
    esac
 
12653
    ;;
 
12654
  sysv5* | sco3.2v5* | sco5v6*)
 
12655
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12656
    # link with -lc, and that would cause any symbols used from libc to
 
12657
    # always be unresolved, which means just about no library would
 
12658
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12659
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12660
    # as -z defs.
 
12661
    # For security reasons, it is highly recommended that you always
 
12662
    # use absolute paths for naming shared libraries, and exclude the
 
12663
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12664
    # requires that you compile everything twice, which is a pain.
 
12665
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12666
    # non-empty value in the environment.  Most likely only useful for
 
12667
    # creating official distributions of packages.
 
12668
    # This is a hack until libtool officially supports absolute path
 
12669
    # names for shared libraries.
 
12670
    no_undefined_flag_CXX='${wl}-z,text'
 
12671
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12672
    archive_cmds_need_lc_CXX=no
 
12673
    hardcode_shlibpath_var_CXX=no
 
12674
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12675
    hardcode_libdir_separator_CXX=':'
 
12676
    link_all_deplibs_CXX=yes
 
12677
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12678
    runpath_var='LD_RUN_PATH'
 
12679
 
 
12680
    case $cc_basename in
 
12681
      CC*)
 
12682
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12683
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12684
        ;;
 
12685
      *)
 
12686
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12687
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12688
        ;;
 
12689
    esac
 
12690
    ;;
 
12691
  tandem*)
 
12692
    case $cc_basename in
 
12693
      NCC*)
 
12694
        # NonStop-UX NCC 3.20
 
12695
        # FIXME: insert proper C++ library support
 
12696
        ld_shlibs_CXX=no
 
12697
        ;;
 
12698
      *)
 
12699
        # FIXME: insert proper C++ library support
 
12700
        ld_shlibs_CXX=no
 
12701
        ;;
 
12702
    esac
 
12703
    ;;
 
12704
  vxworks*)
 
12705
    # FIXME: insert proper C++ library support
 
12706
    ld_shlibs_CXX=no
 
12707
    ;;
 
12708
  *)
 
12709
    # FIXME: insert proper C++ library support
 
12710
    ld_shlibs_CXX=no
 
12711
    ;;
 
12712
esac
 
12713
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12714
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12715
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12716
 
 
12717
GCC_CXX="$GXX"
 
12718
LD_CXX="$LD"
 
12719
 
 
12720
cat > conftest.$ac_ext <<EOF
 
12721
class Foo
 
12722
{
 
12723
public:
 
12724
  Foo (void) { a = 0; }
 
12725
private:
 
12726
  int a;
 
12727
};
 
12728
EOF
 
12729
 
 
12730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12731
  (eval $ac_compile) 2>&5
 
12732
  ac_status=$?
 
12733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12734
  (exit $ac_status); }; then
 
12735
  # Parse the compiler output and extract the necessary
 
12736
  # objects, libraries and library flags.
 
12737
 
 
12738
  # Sentinel used to keep track of whether or not we are before
 
12739
  # the conftest object file.
 
12740
  pre_test_object_deps_done=no
 
12741
 
 
12742
  # The `*' in the case matches for architectures that use `case' in
 
12743
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12744
  # eval without this substitution.
 
12745
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12746
 
 
12747
  for p in `eval $output_verbose_link_cmd`; do
 
12748
    case $p in
 
12749
 
 
12750
    -L* | -R* | -l*)
 
12751
       # Some compilers place space between "-{L,R}" and the path.
 
12752
       # Remove the space.
 
12753
       if test $p = "-L" \
 
12754
          || test $p = "-R"; then
 
12755
         prev=$p
 
12756
         continue
 
12757
       else
 
12758
         prev=
 
12759
       fi
 
12760
 
 
12761
       if test "$pre_test_object_deps_done" = no; then
 
12762
         case $p in
 
12763
         -L* | -R*)
 
12764
           # Internal compiler library paths should come after those
 
12765
           # provided the user.  The postdeps already come after the
 
12766
           # user supplied libs so there is no need to process them.
 
12767
           if test -z "$compiler_lib_search_path_CXX"; then
 
12768
             compiler_lib_search_path_CXX="${prev}${p}"
 
12769
           else
 
12770
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12771
           fi
 
12772
           ;;
 
12773
         # The "-l" case would never come before the object being
 
12774
         # linked, so don't bother handling this case.
 
12775
         esac
 
12776
       else
 
12777
         if test -z "$postdeps_CXX"; then
 
12778
           postdeps_CXX="${prev}${p}"
 
12779
         else
 
12780
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12781
         fi
 
12782
       fi
 
12783
       ;;
 
12784
 
 
12785
    *.$objext)
 
12786
       # This assumes that the test object file only shows up
 
12787
       # once in the compiler output.
 
12788
       if test "$p" = "conftest.$objext"; then
 
12789
         pre_test_object_deps_done=yes
 
12790
         continue
 
12791
       fi
 
12792
 
 
12793
       if test "$pre_test_object_deps_done" = no; then
 
12794
         if test -z "$predep_objects_CXX"; then
 
12795
           predep_objects_CXX="$p"
 
12796
         else
 
12797
           predep_objects_CXX="$predep_objects_CXX $p"
 
12798
         fi
 
12799
       else
 
12800
         if test -z "$postdep_objects_CXX"; then
 
12801
           postdep_objects_CXX="$p"
 
12802
         else
 
12803
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12804
         fi
 
12805
       fi
 
12806
       ;;
 
12807
 
 
12808
    *) ;; # Ignore the rest.
 
12809
 
 
12810
    esac
 
12811
  done
 
12812
 
 
12813
  # Clean up.
 
12814
  rm -f a.out a.exe
 
12815
else
 
12816
  echo "libtool.m4: error: problem compiling CXX test program"
 
12817
fi
 
12818
 
 
12819
$rm -f confest.$objext
 
12820
 
 
12821
compiler_lib_search_dirs_CXX=
 
12822
if test -n "$compiler_lib_search_path_CXX"; then
 
12823
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12824
fi
 
12825
 
 
12826
# PORTME: override above test on systems where it is broken
 
12827
case $host_os in
 
12828
interix[3-9]*)
 
12829
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12830
  # hack all around it, let's just trust "g++" to DTRT.
 
12831
  predep_objects_CXX=
 
12832
  postdep_objects_CXX=
 
12833
  postdeps_CXX=
 
12834
  ;;
 
12835
 
 
12836
linux*)
 
12837
  case `$CC -V 2>&1 | sed 5q` in
 
12838
  *Sun\ C*)
 
12839
    # Sun C++ 5.9
 
12840
    #
 
12841
    # The more standards-conforming stlport4 library is
 
12842
    # incompatible with the Cstd library. Avoid specifying
 
12843
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12844
    # -library=stlport4 depends on it.
 
12845
    case " $CXX $CXXFLAGS " in
 
12846
    *" -library=stlport4 "*)
 
12847
      solaris_use_stlport4=yes
 
12848
      ;;
 
12849
    esac
 
12850
    if test "$solaris_use_stlport4" != yes; then
 
12851
      postdeps_CXX='-library=Cstd -library=Crun'
 
12852
    fi
 
12853
    ;;
 
12854
  esac
 
12855
  ;;
 
12856
 
 
12857
solaris*)
 
12858
  case $cc_basename in
 
12859
  CC*)
 
12860
    # The more standards-conforming stlport4 library is
 
12861
    # incompatible with the Cstd library. Avoid specifying
 
12862
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12863
    # -library=stlport4 depends on it.
 
12864
    case " $CXX $CXXFLAGS " in
 
12865
    *" -library=stlport4 "*)
 
12866
      solaris_use_stlport4=yes
 
12867
      ;;
 
12868
    esac
 
12869
 
 
12870
    # Adding this requires a known-good setup of shared libraries for
 
12871
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12872
    # archive will be linked into the output, leading to subtle bugs.
 
12873
    if test "$solaris_use_stlport4" != yes; then
 
12874
      postdeps_CXX='-library=Cstd -library=Crun'
 
12875
    fi
 
12876
    ;;
 
12877
  esac
 
12878
  ;;
 
12879
esac
 
12880
 
 
12881
case " $postdeps_CXX " in
 
12882
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12883
esac
 
12884
 
 
12885
lt_prog_compiler_wl_CXX=
 
12886
lt_prog_compiler_pic_CXX=
 
12887
lt_prog_compiler_static_CXX=
 
12888
 
 
12889
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12890
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12891
 
 
12892
  # C++ specific cases for pic, static, wl, etc.
 
12893
  if test "$GXX" = yes; then
 
12894
    lt_prog_compiler_wl_CXX='-Wl,'
 
12895
    lt_prog_compiler_static_CXX='-static'
 
12896
 
 
12897
    case $host_os in
 
12898
    aix*)
 
12899
      # All AIX code is PIC.
 
12900
      if test "$host_cpu" = ia64; then
 
12901
        # AIX 5 now supports IA64 processor
 
12902
        lt_prog_compiler_static_CXX='-Bstatic'
 
12903
      fi
 
12904
      ;;
 
12905
    amigaos*)
 
12906
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12907
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12908
      # like `-m68040'.
 
12909
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12910
      ;;
 
12911
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12912
      # PIC is the default for these OSes.
 
12913
      ;;
 
12914
    mingw* | cygwin* | os2* | pw32*)
 
12915
      # This hack is so that the source file can tell whether it is being
 
12916
      # built for inclusion in a dll (and should export symbols for example).
 
12917
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12918
      # (--disable-auto-import) libraries
 
12919
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12920
      ;;
 
12921
    darwin* | rhapsody*)
 
12922
      # PIC is the default on this platform
 
12923
      # Common symbols not allowed in MH_DYLIB files
 
12924
      lt_prog_compiler_pic_CXX='-fno-common'
 
12925
      ;;
 
12926
    *djgpp*)
 
12927
      # DJGPP does not support shared libraries at all
 
12928
      lt_prog_compiler_pic_CXX=
 
12929
      ;;
 
12930
    interix[3-9]*)
 
12931
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12932
      # Instead, we relocate shared libraries at runtime.
 
12933
      ;;
 
12934
    sysv4*MP*)
 
12935
      if test -d /usr/nec; then
 
12936
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12937
      fi
 
12938
      ;;
 
12939
    hpux*)
 
12940
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12941
      # not for PA HP-UX.
 
12942
      case $host_cpu in
 
12943
      hppa*64*|ia64*)
 
12944
        ;;
 
12945
      *)
 
12946
        lt_prog_compiler_pic_CXX='-fPIC'
 
12947
        ;;
 
12948
      esac
 
12949
      ;;
 
12950
    *)
 
12951
      lt_prog_compiler_pic_CXX='-fPIC'
 
12952
      ;;
 
12953
    esac
 
12954
  else
 
12955
    case $host_os in
 
12956
      aix[4-9]*)
 
12957
        # All AIX code is PIC.
 
12958
        if test "$host_cpu" = ia64; then
 
12959
          # AIX 5 now supports IA64 processor
 
12960
          lt_prog_compiler_static_CXX='-Bstatic'
 
12961
        else
 
12962
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12963
        fi
 
12964
        ;;
 
12965
      chorus*)
 
12966
        case $cc_basename in
 
12967
        cxch68*)
 
12968
          # Green Hills C++ Compiler
 
12969
          # _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"
 
12970
          ;;
 
12971
        esac
 
12972
        ;;
 
12973
       darwin*)
 
12974
         # PIC is the default on this platform
 
12975
         # Common symbols not allowed in MH_DYLIB files
 
12976
         case $cc_basename in
 
12977
           xlc*)
 
12978
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12979
           lt_prog_compiler_wl_CXX='-Wl,'
 
12980
           ;;
 
12981
         esac
 
12982
       ;;
 
12983
      dgux*)
 
12984
        case $cc_basename in
 
12985
          ec++*)
 
12986
            lt_prog_compiler_pic_CXX='-KPIC'
 
12987
            ;;
 
12988
          ghcx*)
 
12989
            # Green Hills C++ Compiler
 
12990
            lt_prog_compiler_pic_CXX='-pic'
 
12991
            ;;
 
12992
          *)
 
12993
            ;;
 
12994
        esac
 
12995
        ;;
 
12996
      freebsd* | dragonfly*)
 
12997
        # FreeBSD uses GNU C++
 
12998
        ;;
 
12999
      hpux9* | hpux10* | hpux11*)
 
13000
        case $cc_basename in
 
13001
          CC*)
 
13002
            lt_prog_compiler_wl_CXX='-Wl,'
 
13003
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13004
            if test "$host_cpu" != ia64; then
 
13005
              lt_prog_compiler_pic_CXX='+Z'
 
13006
            fi
 
13007
            ;;
 
13008
          aCC*)
 
13009
            lt_prog_compiler_wl_CXX='-Wl,'
 
13010
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13011
            case $host_cpu in
 
13012
            hppa*64*|ia64*)
 
13013
              # +Z the default
 
13014
              ;;
 
13015
            *)
 
13016
              lt_prog_compiler_pic_CXX='+Z'
 
13017
              ;;
 
13018
            esac
 
13019
            ;;
 
13020
          *)
 
13021
            ;;
 
13022
        esac
 
13023
        ;;
 
13024
      interix*)
 
13025
        # This is c89, which is MS Visual C++ (no shared libs)
 
13026
        # Anyone wants to do a port?
 
13027
        ;;
 
13028
      irix5* | irix6* | nonstopux*)
 
13029
        case $cc_basename in
 
13030
          CC*)
 
13031
            lt_prog_compiler_wl_CXX='-Wl,'
 
13032
            lt_prog_compiler_static_CXX='-non_shared'
 
13033
            # CC pic flag -KPIC is the default.
 
13034
            ;;
 
13035
          *)
 
13036
            ;;
 
13037
        esac
 
13038
        ;;
 
13039
      linux* | k*bsd*-gnu)
 
13040
        case $cc_basename in
 
13041
          KCC*)
 
13042
            # KAI C++ Compiler
 
13043
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13044
            lt_prog_compiler_pic_CXX='-fPIC'
 
13045
            ;;
 
13046
          icpc* | ecpc*)
 
13047
            # Intel C++
 
13048
            lt_prog_compiler_wl_CXX='-Wl,'
 
13049
            lt_prog_compiler_pic_CXX='-KPIC'
 
13050
            lt_prog_compiler_static_CXX='-static'
 
13051
            ;;
 
13052
          pgCC* | pgcpp*)
 
13053
            # Portland Group C++ compiler.
 
13054
            lt_prog_compiler_wl_CXX='-Wl,'
 
13055
            lt_prog_compiler_pic_CXX='-fpic'
 
13056
            lt_prog_compiler_static_CXX='-Bstatic'
 
13057
            ;;
 
13058
          cxx*)
 
13059
            # Compaq C++
 
13060
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13061
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13062
            lt_prog_compiler_pic_CXX=
 
13063
            lt_prog_compiler_static_CXX='-non_shared'
 
13064
            ;;
 
13065
          *)
 
13066
            case `$CC -V 2>&1 | sed 5q` in
 
13067
            *Sun\ C*)
 
13068
              # Sun C++ 5.9
 
13069
              lt_prog_compiler_pic_CXX='-KPIC'
 
13070
              lt_prog_compiler_static_CXX='-Bstatic'
 
13071
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13072
              ;;
 
13073
            esac
 
13074
            ;;
 
13075
        esac
 
13076
        ;;
 
13077
      lynxos*)
 
13078
        ;;
 
13079
      m88k*)
 
13080
        ;;
 
13081
      mvs*)
 
13082
        case $cc_basename in
 
13083
          cxx*)
 
13084
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13085
            ;;
 
13086
          *)
 
13087
            ;;
 
13088
        esac
 
13089
        ;;
 
13090
      netbsd* | netbsdelf*-gnu)
 
13091
        ;;
 
13092
      osf3* | osf4* | osf5*)
 
13093
        case $cc_basename in
 
13094
          KCC*)
 
13095
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13096
            ;;
 
13097
          RCC*)
 
13098
            # Rational C++ 2.4.1
 
13099
            lt_prog_compiler_pic_CXX='-pic'
 
13100
            ;;
 
13101
          cxx*)
 
13102
            # Digital/Compaq C++
 
13103
            lt_prog_compiler_wl_CXX='-Wl,'
 
13104
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13105
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13106
            lt_prog_compiler_pic_CXX=
 
13107
            lt_prog_compiler_static_CXX='-non_shared'
 
13108
            ;;
 
13109
          *)
 
13110
            ;;
 
13111
        esac
 
13112
        ;;
 
13113
      psos*)
 
13114
        ;;
 
13115
      solaris*)
 
13116
        case $cc_basename in
 
13117
          CC*)
 
13118
            # Sun C++ 4.2, 5.x and Centerline C++
 
13119
            lt_prog_compiler_pic_CXX='-KPIC'
 
13120
            lt_prog_compiler_static_CXX='-Bstatic'
 
13121
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13122
            ;;
 
13123
          gcx*)
 
13124
            # Green Hills C++ Compiler
 
13125
            lt_prog_compiler_pic_CXX='-PIC'
 
13126
            ;;
 
13127
          *)
 
13128
            ;;
 
13129
        esac
 
13130
        ;;
 
13131
      sunos4*)
 
13132
        case $cc_basename in
 
13133
          CC*)
 
13134
            # Sun C++ 4.x
 
13135
            lt_prog_compiler_pic_CXX='-pic'
 
13136
            lt_prog_compiler_static_CXX='-Bstatic'
 
13137
            ;;
 
13138
          lcc*)
 
13139
            # Lucid
 
13140
            lt_prog_compiler_pic_CXX='-pic'
 
13141
            ;;
 
13142
          *)
 
13143
            ;;
 
13144
        esac
 
13145
        ;;
 
13146
      tandem*)
 
13147
        case $cc_basename in
 
13148
          NCC*)
 
13149
            # NonStop-UX NCC 3.20
 
13150
            lt_prog_compiler_pic_CXX='-KPIC'
 
13151
            ;;
 
13152
          *)
 
13153
            ;;
 
13154
        esac
 
13155
        ;;
 
13156
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13157
        case $cc_basename in
 
13158
          CC*)
 
13159
            lt_prog_compiler_wl_CXX='-Wl,'
 
13160
            lt_prog_compiler_pic_CXX='-KPIC'
 
13161
            lt_prog_compiler_static_CXX='-Bstatic'
 
13162
            ;;
 
13163
        esac
 
13164
        ;;
 
13165
      vxworks*)
 
13166
        ;;
 
13167
      *)
 
13168
        lt_prog_compiler_can_build_shared_CXX=no
 
13169
        ;;
 
13170
    esac
 
13171
  fi
 
13172
 
 
13173
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13174
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
13175
 
 
13176
#
 
13177
# Check to make sure the PIC flag actually works.
 
13178
#
 
13179
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13180
 
 
13181
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13182
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
13183
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
13184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13185
else
 
13186
  lt_cv_prog_compiler_pic_works_CXX=no
 
13187
  ac_outfile=conftest.$ac_objext
 
13188
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13189
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13190
   # Insert the option either (1) after the last *FLAGS variable, or
 
13191
   # (2) before a word containing "conftest.", or (3) at the end.
 
13192
   # Note that $ac_compile itself does not contain backslashes and begins
 
13193
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13194
   # The option is referenced via a variable to avoid confusing sed.
 
13195
   lt_compile=`echo "$ac_compile" | $SED \
 
13196
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13197
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13198
   -e 's:$: $lt_compiler_flag:'`
 
13199
   (eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
 
13200
   (eval "$lt_compile" 2>conftest.err)
 
13201
   ac_status=$?
 
13202
   cat conftest.err >&5
 
13203
   echo "$as_me:13203: \$? = $ac_status" >&5
 
13204
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13205
     # The compiler can only warn and ignore the option if not recognized
 
13206
     # So say no if there are warnings other than the usual output.
 
13207
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13208
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13209
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13210
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13211
     fi
 
13212
   fi
 
13213
   $rm conftest*
 
13214
 
 
13215
fi
 
13216
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13217
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13218
 
 
13219
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13220
    case $lt_prog_compiler_pic_CXX in
 
13221
     "" | " "*) ;;
 
13222
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13223
     esac
 
13224
else
 
13225
    lt_prog_compiler_pic_CXX=
 
13226
     lt_prog_compiler_can_build_shared_CXX=no
 
13227
fi
 
13228
 
 
13229
fi
 
13230
case $host_os in
 
13231
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13232
  *djgpp*)
 
13233
    lt_prog_compiler_pic_CXX=
 
13234
    ;;
 
13235
  *)
 
13236
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13237
    ;;
 
13238
esac
 
13239
 
 
13240
#
 
13241
# Check to make sure the static flag actually works.
 
13242
#
 
13243
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13244
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13245
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
13246
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
13247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13248
else
 
13249
  lt_cv_prog_compiler_static_works_CXX=no
 
13250
   save_LDFLAGS="$LDFLAGS"
 
13251
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13252
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13253
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13254
     # The linker can only warn and ignore the option if not recognized
 
13255
     # So say no if there are warnings
 
13256
     if test -s conftest.err; then
 
13257
       # Append any errors to the config.log.
 
13258
       cat conftest.err 1>&5
 
13259
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13260
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13261
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13262
         lt_cv_prog_compiler_static_works_CXX=yes
 
13263
       fi
 
13264
     else
 
13265
       lt_cv_prog_compiler_static_works_CXX=yes
 
13266
     fi
 
13267
   fi
 
13268
   $rm -r conftest*
 
13269
   LDFLAGS="$save_LDFLAGS"
 
13270
 
 
13271
fi
 
13272
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13273
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13274
 
 
13275
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13276
    :
 
13277
else
 
13278
    lt_prog_compiler_static_CXX=
 
13279
fi
 
13280
 
 
13281
 
 
13282
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13283
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13284
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13286
else
 
13287
  lt_cv_prog_compiler_c_o_CXX=no
 
13288
   $rm -r conftest 2>/dev/null
 
13289
   mkdir conftest
 
13290
   cd conftest
 
13291
   mkdir out
 
13292
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13293
 
 
13294
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13295
   # Insert the option either (1) after the last *FLAGS variable, or
 
13296
   # (2) before a word containing "conftest.", or (3) at the end.
 
13297
   # Note that $ac_compile itself does not contain backslashes and begins
 
13298
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13299
   lt_compile=`echo "$ac_compile" | $SED \
 
13300
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13301
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13302
   -e 's:$: $lt_compiler_flag:'`
 
13303
   (eval echo "\"\$as_me:13303: $lt_compile\"" >&5)
 
13304
   (eval "$lt_compile" 2>out/conftest.err)
 
13305
   ac_status=$?
 
13306
   cat out/conftest.err >&5
 
13307
   echo "$as_me:13307: \$? = $ac_status" >&5
 
13308
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13309
   then
 
13310
     # The compiler can only warn and ignore the option if not recognized
 
13311
     # So say no if there are warnings
 
13312
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13313
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13314
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13315
       lt_cv_prog_compiler_c_o_CXX=yes
 
13316
     fi
 
13317
   fi
 
13318
   chmod u+w . 2>&5
 
13319
   $rm conftest*
 
13320
   # SGI C++ compiler will create directory out/ii_files/ for
 
13321
   # template instantiation
 
13322
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13323
   $rm out/* && rmdir out
 
13324
   cd ..
 
13325
   rmdir conftest
 
13326
   $rm conftest*
 
13327
 
 
13328
fi
 
13329
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13330
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13331
 
 
13332
 
 
13333
hard_links="nottested"
 
13334
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13335
  # do not overwrite the value of need_locks provided by the user
 
13336
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13337
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13338
  hard_links=yes
 
13339
  $rm conftest*
 
13340
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13341
  touch conftest.a
 
13342
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13343
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13344
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
13345
echo "${ECHO_T}$hard_links" >&6; }
 
13346
  if test "$hard_links" = no; then
 
13347
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13348
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13349
    need_locks=warn
 
13350
  fi
 
13351
else
 
13352
  need_locks=no
 
13353
fi
 
13354
 
 
13355
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13356
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13357
 
 
13358
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13359
  case $host_os in
 
13360
  aix[4-9]*)
 
13361
    # If we're using GNU nm, then we don't want the "-C" option.
 
13362
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13363
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13364
      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'
 
13365
    else
 
13366
      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'
 
13367
    fi
 
13368
    ;;
 
13369
  pw32*)
 
13370
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13371
  ;;
 
13372
  cygwin* | mingw*)
 
13373
    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'
 
13374
  ;;
 
13375
  linux* | k*bsd*-gnu)
 
13376
    link_all_deplibs_CXX=no
 
13377
  ;;
 
13378
  *)
 
13379
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13380
  ;;
 
13381
  esac
 
13382
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13383
 
 
13384
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13385
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
13386
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13387
 
 
13388
#
 
13389
# Do we need to explicitly link libc?
 
13390
#
 
13391
case "x$archive_cmds_need_lc_CXX" in
 
13392
x|xyes)
 
13393
  # Assume -lc should be added
 
13394
  archive_cmds_need_lc_CXX=yes
 
13395
 
 
13396
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13397
    case $archive_cmds_CXX in
 
13398
    *'~'*)
 
13399
      # FIXME: we may have to deal with multi-command sequences.
 
13400
      ;;
 
13401
    '$CC '*)
 
13402
      # Test whether the compiler implicitly links with -lc since on some
 
13403
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13404
      # to ld, don't add -lc before -lgcc.
 
13405
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13406
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
13407
      $rm conftest*
 
13408
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13409
 
 
13410
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13411
  (eval $ac_compile) 2>&5
 
13412
  ac_status=$?
 
13413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13414
  (exit $ac_status); } 2>conftest.err; then
 
13415
        soname=conftest
 
13416
        lib=conftest
 
13417
        libobjs=conftest.$ac_objext
 
13418
        deplibs=
 
13419
        wl=$lt_prog_compiler_wl_CXX
 
13420
        pic_flag=$lt_prog_compiler_pic_CXX
 
13421
        compiler_flags=-v
 
13422
        linker_flags=-v
 
13423
        verstring=
 
13424
        output_objdir=.
 
13425
        libname=conftest
 
13426
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13427
        allow_undefined_flag_CXX=
 
13428
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13429
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13430
  ac_status=$?
 
13431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13432
  (exit $ac_status); }
 
13433
        then
 
13434
          archive_cmds_need_lc_CXX=no
 
13435
        else
 
13436
          archive_cmds_need_lc_CXX=yes
 
13437
        fi
 
13438
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13439
      else
 
13440
        cat conftest.err 1>&5
 
13441
      fi
 
13442
      $rm conftest*
 
13443
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13444
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
13445
      ;;
 
13446
    esac
 
13447
  fi
 
13448
  ;;
 
13449
esac
 
13450
 
 
13451
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13452
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
13453
library_names_spec=
 
13454
libname_spec='lib$name'
 
13455
soname_spec=
 
13456
shrext_cmds=".so"
 
13457
postinstall_cmds=
 
13458
postuninstall_cmds=
 
13459
finish_cmds=
 
13460
finish_eval=
 
13461
shlibpath_var=
 
13462
shlibpath_overrides_runpath=unknown
 
13463
version_type=none
 
13464
dynamic_linker="$host_os ld.so"
 
13465
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13466
 
 
13467
need_lib_prefix=unknown
 
13468
hardcode_into_libs=no
 
13469
 
 
13470
# when you set need_version to no, make sure it does not cause -set_version
 
13471
# flags to be left without arguments
 
13472
need_version=unknown
 
13473
 
 
13474
case $host_os in
 
13475
aix3*)
 
13476
  version_type=linux
 
13477
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13478
  shlibpath_var=LIBPATH
 
13479
 
 
13480
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13481
  soname_spec='${libname}${release}${shared_ext}$major'
 
13482
  ;;
 
13483
 
 
13484
aix[4-9]*)
 
13485
  version_type=linux
 
13486
  need_lib_prefix=no
 
13487
  need_version=no
 
13488
  hardcode_into_libs=yes
 
13489
  if test "$host_cpu" = ia64; then
 
13490
    # AIX 5 supports IA64
 
13491
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13492
    shlibpath_var=LD_LIBRARY_PATH
 
13493
  else
 
13494
    # With GCC up to 2.95.x, collect2 would create an import file
 
13495
    # for dependence libraries.  The import file would start with
 
13496
    # the line `#! .'.  This would cause the generated library to
 
13497
    # depend on `.', always an invalid library.  This was fixed in
 
13498
    # development snapshots of GCC prior to 3.0.
 
13499
    case $host_os in
 
13500
      aix4 | aix4.[01] | aix4.[01].*)
 
13501
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13502
           echo ' yes '
 
13503
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13504
        :
 
13505
      else
 
13506
        can_build_shared=no
 
13507
      fi
 
13508
      ;;
 
13509
    esac
 
13510
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13511
    # soname into executable. Probably we can add versioning support to
 
13512
    # collect2, so additional links can be useful in future.
 
13513
    if test "$aix_use_runtimelinking" = yes; then
 
13514
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13515
      # instead of lib<name>.a to let people know that these are not
 
13516
      # typical AIX shared libraries.
 
13517
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13518
    else
 
13519
      # We preserve .a as extension for shared libraries through AIX4.2
 
13520
      # and later when we are not doing run time linking.
 
13521
      library_names_spec='${libname}${release}.a $libname.a'
 
13522
      soname_spec='${libname}${release}${shared_ext}$major'
 
13523
    fi
 
13524
    shlibpath_var=LIBPATH
 
13525
  fi
 
13526
  ;;
 
13527
 
 
13528
amigaos*)
 
13529
  library_names_spec='$libname.ixlibrary $libname.a'
 
13530
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13531
  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'
 
13532
  ;;
 
13533
 
 
13534
beos*)
 
13535
  library_names_spec='${libname}${shared_ext}'
 
13536
  dynamic_linker="$host_os ld.so"
 
13537
  shlibpath_var=LIBRARY_PATH
 
13538
  ;;
 
13539
 
 
13540
bsdi[45]*)
 
13541
  version_type=linux
 
13542
  need_version=no
 
13543
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13544
  soname_spec='${libname}${release}${shared_ext}$major'
 
13545
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13546
  shlibpath_var=LD_LIBRARY_PATH
 
13547
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13548
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13549
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13550
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13551
  # libtool to hard-code these into programs
 
13552
  ;;
 
13553
 
 
13554
cygwin* | mingw* | pw32*)
 
13555
  version_type=windows
 
13556
  shrext_cmds=".dll"
 
13557
  need_version=no
 
13558
  need_lib_prefix=no
 
13559
 
 
13560
  case $GCC,$host_os in
 
13561
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13562
    library_names_spec='$libname.dll.a'
 
13563
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13564
    postinstall_cmds='base_file=`basename \${file}`~
 
13565
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13566
      dldir=$destdir/`dirname \$dlpath`~
 
13567
      test -d \$dldir || mkdir -p \$dldir~
 
13568
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13569
      chmod a+x \$dldir/$dlname'
 
13570
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13571
      dlpath=$dir/\$dldll~
 
13572
       $rm \$dlpath'
 
13573
    shlibpath_overrides_runpath=yes
 
13574
 
 
13575
    case $host_os in
 
13576
    cygwin*)
 
13577
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13578
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13579
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13580
      ;;
 
13581
    mingw*)
 
13582
      # MinGW DLLs use traditional 'lib' prefix
 
13583
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13584
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13585
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13586
        # It is most probably a Windows format PATH printed by
 
13587
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13588
        # path with ; separators, and with drive letters. We can handle the
 
13589
        # drive letters (cygwin fileutils understands them), so leave them,
 
13590
        # especially as we might pass files found there to a mingw objdump,
 
13591
        # which wouldn't understand a cygwinified path. Ahh.
 
13592
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13593
      else
 
13594
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13595
      fi
 
13596
      ;;
 
13597
    pw32*)
 
13598
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13599
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13600
      ;;
 
13601
    esac
 
13602
    ;;
 
13603
 
 
13604
  *)
 
13605
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13606
    ;;
 
13607
  esac
 
13608
  dynamic_linker='Win32 ld.exe'
 
13609
  # FIXME: first we should search . and the directory the executable is in
 
13610
  shlibpath_var=PATH
 
13611
  ;;
 
13612
 
 
13613
darwin* | rhapsody*)
 
13614
  dynamic_linker="$host_os dyld"
 
13615
  version_type=darwin
 
13616
  need_lib_prefix=no
 
13617
  need_version=no
 
13618
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13619
  soname_spec='${libname}${release}${major}$shared_ext'
 
13620
  shlibpath_overrides_runpath=yes
 
13621
  shlibpath_var=DYLD_LIBRARY_PATH
 
13622
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13623
 
 
13624
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13625
  ;;
 
13626
 
 
13627
dgux*)
 
13628
  version_type=linux
 
13629
  need_lib_prefix=no
 
13630
  need_version=no
 
13631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13632
  soname_spec='${libname}${release}${shared_ext}$major'
 
13633
  shlibpath_var=LD_LIBRARY_PATH
 
13634
  ;;
 
13635
 
 
13636
freebsd1*)
 
13637
  dynamic_linker=no
 
13638
  ;;
 
13639
 
 
13640
freebsd* | dragonfly*)
 
13641
  # DragonFly does not have aout.  When/if they implement a new
 
13642
  # versioning mechanism, adjust this.
 
13643
  if test -x /usr/bin/objformat; then
 
13644
    objformat=`/usr/bin/objformat`
 
13645
  else
 
13646
    case $host_os in
 
13647
    freebsd[123]*) objformat=aout ;;
 
13648
    *) objformat=elf ;;
 
13649
    esac
 
13650
  fi
 
13651
  version_type=freebsd-$objformat
 
13652
  case $version_type in
 
13653
    freebsd-elf*)
 
13654
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13655
      need_version=no
 
13656
      need_lib_prefix=no
 
13657
      ;;
 
13658
    freebsd-*)
 
13659
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13660
      need_version=yes
 
13661
      ;;
 
13662
  esac
 
13663
  shlibpath_var=LD_LIBRARY_PATH
 
13664
  case $host_os in
 
13665
  freebsd2*)
 
13666
    shlibpath_overrides_runpath=yes
 
13667
    ;;
 
13668
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13669
    shlibpath_overrides_runpath=yes
 
13670
    hardcode_into_libs=yes
 
13671
    ;;
 
13672
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13673
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13674
    shlibpath_overrides_runpath=no
 
13675
    hardcode_into_libs=yes
 
13676
    ;;
 
13677
  *) # from 4.6 on, and DragonFly
 
13678
    shlibpath_overrides_runpath=yes
 
13679
    hardcode_into_libs=yes
 
13680
    ;;
 
13681
  esac
 
13682
  ;;
 
13683
 
 
13684
gnu*)
 
13685
  version_type=linux
 
13686
  need_lib_prefix=no
 
13687
  need_version=no
 
13688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13689
  soname_spec='${libname}${release}${shared_ext}$major'
 
13690
  shlibpath_var=LD_LIBRARY_PATH
 
13691
  hardcode_into_libs=yes
 
13692
  ;;
 
13693
 
 
13694
hpux9* | hpux10* | hpux11*)
 
13695
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13696
  # link against other versions.
 
13697
  version_type=sunos
 
13698
  need_lib_prefix=no
 
13699
  need_version=no
 
13700
  case $host_cpu in
 
13701
  ia64*)
 
13702
    shrext_cmds='.so'
 
13703
    hardcode_into_libs=yes
 
13704
    dynamic_linker="$host_os dld.so"
 
13705
    shlibpath_var=LD_LIBRARY_PATH
 
13706
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13707
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13708
    soname_spec='${libname}${release}${shared_ext}$major'
 
13709
    if test "X$HPUX_IA64_MODE" = X32; then
 
13710
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13711
    else
 
13712
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13713
    fi
 
13714
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13715
    ;;
 
13716
   hppa*64*)
 
13717
     shrext_cmds='.sl'
 
13718
     hardcode_into_libs=yes
 
13719
     dynamic_linker="$host_os dld.sl"
 
13720
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13721
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13722
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13723
     soname_spec='${libname}${release}${shared_ext}$major'
 
13724
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13725
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13726
     ;;
 
13727
   *)
 
13728
    shrext_cmds='.sl'
 
13729
    dynamic_linker="$host_os dld.sl"
 
13730
    shlibpath_var=SHLIB_PATH
 
13731
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13732
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13733
    soname_spec='${libname}${release}${shared_ext}$major'
 
13734
    ;;
 
13735
  esac
 
13736
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13737
  postinstall_cmds='chmod 555 $lib'
 
13738
  ;;
 
13739
 
 
13740
interix[3-9]*)
 
13741
  version_type=linux
 
13742
  need_lib_prefix=no
 
13743
  need_version=no
 
13744
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13745
  soname_spec='${libname}${release}${shared_ext}$major'
 
13746
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13747
  shlibpath_var=LD_LIBRARY_PATH
 
13748
  shlibpath_overrides_runpath=no
 
13749
  hardcode_into_libs=yes
 
13750
  ;;
 
13751
 
 
13752
irix5* | irix6* | nonstopux*)
 
13753
  case $host_os in
 
13754
    nonstopux*) version_type=nonstopux ;;
 
13755
    *)
 
13756
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13757
                version_type=linux
 
13758
        else
 
13759
                version_type=irix
 
13760
        fi ;;
 
13761
  esac
 
13762
  need_lib_prefix=no
 
13763
  need_version=no
 
13764
  soname_spec='${libname}${release}${shared_ext}$major'
 
13765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13766
  case $host_os in
 
13767
  irix5* | nonstopux*)
 
13768
    libsuff= shlibsuff=
 
13769
    ;;
 
13770
  *)
 
13771
    case $LD in # libtool.m4 will add one of these switches to LD
 
13772
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13773
      libsuff= shlibsuff= libmagic=32-bit;;
 
13774
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13775
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13776
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13777
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13778
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13779
    esac
 
13780
    ;;
 
13781
  esac
 
13782
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13783
  shlibpath_overrides_runpath=no
 
13784
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13785
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13786
  hardcode_into_libs=yes
 
13787
  ;;
 
13788
 
 
13789
# No shared lib support for Linux oldld, aout, or coff.
 
13790
linux*oldld* | linux*aout* | linux*coff*)
 
13791
  dynamic_linker=no
 
13792
  ;;
 
13793
 
 
13794
# This must be Linux ELF.
 
13795
linux* | k*bsd*-gnu)
 
13796
  version_type=linux
 
13797
  need_lib_prefix=no
 
13798
  need_version=no
 
13799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13800
  soname_spec='${libname}${release}${shared_ext}$major'
 
13801
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13802
  shlibpath_var=LD_LIBRARY_PATH
 
13803
  shlibpath_overrides_runpath=no
 
13804
  # This implies no fast_install, which is unacceptable.
 
13805
  # Some rework will be needed to allow for fast_install
 
13806
  # before this can be enabled.
 
13807
  hardcode_into_libs=yes
 
13808
 
 
13809
  # Append ld.so.conf contents to the search path
 
13810
  if test -f /etc/ld.so.conf; then
 
13811
    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' ' '`
 
13812
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13813
  fi
 
13814
 
 
13815
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13816
  # powerpc, because MkLinux only supported shared libraries with the
 
13817
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13818
  # most powerpc-linux boxes support dynamic linking these days and
 
13819
  # people can always --disable-shared, the test was removed, and we
 
13820
  # assume the GNU/Linux dynamic linker is in use.
 
13821
  dynamic_linker='GNU/Linux ld.so'
 
13822
  ;;
 
13823
 
 
13824
netbsdelf*-gnu)
 
13825
  version_type=linux
 
13826
  need_lib_prefix=no
 
13827
  need_version=no
 
13828
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13829
  soname_spec='${libname}${release}${shared_ext}$major'
 
13830
  shlibpath_var=LD_LIBRARY_PATH
 
13831
  shlibpath_overrides_runpath=no
 
13832
  hardcode_into_libs=yes
 
13833
  dynamic_linker='NetBSD ld.elf_so'
 
13834
  ;;
 
13835
 
 
13836
netbsd*)
 
13837
  version_type=sunos
 
13838
  need_lib_prefix=no
 
13839
  need_version=no
 
13840
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13841
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13842
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13843
    dynamic_linker='NetBSD (a.out) ld.so'
 
13844
  else
 
13845
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13846
    soname_spec='${libname}${release}${shared_ext}$major'
 
13847
    dynamic_linker='NetBSD ld.elf_so'
 
13848
  fi
 
13849
  shlibpath_var=LD_LIBRARY_PATH
 
13850
  shlibpath_overrides_runpath=yes
 
13851
  hardcode_into_libs=yes
 
13852
  ;;
 
13853
 
 
13854
newsos6)
 
13855
  version_type=linux
 
13856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13857
  shlibpath_var=LD_LIBRARY_PATH
 
13858
  shlibpath_overrides_runpath=yes
 
13859
  ;;
 
13860
 
 
13861
nto-qnx*)
 
13862
  version_type=linux
 
13863
  need_lib_prefix=no
 
13864
  need_version=no
 
13865
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13866
  soname_spec='${libname}${release}${shared_ext}$major'
 
13867
  shlibpath_var=LD_LIBRARY_PATH
 
13868
  shlibpath_overrides_runpath=yes
 
13869
  ;;
 
13870
 
 
13871
openbsd*)
 
13872
  version_type=sunos
 
13873
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13874
  need_lib_prefix=no
 
13875
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13876
  case $host_os in
 
13877
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13878
    *)                         need_version=no  ;;
 
13879
  esac
 
13880
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13881
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13882
  shlibpath_var=LD_LIBRARY_PATH
 
13883
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13884
    case $host_os in
 
13885
      openbsd2.[89] | openbsd2.[89].*)
 
13886
        shlibpath_overrides_runpath=no
 
13887
        ;;
 
13888
      *)
 
13889
        shlibpath_overrides_runpath=yes
 
13890
        ;;
 
13891
      esac
 
13892
  else
 
13893
    shlibpath_overrides_runpath=yes
 
13894
  fi
 
13895
  ;;
 
13896
 
 
13897
os2*)
 
13898
  libname_spec='$name'
 
13899
  shrext_cmds=".dll"
 
13900
  need_lib_prefix=no
 
13901
  library_names_spec='$libname${shared_ext} $libname.a'
 
13902
  dynamic_linker='OS/2 ld.exe'
 
13903
  shlibpath_var=LIBPATH
 
13904
  ;;
 
13905
 
 
13906
osf3* | osf4* | osf5*)
 
13907
  version_type=osf
 
13908
  need_lib_prefix=no
 
13909
  need_version=no
 
13910
  soname_spec='${libname}${release}${shared_ext}$major'
 
13911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13912
  shlibpath_var=LD_LIBRARY_PATH
 
13913
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13914
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13915
  ;;
 
13916
 
 
13917
rdos*)
 
13918
  dynamic_linker=no
 
13919
  ;;
 
13920
 
 
13921
solaris*)
 
13922
  version_type=linux
 
13923
  need_lib_prefix=no
 
13924
  need_version=no
 
13925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13926
  soname_spec='${libname}${release}${shared_ext}$major'
 
13927
  shlibpath_var=LD_LIBRARY_PATH
 
13928
  shlibpath_overrides_runpath=yes
 
13929
  hardcode_into_libs=yes
 
13930
  # ldd complains unless libraries are executable
 
13931
  postinstall_cmds='chmod +x $lib'
 
13932
  ;;
 
13933
 
 
13934
sunos4*)
 
13935
  version_type=sunos
 
13936
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13937
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13938
  shlibpath_var=LD_LIBRARY_PATH
 
13939
  shlibpath_overrides_runpath=yes
 
13940
  if test "$with_gnu_ld" = yes; then
 
13941
    need_lib_prefix=no
 
13942
  fi
 
13943
  need_version=yes
 
13944
  ;;
 
13945
 
 
13946
sysv4 | sysv4.3*)
 
13947
  version_type=linux
 
13948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13949
  soname_spec='${libname}${release}${shared_ext}$major'
 
13950
  shlibpath_var=LD_LIBRARY_PATH
 
13951
  case $host_vendor in
 
13952
    sni)
 
13953
      shlibpath_overrides_runpath=no
 
13954
      need_lib_prefix=no
 
13955
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13956
      runpath_var=LD_RUN_PATH
 
13957
      ;;
 
13958
    siemens)
 
13959
      need_lib_prefix=no
 
13960
      ;;
 
13961
    motorola)
 
13962
      need_lib_prefix=no
 
13963
      need_version=no
 
13964
      shlibpath_overrides_runpath=no
 
13965
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13966
      ;;
 
13967
  esac
 
13968
  ;;
 
13969
 
 
13970
sysv4*MP*)
 
13971
  if test -d /usr/nec ;then
 
13972
    version_type=linux
 
13973
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13974
    soname_spec='$libname${shared_ext}.$major'
 
13975
    shlibpath_var=LD_LIBRARY_PATH
 
13976
  fi
 
13977
  ;;
 
13978
 
 
13979
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13980
  version_type=freebsd-elf
 
13981
  need_lib_prefix=no
 
13982
  need_version=no
 
13983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13984
  soname_spec='${libname}${release}${shared_ext}$major'
 
13985
  shlibpath_var=LD_LIBRARY_PATH
 
13986
  hardcode_into_libs=yes
 
13987
  if test "$with_gnu_ld" = yes; then
 
13988
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13989
    shlibpath_overrides_runpath=no
 
13990
  else
 
13991
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13992
    shlibpath_overrides_runpath=yes
 
13993
    case $host_os in
 
13994
      sco3.2v5*)
 
13995
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13996
        ;;
 
13997
    esac
 
13998
  fi
 
13999
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14000
  ;;
 
14001
 
 
14002
uts4*)
 
14003
  version_type=linux
 
14004
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14005
  soname_spec='${libname}${release}${shared_ext}$major'
 
14006
  shlibpath_var=LD_LIBRARY_PATH
 
14007
  ;;
 
14008
 
 
14009
*)
 
14010
  dynamic_linker=no
 
14011
  ;;
 
14012
esac
 
14013
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14014
echo "${ECHO_T}$dynamic_linker" >&6; }
 
14015
test "$dynamic_linker" = no && can_build_shared=no
 
14016
 
 
14017
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14019
else
 
14020
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
14021
fi
 
14022
 
 
14023
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14024
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14025
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14026
else
 
14027
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
14028
fi
 
14029
 
 
14030
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14031
 
 
14032
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14033
if test "$GCC" = yes; then
 
14034
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14035
fi
 
14036
 
 
14037
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14038
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
14039
hardcode_action_CXX=
 
14040
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14041
   test -n "$runpath_var_CXX" || \
 
14042
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14043
 
 
14044
  # We can hardcode non-existant directories.
 
14045
  if test "$hardcode_direct_CXX" != no &&
 
14046
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14047
     # have to relink, otherwise we might link with an installed library
 
14048
     # when we should be linking with a yet-to-be-installed one
 
14049
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14050
     test "$hardcode_minus_L_CXX" != no; then
 
14051
    # Linking always hardcodes the temporary library directory.
 
14052
    hardcode_action_CXX=relink
 
14053
  else
 
14054
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14055
    hardcode_action_CXX=immediate
 
14056
  fi
 
14057
else
 
14058
  # We cannot hardcode anything, or else we can only hardcode existing
 
14059
  # directories.
 
14060
  hardcode_action_CXX=unsupported
 
14061
fi
 
14062
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14063
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
14064
 
 
14065
if test "$hardcode_action_CXX" = relink; then
 
14066
  # Fast installation is not supported
 
14067
  enable_fast_install=no
 
14068
elif test "$shlibpath_overrides_runpath" = yes ||
 
14069
     test "$enable_shared" = no; then
 
14070
  # Fast installation is not necessary
 
14071
  enable_fast_install=needless
 
14072
fi
 
14073
 
 
14074
 
 
14075
# The else clause should only fire when bootstrapping the
 
14076
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14077
# with your package, and you will get complaints that there are
 
14078
# no rules to generate ltmain.sh.
 
14079
if test -f "$ltmain"; then
 
14080
  # See if we are running on zsh, and set the options which allow our commands through
 
14081
  # without removal of \ escapes.
 
14082
  if test -n "${ZSH_VERSION+set}" ; then
 
14083
    setopt NO_GLOB_SUBST
 
14084
  fi
 
14085
  # Now quote all the things that may contain metacharacters while being
 
14086
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14087
  # variables and quote the copies for generation of the libtool script.
 
14088
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
14089
    SED SHELL STRIP \
 
14090
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14091
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14092
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14093
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14094
    lt_cv_sys_global_symbol_to_c_name_address \
 
14095
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14096
    old_postinstall_cmds old_postuninstall_cmds \
 
14097
    compiler_CXX \
 
14098
    CC_CXX \
 
14099
    LD_CXX \
 
14100
    lt_prog_compiler_wl_CXX \
 
14101
    lt_prog_compiler_pic_CXX \
 
14102
    lt_prog_compiler_static_CXX \
 
14103
    lt_prog_compiler_no_builtin_flag_CXX \
 
14104
    export_dynamic_flag_spec_CXX \
 
14105
    thread_safe_flag_spec_CXX \
 
14106
    whole_archive_flag_spec_CXX \
 
14107
    enable_shared_with_static_runtimes_CXX \
 
14108
    old_archive_cmds_CXX \
 
14109
    old_archive_from_new_cmds_CXX \
 
14110
    predep_objects_CXX \
 
14111
    postdep_objects_CXX \
 
14112
    predeps_CXX \
 
14113
    postdeps_CXX \
 
14114
    compiler_lib_search_path_CXX \
 
14115
    compiler_lib_search_dirs_CXX \
 
14116
    archive_cmds_CXX \
 
14117
    archive_expsym_cmds_CXX \
 
14118
    postinstall_cmds_CXX \
 
14119
    postuninstall_cmds_CXX \
 
14120
    old_archive_from_expsyms_cmds_CXX \
 
14121
    allow_undefined_flag_CXX \
 
14122
    no_undefined_flag_CXX \
 
14123
    export_symbols_cmds_CXX \
 
14124
    hardcode_libdir_flag_spec_CXX \
 
14125
    hardcode_libdir_flag_spec_ld_CXX \
 
14126
    hardcode_libdir_separator_CXX \
 
14127
    hardcode_automatic_CXX \
 
14128
    module_cmds_CXX \
 
14129
    module_expsym_cmds_CXX \
 
14130
    lt_cv_prog_compiler_c_o_CXX \
 
14131
    fix_srcfile_path_CXX \
 
14132
    exclude_expsyms_CXX \
 
14133
    include_expsyms_CXX; do
 
14134
 
 
14135
    case $var in
 
14136
    old_archive_cmds_CXX | \
 
14137
    old_archive_from_new_cmds_CXX | \
 
14138
    archive_cmds_CXX | \
 
14139
    archive_expsym_cmds_CXX | \
 
14140
    module_cmds_CXX | \
 
14141
    module_expsym_cmds_CXX | \
 
14142
    old_archive_from_expsyms_cmds_CXX | \
 
14143
    export_symbols_cmds_CXX | \
 
14144
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14145
    postinstall_cmds | postuninstall_cmds | \
 
14146
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14147
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14148
      # Double-quote double-evaled strings.
 
14149
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14150
      ;;
 
14151
    *)
 
14152
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14153
      ;;
 
14154
    esac
 
14155
  done
 
14156
 
 
14157
  case $lt_echo in
 
14158
  *'\$0 --fallback-echo"')
 
14159
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14160
    ;;
 
14161
  esac
 
14162
 
 
14163
cfgfile="$ofile"
 
14164
 
 
14165
  cat <<__EOF__ >> "$cfgfile"
 
14166
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14167
 
 
14168
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14169
 
 
14170
# Shell to use when invoking shell scripts.
 
14171
SHELL=$lt_SHELL
 
14172
 
 
14173
# Whether or not to build shared libraries.
 
14174
build_libtool_libs=$enable_shared
 
14175
 
 
14176
# Whether or not to build static libraries.
 
14177
build_old_libs=$enable_static
 
14178
 
 
14179
# Whether or not to add -lc for building shared libraries.
 
14180
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14181
 
 
14182
# Whether or not to disallow shared libs when runtime libs are static
 
14183
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14184
 
 
14185
# Whether or not to optimize for fast installation.
 
14186
fast_install=$enable_fast_install
 
14187
 
 
14188
# The host system.
 
14189
host_alias=$host_alias
 
14190
host=$host
 
14191
host_os=$host_os
 
14192
 
 
14193
# The build system.
 
14194
build_alias=$build_alias
 
14195
build=$build
 
14196
build_os=$build_os
 
14197
 
 
14198
# An echo program that does not interpret backslashes.
 
14199
echo=$lt_echo
 
14200
 
 
14201
# The archiver.
 
14202
AR=$lt_AR
 
14203
AR_FLAGS=$lt_AR_FLAGS
 
14204
 
 
14205
# A C compiler.
 
14206
LTCC=$lt_LTCC
 
14207
 
 
14208
# LTCC compiler flags.
 
14209
LTCFLAGS=$lt_LTCFLAGS
 
14210
 
 
14211
# A language-specific compiler.
 
14212
CC=$lt_compiler_CXX
 
14213
 
 
14214
# Is the compiler the GNU C compiler?
 
14215
with_gcc=$GCC_CXX
 
14216
 
 
14217
# An ERE matcher.
 
14218
EGREP=$lt_EGREP
 
14219
 
 
14220
# The linker used to build libraries.
 
14221
LD=$lt_LD_CXX
 
14222
 
 
14223
# Whether we need hard or soft links.
 
14224
LN_S=$lt_LN_S
 
14225
 
 
14226
# A BSD-compatible nm program.
 
14227
NM=$lt_NM
 
14228
 
 
14229
# A symbol stripping program
 
14230
STRIP=$lt_STRIP
 
14231
 
 
14232
# Used to examine libraries when file_magic_cmd begins "file"
 
14233
MAGIC_CMD=$MAGIC_CMD
 
14234
 
 
14235
# Used on cygwin: DLL creation program.
 
14236
DLLTOOL="$DLLTOOL"
 
14237
 
 
14238
# Used on cygwin: object dumper.
 
14239
OBJDUMP="$OBJDUMP"
 
14240
 
 
14241
# Used on cygwin: assembler.
 
14242
AS="$AS"
 
14243
 
 
14244
# The name of the directory that contains temporary libtool files.
 
14245
objdir=$objdir
 
14246
 
 
14247
# How to create reloadable object files.
 
14248
reload_flag=$lt_reload_flag
 
14249
reload_cmds=$lt_reload_cmds
 
14250
 
 
14251
# How to pass a linker flag through the compiler.
 
14252
wl=$lt_lt_prog_compiler_wl_CXX
 
14253
 
 
14254
# Object file suffix (normally "o").
 
14255
objext="$ac_objext"
 
14256
 
 
14257
# Old archive suffix (normally "a").
 
14258
libext="$libext"
 
14259
 
 
14260
# Shared library suffix (normally ".so").
 
14261
shrext_cmds='$shrext_cmds'
 
14262
 
 
14263
# Executable file suffix (normally "").
 
14264
exeext="$exeext"
 
14265
 
 
14266
# Additional compiler flags for building library objects.
 
14267
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14268
pic_mode=$pic_mode
 
14269
 
 
14270
# What is the maximum length of a command?
 
14271
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14272
 
 
14273
# Does compiler simultaneously support -c and -o options?
 
14274
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14275
 
 
14276
# Must we lock files when doing compilation?
 
14277
need_locks=$lt_need_locks
 
14278
 
 
14279
# Do we need the lib prefix for modules?
 
14280
need_lib_prefix=$need_lib_prefix
 
14281
 
 
14282
# Do we need a version for libraries?
 
14283
need_version=$need_version
 
14284
 
 
14285
# Whether dlopen is supported.
 
14286
dlopen_support=$enable_dlopen
 
14287
 
 
14288
# Whether dlopen of programs is supported.
 
14289
dlopen_self=$enable_dlopen_self
 
14290
 
 
14291
# Whether dlopen of statically linked programs is supported.
 
14292
dlopen_self_static=$enable_dlopen_self_static
 
14293
 
 
14294
# Compiler flag to prevent dynamic linking.
 
14295
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14296
 
 
14297
# Compiler flag to turn off builtin functions.
 
14298
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14299
 
 
14300
# Compiler flag to allow reflexive dlopens.
 
14301
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14302
 
 
14303
# Compiler flag to generate shared objects directly from archives.
 
14304
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14305
 
 
14306
# Compiler flag to generate thread-safe objects.
 
14307
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14308
 
 
14309
# Library versioning type.
 
14310
version_type=$version_type
 
14311
 
 
14312
# Format of library name prefix.
 
14313
libname_spec=$lt_libname_spec
 
14314
 
 
14315
# List of archive names.  First name is the real one, the rest are links.
 
14316
# The last name is the one that the linker finds with -lNAME.
 
14317
library_names_spec=$lt_library_names_spec
 
14318
 
 
14319
# The coded name of the library, if different from the real name.
 
14320
soname_spec=$lt_soname_spec
 
14321
 
 
14322
# Commands used to build and install an old-style archive.
 
14323
RANLIB=$lt_RANLIB
 
14324
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14325
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14326
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14327
 
 
14328
# Create an old-style archive from a shared archive.
 
14329
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14330
 
 
14331
# Create a temporary old-style archive to link instead of a shared archive.
 
14332
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14333
 
 
14334
# Commands used to build and install a shared archive.
 
14335
archive_cmds=$lt_archive_cmds_CXX
 
14336
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14337
postinstall_cmds=$lt_postinstall_cmds
 
14338
postuninstall_cmds=$lt_postuninstall_cmds
 
14339
 
 
14340
# Commands used to build a loadable module (assumed same as above if empty)
 
14341
module_cmds=$lt_module_cmds_CXX
 
14342
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14343
 
 
14344
# Commands to strip libraries.
 
14345
old_striplib=$lt_old_striplib
 
14346
striplib=$lt_striplib
 
14347
 
 
14348
# Dependencies to place before the objects being linked to create a
 
14349
# shared library.
 
14350
predep_objects=$lt_predep_objects_CXX
 
14351
 
 
14352
# Dependencies to place after the objects being linked to create a
 
14353
# shared library.
 
14354
postdep_objects=$lt_postdep_objects_CXX
 
14355
 
 
14356
# Dependencies to place before the objects being linked to create a
 
14357
# shared library.
 
14358
predeps=$lt_predeps_CXX
 
14359
 
 
14360
# Dependencies to place after the objects being linked to create a
 
14361
# shared library.
 
14362
postdeps=$lt_postdeps_CXX
 
14363
 
 
14364
# The directories searched by this compiler when creating a shared
 
14365
# library
 
14366
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14367
 
 
14368
# The library search path used internally by the compiler when linking
 
14369
# a shared library.
 
14370
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14371
 
 
14372
# Method to check whether dependent libraries are shared objects.
 
14373
deplibs_check_method=$lt_deplibs_check_method
 
14374
 
 
14375
# Command to use when deplibs_check_method == file_magic.
 
14376
file_magic_cmd=$lt_file_magic_cmd
 
14377
 
 
14378
# Flag that allows shared libraries with undefined symbols to be built.
 
14379
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14380
 
 
14381
# Flag that forces no undefined symbols.
 
14382
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14383
 
 
14384
# Commands used to finish a libtool library installation in a directory.
 
14385
finish_cmds=$lt_finish_cmds
 
14386
 
 
14387
# Same as above, but a single script fragment to be evaled but not shown.
 
14388
finish_eval=$lt_finish_eval
 
14389
 
 
14390
# Take the output of nm and produce a listing of raw symbols and C names.
 
14391
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14392
 
 
14393
# Transform the output of nm in a proper C declaration
 
14394
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14395
 
 
14396
# Transform the output of nm in a C name address pair
 
14397
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14398
 
 
14399
# This is the shared library runtime path variable.
 
14400
runpath_var=$runpath_var
 
14401
 
 
14402
# This is the shared library path variable.
 
14403
shlibpath_var=$shlibpath_var
 
14404
 
 
14405
# Is shlibpath searched before the hard-coded library search path?
 
14406
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14407
 
 
14408
# How to hardcode a shared library path into an executable.
 
14409
hardcode_action=$hardcode_action_CXX
 
14410
 
 
14411
# Whether we should hardcode library paths into libraries.
 
14412
hardcode_into_libs=$hardcode_into_libs
 
14413
 
 
14414
# Flag to hardcode \$libdir into a binary during linking.
 
14415
# This must work even if \$libdir does not exist.
 
14416
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14417
 
 
14418
# If ld is used when linking, flag to hardcode \$libdir into
 
14419
# a binary during linking. This must work even if \$libdir does
 
14420
# not exist.
 
14421
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14422
 
 
14423
# Whether we need a single -rpath flag with a separated argument.
 
14424
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14425
 
 
14426
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14427
# resulting binary.
 
14428
hardcode_direct=$hardcode_direct_CXX
 
14429
 
 
14430
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14431
# resulting binary.
 
14432
hardcode_minus_L=$hardcode_minus_L_CXX
 
14433
 
 
14434
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14435
# the resulting binary.
 
14436
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14437
 
 
14438
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14439
# and all subsequent libraries and executables linked against it.
 
14440
hardcode_automatic=$hardcode_automatic_CXX
 
14441
 
 
14442
# Variables whose values should be saved in libtool wrapper scripts and
 
14443
# restored at relink time.
 
14444
variables_saved_for_relink="$variables_saved_for_relink"
 
14445
 
 
14446
# Whether libtool must link a program against all its dependency libraries.
 
14447
link_all_deplibs=$link_all_deplibs_CXX
 
14448
 
 
14449
# Compile-time system search path for libraries
 
14450
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14451
 
 
14452
# Run-time system search path for libraries
 
14453
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14454
 
 
14455
# Fix the shell variable \$srcfile for the compiler.
 
14456
fix_srcfile_path=$lt_fix_srcfile_path
 
14457
 
 
14458
# Set to yes if exported symbols are required.
 
14459
always_export_symbols=$always_export_symbols_CXX
 
14460
 
 
14461
# The commands to list exported symbols.
 
14462
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14463
 
 
14464
# The commands to extract the exported symbol list from a shared archive.
 
14465
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14466
 
 
14467
# Symbols that should not be listed in the preloaded symbols.
 
14468
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14469
 
 
14470
# Symbols that must always be exported.
 
14471
include_expsyms=$lt_include_expsyms_CXX
 
14472
 
 
14473
# ### END LIBTOOL TAG CONFIG: $tagname
 
14474
 
 
14475
__EOF__
 
14476
 
 
14477
 
 
14478
else
 
14479
  # If there is no Makefile yet, we rely on a make rule to execute
 
14480
  # `config.status --recheck' to rerun these tests and create the
 
14481
  # libtool script then.
 
14482
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14483
  if test -f "$ltmain_in"; then
 
14484
    test -f Makefile && make "$ltmain"
 
14485
  fi
 
14486
fi
 
14487
 
 
14488
 
 
14489
ac_ext=c
 
14490
ac_cpp='$CPP $CPPFLAGS'
 
14491
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14492
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14493
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14494
 
 
14495
CC=$lt_save_CC
 
14496
LDCXX=$LD
 
14497
LD=$lt_save_LD
 
14498
GCC=$lt_save_GCC
 
14499
with_gnu_ldcxx=$with_gnu_ld
 
14500
with_gnu_ld=$lt_save_with_gnu_ld
 
14501
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14502
lt_cv_path_LD=$lt_save_path_LD
 
14503
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14504
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14505
 
 
14506
        else
 
14507
          tagname=""
 
14508
        fi
 
14509
        ;;
 
14510
 
 
14511
      F77)
 
14512
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14513
 
 
14514
ac_ext=f
 
14515
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14516
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14517
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14518
 
 
14519
 
 
14520
archive_cmds_need_lc_F77=no
 
14521
allow_undefined_flag_F77=
 
14522
always_export_symbols_F77=no
 
14523
archive_expsym_cmds_F77=
 
14524
export_dynamic_flag_spec_F77=
 
14525
hardcode_direct_F77=no
 
14526
hardcode_libdir_flag_spec_F77=
 
14527
hardcode_libdir_flag_spec_ld_F77=
 
14528
hardcode_libdir_separator_F77=
 
14529
hardcode_minus_L_F77=no
 
14530
hardcode_automatic_F77=no
 
14531
module_cmds_F77=
 
14532
module_expsym_cmds_F77=
 
14533
link_all_deplibs_F77=unknown
 
14534
old_archive_cmds_F77=$old_archive_cmds
 
14535
no_undefined_flag_F77=
 
14536
whole_archive_flag_spec_F77=
 
14537
enable_shared_with_static_runtimes_F77=no
 
14538
 
 
14539
# Source file extension for f77 test sources.
 
14540
ac_ext=f
 
14541
 
 
14542
# Object file extension for compiled f77 test sources.
 
14543
objext=o
 
14544
objext_F77=$objext
 
14545
 
 
14546
# Code to be used in simple compile tests
 
14547
lt_simple_compile_test_code="\
 
14548
      subroutine t
 
14549
      return
 
14550
      end
 
14551
"
 
14552
 
 
14553
# Code to be used in simple link tests
 
14554
lt_simple_link_test_code="\
 
14555
      program t
 
14556
      end
 
14557
"
 
14558
 
 
14559
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14560
 
 
14561
# If no C compiler was specified, use CC.
 
14562
LTCC=${LTCC-"$CC"}
 
14563
 
 
14564
# If no C compiler flags were specified, use CFLAGS.
 
14565
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14566
 
 
14567
# Allow CC to be a program name with arguments.
 
14568
compiler=$CC
 
14569
 
 
14570
 
 
14571
# save warnings/boilerplate of simple test code
 
14572
ac_outfile=conftest.$ac_objext
 
14573
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14574
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14575
_lt_compiler_boilerplate=`cat conftest.err`
 
14576
$rm conftest*
 
14577
 
 
14578
ac_outfile=conftest.$ac_objext
 
14579
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14580
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14581
_lt_linker_boilerplate=`cat conftest.err`
 
14582
$rm -r conftest*
 
14583
 
 
14584
 
 
14585
# Allow CC to be a program name with arguments.
 
14586
lt_save_CC="$CC"
 
14587
CC=${F77-"f77"}
 
14588
compiler=$CC
 
14589
compiler_F77=$CC
 
14590
for cc_temp in $compiler""; do
 
14591
  case $cc_temp in
 
14592
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14593
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14594
    \-*) ;;
 
14595
    *) break;;
 
14596
  esac
 
14597
done
 
14598
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14599
 
 
14600
 
 
14601
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14602
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14603
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14604
echo "${ECHO_T}$can_build_shared" >&6; }
 
14605
 
 
14606
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14607
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
14608
test "$can_build_shared" = "no" && enable_shared=no
 
14609
 
 
14610
# On AIX, shared libraries and static libraries use the same namespace, and
 
14611
# are all built from PIC.
 
14612
case $host_os in
 
14613
aix3*)
 
14614
  test "$enable_shared" = yes && enable_static=no
 
14615
  if test -n "$RANLIB"; then
 
14616
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14617
    postinstall_cmds='$RANLIB $lib'
 
14618
  fi
 
14619
  ;;
 
14620
aix[4-9]*)
 
14621
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14622
    test "$enable_shared" = yes && enable_static=no
 
14623
  fi
 
14624
  ;;
 
14625
esac
 
14626
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14627
echo "${ECHO_T}$enable_shared" >&6; }
 
14628
 
 
14629
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14630
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14631
# Make sure either enable_shared or enable_static is yes.
 
14632
test "$enable_shared" = yes || enable_static=yes
 
14633
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14634
echo "${ECHO_T}$enable_static" >&6; }
 
14635
 
 
14636
GCC_F77="$G77"
 
14637
LD_F77="$LD"
 
14638
 
 
14639
lt_prog_compiler_wl_F77=
 
14640
lt_prog_compiler_pic_F77=
 
14641
lt_prog_compiler_static_F77=
 
14642
 
 
14643
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14644
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14645
 
 
14646
  if test "$GCC" = yes; then
 
14647
    lt_prog_compiler_wl_F77='-Wl,'
 
14648
    lt_prog_compiler_static_F77='-static'
 
14649
 
 
14650
    case $host_os in
 
14651
      aix*)
 
14652
      # All AIX code is PIC.
 
14653
      if test "$host_cpu" = ia64; then
 
14654
        # AIX 5 now supports IA64 processor
 
14655
        lt_prog_compiler_static_F77='-Bstatic'
 
14656
      fi
 
14657
      ;;
 
14658
 
 
14659
    amigaos*)
 
14660
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14661
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14662
      # like `-m68040'.
 
14663
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14664
      ;;
 
14665
 
 
14666
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14667
      # PIC is the default for these OSes.
 
14668
      ;;
 
14669
 
 
14670
    mingw* | cygwin* | pw32* | os2*)
 
14671
      # This hack is so that the source file can tell whether it is being
 
14672
      # built for inclusion in a dll (and should export symbols for example).
 
14673
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14674
      # (--disable-auto-import) libraries
 
14675
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14676
      ;;
 
14677
 
 
14678
    darwin* | rhapsody*)
 
14679
      # PIC is the default on this platform
 
14680
      # Common symbols not allowed in MH_DYLIB files
 
14681
      lt_prog_compiler_pic_F77='-fno-common'
 
14682
      ;;
 
14683
 
 
14684
    interix[3-9]*)
 
14685
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14686
      # Instead, we relocate shared libraries at runtime.
 
14687
      ;;
 
14688
 
 
14689
    msdosdjgpp*)
 
14690
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14691
      # on systems that don't support them.
 
14692
      lt_prog_compiler_can_build_shared_F77=no
 
14693
      enable_shared=no
 
14694
      ;;
 
14695
 
 
14696
    sysv4*MP*)
 
14697
      if test -d /usr/nec; then
 
14698
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14699
      fi
 
14700
      ;;
 
14701
 
 
14702
    hpux*)
 
14703
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14704
      # not for PA HP-UX.
 
14705
      case $host_cpu in
 
14706
      hppa*64*|ia64*)
 
14707
        # +Z the default
 
14708
        ;;
 
14709
      *)
 
14710
        lt_prog_compiler_pic_F77='-fPIC'
 
14711
        ;;
 
14712
      esac
 
14713
      ;;
 
14714
 
 
14715
    *)
 
14716
      lt_prog_compiler_pic_F77='-fPIC'
 
14717
      ;;
 
14718
    esac
 
14719
  else
 
14720
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14721
    case $host_os in
 
14722
    aix*)
 
14723
      lt_prog_compiler_wl_F77='-Wl,'
 
14724
      if test "$host_cpu" = ia64; then
 
14725
        # AIX 5 now supports IA64 processor
 
14726
        lt_prog_compiler_static_F77='-Bstatic'
 
14727
      else
 
14728
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14729
      fi
 
14730
      ;;
 
14731
      darwin*)
 
14732
        # PIC is the default on this platform
 
14733
        # Common symbols not allowed in MH_DYLIB files
 
14734
       case $cc_basename in
 
14735
         xlc*)
 
14736
         lt_prog_compiler_pic_F77='-qnocommon'
 
14737
         lt_prog_compiler_wl_F77='-Wl,'
 
14738
         ;;
 
14739
       esac
 
14740
       ;;
 
14741
 
 
14742
    mingw* | cygwin* | pw32* | os2*)
 
14743
      # This hack is so that the source file can tell whether it is being
 
14744
      # built for inclusion in a dll (and should export symbols for example).
 
14745
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14746
      ;;
 
14747
 
 
14748
    hpux9* | hpux10* | hpux11*)
 
14749
      lt_prog_compiler_wl_F77='-Wl,'
 
14750
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14751
      # not for PA HP-UX.
 
14752
      case $host_cpu in
 
14753
      hppa*64*|ia64*)
 
14754
        # +Z the default
 
14755
        ;;
 
14756
      *)
 
14757
        lt_prog_compiler_pic_F77='+Z'
 
14758
        ;;
 
14759
      esac
 
14760
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14761
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14762
      ;;
 
14763
 
 
14764
    irix5* | irix6* | nonstopux*)
 
14765
      lt_prog_compiler_wl_F77='-Wl,'
 
14766
      # PIC (with -KPIC) is the default.
 
14767
      lt_prog_compiler_static_F77='-non_shared'
 
14768
      ;;
 
14769
 
 
14770
    newsos6)
 
14771
      lt_prog_compiler_pic_F77='-KPIC'
 
14772
      lt_prog_compiler_static_F77='-Bstatic'
 
14773
      ;;
 
14774
 
 
14775
    linux* | k*bsd*-gnu)
 
14776
      case $cc_basename in
 
14777
      icc* | ecc*)
 
14778
        lt_prog_compiler_wl_F77='-Wl,'
 
14779
        lt_prog_compiler_pic_F77='-KPIC'
 
14780
        lt_prog_compiler_static_F77='-static'
 
14781
        ;;
 
14782
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14783
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14784
        # which looks to be a dead project)
 
14785
        lt_prog_compiler_wl_F77='-Wl,'
 
14786
        lt_prog_compiler_pic_F77='-fpic'
 
14787
        lt_prog_compiler_static_F77='-Bstatic'
 
14788
        ;;
 
14789
      ccc*)
 
14790
        lt_prog_compiler_wl_F77='-Wl,'
 
14791
        # All Alpha code is PIC.
 
14792
        lt_prog_compiler_static_F77='-non_shared'
 
14793
        ;;
 
14794
      *)
 
14795
        case `$CC -V 2>&1 | sed 5q` in
 
14796
        *Sun\ C*)
 
14797
          # Sun C 5.9
 
14798
          lt_prog_compiler_pic_F77='-KPIC'
 
14799
          lt_prog_compiler_static_F77='-Bstatic'
 
14800
          lt_prog_compiler_wl_F77='-Wl,'
 
14801
          ;;
 
14802
        *Sun\ F*)
 
14803
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14804
          lt_prog_compiler_pic_F77='-KPIC'
 
14805
          lt_prog_compiler_static_F77='-Bstatic'
 
14806
          lt_prog_compiler_wl_F77=''
 
14807
          ;;
 
14808
        esac
 
14809
        ;;
 
14810
      esac
 
14811
      ;;
 
14812
 
 
14813
    osf3* | osf4* | osf5*)
 
14814
      lt_prog_compiler_wl_F77='-Wl,'
 
14815
      # All OSF/1 code is PIC.
 
14816
      lt_prog_compiler_static_F77='-non_shared'
 
14817
      ;;
 
14818
 
 
14819
    rdos*)
 
14820
      lt_prog_compiler_static_F77='-non_shared'
 
14821
      ;;
 
14822
 
 
14823
    solaris*)
 
14824
      lt_prog_compiler_pic_F77='-KPIC'
 
14825
      lt_prog_compiler_static_F77='-Bstatic'
 
14826
      case $cc_basename in
 
14827
      f77* | f90* | f95*)
 
14828
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14829
      *)
 
14830
        lt_prog_compiler_wl_F77='-Wl,';;
 
14831
      esac
 
14832
      ;;
 
14833
 
 
14834
    sunos4*)
 
14835
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14836
      lt_prog_compiler_pic_F77='-PIC'
 
14837
      lt_prog_compiler_static_F77='-Bstatic'
 
14838
      ;;
 
14839
 
 
14840
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14841
      lt_prog_compiler_wl_F77='-Wl,'
 
14842
      lt_prog_compiler_pic_F77='-KPIC'
 
14843
      lt_prog_compiler_static_F77='-Bstatic'
 
14844
      ;;
 
14845
 
 
14846
    sysv4*MP*)
 
14847
      if test -d /usr/nec ;then
 
14848
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14849
        lt_prog_compiler_static_F77='-Bstatic'
 
14850
      fi
 
14851
      ;;
 
14852
 
 
14853
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14854
      lt_prog_compiler_wl_F77='-Wl,'
 
14855
      lt_prog_compiler_pic_F77='-KPIC'
 
14856
      lt_prog_compiler_static_F77='-Bstatic'
 
14857
      ;;
 
14858
 
 
14859
    unicos*)
 
14860
      lt_prog_compiler_wl_F77='-Wl,'
 
14861
      lt_prog_compiler_can_build_shared_F77=no
 
14862
      ;;
 
14863
 
 
14864
    uts4*)
 
14865
      lt_prog_compiler_pic_F77='-pic'
 
14866
      lt_prog_compiler_static_F77='-Bstatic'
 
14867
      ;;
 
14868
 
 
14869
    *)
 
14870
      lt_prog_compiler_can_build_shared_F77=no
 
14871
      ;;
 
14872
    esac
 
14873
  fi
 
14874
 
 
14875
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14876
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14877
 
 
14878
#
 
14879
# Check to make sure the PIC flag actually works.
 
14880
#
 
14881
if test -n "$lt_prog_compiler_pic_F77"; then
 
14882
 
 
14883
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14884
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14885
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14886
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14887
else
 
14888
  lt_cv_prog_compiler_pic_works_F77=no
 
14889
  ac_outfile=conftest.$ac_objext
 
14890
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14891
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14892
   # Insert the option either (1) after the last *FLAGS variable, or
 
14893
   # (2) before a word containing "conftest.", or (3) at the end.
 
14894
   # Note that $ac_compile itself does not contain backslashes and begins
 
14895
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14896
   # The option is referenced via a variable to avoid confusing sed.
 
14897
   lt_compile=`echo "$ac_compile" | $SED \
 
14898
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14899
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14900
   -e 's:$: $lt_compiler_flag:'`
 
14901
   (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
 
14902
   (eval "$lt_compile" 2>conftest.err)
 
14903
   ac_status=$?
 
14904
   cat conftest.err >&5
 
14905
   echo "$as_me:14905: \$? = $ac_status" >&5
 
14906
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14907
     # The compiler can only warn and ignore the option if not recognized
 
14908
     # So say no if there are warnings other than the usual output.
 
14909
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14910
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14911
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14912
       lt_cv_prog_compiler_pic_works_F77=yes
 
14913
     fi
 
14914
   fi
 
14915
   $rm conftest*
 
14916
 
 
14917
fi
 
14918
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14919
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14920
 
 
14921
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14922
    case $lt_prog_compiler_pic_F77 in
 
14923
     "" | " "*) ;;
 
14924
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14925
     esac
 
14926
else
 
14927
    lt_prog_compiler_pic_F77=
 
14928
     lt_prog_compiler_can_build_shared_F77=no
 
14929
fi
 
14930
 
 
14931
fi
 
14932
case $host_os in
 
14933
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14934
  *djgpp*)
 
14935
    lt_prog_compiler_pic_F77=
 
14936
    ;;
 
14937
  *)
 
14938
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14939
    ;;
 
14940
esac
 
14941
 
 
14942
#
 
14943
# Check to make sure the static flag actually works.
 
14944
#
 
14945
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14946
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14947
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14948
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14950
else
 
14951
  lt_cv_prog_compiler_static_works_F77=no
 
14952
   save_LDFLAGS="$LDFLAGS"
 
14953
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14954
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14955
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14956
     # The linker can only warn and ignore the option if not recognized
 
14957
     # So say no if there are warnings
 
14958
     if test -s conftest.err; then
 
14959
       # Append any errors to the config.log.
 
14960
       cat conftest.err 1>&5
 
14961
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14962
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14963
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14964
         lt_cv_prog_compiler_static_works_F77=yes
 
14965
       fi
 
14966
     else
 
14967
       lt_cv_prog_compiler_static_works_F77=yes
 
14968
     fi
 
14969
   fi
 
14970
   $rm -r conftest*
 
14971
   LDFLAGS="$save_LDFLAGS"
 
14972
 
 
14973
fi
 
14974
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14975
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14976
 
 
14977
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14978
    :
 
14979
else
 
14980
    lt_prog_compiler_static_F77=
 
14981
fi
 
14982
 
 
14983
 
 
14984
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14985
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14986
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14988
else
 
14989
  lt_cv_prog_compiler_c_o_F77=no
 
14990
   $rm -r conftest 2>/dev/null
 
14991
   mkdir conftest
 
14992
   cd conftest
 
14993
   mkdir out
 
14994
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14995
 
 
14996
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14997
   # Insert the option either (1) after the last *FLAGS variable, or
 
14998
   # (2) before a word containing "conftest.", or (3) at the end.
 
14999
   # Note that $ac_compile itself does not contain backslashes and begins
 
15000
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15001
   lt_compile=`echo "$ac_compile" | $SED \
 
15002
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15003
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15004
   -e 's:$: $lt_compiler_flag:'`
 
15005
   (eval echo "\"\$as_me:15005: $lt_compile\"" >&5)
 
15006
   (eval "$lt_compile" 2>out/conftest.err)
 
15007
   ac_status=$?
 
15008
   cat out/conftest.err >&5
 
15009
   echo "$as_me:15009: \$? = $ac_status" >&5
 
15010
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15011
   then
 
15012
     # The compiler can only warn and ignore the option if not recognized
 
15013
     # So say no if there are warnings
 
15014
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15015
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15016
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15017
       lt_cv_prog_compiler_c_o_F77=yes
 
15018
     fi
 
15019
   fi
 
15020
   chmod u+w . 2>&5
 
15021
   $rm conftest*
 
15022
   # SGI C++ compiler will create directory out/ii_files/ for
 
15023
   # template instantiation
 
15024
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15025
   $rm out/* && rmdir out
 
15026
   cd ..
 
15027
   rmdir conftest
 
15028
   $rm conftest*
 
15029
 
 
15030
fi
 
15031
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15032
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
15033
 
 
15034
 
 
15035
hard_links="nottested"
 
15036
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15037
  # do not overwrite the value of need_locks provided by the user
 
15038
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15039
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
15040
  hard_links=yes
 
15041
  $rm conftest*
 
15042
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15043
  touch conftest.a
 
15044
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15045
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15046
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
15047
echo "${ECHO_T}$hard_links" >&6; }
 
15048
  if test "$hard_links" = no; then
 
15049
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15050
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15051
    need_locks=warn
 
15052
  fi
 
15053
else
 
15054
  need_locks=no
 
15055
fi
 
15056
 
 
15057
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15058
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
15059
 
 
15060
  runpath_var=
 
15061
  allow_undefined_flag_F77=
 
15062
  enable_shared_with_static_runtimes_F77=no
 
15063
  archive_cmds_F77=
 
15064
  archive_expsym_cmds_F77=
 
15065
  old_archive_From_new_cmds_F77=
 
15066
  old_archive_from_expsyms_cmds_F77=
 
15067
  export_dynamic_flag_spec_F77=
 
15068
  whole_archive_flag_spec_F77=
 
15069
  thread_safe_flag_spec_F77=
 
15070
  hardcode_libdir_flag_spec_F77=
 
15071
  hardcode_libdir_flag_spec_ld_F77=
 
15072
  hardcode_libdir_separator_F77=
 
15073
  hardcode_direct_F77=no
 
15074
  hardcode_minus_L_F77=no
 
15075
  hardcode_shlibpath_var_F77=unsupported
 
15076
  link_all_deplibs_F77=unknown
 
15077
  hardcode_automatic_F77=no
 
15078
  module_cmds_F77=
 
15079
  module_expsym_cmds_F77=
 
15080
  always_export_symbols_F77=no
 
15081
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15082
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15083
  # included in the symbol list
 
15084
  include_expsyms_F77=
 
15085
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15086
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15087
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15088
  # as well as any symbol that contains `d'.
 
15089
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
15090
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15091
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15092
  # the symbol is explicitly referenced.  Since portable code cannot
 
15093
  # rely on this symbol name, it's probably fine to never include it in
 
15094
  # preloaded symbol tables.
 
15095
  # Exclude shared library initialization/finalization symbols.
 
15096
  extract_expsyms_cmds=
 
15097
  # Just being paranoid about ensuring that cc_basename is set.
 
15098
  for cc_temp in $compiler""; do
 
15099
  case $cc_temp in
 
15100
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15101
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15102
    \-*) ;;
 
15103
    *) break;;
 
15104
  esac
 
15105
done
 
15106
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15107
 
 
15108
  case $host_os in
 
15109
  cygwin* | mingw* | pw32*)
 
15110
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15111
    # When not using gcc, we currently assume that we are using
 
15112
    # Microsoft Visual C++.
 
15113
    if test "$GCC" != yes; then
 
15114
      with_gnu_ld=no
 
15115
    fi
 
15116
    ;;
 
15117
  interix*)
 
15118
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15119
    with_gnu_ld=yes
 
15120
    ;;
 
15121
  openbsd*)
 
15122
    with_gnu_ld=no
 
15123
    ;;
 
15124
  esac
 
15125
 
 
15126
  ld_shlibs_F77=yes
 
15127
  if test "$with_gnu_ld" = yes; then
 
15128
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15129
    wlarc='${wl}'
 
15130
 
 
15131
    # Set some defaults for GNU ld with shared library support. These
 
15132
    # are reset later if shared libraries are not supported. Putting them
 
15133
    # here allows them to be overridden if necessary.
 
15134
    runpath_var=LD_RUN_PATH
 
15135
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15136
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15137
    # ancient GNU ld didn't support --whole-archive et. al.
 
15138
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15139
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15140
      else
 
15141
        whole_archive_flag_spec_F77=
 
15142
    fi
 
15143
    supports_anon_versioning=no
 
15144
    case `$LD -v 2>/dev/null` in
 
15145
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15146
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15147
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15148
      *\ 2.11.*) ;; # other 2.11 versions
 
15149
      *) supports_anon_versioning=yes ;;
 
15150
    esac
 
15151
 
 
15152
    # See if GNU ld supports shared libraries.
 
15153
    case $host_os in
 
15154
    aix[3-9]*)
 
15155
      # On AIX/PPC, the GNU linker is very broken
 
15156
      if test "$host_cpu" != ia64; then
 
15157
        ld_shlibs_F77=no
 
15158
        cat <<EOF 1>&2
 
15159
 
 
15160
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15161
*** to be unable to reliably create shared libraries on AIX.
 
15162
*** Therefore, libtool is disabling shared libraries support.  If you
 
15163
*** really care for shared libraries, you may want to modify your PATH
 
15164
*** so that a non-GNU linker is found, and then restart.
 
15165
 
 
15166
EOF
 
15167
      fi
 
15168
      ;;
 
15169
 
 
15170
    amigaos*)
 
15171
      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)'
 
15172
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15173
      hardcode_minus_L_F77=yes
 
15174
 
 
15175
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15176
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15177
      # to version 4, is to share data among multiple programs linked
 
15178
      # with the same dynamic library.  Since this doesn't match the
 
15179
      # behavior of shared libraries on other platforms, we can't use
 
15180
      # them.
 
15181
      ld_shlibs_F77=no
 
15182
      ;;
 
15183
 
 
15184
    beos*)
 
15185
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15186
        allow_undefined_flag_F77=unsupported
 
15187
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15188
        # support --undefined.  This deserves some investigation.  FIXME
 
15189
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15190
      else
 
15191
        ld_shlibs_F77=no
 
15192
      fi
 
15193
      ;;
 
15194
 
 
15195
    cygwin* | mingw* | pw32*)
 
15196
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15197
      # as there is no search path for DLLs.
 
15198
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15199
      allow_undefined_flag_F77=unsupported
 
15200
      always_export_symbols_F77=no
 
15201
      enable_shared_with_static_runtimes_F77=yes
 
15202
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
15203
 
 
15204
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15205
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15206
        # If the export-symbols file already is a .def file (1st line
 
15207
        # is EXPORTS), use it as is; otherwise, prepend...
 
15208
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15209
          cp $export_symbols $output_objdir/$soname.def;
 
15210
        else
 
15211
          echo EXPORTS > $output_objdir/$soname.def;
 
15212
          cat $export_symbols >> $output_objdir/$soname.def;
 
15213
        fi~
 
15214
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15215
      else
 
15216
        ld_shlibs_F77=no
 
15217
      fi
 
15218
      ;;
 
15219
 
 
15220
    interix[3-9]*)
 
15221
      hardcode_direct_F77=no
 
15222
      hardcode_shlibpath_var_F77=no
 
15223
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15224
      export_dynamic_flag_spec_F77='${wl}-E'
 
15225
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15226
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15227
      # default) and relocated if they conflict, which is a slow very memory
 
15228
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15229
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15230
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15231
      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'
 
15232
      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'
 
15233
      ;;
 
15234
 
 
15235
    gnu* | linux* | k*bsd*-gnu)
 
15236
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15237
        tmp_addflag=
 
15238
        case $cc_basename,$host_cpu in
 
15239
        pgcc*)                          # Portland Group C compiler
 
15240
          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'
 
15241
          tmp_addflag=' $pic_flag'
 
15242
          ;;
 
15243
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15244
          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'
 
15245
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15246
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15247
          tmp_addflag=' -i_dynamic' ;;
 
15248
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15249
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15250
        ifc* | ifort*)                  # Intel Fortran compiler
 
15251
          tmp_addflag=' -nofor_main' ;;
 
15252
        esac
 
15253
        case `$CC -V 2>&1 | sed 5q` in
 
15254
        *Sun\ C*)                       # Sun C 5.9
 
15255
          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'
 
15256
          tmp_sharedflag='-G' ;;
 
15257
        *Sun\ F*)                       # Sun Fortran 8.3
 
15258
          tmp_sharedflag='-G' ;;
 
15259
        *)
 
15260
          tmp_sharedflag='-shared' ;;
 
15261
        esac
 
15262
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15263
 
 
15264
        if test $supports_anon_versioning = yes; then
 
15265
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15266
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15267
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15268
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15269
        fi
 
15270
        link_all_deplibs_F77=no
 
15271
      else
 
15272
        ld_shlibs_F77=no
 
15273
      fi
 
15274
      ;;
 
15275
 
 
15276
    netbsd* | netbsdelf*-gnu)
 
15277
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15278
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15279
        wlarc=
 
15280
      else
 
15281
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15282
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15283
      fi
 
15284
      ;;
 
15285
 
 
15286
    solaris*)
 
15287
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15288
        ld_shlibs_F77=no
 
15289
        cat <<EOF 1>&2
 
15290
 
 
15291
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15292
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15293
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15294
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15295
*** your PATH or compiler configuration so that the native linker is
 
15296
*** used, and then restart.
 
15297
 
 
15298
EOF
 
15299
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15300
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15301
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15302
      else
 
15303
        ld_shlibs_F77=no
 
15304
      fi
 
15305
      ;;
 
15306
 
 
15307
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15308
      case `$LD -v 2>&1` in
 
15309
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15310
        ld_shlibs_F77=no
 
15311
        cat <<_LT_EOF 1>&2
 
15312
 
 
15313
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15314
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15315
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15316
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15317
*** your PATH or compiler configuration so that the native linker is
 
15318
*** used, and then restart.
 
15319
 
 
15320
_LT_EOF
 
15321
        ;;
 
15322
        *)
 
15323
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15324
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15325
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15326
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15327
          else
 
15328
            ld_shlibs_F77=no
 
15329
          fi
 
15330
        ;;
 
15331
      esac
 
15332
      ;;
 
15333
 
 
15334
    sunos4*)
 
15335
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15336
      wlarc=
 
15337
      hardcode_direct_F77=yes
 
15338
      hardcode_shlibpath_var_F77=no
 
15339
      ;;
 
15340
 
 
15341
    *)
 
15342
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15343
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15344
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15345
      else
 
15346
        ld_shlibs_F77=no
 
15347
      fi
 
15348
      ;;
 
15349
    esac
 
15350
 
 
15351
    if test "$ld_shlibs_F77" = no; then
 
15352
      runpath_var=
 
15353
      hardcode_libdir_flag_spec_F77=
 
15354
      export_dynamic_flag_spec_F77=
 
15355
      whole_archive_flag_spec_F77=
 
15356
    fi
 
15357
  else
 
15358
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15359
    case $host_os in
 
15360
    aix3*)
 
15361
      allow_undefined_flag_F77=unsupported
 
15362
      always_export_symbols_F77=yes
 
15363
      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'
 
15364
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15365
      # are no directories specified by -L.
 
15366
      hardcode_minus_L_F77=yes
 
15367
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15368
        # Neither direct hardcoding nor static linking is supported with a
 
15369
        # broken collect2.
 
15370
        hardcode_direct_F77=unsupported
 
15371
      fi
 
15372
      ;;
 
15373
 
 
15374
    aix[4-9]*)
 
15375
      if test "$host_cpu" = ia64; then
 
15376
        # On IA64, the linker does run time linking by default, so we don't
 
15377
        # have to do anything special.
 
15378
        aix_use_runtimelinking=no
 
15379
        exp_sym_flag='-Bexport'
 
15380
        no_entry_flag=""
 
15381
      else
 
15382
        # If we're using GNU nm, then we don't want the "-C" option.
 
15383
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15384
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15385
          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'
 
15386
        else
 
15387
          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'
 
15388
        fi
 
15389
        aix_use_runtimelinking=no
 
15390
 
 
15391
        # Test if we are trying to use run time linking or normal
 
15392
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15393
        # need to do runtime linking.
 
15394
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15395
          for ld_flag in $LDFLAGS; do
 
15396
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15397
            aix_use_runtimelinking=yes
 
15398
            break
 
15399
          fi
 
15400
          done
 
15401
          ;;
 
15402
        esac
 
15403
 
 
15404
        exp_sym_flag='-bexport'
 
15405
        no_entry_flag='-bnoentry'
 
15406
      fi
 
15407
 
 
15408
      # When large executables or shared objects are built, AIX ld can
 
15409
      # have problems creating the table of contents.  If linking a library
 
15410
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15411
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15412
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15413
 
 
15414
      archive_cmds_F77=''
 
15415
      hardcode_direct_F77=yes
 
15416
      hardcode_libdir_separator_F77=':'
 
15417
      link_all_deplibs_F77=yes
 
15418
 
 
15419
      if test "$GCC" = yes; then
 
15420
        case $host_os in aix4.[012]|aix4.[012].*)
 
15421
        # We only want to do this on AIX 4.2 and lower, the check
 
15422
        # below for broken collect2 doesn't work under 4.3+
 
15423
          collect2name=`${CC} -print-prog-name=collect2`
 
15424
          if test -f "$collect2name" && \
 
15425
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15426
          then
 
15427
          # We have reworked collect2
 
15428
          :
 
15429
          else
 
15430
          # We have old collect2
 
15431
          hardcode_direct_F77=unsupported
 
15432
          # It fails to find uninstalled libraries when the uninstalled
 
15433
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15434
          # to unsupported forces relinking
 
15435
          hardcode_minus_L_F77=yes
 
15436
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15437
          hardcode_libdir_separator_F77=
 
15438
          fi
 
15439
          ;;
 
15440
        esac
 
15441
        shared_flag='-shared'
 
15442
        if test "$aix_use_runtimelinking" = yes; then
 
15443
          shared_flag="$shared_flag "'${wl}-G'
 
15444
        fi
 
15445
      else
 
15446
        # not using gcc
 
15447
        if test "$host_cpu" = ia64; then
 
15448
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15449
        # chokes on -Wl,-G. The following line is correct:
 
15450
          shared_flag='-G'
 
15451
        else
 
15452
          if test "$aix_use_runtimelinking" = yes; then
 
15453
            shared_flag='${wl}-G'
 
15454
          else
 
15455
            shared_flag='${wl}-bM:SRE'
 
15456
          fi
 
15457
        fi
 
15458
      fi
 
15459
 
 
15460
      # It seems that -bexpall does not export symbols beginning with
 
15461
      # underscore (_), so it is better to generate a list of symbols to export.
 
15462
      always_export_symbols_F77=yes
 
15463
      if test "$aix_use_runtimelinking" = yes; then
 
15464
        # Warning - without using the other runtime loading flags (-brtl),
 
15465
        # -berok will link without error, but may produce a broken library.
 
15466
        allow_undefined_flag_F77='-berok'
 
15467
       # Determine the default libpath from the value encoded in an empty executable.
 
15468
       cat >conftest.$ac_ext <<_ACEOF
 
15469
      program main
 
15470
 
 
15471
      end
 
15472
_ACEOF
 
15473
rm -f conftest.$ac_objext conftest$ac_exeext
 
15474
if { (ac_try="$ac_link"
 
15475
case "(($ac_try" in
 
15476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15477
  *) ac_try_echo=$ac_try;;
 
15478
esac
 
15479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15480
  (eval "$ac_link") 2>conftest.er1
 
15481
  ac_status=$?
 
15482
  grep -v '^ *+' conftest.er1 >conftest.err
 
15483
  rm -f conftest.er1
 
15484
  cat conftest.err >&5
 
15485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15486
  (exit $ac_status); } && {
 
15487
         test -z "$ac_f77_werror_flag" ||
 
15488
         test ! -s conftest.err
 
15489
       } && test -s conftest$ac_exeext &&
 
15490
       $as_test_x conftest$ac_exeext; then
 
15491
 
 
15492
lt_aix_libpath_sed='
 
15493
    /Import File Strings/,/^$/ {
 
15494
        /^0/ {
 
15495
            s/^0  *\(.*\)$/\1/
 
15496
            p
 
15497
        }
 
15498
    }'
 
15499
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15500
# Check for a 64-bit object if we didn't find anything.
 
15501
if test -z "$aix_libpath"; then
 
15502
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15503
fi
 
15504
else
 
15505
  echo "$as_me: failed program was:" >&5
 
15506
sed 's/^/| /' conftest.$ac_ext >&5
 
15507
 
 
15508
 
 
15509
fi
 
15510
 
 
15511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15512
      conftest$ac_exeext conftest.$ac_ext
 
15513
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15514
 
 
15515
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15516
        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"
 
15517
       else
 
15518
        if test "$host_cpu" = ia64; then
 
15519
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15520
          allow_undefined_flag_F77="-z nodefs"
 
15521
          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"
 
15522
        else
 
15523
         # Determine the default libpath from the value encoded in an empty executable.
 
15524
         cat >conftest.$ac_ext <<_ACEOF
 
15525
      program main
 
15526
 
 
15527
      end
 
15528
_ACEOF
 
15529
rm -f conftest.$ac_objext conftest$ac_exeext
 
15530
if { (ac_try="$ac_link"
 
15531
case "(($ac_try" in
 
15532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15533
  *) ac_try_echo=$ac_try;;
 
15534
esac
 
15535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15536
  (eval "$ac_link") 2>conftest.er1
 
15537
  ac_status=$?
 
15538
  grep -v '^ *+' conftest.er1 >conftest.err
 
15539
  rm -f conftest.er1
 
15540
  cat conftest.err >&5
 
15541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15542
  (exit $ac_status); } && {
 
15543
         test -z "$ac_f77_werror_flag" ||
 
15544
         test ! -s conftest.err
 
15545
       } && test -s conftest$ac_exeext &&
 
15546
       $as_test_x conftest$ac_exeext; then
 
15547
 
 
15548
lt_aix_libpath_sed='
 
15549
    /Import File Strings/,/^$/ {
 
15550
        /^0/ {
 
15551
            s/^0  *\(.*\)$/\1/
 
15552
            p
 
15553
        }
 
15554
    }'
 
15555
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15556
# Check for a 64-bit object if we didn't find anything.
 
15557
if test -z "$aix_libpath"; then
 
15558
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15559
fi
 
15560
else
 
15561
  echo "$as_me: failed program was:" >&5
 
15562
sed 's/^/| /' conftest.$ac_ext >&5
 
15563
 
 
15564
 
 
15565
fi
 
15566
 
 
15567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15568
      conftest$ac_exeext conftest.$ac_ext
 
15569
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15570
 
 
15571
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15572
          # Warning - without using the other run time loading flags,
 
15573
          # -berok will link without error, but may produce a broken library.
 
15574
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15575
          allow_undefined_flag_F77=' ${wl}-berok'
 
15576
          # Exported symbols can be pulled into shared objects from archives
 
15577
          whole_archive_flag_spec_F77='$convenience'
 
15578
          archive_cmds_need_lc_F77=yes
 
15579
          # This is similar to how AIX traditionally builds its shared libraries.
 
15580
          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'
 
15581
        fi
 
15582
      fi
 
15583
      ;;
 
15584
 
 
15585
    amigaos*)
 
15586
      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)'
 
15587
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15588
      hardcode_minus_L_F77=yes
 
15589
      # see comment about different semantics on the GNU ld section
 
15590
      ld_shlibs_F77=no
 
15591
      ;;
 
15592
 
 
15593
    bsdi[45]*)
 
15594
      export_dynamic_flag_spec_F77=-rdynamic
 
15595
      ;;
 
15596
 
 
15597
    cygwin* | mingw* | pw32*)
 
15598
      # When not using gcc, we currently assume that we are using
 
15599
      # Microsoft Visual C++.
 
15600
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15601
      # no search path for DLLs.
 
15602
      hardcode_libdir_flag_spec_F77=' '
 
15603
      allow_undefined_flag_F77=unsupported
 
15604
      # Tell ltmain to make .lib files, not .a files.
 
15605
      libext=lib
 
15606
      # Tell ltmain to make .dll files, not .so files.
 
15607
      shrext_cmds=".dll"
 
15608
      # FIXME: Setting linknames here is a bad hack.
 
15609
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15610
      # The linker will automatically build a .lib file if we build a DLL.
 
15611
      old_archive_From_new_cmds_F77='true'
 
15612
      # FIXME: Should let the user specify the lib program.
 
15613
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15614
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15615
      enable_shared_with_static_runtimes_F77=yes
 
15616
      ;;
 
15617
 
 
15618
    darwin* | rhapsody*)
 
15619
      case $host_os in
 
15620
        rhapsody* | darwin1.[012])
 
15621
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15622
         ;;
 
15623
       *) # Darwin 1.3 on
 
15624
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15625
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15626
         else
 
15627
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15628
             10.[012])
 
15629
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15630
               ;;
 
15631
             10.*)
 
15632
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15633
               ;;
 
15634
           esac
 
15635
         fi
 
15636
         ;;
 
15637
      esac
 
15638
      archive_cmds_need_lc_F77=no
 
15639
      hardcode_direct_F77=no
 
15640
      hardcode_automatic_F77=yes
 
15641
      hardcode_shlibpath_var_F77=unsupported
 
15642
      whole_archive_flag_spec_F77=''
 
15643
      link_all_deplibs_F77=yes
 
15644
    if test "$GCC" = yes ; then
 
15645
        output_verbose_link_cmd='echo'
 
15646
        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}"
 
15647
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15648
        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}"
 
15649
        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}"
 
15650
    else
 
15651
      case $cc_basename in
 
15652
        xlc*)
 
15653
         output_verbose_link_cmd='echo'
 
15654
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15655
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15656
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15657
         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}'
 
15658
          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}'
 
15659
          ;;
 
15660
       *)
 
15661
         ld_shlibs_F77=no
 
15662
          ;;
 
15663
      esac
 
15664
    fi
 
15665
      ;;
 
15666
 
 
15667
    dgux*)
 
15668
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15669
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15670
      hardcode_shlibpath_var_F77=no
 
15671
      ;;
 
15672
 
 
15673
    freebsd1*)
 
15674
      ld_shlibs_F77=no
 
15675
      ;;
 
15676
 
 
15677
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15678
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15679
    # does not break anything, and helps significantly (at the cost of a little
 
15680
    # extra space).
 
15681
    freebsd2.2*)
 
15682
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15683
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15684
      hardcode_direct_F77=yes
 
15685
      hardcode_shlibpath_var_F77=no
 
15686
      ;;
 
15687
 
 
15688
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15689
    freebsd2*)
 
15690
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15691
      hardcode_direct_F77=yes
 
15692
      hardcode_minus_L_F77=yes
 
15693
      hardcode_shlibpath_var_F77=no
 
15694
      ;;
 
15695
 
 
15696
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15697
    freebsd* | dragonfly*)
 
15698
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15699
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15700
      hardcode_direct_F77=yes
 
15701
      hardcode_shlibpath_var_F77=no
 
15702
      ;;
 
15703
 
 
15704
    hpux9*)
 
15705
      if test "$GCC" = yes; then
 
15706
        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'
 
15707
      else
 
15708
        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'
 
15709
      fi
 
15710
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15711
      hardcode_libdir_separator_F77=:
 
15712
      hardcode_direct_F77=yes
 
15713
 
 
15714
      # hardcode_minus_L: Not really in the search PATH,
 
15715
      # but as the default location of the library.
 
15716
      hardcode_minus_L_F77=yes
 
15717
      export_dynamic_flag_spec_F77='${wl}-E'
 
15718
      ;;
 
15719
 
 
15720
    hpux10*)
 
15721
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15722
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15723
      else
 
15724
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15725
      fi
 
15726
      if test "$with_gnu_ld" = no; then
 
15727
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15728
        hardcode_libdir_separator_F77=:
 
15729
 
 
15730
        hardcode_direct_F77=yes
 
15731
        export_dynamic_flag_spec_F77='${wl}-E'
 
15732
 
 
15733
        # hardcode_minus_L: Not really in the search PATH,
 
15734
        # but as the default location of the library.
 
15735
        hardcode_minus_L_F77=yes
 
15736
      fi
 
15737
      ;;
 
15738
 
 
15739
    hpux11*)
 
15740
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15741
        case $host_cpu in
 
15742
        hppa*64*)
 
15743
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15744
          ;;
 
15745
        ia64*)
 
15746
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15747
          ;;
 
15748
        *)
 
15749
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15750
          ;;
 
15751
        esac
 
15752
      else
 
15753
        case $host_cpu in
 
15754
        hppa*64*)
 
15755
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15756
          ;;
 
15757
        ia64*)
 
15758
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15759
          ;;
 
15760
        *)
 
15761
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15762
          ;;
 
15763
        esac
 
15764
      fi
 
15765
      if test "$with_gnu_ld" = no; then
 
15766
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15767
        hardcode_libdir_separator_F77=:
 
15768
 
 
15769
        case $host_cpu in
 
15770
        hppa*64*|ia64*)
 
15771
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15772
          hardcode_direct_F77=no
 
15773
          hardcode_shlibpath_var_F77=no
 
15774
          ;;
 
15775
        *)
 
15776
          hardcode_direct_F77=yes
 
15777
          export_dynamic_flag_spec_F77='${wl}-E'
 
15778
 
 
15779
          # hardcode_minus_L: Not really in the search PATH,
 
15780
          # but as the default location of the library.
 
15781
          hardcode_minus_L_F77=yes
 
15782
          ;;
 
15783
        esac
 
15784
      fi
 
15785
      ;;
 
15786
 
 
15787
    irix5* | irix6* | nonstopux*)
 
15788
      if test "$GCC" = yes; then
 
15789
        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'
 
15790
      else
 
15791
        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'
 
15792
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15793
      fi
 
15794
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15795
      hardcode_libdir_separator_F77=:
 
15796
      link_all_deplibs_F77=yes
 
15797
      ;;
 
15798
 
 
15799
    netbsd* | netbsdelf*-gnu)
 
15800
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15801
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15802
      else
 
15803
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15804
      fi
 
15805
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15806
      hardcode_direct_F77=yes
 
15807
      hardcode_shlibpath_var_F77=no
 
15808
      ;;
 
15809
 
 
15810
    newsos6)
 
15811
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15812
      hardcode_direct_F77=yes
 
15813
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15814
      hardcode_libdir_separator_F77=:
 
15815
      hardcode_shlibpath_var_F77=no
 
15816
      ;;
 
15817
 
 
15818
    openbsd*)
 
15819
      if test -f /usr/libexec/ld.so; then
 
15820
        hardcode_direct_F77=yes
 
15821
        hardcode_shlibpath_var_F77=no
 
15822
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15823
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15824
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15825
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15826
          export_dynamic_flag_spec_F77='${wl}-E'
 
15827
        else
 
15828
          case $host_os in
 
15829
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15830
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15831
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15832
             ;;
 
15833
           *)
 
15834
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15835
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15836
             ;;
 
15837
          esac
 
15838
        fi
 
15839
      else
 
15840
        ld_shlibs_F77=no
 
15841
      fi
 
15842
      ;;
 
15843
 
 
15844
    os2*)
 
15845
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15846
      hardcode_minus_L_F77=yes
 
15847
      allow_undefined_flag_F77=unsupported
 
15848
      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'
 
15849
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15850
      ;;
 
15851
 
 
15852
    osf3*)
 
15853
      if test "$GCC" = yes; then
 
15854
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15855
        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'
 
15856
      else
 
15857
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15858
        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'
 
15859
      fi
 
15860
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15861
      hardcode_libdir_separator_F77=:
 
15862
      ;;
 
15863
 
 
15864
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15865
      if test "$GCC" = yes; then
 
15866
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15867
        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'
 
15868
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15869
      else
 
15870
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15871
        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'
 
15872
        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~
 
15873
        $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'
 
15874
 
 
15875
        # Both c and cxx compiler support -rpath directly
 
15876
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15877
      fi
 
15878
      hardcode_libdir_separator_F77=:
 
15879
      ;;
 
15880
 
 
15881
    solaris*)
 
15882
      no_undefined_flag_F77=' -z text'
 
15883
      if test "$GCC" = yes; then
 
15884
        wlarc='${wl}'
 
15885
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15886
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15887
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15888
      else
 
15889
        wlarc=''
 
15890
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15891
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15892
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15893
      fi
 
15894
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15895
      hardcode_shlibpath_var_F77=no
 
15896
      case $host_os in
 
15897
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15898
      *)
 
15899
        # The compiler driver will combine and reorder linker options,
 
15900
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15901
        # but is careful enough not to reorder.
 
15902
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15903
        if test "$GCC" = yes; then
 
15904
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15905
        else
 
15906
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15907
        fi
 
15908
        ;;
 
15909
      esac
 
15910
      link_all_deplibs_F77=yes
 
15911
      ;;
 
15912
 
 
15913
    sunos4*)
 
15914
      if test "x$host_vendor" = xsequent; then
 
15915
        # Use $CC to link under sequent, because it throws in some extra .o
 
15916
        # files that make .init and .fini sections work.
 
15917
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15918
      else
 
15919
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15920
      fi
 
15921
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15922
      hardcode_direct_F77=yes
 
15923
      hardcode_minus_L_F77=yes
 
15924
      hardcode_shlibpath_var_F77=no
 
15925
      ;;
 
15926
 
 
15927
    sysv4)
 
15928
      case $host_vendor in
 
15929
        sni)
 
15930
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15931
          hardcode_direct_F77=yes # is this really true???
 
15932
        ;;
 
15933
        siemens)
 
15934
          ## LD is ld it makes a PLAMLIB
 
15935
          ## CC just makes a GrossModule.
 
15936
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15937
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15938
          hardcode_direct_F77=no
 
15939
        ;;
 
15940
        motorola)
 
15941
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15942
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15943
        ;;
 
15944
      esac
 
15945
      runpath_var='LD_RUN_PATH'
 
15946
      hardcode_shlibpath_var_F77=no
 
15947
      ;;
 
15948
 
 
15949
    sysv4.3*)
 
15950
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15951
      hardcode_shlibpath_var_F77=no
 
15952
      export_dynamic_flag_spec_F77='-Bexport'
 
15953
      ;;
 
15954
 
 
15955
    sysv4*MP*)
 
15956
      if test -d /usr/nec; then
 
15957
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15958
        hardcode_shlibpath_var_F77=no
 
15959
        runpath_var=LD_RUN_PATH
 
15960
        hardcode_runpath_var=yes
 
15961
        ld_shlibs_F77=yes
 
15962
      fi
 
15963
      ;;
 
15964
 
 
15965
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15966
      no_undefined_flag_F77='${wl}-z,text'
 
15967
      archive_cmds_need_lc_F77=no
 
15968
      hardcode_shlibpath_var_F77=no
 
15969
      runpath_var='LD_RUN_PATH'
 
15970
 
 
15971
      if test "$GCC" = yes; then
 
15972
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15973
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15974
      else
 
15975
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15976
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15977
      fi
 
15978
      ;;
 
15979
 
 
15980
    sysv5* | sco3.2v5* | sco5v6*)
 
15981
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15982
      # link with -lc, and that would cause any symbols used from libc to
 
15983
      # always be unresolved, which means just about no library would
 
15984
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15985
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15986
      # as -z defs.
 
15987
      no_undefined_flag_F77='${wl}-z,text'
 
15988
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15989
      archive_cmds_need_lc_F77=no
 
15990
      hardcode_shlibpath_var_F77=no
 
15991
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15992
      hardcode_libdir_separator_F77=':'
 
15993
      link_all_deplibs_F77=yes
 
15994
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15995
      runpath_var='LD_RUN_PATH'
 
15996
 
 
15997
      if test "$GCC" = yes; then
 
15998
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15999
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16000
      else
 
16001
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16002
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16003
      fi
 
16004
      ;;
 
16005
 
 
16006
    uts4*)
 
16007
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16008
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16009
      hardcode_shlibpath_var_F77=no
 
16010
      ;;
 
16011
 
 
16012
    *)
 
16013
      ld_shlibs_F77=no
 
16014
      ;;
 
16015
    esac
 
16016
  fi
 
16017
 
 
16018
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16019
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
16020
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16021
 
 
16022
#
 
16023
# Do we need to explicitly link libc?
 
16024
#
 
16025
case "x$archive_cmds_need_lc_F77" in
 
16026
x|xyes)
 
16027
  # Assume -lc should be added
 
16028
  archive_cmds_need_lc_F77=yes
 
16029
 
 
16030
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16031
    case $archive_cmds_F77 in
 
16032
    *'~'*)
 
16033
      # FIXME: we may have to deal with multi-command sequences.
 
16034
      ;;
 
16035
    '$CC '*)
 
16036
      # Test whether the compiler implicitly links with -lc since on some
 
16037
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16038
      # to ld, don't add -lc before -lgcc.
 
16039
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16040
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
16041
      $rm conftest*
 
16042
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16043
 
 
16044
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16045
  (eval $ac_compile) 2>&5
 
16046
  ac_status=$?
 
16047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16048
  (exit $ac_status); } 2>conftest.err; then
 
16049
        soname=conftest
 
16050
        lib=conftest
 
16051
        libobjs=conftest.$ac_objext
 
16052
        deplibs=
 
16053
        wl=$lt_prog_compiler_wl_F77
 
16054
        pic_flag=$lt_prog_compiler_pic_F77
 
16055
        compiler_flags=-v
 
16056
        linker_flags=-v
 
16057
        verstring=
 
16058
        output_objdir=.
 
16059
        libname=conftest
 
16060
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16061
        allow_undefined_flag_F77=
 
16062
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16063
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16064
  ac_status=$?
 
16065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16066
  (exit $ac_status); }
 
16067
        then
 
16068
          archive_cmds_need_lc_F77=no
 
16069
        else
 
16070
          archive_cmds_need_lc_F77=yes
 
16071
        fi
 
16072
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16073
      else
 
16074
        cat conftest.err 1>&5
 
16075
      fi
 
16076
      $rm conftest*
 
16077
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16078
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
16079
      ;;
 
16080
    esac
 
16081
  fi
 
16082
  ;;
 
16083
esac
 
16084
 
 
16085
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16086
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
16087
library_names_spec=
 
16088
libname_spec='lib$name'
 
16089
soname_spec=
 
16090
shrext_cmds=".so"
 
16091
postinstall_cmds=
 
16092
postuninstall_cmds=
 
16093
finish_cmds=
 
16094
finish_eval=
 
16095
shlibpath_var=
 
16096
shlibpath_overrides_runpath=unknown
 
16097
version_type=none
 
16098
dynamic_linker="$host_os ld.so"
 
16099
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16100
 
 
16101
need_lib_prefix=unknown
 
16102
hardcode_into_libs=no
 
16103
 
 
16104
# when you set need_version to no, make sure it does not cause -set_version
 
16105
# flags to be left without arguments
 
16106
need_version=unknown
 
16107
 
 
16108
case $host_os in
 
16109
aix3*)
 
16110
  version_type=linux
 
16111
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16112
  shlibpath_var=LIBPATH
 
16113
 
 
16114
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16115
  soname_spec='${libname}${release}${shared_ext}$major'
 
16116
  ;;
 
16117
 
 
16118
aix[4-9]*)
 
16119
  version_type=linux
 
16120
  need_lib_prefix=no
 
16121
  need_version=no
 
16122
  hardcode_into_libs=yes
 
16123
  if test "$host_cpu" = ia64; then
 
16124
    # AIX 5 supports IA64
 
16125
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16126
    shlibpath_var=LD_LIBRARY_PATH
 
16127
  else
 
16128
    # With GCC up to 2.95.x, collect2 would create an import file
 
16129
    # for dependence libraries.  The import file would start with
 
16130
    # the line `#! .'.  This would cause the generated library to
 
16131
    # depend on `.', always an invalid library.  This was fixed in
 
16132
    # development snapshots of GCC prior to 3.0.
 
16133
    case $host_os in
 
16134
      aix4 | aix4.[01] | aix4.[01].*)
 
16135
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16136
           echo ' yes '
 
16137
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16138
        :
 
16139
      else
 
16140
        can_build_shared=no
 
16141
      fi
 
16142
      ;;
 
16143
    esac
 
16144
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16145
    # soname into executable. Probably we can add versioning support to
 
16146
    # collect2, so additional links can be useful in future.
 
16147
    if test "$aix_use_runtimelinking" = yes; then
 
16148
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16149
      # instead of lib<name>.a to let people know that these are not
 
16150
      # typical AIX shared libraries.
 
16151
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16152
    else
 
16153
      # We preserve .a as extension for shared libraries through AIX4.2
 
16154
      # and later when we are not doing run time linking.
 
16155
      library_names_spec='${libname}${release}.a $libname.a'
 
16156
      soname_spec='${libname}${release}${shared_ext}$major'
 
16157
    fi
 
16158
    shlibpath_var=LIBPATH
 
16159
  fi
 
16160
  ;;
 
16161
 
 
16162
amigaos*)
 
16163
  library_names_spec='$libname.ixlibrary $libname.a'
 
16164
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16165
  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'
 
16166
  ;;
 
16167
 
 
16168
beos*)
 
16169
  library_names_spec='${libname}${shared_ext}'
 
16170
  dynamic_linker="$host_os ld.so"
 
16171
  shlibpath_var=LIBRARY_PATH
 
16172
  ;;
 
16173
 
 
16174
bsdi[45]*)
 
16175
  version_type=linux
 
16176
  need_version=no
 
16177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16178
  soname_spec='${libname}${release}${shared_ext}$major'
 
16179
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16180
  shlibpath_var=LD_LIBRARY_PATH
 
16181
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16182
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16183
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16184
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16185
  # libtool to hard-code these into programs
 
16186
  ;;
 
16187
 
 
16188
cygwin* | mingw* | pw32*)
 
16189
  version_type=windows
 
16190
  shrext_cmds=".dll"
 
16191
  need_version=no
 
16192
  need_lib_prefix=no
 
16193
 
 
16194
  case $GCC,$host_os in
 
16195
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16196
    library_names_spec='$libname.dll.a'
 
16197
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16198
    postinstall_cmds='base_file=`basename \${file}`~
 
16199
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16200
      dldir=$destdir/`dirname \$dlpath`~
 
16201
      test -d \$dldir || mkdir -p \$dldir~
 
16202
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16203
      chmod a+x \$dldir/$dlname'
 
16204
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16205
      dlpath=$dir/\$dldll~
 
16206
       $rm \$dlpath'
 
16207
    shlibpath_overrides_runpath=yes
 
16208
 
 
16209
    case $host_os in
 
16210
    cygwin*)
 
16211
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16212
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16213
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16214
      ;;
 
16215
    mingw*)
 
16216
      # MinGW DLLs use traditional 'lib' prefix
 
16217
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16218
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16219
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16220
        # It is most probably a Windows format PATH printed by
 
16221
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16222
        # path with ; separators, and with drive letters. We can handle the
 
16223
        # drive letters (cygwin fileutils understands them), so leave them,
 
16224
        # especially as we might pass files found there to a mingw objdump,
 
16225
        # which wouldn't understand a cygwinified path. Ahh.
 
16226
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16227
      else
 
16228
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16229
      fi
 
16230
      ;;
 
16231
    pw32*)
 
16232
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16233
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16234
      ;;
 
16235
    esac
 
16236
    ;;
 
16237
 
 
16238
  *)
 
16239
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16240
    ;;
 
16241
  esac
 
16242
  dynamic_linker='Win32 ld.exe'
 
16243
  # FIXME: first we should search . and the directory the executable is in
 
16244
  shlibpath_var=PATH
 
16245
  ;;
 
16246
 
 
16247
darwin* | rhapsody*)
 
16248
  dynamic_linker="$host_os dyld"
 
16249
  version_type=darwin
 
16250
  need_lib_prefix=no
 
16251
  need_version=no
 
16252
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16253
  soname_spec='${libname}${release}${major}$shared_ext'
 
16254
  shlibpath_overrides_runpath=yes
 
16255
  shlibpath_var=DYLD_LIBRARY_PATH
 
16256
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16257
 
 
16258
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16259
  ;;
 
16260
 
 
16261
dgux*)
 
16262
  version_type=linux
 
16263
  need_lib_prefix=no
 
16264
  need_version=no
 
16265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16266
  soname_spec='${libname}${release}${shared_ext}$major'
 
16267
  shlibpath_var=LD_LIBRARY_PATH
 
16268
  ;;
 
16269
 
 
16270
freebsd1*)
 
16271
  dynamic_linker=no
 
16272
  ;;
 
16273
 
 
16274
freebsd* | dragonfly*)
 
16275
  # DragonFly does not have aout.  When/if they implement a new
 
16276
  # versioning mechanism, adjust this.
 
16277
  if test -x /usr/bin/objformat; then
 
16278
    objformat=`/usr/bin/objformat`
 
16279
  else
 
16280
    case $host_os in
 
16281
    freebsd[123]*) objformat=aout ;;
 
16282
    *) objformat=elf ;;
 
16283
    esac
 
16284
  fi
 
16285
  version_type=freebsd-$objformat
 
16286
  case $version_type in
 
16287
    freebsd-elf*)
 
16288
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16289
      need_version=no
 
16290
      need_lib_prefix=no
 
16291
      ;;
 
16292
    freebsd-*)
 
16293
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16294
      need_version=yes
 
16295
      ;;
 
16296
  esac
 
16297
  shlibpath_var=LD_LIBRARY_PATH
 
16298
  case $host_os in
 
16299
  freebsd2*)
 
16300
    shlibpath_overrides_runpath=yes
 
16301
    ;;
 
16302
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16303
    shlibpath_overrides_runpath=yes
 
16304
    hardcode_into_libs=yes
 
16305
    ;;
 
16306
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16307
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16308
    shlibpath_overrides_runpath=no
 
16309
    hardcode_into_libs=yes
 
16310
    ;;
 
16311
  *) # from 4.6 on, and DragonFly
 
16312
    shlibpath_overrides_runpath=yes
 
16313
    hardcode_into_libs=yes
 
16314
    ;;
 
16315
  esac
 
16316
  ;;
 
16317
 
 
16318
gnu*)
 
16319
  version_type=linux
 
16320
  need_lib_prefix=no
 
16321
  need_version=no
 
16322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16323
  soname_spec='${libname}${release}${shared_ext}$major'
 
16324
  shlibpath_var=LD_LIBRARY_PATH
 
16325
  hardcode_into_libs=yes
 
16326
  ;;
 
16327
 
 
16328
hpux9* | hpux10* | hpux11*)
 
16329
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16330
  # link against other versions.
 
16331
  version_type=sunos
 
16332
  need_lib_prefix=no
 
16333
  need_version=no
 
16334
  case $host_cpu in
 
16335
  ia64*)
 
16336
    shrext_cmds='.so'
 
16337
    hardcode_into_libs=yes
 
16338
    dynamic_linker="$host_os dld.so"
 
16339
    shlibpath_var=LD_LIBRARY_PATH
 
16340
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16341
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16342
    soname_spec='${libname}${release}${shared_ext}$major'
 
16343
    if test "X$HPUX_IA64_MODE" = X32; then
 
16344
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16345
    else
 
16346
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16347
    fi
 
16348
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16349
    ;;
 
16350
   hppa*64*)
 
16351
     shrext_cmds='.sl'
 
16352
     hardcode_into_libs=yes
 
16353
     dynamic_linker="$host_os dld.sl"
 
16354
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16355
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16356
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16357
     soname_spec='${libname}${release}${shared_ext}$major'
 
16358
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16359
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16360
     ;;
 
16361
   *)
 
16362
    shrext_cmds='.sl'
 
16363
    dynamic_linker="$host_os dld.sl"
 
16364
    shlibpath_var=SHLIB_PATH
 
16365
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16366
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16367
    soname_spec='${libname}${release}${shared_ext}$major'
 
16368
    ;;
 
16369
  esac
 
16370
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16371
  postinstall_cmds='chmod 555 $lib'
 
16372
  ;;
 
16373
 
 
16374
interix[3-9]*)
 
16375
  version_type=linux
 
16376
  need_lib_prefix=no
 
16377
  need_version=no
 
16378
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16379
  soname_spec='${libname}${release}${shared_ext}$major'
 
16380
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16381
  shlibpath_var=LD_LIBRARY_PATH
 
16382
  shlibpath_overrides_runpath=no
 
16383
  hardcode_into_libs=yes
 
16384
  ;;
 
16385
 
 
16386
irix5* | irix6* | nonstopux*)
 
16387
  case $host_os in
 
16388
    nonstopux*) version_type=nonstopux ;;
 
16389
    *)
 
16390
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16391
                version_type=linux
 
16392
        else
 
16393
                version_type=irix
 
16394
        fi ;;
 
16395
  esac
 
16396
  need_lib_prefix=no
 
16397
  need_version=no
 
16398
  soname_spec='${libname}${release}${shared_ext}$major'
 
16399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16400
  case $host_os in
 
16401
  irix5* | nonstopux*)
 
16402
    libsuff= shlibsuff=
 
16403
    ;;
 
16404
  *)
 
16405
    case $LD in # libtool.m4 will add one of these switches to LD
 
16406
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16407
      libsuff= shlibsuff= libmagic=32-bit;;
 
16408
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16409
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16410
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16411
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16412
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16413
    esac
 
16414
    ;;
 
16415
  esac
 
16416
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16417
  shlibpath_overrides_runpath=no
 
16418
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16419
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16420
  hardcode_into_libs=yes
 
16421
  ;;
 
16422
 
 
16423
# No shared lib support for Linux oldld, aout, or coff.
 
16424
linux*oldld* | linux*aout* | linux*coff*)
 
16425
  dynamic_linker=no
 
16426
  ;;
 
16427
 
 
16428
# This must be Linux ELF.
 
16429
linux* | k*bsd*-gnu)
 
16430
  version_type=linux
 
16431
  need_lib_prefix=no
 
16432
  need_version=no
 
16433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16434
  soname_spec='${libname}${release}${shared_ext}$major'
 
16435
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16436
  shlibpath_var=LD_LIBRARY_PATH
 
16437
  shlibpath_overrides_runpath=no
 
16438
  # This implies no fast_install, which is unacceptable.
 
16439
  # Some rework will be needed to allow for fast_install
 
16440
  # before this can be enabled.
 
16441
  hardcode_into_libs=yes
 
16442
 
 
16443
  # Append ld.so.conf contents to the search path
 
16444
  if test -f /etc/ld.so.conf; then
 
16445
    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' ' '`
 
16446
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16447
  fi
 
16448
 
 
16449
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16450
  # powerpc, because MkLinux only supported shared libraries with the
 
16451
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16452
  # most powerpc-linux boxes support dynamic linking these days and
 
16453
  # people can always --disable-shared, the test was removed, and we
 
16454
  # assume the GNU/Linux dynamic linker is in use.
 
16455
  dynamic_linker='GNU/Linux ld.so'
 
16456
  ;;
 
16457
 
 
16458
netbsdelf*-gnu)
 
16459
  version_type=linux
 
16460
  need_lib_prefix=no
 
16461
  need_version=no
 
16462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16463
  soname_spec='${libname}${release}${shared_ext}$major'
 
16464
  shlibpath_var=LD_LIBRARY_PATH
 
16465
  shlibpath_overrides_runpath=no
 
16466
  hardcode_into_libs=yes
 
16467
  dynamic_linker='NetBSD ld.elf_so'
 
16468
  ;;
 
16469
 
 
16470
netbsd*)
 
16471
  version_type=sunos
 
16472
  need_lib_prefix=no
 
16473
  need_version=no
 
16474
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16475
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16476
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16477
    dynamic_linker='NetBSD (a.out) ld.so'
 
16478
  else
 
16479
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16480
    soname_spec='${libname}${release}${shared_ext}$major'
 
16481
    dynamic_linker='NetBSD ld.elf_so'
 
16482
  fi
 
16483
  shlibpath_var=LD_LIBRARY_PATH
 
16484
  shlibpath_overrides_runpath=yes
 
16485
  hardcode_into_libs=yes
 
16486
  ;;
 
16487
 
 
16488
newsos6)
 
16489
  version_type=linux
 
16490
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16491
  shlibpath_var=LD_LIBRARY_PATH
 
16492
  shlibpath_overrides_runpath=yes
 
16493
  ;;
 
16494
 
 
16495
nto-qnx*)
 
16496
  version_type=linux
 
16497
  need_lib_prefix=no
 
16498
  need_version=no
 
16499
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16500
  soname_spec='${libname}${release}${shared_ext}$major'
 
16501
  shlibpath_var=LD_LIBRARY_PATH
 
16502
  shlibpath_overrides_runpath=yes
 
16503
  ;;
 
16504
 
 
16505
openbsd*)
 
16506
  version_type=sunos
 
16507
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16508
  need_lib_prefix=no
 
16509
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16510
  case $host_os in
 
16511
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16512
    *)                         need_version=no  ;;
 
16513
  esac
 
16514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16515
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16516
  shlibpath_var=LD_LIBRARY_PATH
 
16517
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16518
    case $host_os in
 
16519
      openbsd2.[89] | openbsd2.[89].*)
 
16520
        shlibpath_overrides_runpath=no
 
16521
        ;;
 
16522
      *)
 
16523
        shlibpath_overrides_runpath=yes
 
16524
        ;;
 
16525
      esac
 
16526
  else
 
16527
    shlibpath_overrides_runpath=yes
 
16528
  fi
 
16529
  ;;
 
16530
 
 
16531
os2*)
 
16532
  libname_spec='$name'
 
16533
  shrext_cmds=".dll"
 
16534
  need_lib_prefix=no
 
16535
  library_names_spec='$libname${shared_ext} $libname.a'
 
16536
  dynamic_linker='OS/2 ld.exe'
 
16537
  shlibpath_var=LIBPATH
 
16538
  ;;
 
16539
 
 
16540
osf3* | osf4* | osf5*)
 
16541
  version_type=osf
 
16542
  need_lib_prefix=no
 
16543
  need_version=no
 
16544
  soname_spec='${libname}${release}${shared_ext}$major'
 
16545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16546
  shlibpath_var=LD_LIBRARY_PATH
 
16547
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16548
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16549
  ;;
 
16550
 
 
16551
rdos*)
 
16552
  dynamic_linker=no
 
16553
  ;;
 
16554
 
 
16555
solaris*)
 
16556
  version_type=linux
 
16557
  need_lib_prefix=no
 
16558
  need_version=no
 
16559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16560
  soname_spec='${libname}${release}${shared_ext}$major'
 
16561
  shlibpath_var=LD_LIBRARY_PATH
 
16562
  shlibpath_overrides_runpath=yes
 
16563
  hardcode_into_libs=yes
 
16564
  # ldd complains unless libraries are executable
 
16565
  postinstall_cmds='chmod +x $lib'
 
16566
  ;;
 
16567
 
 
16568
sunos4*)
 
16569
  version_type=sunos
 
16570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16571
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16572
  shlibpath_var=LD_LIBRARY_PATH
 
16573
  shlibpath_overrides_runpath=yes
 
16574
  if test "$with_gnu_ld" = yes; then
 
16575
    need_lib_prefix=no
 
16576
  fi
 
16577
  need_version=yes
 
16578
  ;;
 
16579
 
 
16580
sysv4 | sysv4.3*)
 
16581
  version_type=linux
 
16582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16583
  soname_spec='${libname}${release}${shared_ext}$major'
 
16584
  shlibpath_var=LD_LIBRARY_PATH
 
16585
  case $host_vendor in
 
16586
    sni)
 
16587
      shlibpath_overrides_runpath=no
 
16588
      need_lib_prefix=no
 
16589
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16590
      runpath_var=LD_RUN_PATH
 
16591
      ;;
 
16592
    siemens)
 
16593
      need_lib_prefix=no
 
16594
      ;;
 
16595
    motorola)
 
16596
      need_lib_prefix=no
 
16597
      need_version=no
 
16598
      shlibpath_overrides_runpath=no
 
16599
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16600
      ;;
 
16601
  esac
 
16602
  ;;
 
16603
 
 
16604
sysv4*MP*)
 
16605
  if test -d /usr/nec ;then
 
16606
    version_type=linux
 
16607
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16608
    soname_spec='$libname${shared_ext}.$major'
 
16609
    shlibpath_var=LD_LIBRARY_PATH
 
16610
  fi
 
16611
  ;;
 
16612
 
 
16613
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16614
  version_type=freebsd-elf
 
16615
  need_lib_prefix=no
 
16616
  need_version=no
 
16617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16618
  soname_spec='${libname}${release}${shared_ext}$major'
 
16619
  shlibpath_var=LD_LIBRARY_PATH
 
16620
  hardcode_into_libs=yes
 
16621
  if test "$with_gnu_ld" = yes; then
 
16622
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16623
    shlibpath_overrides_runpath=no
 
16624
  else
 
16625
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16626
    shlibpath_overrides_runpath=yes
 
16627
    case $host_os in
 
16628
      sco3.2v5*)
 
16629
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16630
        ;;
 
16631
    esac
 
16632
  fi
 
16633
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16634
  ;;
 
16635
 
 
16636
uts4*)
 
16637
  version_type=linux
 
16638
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16639
  soname_spec='${libname}${release}${shared_ext}$major'
 
16640
  shlibpath_var=LD_LIBRARY_PATH
 
16641
  ;;
 
16642
 
 
16643
*)
 
16644
  dynamic_linker=no
 
16645
  ;;
 
16646
esac
 
16647
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16648
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16649
test "$dynamic_linker" = no && can_build_shared=no
 
16650
 
 
16651
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16653
else
 
16654
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16655
fi
 
16656
 
 
16657
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16658
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16660
else
 
16661
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16662
fi
 
16663
 
 
16664
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16665
 
 
16666
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16667
if test "$GCC" = yes; then
 
16668
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16669
fi
 
16670
 
 
16671
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16672
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16673
hardcode_action_F77=
 
16674
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16675
   test -n "$runpath_var_F77" || \
 
16676
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16677
 
 
16678
  # We can hardcode non-existant directories.
 
16679
  if test "$hardcode_direct_F77" != no &&
 
16680
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16681
     # have to relink, otherwise we might link with an installed library
 
16682
     # when we should be linking with a yet-to-be-installed one
 
16683
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16684
     test "$hardcode_minus_L_F77" != no; then
 
16685
    # Linking always hardcodes the temporary library directory.
 
16686
    hardcode_action_F77=relink
 
16687
  else
 
16688
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16689
    hardcode_action_F77=immediate
 
16690
  fi
 
16691
else
 
16692
  # We cannot hardcode anything, or else we can only hardcode existing
 
16693
  # directories.
 
16694
  hardcode_action_F77=unsupported
 
16695
fi
 
16696
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16697
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16698
 
 
16699
if test "$hardcode_action_F77" = relink; then
 
16700
  # Fast installation is not supported
 
16701
  enable_fast_install=no
 
16702
elif test "$shlibpath_overrides_runpath" = yes ||
 
16703
     test "$enable_shared" = no; then
 
16704
  # Fast installation is not necessary
 
16705
  enable_fast_install=needless
 
16706
fi
 
16707
 
 
16708
 
 
16709
# The else clause should only fire when bootstrapping the
 
16710
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16711
# with your package, and you will get complaints that there are
 
16712
# no rules to generate ltmain.sh.
 
16713
if test -f "$ltmain"; then
 
16714
  # See if we are running on zsh, and set the options which allow our commands through
 
16715
  # without removal of \ escapes.
 
16716
  if test -n "${ZSH_VERSION+set}" ; then
 
16717
    setopt NO_GLOB_SUBST
 
16718
  fi
 
16719
  # Now quote all the things that may contain metacharacters while being
 
16720
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16721
  # variables and quote the copies for generation of the libtool script.
 
16722
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16723
    SED SHELL STRIP \
 
16724
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16725
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16726
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16727
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16728
    lt_cv_sys_global_symbol_to_c_name_address \
 
16729
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16730
    old_postinstall_cmds old_postuninstall_cmds \
 
16731
    compiler_F77 \
 
16732
    CC_F77 \
 
16733
    LD_F77 \
 
16734
    lt_prog_compiler_wl_F77 \
 
16735
    lt_prog_compiler_pic_F77 \
 
16736
    lt_prog_compiler_static_F77 \
 
16737
    lt_prog_compiler_no_builtin_flag_F77 \
 
16738
    export_dynamic_flag_spec_F77 \
 
16739
    thread_safe_flag_spec_F77 \
 
16740
    whole_archive_flag_spec_F77 \
 
16741
    enable_shared_with_static_runtimes_F77 \
 
16742
    old_archive_cmds_F77 \
 
16743
    old_archive_from_new_cmds_F77 \
 
16744
    predep_objects_F77 \
 
16745
    postdep_objects_F77 \
 
16746
    predeps_F77 \
 
16747
    postdeps_F77 \
 
16748
    compiler_lib_search_path_F77 \
 
16749
    compiler_lib_search_dirs_F77 \
 
16750
    archive_cmds_F77 \
 
16751
    archive_expsym_cmds_F77 \
 
16752
    postinstall_cmds_F77 \
 
16753
    postuninstall_cmds_F77 \
 
16754
    old_archive_from_expsyms_cmds_F77 \
 
16755
    allow_undefined_flag_F77 \
 
16756
    no_undefined_flag_F77 \
 
16757
    export_symbols_cmds_F77 \
 
16758
    hardcode_libdir_flag_spec_F77 \
 
16759
    hardcode_libdir_flag_spec_ld_F77 \
 
16760
    hardcode_libdir_separator_F77 \
 
16761
    hardcode_automatic_F77 \
 
16762
    module_cmds_F77 \
 
16763
    module_expsym_cmds_F77 \
 
16764
    lt_cv_prog_compiler_c_o_F77 \
 
16765
    fix_srcfile_path_F77 \
 
16766
    exclude_expsyms_F77 \
 
16767
    include_expsyms_F77; do
 
16768
 
 
16769
    case $var in
 
16770
    old_archive_cmds_F77 | \
 
16771
    old_archive_from_new_cmds_F77 | \
 
16772
    archive_cmds_F77 | \
 
16773
    archive_expsym_cmds_F77 | \
 
16774
    module_cmds_F77 | \
 
16775
    module_expsym_cmds_F77 | \
 
16776
    old_archive_from_expsyms_cmds_F77 | \
 
16777
    export_symbols_cmds_F77 | \
 
16778
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16779
    postinstall_cmds | postuninstall_cmds | \
 
16780
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16781
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16782
      # Double-quote double-evaled strings.
 
16783
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16784
      ;;
 
16785
    *)
 
16786
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16787
      ;;
 
16788
    esac
 
16789
  done
 
16790
 
 
16791
  case $lt_echo in
 
16792
  *'\$0 --fallback-echo"')
 
16793
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16794
    ;;
 
16795
  esac
 
16796
 
 
16797
cfgfile="$ofile"
 
16798
 
 
16799
  cat <<__EOF__ >> "$cfgfile"
 
16800
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16801
 
 
16802
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16803
 
 
16804
# Shell to use when invoking shell scripts.
 
16805
SHELL=$lt_SHELL
 
16806
 
 
16807
# Whether or not to build shared libraries.
 
16808
build_libtool_libs=$enable_shared
 
16809
 
 
16810
# Whether or not to build static libraries.
 
16811
build_old_libs=$enable_static
 
16812
 
 
16813
# Whether or not to add -lc for building shared libraries.
 
16814
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16815
 
 
16816
# Whether or not to disallow shared libs when runtime libs are static
 
16817
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16818
 
 
16819
# Whether or not to optimize for fast installation.
 
16820
fast_install=$enable_fast_install
 
16821
 
 
16822
# The host system.
 
16823
host_alias=$host_alias
 
16824
host=$host
 
16825
host_os=$host_os
 
16826
 
 
16827
# The build system.
 
16828
build_alias=$build_alias
 
16829
build=$build
 
16830
build_os=$build_os
 
16831
 
 
16832
# An echo program that does not interpret backslashes.
 
16833
echo=$lt_echo
 
16834
 
 
16835
# The archiver.
 
16836
AR=$lt_AR
 
16837
AR_FLAGS=$lt_AR_FLAGS
 
16838
 
 
16839
# A C compiler.
 
16840
LTCC=$lt_LTCC
 
16841
 
 
16842
# LTCC compiler flags.
 
16843
LTCFLAGS=$lt_LTCFLAGS
 
16844
 
 
16845
# A language-specific compiler.
 
16846
CC=$lt_compiler_F77
 
16847
 
 
16848
# Is the compiler the GNU C compiler?
 
16849
with_gcc=$GCC_F77
 
16850
 
 
16851
# An ERE matcher.
 
16852
EGREP=$lt_EGREP
 
16853
 
 
16854
# The linker used to build libraries.
 
16855
LD=$lt_LD_F77
 
16856
 
 
16857
# Whether we need hard or soft links.
 
16858
LN_S=$lt_LN_S
 
16859
 
 
16860
# A BSD-compatible nm program.
 
16861
NM=$lt_NM
 
16862
 
 
16863
# A symbol stripping program
 
16864
STRIP=$lt_STRIP
 
16865
 
 
16866
# Used to examine libraries when file_magic_cmd begins "file"
 
16867
MAGIC_CMD=$MAGIC_CMD
 
16868
 
 
16869
# Used on cygwin: DLL creation program.
 
16870
DLLTOOL="$DLLTOOL"
 
16871
 
 
16872
# Used on cygwin: object dumper.
 
16873
OBJDUMP="$OBJDUMP"
 
16874
 
 
16875
# Used on cygwin: assembler.
 
16876
AS="$AS"
 
16877
 
 
16878
# The name of the directory that contains temporary libtool files.
 
16879
objdir=$objdir
 
16880
 
 
16881
# How to create reloadable object files.
 
16882
reload_flag=$lt_reload_flag
 
16883
reload_cmds=$lt_reload_cmds
 
16884
 
 
16885
# How to pass a linker flag through the compiler.
 
16886
wl=$lt_lt_prog_compiler_wl_F77
 
16887
 
 
16888
# Object file suffix (normally "o").
 
16889
objext="$ac_objext"
 
16890
 
 
16891
# Old archive suffix (normally "a").
 
16892
libext="$libext"
 
16893
 
 
16894
# Shared library suffix (normally ".so").
 
16895
shrext_cmds='$shrext_cmds'
 
16896
 
 
16897
# Executable file suffix (normally "").
 
16898
exeext="$exeext"
 
16899
 
 
16900
# Additional compiler flags for building library objects.
 
16901
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16902
pic_mode=$pic_mode
 
16903
 
 
16904
# What is the maximum length of a command?
 
16905
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16906
 
 
16907
# Does compiler simultaneously support -c and -o options?
 
16908
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16909
 
 
16910
# Must we lock files when doing compilation?
 
16911
need_locks=$lt_need_locks
 
16912
 
 
16913
# Do we need the lib prefix for modules?
 
16914
need_lib_prefix=$need_lib_prefix
 
16915
 
 
16916
# Do we need a version for libraries?
 
16917
need_version=$need_version
 
16918
 
 
16919
# Whether dlopen is supported.
 
16920
dlopen_support=$enable_dlopen
 
16921
 
 
16922
# Whether dlopen of programs is supported.
 
16923
dlopen_self=$enable_dlopen_self
 
16924
 
 
16925
# Whether dlopen of statically linked programs is supported.
 
16926
dlopen_self_static=$enable_dlopen_self_static
 
16927
 
 
16928
# Compiler flag to prevent dynamic linking.
 
16929
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16930
 
 
16931
# Compiler flag to turn off builtin functions.
 
16932
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16933
 
 
16934
# Compiler flag to allow reflexive dlopens.
 
16935
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16936
 
 
16937
# Compiler flag to generate shared objects directly from archives.
 
16938
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16939
 
 
16940
# Compiler flag to generate thread-safe objects.
 
16941
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16942
 
 
16943
# Library versioning type.
 
16944
version_type=$version_type
 
16945
 
 
16946
# Format of library name prefix.
 
16947
libname_spec=$lt_libname_spec
 
16948
 
 
16949
# List of archive names.  First name is the real one, the rest are links.
 
16950
# The last name is the one that the linker finds with -lNAME.
 
16951
library_names_spec=$lt_library_names_spec
 
16952
 
 
16953
# The coded name of the library, if different from the real name.
 
16954
soname_spec=$lt_soname_spec
 
16955
 
 
16956
# Commands used to build and install an old-style archive.
 
16957
RANLIB=$lt_RANLIB
 
16958
old_archive_cmds=$lt_old_archive_cmds_F77
 
16959
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16960
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16961
 
 
16962
# Create an old-style archive from a shared archive.
 
16963
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16964
 
 
16965
# Create a temporary old-style archive to link instead of a shared archive.
 
16966
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16967
 
 
16968
# Commands used to build and install a shared archive.
 
16969
archive_cmds=$lt_archive_cmds_F77
 
16970
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16971
postinstall_cmds=$lt_postinstall_cmds
 
16972
postuninstall_cmds=$lt_postuninstall_cmds
 
16973
 
 
16974
# Commands used to build a loadable module (assumed same as above if empty)
 
16975
module_cmds=$lt_module_cmds_F77
 
16976
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16977
 
 
16978
# Commands to strip libraries.
 
16979
old_striplib=$lt_old_striplib
 
16980
striplib=$lt_striplib
 
16981
 
 
16982
# Dependencies to place before the objects being linked to create a
 
16983
# shared library.
 
16984
predep_objects=$lt_predep_objects_F77
 
16985
 
 
16986
# Dependencies to place after the objects being linked to create a
 
16987
# shared library.
 
16988
postdep_objects=$lt_postdep_objects_F77
 
16989
 
 
16990
# Dependencies to place before the objects being linked to create a
 
16991
# shared library.
 
16992
predeps=$lt_predeps_F77
 
16993
 
 
16994
# Dependencies to place after the objects being linked to create a
 
16995
# shared library.
 
16996
postdeps=$lt_postdeps_F77
 
16997
 
 
16998
# The directories searched by this compiler when creating a shared
 
16999
# library
 
17000
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
17001
 
 
17002
# The library search path used internally by the compiler when linking
 
17003
# a shared library.
 
17004
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17005
 
 
17006
# Method to check whether dependent libraries are shared objects.
 
17007
deplibs_check_method=$lt_deplibs_check_method
 
17008
 
 
17009
# Command to use when deplibs_check_method == file_magic.
 
17010
file_magic_cmd=$lt_file_magic_cmd
 
17011
 
 
17012
# Flag that allows shared libraries with undefined symbols to be built.
 
17013
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17014
 
 
17015
# Flag that forces no undefined symbols.
 
17016
no_undefined_flag=$lt_no_undefined_flag_F77
 
17017
 
 
17018
# Commands used to finish a libtool library installation in a directory.
 
17019
finish_cmds=$lt_finish_cmds
 
17020
 
 
17021
# Same as above, but a single script fragment to be evaled but not shown.
 
17022
finish_eval=$lt_finish_eval
 
17023
 
 
17024
# Take the output of nm and produce a listing of raw symbols and C names.
 
17025
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17026
 
 
17027
# Transform the output of nm in a proper C declaration
 
17028
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17029
 
 
17030
# Transform the output of nm in a C name address pair
 
17031
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17032
 
 
17033
# This is the shared library runtime path variable.
 
17034
runpath_var=$runpath_var
 
17035
 
 
17036
# This is the shared library path variable.
 
17037
shlibpath_var=$shlibpath_var
 
17038
 
 
17039
# Is shlibpath searched before the hard-coded library search path?
 
17040
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17041
 
 
17042
# How to hardcode a shared library path into an executable.
 
17043
hardcode_action=$hardcode_action_F77
 
17044
 
 
17045
# Whether we should hardcode library paths into libraries.
 
17046
hardcode_into_libs=$hardcode_into_libs
 
17047
 
 
17048
# Flag to hardcode \$libdir into a binary during linking.
 
17049
# This must work even if \$libdir does not exist.
 
17050
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17051
 
 
17052
# If ld is used when linking, flag to hardcode \$libdir into
 
17053
# a binary during linking. This must work even if \$libdir does
 
17054
# not exist.
 
17055
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17056
 
 
17057
# Whether we need a single -rpath flag with a separated argument.
 
17058
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17059
 
 
17060
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17061
# resulting binary.
 
17062
hardcode_direct=$hardcode_direct_F77
 
17063
 
 
17064
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17065
# resulting binary.
 
17066
hardcode_minus_L=$hardcode_minus_L_F77
 
17067
 
 
17068
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17069
# the resulting binary.
 
17070
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17071
 
 
17072
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17073
# and all subsequent libraries and executables linked against it.
 
17074
hardcode_automatic=$hardcode_automatic_F77
 
17075
 
 
17076
# Variables whose values should be saved in libtool wrapper scripts and
 
17077
# restored at relink time.
 
17078
variables_saved_for_relink="$variables_saved_for_relink"
 
17079
 
 
17080
# Whether libtool must link a program against all its dependency libraries.
 
17081
link_all_deplibs=$link_all_deplibs_F77
 
17082
 
 
17083
# Compile-time system search path for libraries
 
17084
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17085
 
 
17086
# Run-time system search path for libraries
 
17087
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17088
 
 
17089
# Fix the shell variable \$srcfile for the compiler.
 
17090
fix_srcfile_path=$lt_fix_srcfile_path
 
17091
 
 
17092
# Set to yes if exported symbols are required.
 
17093
always_export_symbols=$always_export_symbols_F77
 
17094
 
 
17095
# The commands to list exported symbols.
 
17096
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17097
 
 
17098
# The commands to extract the exported symbol list from a shared archive.
 
17099
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17100
 
 
17101
# Symbols that should not be listed in the preloaded symbols.
 
17102
exclude_expsyms=$lt_exclude_expsyms_F77
 
17103
 
 
17104
# Symbols that must always be exported.
 
17105
include_expsyms=$lt_include_expsyms_F77
 
17106
 
 
17107
# ### END LIBTOOL TAG CONFIG: $tagname
 
17108
 
 
17109
__EOF__
 
17110
 
 
17111
 
 
17112
else
 
17113
  # If there is no Makefile yet, we rely on a make rule to execute
 
17114
  # `config.status --recheck' to rerun these tests and create the
 
17115
  # libtool script then.
 
17116
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17117
  if test -f "$ltmain_in"; then
 
17118
    test -f Makefile && make "$ltmain"
 
17119
  fi
 
17120
fi
 
17121
 
 
17122
 
 
17123
ac_ext=c
 
17124
ac_cpp='$CPP $CPPFLAGS'
 
17125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17128
 
 
17129
CC="$lt_save_CC"
 
17130
 
 
17131
        else
 
17132
          tagname=""
 
17133
        fi
 
17134
        ;;
 
17135
 
 
17136
      GCJ)
 
17137
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17138
 
 
17139
 
 
17140
# Source file extension for Java test sources.
 
17141
ac_ext=java
 
17142
 
 
17143
# Object file extension for compiled Java test sources.
 
17144
objext=o
 
17145
objext_GCJ=$objext
 
17146
 
 
17147
# Code to be used in simple compile tests
 
17148
lt_simple_compile_test_code="class foo {}"
 
17149
 
 
17150
# Code to be used in simple link tests
 
17151
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
17152
 
 
17153
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17154
 
 
17155
# If no C compiler was specified, use CC.
 
17156
LTCC=${LTCC-"$CC"}
 
17157
 
 
17158
# If no C compiler flags were specified, use CFLAGS.
 
17159
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
17160
 
 
17161
# Allow CC to be a program name with arguments.
 
17162
compiler=$CC
 
17163
 
 
17164
 
 
17165
# save warnings/boilerplate of simple test code
 
17166
ac_outfile=conftest.$ac_objext
 
17167
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17168
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17169
_lt_compiler_boilerplate=`cat conftest.err`
 
17170
$rm conftest*
 
17171
 
 
17172
ac_outfile=conftest.$ac_objext
 
17173
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
17174
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17175
_lt_linker_boilerplate=`cat conftest.err`
 
17176
$rm -r conftest*
 
17177
 
 
17178
 
 
17179
# Allow CC to be a program name with arguments.
 
17180
lt_save_CC="$CC"
 
17181
CC=${GCJ-"gcj"}
 
17182
compiler=$CC
 
17183
compiler_GCJ=$CC
 
17184
for cc_temp in $compiler""; do
 
17185
  case $cc_temp in
 
17186
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17187
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17188
    \-*) ;;
 
17189
    *) break;;
 
17190
  esac
 
17191
done
 
17192
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17193
 
 
17194
 
 
17195
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17196
archive_cmds_need_lc_GCJ=no
 
17197
 
 
17198
old_archive_cmds_GCJ=$old_archive_cmds
 
17199
 
 
17200
 
 
17201
lt_prog_compiler_no_builtin_flag_GCJ=
 
17202
 
 
17203
if test "$GCC" = yes; then
 
17204
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17205
 
 
17206
 
 
17207
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17208
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
17209
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17211
else
 
17212
  lt_cv_prog_compiler_rtti_exceptions=no
 
17213
  ac_outfile=conftest.$ac_objext
 
17214
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17215
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17216
   # Insert the option either (1) after the last *FLAGS variable, or
 
17217
   # (2) before a word containing "conftest.", or (3) at the end.
 
17218
   # Note that $ac_compile itself does not contain backslashes and begins
 
17219
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17220
   # The option is referenced via a variable to avoid confusing sed.
 
17221
   lt_compile=`echo "$ac_compile" | $SED \
 
17222
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17223
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17224
   -e 's:$: $lt_compiler_flag:'`
 
17225
   (eval echo "\"\$as_me:17225: $lt_compile\"" >&5)
 
17226
   (eval "$lt_compile" 2>conftest.err)
 
17227
   ac_status=$?
 
17228
   cat conftest.err >&5
 
17229
   echo "$as_me:17229: \$? = $ac_status" >&5
 
17230
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17231
     # The compiler can only warn and ignore the option if not recognized
 
17232
     # So say no if there are warnings other than the usual output.
 
17233
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17234
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17235
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17236
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17237
     fi
 
17238
   fi
 
17239
   $rm conftest*
 
17240
 
 
17241
fi
 
17242
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17243
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
17244
 
 
17245
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17246
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17247
else
 
17248
    :
 
17249
fi
 
17250
 
 
17251
fi
 
17252
 
 
17253
lt_prog_compiler_wl_GCJ=
 
17254
lt_prog_compiler_pic_GCJ=
 
17255
lt_prog_compiler_static_GCJ=
 
17256
 
 
17257
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17258
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
17259
 
 
17260
  if test "$GCC" = yes; then
 
17261
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17262
    lt_prog_compiler_static_GCJ='-static'
 
17263
 
 
17264
    case $host_os in
 
17265
      aix*)
 
17266
      # All AIX code is PIC.
 
17267
      if test "$host_cpu" = ia64; then
 
17268
        # AIX 5 now supports IA64 processor
 
17269
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17270
      fi
 
17271
      ;;
 
17272
 
 
17273
    amigaos*)
 
17274
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17275
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17276
      # like `-m68040'.
 
17277
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17278
      ;;
 
17279
 
 
17280
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17281
      # PIC is the default for these OSes.
 
17282
      ;;
 
17283
 
 
17284
    mingw* | cygwin* | pw32* | os2*)
 
17285
      # This hack is so that the source file can tell whether it is being
 
17286
      # built for inclusion in a dll (and should export symbols for example).
 
17287
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17288
      # (--disable-auto-import) libraries
 
17289
 
 
17290
      ;;
 
17291
 
 
17292
    darwin* | rhapsody*)
 
17293
      # PIC is the default on this platform
 
17294
      # Common symbols not allowed in MH_DYLIB files
 
17295
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17296
      ;;
 
17297
 
 
17298
    interix[3-9]*)
 
17299
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17300
      # Instead, we relocate shared libraries at runtime.
 
17301
      ;;
 
17302
 
 
17303
    msdosdjgpp*)
 
17304
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17305
      # on systems that don't support them.
 
17306
      lt_prog_compiler_can_build_shared_GCJ=no
 
17307
      enable_shared=no
 
17308
      ;;
 
17309
 
 
17310
    sysv4*MP*)
 
17311
      if test -d /usr/nec; then
 
17312
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17313
      fi
 
17314
      ;;
 
17315
 
 
17316
    hpux*)
 
17317
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17318
      # not for PA HP-UX.
 
17319
      case $host_cpu in
 
17320
      hppa*64*|ia64*)
 
17321
        # +Z the default
 
17322
        ;;
 
17323
      *)
 
17324
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17325
        ;;
 
17326
      esac
 
17327
      ;;
 
17328
 
 
17329
    *)
 
17330
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17331
      ;;
 
17332
    esac
 
17333
  else
 
17334
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17335
    case $host_os in
 
17336
    aix*)
 
17337
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17338
      if test "$host_cpu" = ia64; then
 
17339
        # AIX 5 now supports IA64 processor
 
17340
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17341
      else
 
17342
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17343
      fi
 
17344
      ;;
 
17345
      darwin*)
 
17346
        # PIC is the default on this platform
 
17347
        # Common symbols not allowed in MH_DYLIB files
 
17348
       case $cc_basename in
 
17349
         xlc*)
 
17350
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17351
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17352
         ;;
 
17353
       esac
 
17354
       ;;
 
17355
 
 
17356
    mingw* | cygwin* | pw32* | os2*)
 
17357
      # This hack is so that the source file can tell whether it is being
 
17358
      # built for inclusion in a dll (and should export symbols for example).
 
17359
 
 
17360
      ;;
 
17361
 
 
17362
    hpux9* | hpux10* | hpux11*)
 
17363
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17364
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17365
      # not for PA HP-UX.
 
17366
      case $host_cpu in
 
17367
      hppa*64*|ia64*)
 
17368
        # +Z the default
 
17369
        ;;
 
17370
      *)
 
17371
        lt_prog_compiler_pic_GCJ='+Z'
 
17372
        ;;
 
17373
      esac
 
17374
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17375
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17376
      ;;
 
17377
 
 
17378
    irix5* | irix6* | nonstopux*)
 
17379
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17380
      # PIC (with -KPIC) is the default.
 
17381
      lt_prog_compiler_static_GCJ='-non_shared'
 
17382
      ;;
 
17383
 
 
17384
    newsos6)
 
17385
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17386
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17387
      ;;
 
17388
 
 
17389
    linux* | k*bsd*-gnu)
 
17390
      case $cc_basename in
 
17391
      icc* | ecc*)
 
17392
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17393
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17394
        lt_prog_compiler_static_GCJ='-static'
 
17395
        ;;
 
17396
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17397
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17398
        # which looks to be a dead project)
 
17399
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17400
        lt_prog_compiler_pic_GCJ='-fpic'
 
17401
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17402
        ;;
 
17403
      ccc*)
 
17404
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17405
        # All Alpha code is PIC.
 
17406
        lt_prog_compiler_static_GCJ='-non_shared'
 
17407
        ;;
 
17408
      *)
 
17409
        case `$CC -V 2>&1 | sed 5q` in
 
17410
        *Sun\ C*)
 
17411
          # Sun C 5.9
 
17412
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17413
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17414
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17415
          ;;
 
17416
        *Sun\ F*)
 
17417
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17418
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17419
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17420
          lt_prog_compiler_wl_GCJ=''
 
17421
          ;;
 
17422
        esac
 
17423
        ;;
 
17424
      esac
 
17425
      ;;
 
17426
 
 
17427
    osf3* | osf4* | osf5*)
 
17428
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17429
      # All OSF/1 code is PIC.
 
17430
      lt_prog_compiler_static_GCJ='-non_shared'
 
17431
      ;;
 
17432
 
 
17433
    rdos*)
 
17434
      lt_prog_compiler_static_GCJ='-non_shared'
 
17435
      ;;
 
17436
 
 
17437
    solaris*)
 
17438
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17439
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17440
      case $cc_basename in
 
17441
      f77* | f90* | f95*)
 
17442
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17443
      *)
 
17444
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17445
      esac
 
17446
      ;;
 
17447
 
 
17448
    sunos4*)
 
17449
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17450
      lt_prog_compiler_pic_GCJ='-PIC'
 
17451
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17452
      ;;
 
17453
 
 
17454
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17455
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17456
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17457
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17458
      ;;
 
17459
 
 
17460
    sysv4*MP*)
 
17461
      if test -d /usr/nec ;then
 
17462
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17463
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17464
      fi
 
17465
      ;;
 
17466
 
 
17467
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17468
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17469
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17470
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17471
      ;;
 
17472
 
 
17473
    unicos*)
 
17474
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17475
      lt_prog_compiler_can_build_shared_GCJ=no
 
17476
      ;;
 
17477
 
 
17478
    uts4*)
 
17479
      lt_prog_compiler_pic_GCJ='-pic'
 
17480
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17481
      ;;
 
17482
 
 
17483
    *)
 
17484
      lt_prog_compiler_can_build_shared_GCJ=no
 
17485
      ;;
 
17486
    esac
 
17487
  fi
 
17488
 
 
17489
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17490
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
17491
 
 
17492
#
 
17493
# Check to make sure the PIC flag actually works.
 
17494
#
 
17495
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17496
 
 
17497
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17498
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
17499
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17501
else
 
17502
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17503
  ac_outfile=conftest.$ac_objext
 
17504
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17505
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17506
   # Insert the option either (1) after the last *FLAGS variable, or
 
17507
   # (2) before a word containing "conftest.", or (3) at the end.
 
17508
   # Note that $ac_compile itself does not contain backslashes and begins
 
17509
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17510
   # The option is referenced via a variable to avoid confusing sed.
 
17511
   lt_compile=`echo "$ac_compile" | $SED \
 
17512
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17513
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17514
   -e 's:$: $lt_compiler_flag:'`
 
17515
   (eval echo "\"\$as_me:17515: $lt_compile\"" >&5)
 
17516
   (eval "$lt_compile" 2>conftest.err)
 
17517
   ac_status=$?
 
17518
   cat conftest.err >&5
 
17519
   echo "$as_me:17519: \$? = $ac_status" >&5
 
17520
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17521
     # The compiler can only warn and ignore the option if not recognized
 
17522
     # So say no if there are warnings other than the usual output.
 
17523
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17524
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17525
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17526
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17527
     fi
 
17528
   fi
 
17529
   $rm conftest*
 
17530
 
 
17531
fi
 
17532
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17533
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17534
 
 
17535
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17536
    case $lt_prog_compiler_pic_GCJ in
 
17537
     "" | " "*) ;;
 
17538
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17539
     esac
 
17540
else
 
17541
    lt_prog_compiler_pic_GCJ=
 
17542
     lt_prog_compiler_can_build_shared_GCJ=no
 
17543
fi
 
17544
 
 
17545
fi
 
17546
case $host_os in
 
17547
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17548
  *djgpp*)
 
17549
    lt_prog_compiler_pic_GCJ=
 
17550
    ;;
 
17551
  *)
 
17552
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17553
    ;;
 
17554
esac
 
17555
 
 
17556
#
 
17557
# Check to make sure the static flag actually works.
 
17558
#
 
17559
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17560
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17561
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17562
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17564
else
 
17565
  lt_cv_prog_compiler_static_works_GCJ=no
 
17566
   save_LDFLAGS="$LDFLAGS"
 
17567
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17568
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17569
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17570
     # The linker can only warn and ignore the option if not recognized
 
17571
     # So say no if there are warnings
 
17572
     if test -s conftest.err; then
 
17573
       # Append any errors to the config.log.
 
17574
       cat conftest.err 1>&5
 
17575
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17576
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17577
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17578
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17579
       fi
 
17580
     else
 
17581
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17582
     fi
 
17583
   fi
 
17584
   $rm -r conftest*
 
17585
   LDFLAGS="$save_LDFLAGS"
 
17586
 
 
17587
fi
 
17588
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17589
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17590
 
 
17591
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17592
    :
 
17593
else
 
17594
    lt_prog_compiler_static_GCJ=
 
17595
fi
 
17596
 
 
17597
 
 
17598
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17599
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
17600
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17602
else
 
17603
  lt_cv_prog_compiler_c_o_GCJ=no
 
17604
   $rm -r conftest 2>/dev/null
 
17605
   mkdir conftest
 
17606
   cd conftest
 
17607
   mkdir out
 
17608
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17609
 
 
17610
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17611
   # Insert the option either (1) after the last *FLAGS variable, or
 
17612
   # (2) before a word containing "conftest.", or (3) at the end.
 
17613
   # Note that $ac_compile itself does not contain backslashes and begins
 
17614
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17615
   lt_compile=`echo "$ac_compile" | $SED \
 
17616
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17617
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17618
   -e 's:$: $lt_compiler_flag:'`
 
17619
   (eval echo "\"\$as_me:17619: $lt_compile\"" >&5)
 
17620
   (eval "$lt_compile" 2>out/conftest.err)
 
17621
   ac_status=$?
 
17622
   cat out/conftest.err >&5
 
17623
   echo "$as_me:17623: \$? = $ac_status" >&5
 
17624
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17625
   then
 
17626
     # The compiler can only warn and ignore the option if not recognized
 
17627
     # So say no if there are warnings
 
17628
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17629
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17630
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17631
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17632
     fi
 
17633
   fi
 
17634
   chmod u+w . 2>&5
 
17635
   $rm conftest*
 
17636
   # SGI C++ compiler will create directory out/ii_files/ for
 
17637
   # template instantiation
 
17638
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17639
   $rm out/* && rmdir out
 
17640
   cd ..
 
17641
   rmdir conftest
 
17642
   $rm conftest*
 
17643
 
 
17644
fi
 
17645
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17646
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17647
 
 
17648
 
 
17649
hard_links="nottested"
 
17650
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17651
  # do not overwrite the value of need_locks provided by the user
 
17652
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17653
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17654
  hard_links=yes
 
17655
  $rm conftest*
 
17656
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17657
  touch conftest.a
 
17658
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17659
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17660
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17661
echo "${ECHO_T}$hard_links" >&6; }
 
17662
  if test "$hard_links" = no; then
 
17663
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17664
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17665
    need_locks=warn
 
17666
  fi
 
17667
else
 
17668
  need_locks=no
 
17669
fi
 
17670
 
 
17671
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17672
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17673
 
 
17674
  runpath_var=
 
17675
  allow_undefined_flag_GCJ=
 
17676
  enable_shared_with_static_runtimes_GCJ=no
 
17677
  archive_cmds_GCJ=
 
17678
  archive_expsym_cmds_GCJ=
 
17679
  old_archive_From_new_cmds_GCJ=
 
17680
  old_archive_from_expsyms_cmds_GCJ=
 
17681
  export_dynamic_flag_spec_GCJ=
 
17682
  whole_archive_flag_spec_GCJ=
 
17683
  thread_safe_flag_spec_GCJ=
 
17684
  hardcode_libdir_flag_spec_GCJ=
 
17685
  hardcode_libdir_flag_spec_ld_GCJ=
 
17686
  hardcode_libdir_separator_GCJ=
 
17687
  hardcode_direct_GCJ=no
 
17688
  hardcode_minus_L_GCJ=no
 
17689
  hardcode_shlibpath_var_GCJ=unsupported
 
17690
  link_all_deplibs_GCJ=unknown
 
17691
  hardcode_automatic_GCJ=no
 
17692
  module_cmds_GCJ=
 
17693
  module_expsym_cmds_GCJ=
 
17694
  always_export_symbols_GCJ=no
 
17695
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17696
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17697
  # included in the symbol list
 
17698
  include_expsyms_GCJ=
 
17699
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17700
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17701
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17702
  # as well as any symbol that contains `d'.
 
17703
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17704
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17705
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17706
  # the symbol is explicitly referenced.  Since portable code cannot
 
17707
  # rely on this symbol name, it's probably fine to never include it in
 
17708
  # preloaded symbol tables.
 
17709
  # Exclude shared library initialization/finalization symbols.
 
17710
  extract_expsyms_cmds=
 
17711
  # Just being paranoid about ensuring that cc_basename is set.
 
17712
  for cc_temp in $compiler""; do
 
17713
  case $cc_temp in
 
17714
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17715
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17716
    \-*) ;;
 
17717
    *) break;;
 
17718
  esac
 
17719
done
 
17720
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17721
 
 
17722
  case $host_os in
 
17723
  cygwin* | mingw* | pw32*)
 
17724
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17725
    # When not using gcc, we currently assume that we are using
 
17726
    # Microsoft Visual C++.
 
17727
    if test "$GCC" != yes; then
 
17728
      with_gnu_ld=no
 
17729
    fi
 
17730
    ;;
 
17731
  interix*)
 
17732
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17733
    with_gnu_ld=yes
 
17734
    ;;
 
17735
  openbsd*)
 
17736
    with_gnu_ld=no
 
17737
    ;;
 
17738
  esac
 
17739
 
 
17740
  ld_shlibs_GCJ=yes
 
17741
  if test "$with_gnu_ld" = yes; then
 
17742
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17743
    wlarc='${wl}'
 
17744
 
 
17745
    # Set some defaults for GNU ld with shared library support. These
 
17746
    # are reset later if shared libraries are not supported. Putting them
 
17747
    # here allows them to be overridden if necessary.
 
17748
    runpath_var=LD_RUN_PATH
 
17749
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17750
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17751
    # ancient GNU ld didn't support --whole-archive et. al.
 
17752
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17753
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17754
      else
 
17755
        whole_archive_flag_spec_GCJ=
 
17756
    fi
 
17757
    supports_anon_versioning=no
 
17758
    case `$LD -v 2>/dev/null` in
 
17759
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17760
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17761
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17762
      *\ 2.11.*) ;; # other 2.11 versions
 
17763
      *) supports_anon_versioning=yes ;;
 
17764
    esac
 
17765
 
 
17766
    # See if GNU ld supports shared libraries.
 
17767
    case $host_os in
 
17768
    aix[3-9]*)
 
17769
      # On AIX/PPC, the GNU linker is very broken
 
17770
      if test "$host_cpu" != ia64; then
 
17771
        ld_shlibs_GCJ=no
 
17772
        cat <<EOF 1>&2
 
17773
 
 
17774
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17775
*** to be unable to reliably create shared libraries on AIX.
 
17776
*** Therefore, libtool is disabling shared libraries support.  If you
 
17777
*** really care for shared libraries, you may want to modify your PATH
 
17778
*** so that a non-GNU linker is found, and then restart.
 
17779
 
 
17780
EOF
 
17781
      fi
 
17782
      ;;
 
17783
 
 
17784
    amigaos*)
 
17785
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17786
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17787
      hardcode_minus_L_GCJ=yes
 
17788
 
 
17789
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17790
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17791
      # to version 4, is to share data among multiple programs linked
 
17792
      # with the same dynamic library.  Since this doesn't match the
 
17793
      # behavior of shared libraries on other platforms, we can't use
 
17794
      # them.
 
17795
      ld_shlibs_GCJ=no
 
17796
      ;;
 
17797
 
 
17798
    beos*)
 
17799
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17800
        allow_undefined_flag_GCJ=unsupported
 
17801
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17802
        # support --undefined.  This deserves some investigation.  FIXME
 
17803
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17804
      else
 
17805
        ld_shlibs_GCJ=no
 
17806
      fi
 
17807
      ;;
 
17808
 
 
17809
    cygwin* | mingw* | pw32*)
 
17810
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17811
      # as there is no search path for DLLs.
 
17812
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17813
      allow_undefined_flag_GCJ=unsupported
 
17814
      always_export_symbols_GCJ=no
 
17815
      enable_shared_with_static_runtimes_GCJ=yes
 
17816
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17817
 
 
17818
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17819
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17820
        # If the export-symbols file already is a .def file (1st line
 
17821
        # is EXPORTS), use it as is; otherwise, prepend...
 
17822
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17823
          cp $export_symbols $output_objdir/$soname.def;
 
17824
        else
 
17825
          echo EXPORTS > $output_objdir/$soname.def;
 
17826
          cat $export_symbols >> $output_objdir/$soname.def;
 
17827
        fi~
 
17828
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17829
      else
 
17830
        ld_shlibs_GCJ=no
 
17831
      fi
 
17832
      ;;
 
17833
 
 
17834
    interix[3-9]*)
 
17835
      hardcode_direct_GCJ=no
 
17836
      hardcode_shlibpath_var_GCJ=no
 
17837
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17838
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17839
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17840
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17841
      # default) and relocated if they conflict, which is a slow very memory
 
17842
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17843
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17844
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17845
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17846
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17847
      ;;
 
17848
 
 
17849
    gnu* | linux* | k*bsd*-gnu)
 
17850
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17851
        tmp_addflag=
 
17852
        case $cc_basename,$host_cpu in
 
17853
        pgcc*)                          # Portland Group C compiler
 
17854
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17855
          tmp_addflag=' $pic_flag'
 
17856
          ;;
 
17857
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17858
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17859
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17860
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17861
          tmp_addflag=' -i_dynamic' ;;
 
17862
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17863
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17864
        ifc* | ifort*)                  # Intel Fortran compiler
 
17865
          tmp_addflag=' -nofor_main' ;;
 
17866
        esac
 
17867
        case `$CC -V 2>&1 | sed 5q` in
 
17868
        *Sun\ C*)                       # Sun C 5.9
 
17869
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17870
          tmp_sharedflag='-G' ;;
 
17871
        *Sun\ F*)                       # Sun Fortran 8.3
 
17872
          tmp_sharedflag='-G' ;;
 
17873
        *)
 
17874
          tmp_sharedflag='-shared' ;;
 
17875
        esac
 
17876
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17877
 
 
17878
        if test $supports_anon_versioning = yes; then
 
17879
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17880
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17881
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17882
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17883
        fi
 
17884
        link_all_deplibs_GCJ=no
 
17885
      else
 
17886
        ld_shlibs_GCJ=no
 
17887
      fi
 
17888
      ;;
 
17889
 
 
17890
    netbsd* | netbsdelf*-gnu)
 
17891
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17892
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17893
        wlarc=
 
17894
      else
 
17895
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17896
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17897
      fi
 
17898
      ;;
 
17899
 
 
17900
    solaris*)
 
17901
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17902
        ld_shlibs_GCJ=no
 
17903
        cat <<EOF 1>&2
 
17904
 
 
17905
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17906
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17907
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17908
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17909
*** your PATH or compiler configuration so that the native linker is
 
17910
*** used, and then restart.
 
17911
 
 
17912
EOF
 
17913
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17914
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17915
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17916
      else
 
17917
        ld_shlibs_GCJ=no
 
17918
      fi
 
17919
      ;;
 
17920
 
 
17921
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17922
      case `$LD -v 2>&1` in
 
17923
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17924
        ld_shlibs_GCJ=no
 
17925
        cat <<_LT_EOF 1>&2
 
17926
 
 
17927
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17928
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17929
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17930
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17931
*** your PATH or compiler configuration so that the native linker is
 
17932
*** used, and then restart.
 
17933
 
 
17934
_LT_EOF
 
17935
        ;;
 
17936
        *)
 
17937
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17938
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17939
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17940
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17941
          else
 
17942
            ld_shlibs_GCJ=no
 
17943
          fi
 
17944
        ;;
 
17945
      esac
 
17946
      ;;
 
17947
 
 
17948
    sunos4*)
 
17949
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17950
      wlarc=
 
17951
      hardcode_direct_GCJ=yes
 
17952
      hardcode_shlibpath_var_GCJ=no
 
17953
      ;;
 
17954
 
 
17955
    *)
 
17956
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17957
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17958
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17959
      else
 
17960
        ld_shlibs_GCJ=no
 
17961
      fi
 
17962
      ;;
 
17963
    esac
 
17964
 
 
17965
    if test "$ld_shlibs_GCJ" = no; then
 
17966
      runpath_var=
 
17967
      hardcode_libdir_flag_spec_GCJ=
 
17968
      export_dynamic_flag_spec_GCJ=
 
17969
      whole_archive_flag_spec_GCJ=
 
17970
    fi
 
17971
  else
 
17972
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17973
    case $host_os in
 
17974
    aix3*)
 
17975
      allow_undefined_flag_GCJ=unsupported
 
17976
      always_export_symbols_GCJ=yes
 
17977
      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'
 
17978
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17979
      # are no directories specified by -L.
 
17980
      hardcode_minus_L_GCJ=yes
 
17981
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17982
        # Neither direct hardcoding nor static linking is supported with a
 
17983
        # broken collect2.
 
17984
        hardcode_direct_GCJ=unsupported
 
17985
      fi
 
17986
      ;;
 
17987
 
 
17988
    aix[4-9]*)
 
17989
      if test "$host_cpu" = ia64; then
 
17990
        # On IA64, the linker does run time linking by default, so we don't
 
17991
        # have to do anything special.
 
17992
        aix_use_runtimelinking=no
 
17993
        exp_sym_flag='-Bexport'
 
17994
        no_entry_flag=""
 
17995
      else
 
17996
        # If we're using GNU nm, then we don't want the "-C" option.
 
17997
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17998
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17999
          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'
 
18000
        else
 
18001
          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'
 
18002
        fi
 
18003
        aix_use_runtimelinking=no
 
18004
 
 
18005
        # Test if we are trying to use run time linking or normal
 
18006
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18007
        # need to do runtime linking.
 
18008
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
18009
          for ld_flag in $LDFLAGS; do
 
18010
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18011
            aix_use_runtimelinking=yes
 
18012
            break
 
18013
          fi
 
18014
          done
 
18015
          ;;
 
18016
        esac
 
18017
 
 
18018
        exp_sym_flag='-bexport'
 
18019
        no_entry_flag='-bnoentry'
 
18020
      fi
 
18021
 
 
18022
      # When large executables or shared objects are built, AIX ld can
 
18023
      # have problems creating the table of contents.  If linking a library
 
18024
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18025
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18026
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18027
 
 
18028
      archive_cmds_GCJ=''
 
18029
      hardcode_direct_GCJ=yes
 
18030
      hardcode_libdir_separator_GCJ=':'
 
18031
      link_all_deplibs_GCJ=yes
 
18032
 
 
18033
      if test "$GCC" = yes; then
 
18034
        case $host_os in aix4.[012]|aix4.[012].*)
 
18035
        # We only want to do this on AIX 4.2 and lower, the check
 
18036
        # below for broken collect2 doesn't work under 4.3+
 
18037
          collect2name=`${CC} -print-prog-name=collect2`
 
18038
          if test -f "$collect2name" && \
 
18039
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18040
          then
 
18041
          # We have reworked collect2
 
18042
          :
 
18043
          else
 
18044
          # We have old collect2
 
18045
          hardcode_direct_GCJ=unsupported
 
18046
          # It fails to find uninstalled libraries when the uninstalled
 
18047
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18048
          # to unsupported forces relinking
 
18049
          hardcode_minus_L_GCJ=yes
 
18050
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18051
          hardcode_libdir_separator_GCJ=
 
18052
          fi
 
18053
          ;;
 
18054
        esac
 
18055
        shared_flag='-shared'
 
18056
        if test "$aix_use_runtimelinking" = yes; then
 
18057
          shared_flag="$shared_flag "'${wl}-G'
 
18058
        fi
 
18059
      else
 
18060
        # not using gcc
 
18061
        if test "$host_cpu" = ia64; then
 
18062
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18063
        # chokes on -Wl,-G. The following line is correct:
 
18064
          shared_flag='-G'
 
18065
        else
 
18066
          if test "$aix_use_runtimelinking" = yes; then
 
18067
            shared_flag='${wl}-G'
 
18068
          else
 
18069
            shared_flag='${wl}-bM:SRE'
 
18070
          fi
 
18071
        fi
 
18072
      fi
 
18073
 
 
18074
      # It seems that -bexpall does not export symbols beginning with
 
18075
      # underscore (_), so it is better to generate a list of symbols to export.
 
18076
      always_export_symbols_GCJ=yes
 
18077
      if test "$aix_use_runtimelinking" = yes; then
 
18078
        # Warning - without using the other runtime loading flags (-brtl),
 
18079
        # -berok will link without error, but may produce a broken library.
 
18080
        allow_undefined_flag_GCJ='-berok'
 
18081
       # Determine the default libpath from the value encoded in an empty executable.
 
18082
       cat >conftest.$ac_ext <<_ACEOF
 
18083
/* confdefs.h.  */
 
18084
_ACEOF
 
18085
cat confdefs.h >>conftest.$ac_ext
 
18086
cat >>conftest.$ac_ext <<_ACEOF
 
18087
/* end confdefs.h.  */
 
18088
 
 
18089
int
 
18090
main ()
 
18091
{
 
18092
 
 
18093
  ;
 
18094
  return 0;
 
18095
}
 
18096
_ACEOF
 
18097
rm -f conftest.$ac_objext conftest$ac_exeext
 
18098
if { (ac_try="$ac_link"
 
18099
case "(($ac_try" in
 
18100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18101
  *) ac_try_echo=$ac_try;;
 
18102
esac
 
18103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18104
  (eval "$ac_link") 2>conftest.er1
 
18105
  ac_status=$?
 
18106
  grep -v '^ *+' conftest.er1 >conftest.err
 
18107
  rm -f conftest.er1
 
18108
  cat conftest.err >&5
 
18109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18110
  (exit $ac_status); } && {
 
18111
         test -z "$ac_c_werror_flag" ||
 
18112
         test ! -s conftest.err
 
18113
       } && test -s conftest$ac_exeext &&
 
18114
       $as_test_x conftest$ac_exeext; then
 
18115
 
 
18116
lt_aix_libpath_sed='
 
18117
    /Import File Strings/,/^$/ {
 
18118
        /^0/ {
 
18119
            s/^0  *\(.*\)$/\1/
 
18120
            p
 
18121
        }
 
18122
    }'
 
18123
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18124
# Check for a 64-bit object if we didn't find anything.
 
18125
if test -z "$aix_libpath"; then
 
18126
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18127
fi
 
18128
else
 
18129
  echo "$as_me: failed program was:" >&5
 
18130
sed 's/^/| /' conftest.$ac_ext >&5
 
18131
 
 
18132
 
 
18133
fi
 
18134
 
 
18135
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18136
      conftest$ac_exeext conftest.$ac_ext
 
18137
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18138
 
 
18139
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18140
        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"
 
18141
       else
 
18142
        if test "$host_cpu" = ia64; then
 
18143
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18144
          allow_undefined_flag_GCJ="-z nodefs"
 
18145
          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"
 
18146
        else
 
18147
         # Determine the default libpath from the value encoded in an empty executable.
 
18148
         cat >conftest.$ac_ext <<_ACEOF
 
18149
/* confdefs.h.  */
 
18150
_ACEOF
 
18151
cat confdefs.h >>conftest.$ac_ext
 
18152
cat >>conftest.$ac_ext <<_ACEOF
 
18153
/* end confdefs.h.  */
 
18154
 
 
18155
int
 
18156
main ()
 
18157
{
 
18158
 
 
18159
  ;
 
18160
  return 0;
 
18161
}
 
18162
_ACEOF
 
18163
rm -f conftest.$ac_objext conftest$ac_exeext
 
18164
if { (ac_try="$ac_link"
 
18165
case "(($ac_try" in
 
18166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18167
  *) ac_try_echo=$ac_try;;
 
18168
esac
 
18169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18170
  (eval "$ac_link") 2>conftest.er1
 
18171
  ac_status=$?
 
18172
  grep -v '^ *+' conftest.er1 >conftest.err
 
18173
  rm -f conftest.er1
 
18174
  cat conftest.err >&5
 
18175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18176
  (exit $ac_status); } && {
 
18177
         test -z "$ac_c_werror_flag" ||
 
18178
         test ! -s conftest.err
 
18179
       } && test -s conftest$ac_exeext &&
 
18180
       $as_test_x conftest$ac_exeext; then
 
18181
 
 
18182
lt_aix_libpath_sed='
 
18183
    /Import File Strings/,/^$/ {
 
18184
        /^0/ {
 
18185
            s/^0  *\(.*\)$/\1/
 
18186
            p
 
18187
        }
 
18188
    }'
 
18189
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18190
# Check for a 64-bit object if we didn't find anything.
 
18191
if test -z "$aix_libpath"; then
 
18192
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18193
fi
 
18194
else
 
18195
  echo "$as_me: failed program was:" >&5
 
18196
sed 's/^/| /' conftest.$ac_ext >&5
 
18197
 
 
18198
 
 
18199
fi
 
18200
 
 
18201
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18202
      conftest$ac_exeext conftest.$ac_ext
 
18203
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18204
 
 
18205
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18206
          # Warning - without using the other run time loading flags,
 
18207
          # -berok will link without error, but may produce a broken library.
 
18208
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18209
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18210
          # Exported symbols can be pulled into shared objects from archives
 
18211
          whole_archive_flag_spec_GCJ='$convenience'
 
18212
          archive_cmds_need_lc_GCJ=yes
 
18213
          # This is similar to how AIX traditionally builds its shared libraries.
 
18214
          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'
 
18215
        fi
 
18216
      fi
 
18217
      ;;
 
18218
 
 
18219
    amigaos*)
 
18220
      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)'
 
18221
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18222
      hardcode_minus_L_GCJ=yes
 
18223
      # see comment about different semantics on the GNU ld section
 
18224
      ld_shlibs_GCJ=no
 
18225
      ;;
 
18226
 
 
18227
    bsdi[45]*)
 
18228
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18229
      ;;
 
18230
 
 
18231
    cygwin* | mingw* | pw32*)
 
18232
      # When not using gcc, we currently assume that we are using
 
18233
      # Microsoft Visual C++.
 
18234
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18235
      # no search path for DLLs.
 
18236
      hardcode_libdir_flag_spec_GCJ=' '
 
18237
      allow_undefined_flag_GCJ=unsupported
 
18238
      # Tell ltmain to make .lib files, not .a files.
 
18239
      libext=lib
 
18240
      # Tell ltmain to make .dll files, not .so files.
 
18241
      shrext_cmds=".dll"
 
18242
      # FIXME: Setting linknames here is a bad hack.
 
18243
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18244
      # The linker will automatically build a .lib file if we build a DLL.
 
18245
      old_archive_From_new_cmds_GCJ='true'
 
18246
      # FIXME: Should let the user specify the lib program.
 
18247
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18248
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18249
      enable_shared_with_static_runtimes_GCJ=yes
 
18250
      ;;
 
18251
 
 
18252
    darwin* | rhapsody*)
 
18253
      case $host_os in
 
18254
        rhapsody* | darwin1.[012])
 
18255
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18256
         ;;
 
18257
       *) # Darwin 1.3 on
 
18258
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18259
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18260
         else
 
18261
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18262
             10.[012])
 
18263
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18264
               ;;
 
18265
             10.*)
 
18266
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18267
               ;;
 
18268
           esac
 
18269
         fi
 
18270
         ;;
 
18271
      esac
 
18272
      archive_cmds_need_lc_GCJ=no
 
18273
      hardcode_direct_GCJ=no
 
18274
      hardcode_automatic_GCJ=yes
 
18275
      hardcode_shlibpath_var_GCJ=unsupported
 
18276
      whole_archive_flag_spec_GCJ=''
 
18277
      link_all_deplibs_GCJ=yes
 
18278
    if test "$GCC" = yes ; then
 
18279
        output_verbose_link_cmd='echo'
 
18280
        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}"
 
18281
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18282
        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}"
 
18283
        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}"
 
18284
    else
 
18285
      case $cc_basename in
 
18286
        xlc*)
 
18287
         output_verbose_link_cmd='echo'
 
18288
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18289
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18290
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18291
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18292
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18293
          ;;
 
18294
       *)
 
18295
         ld_shlibs_GCJ=no
 
18296
          ;;
 
18297
      esac
 
18298
    fi
 
18299
      ;;
 
18300
 
 
18301
    dgux*)
 
18302
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18303
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18304
      hardcode_shlibpath_var_GCJ=no
 
18305
      ;;
 
18306
 
 
18307
    freebsd1*)
 
18308
      ld_shlibs_GCJ=no
 
18309
      ;;
 
18310
 
 
18311
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18312
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18313
    # does not break anything, and helps significantly (at the cost of a little
 
18314
    # extra space).
 
18315
    freebsd2.2*)
 
18316
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18317
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18318
      hardcode_direct_GCJ=yes
 
18319
      hardcode_shlibpath_var_GCJ=no
 
18320
      ;;
 
18321
 
 
18322
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18323
    freebsd2*)
 
18324
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18325
      hardcode_direct_GCJ=yes
 
18326
      hardcode_minus_L_GCJ=yes
 
18327
      hardcode_shlibpath_var_GCJ=no
 
18328
      ;;
 
18329
 
 
18330
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18331
    freebsd* | dragonfly*)
 
18332
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18333
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18334
      hardcode_direct_GCJ=yes
 
18335
      hardcode_shlibpath_var_GCJ=no
 
18336
      ;;
 
18337
 
 
18338
    hpux9*)
 
18339
      if test "$GCC" = yes; then
 
18340
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18341
      else
 
18342
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18343
      fi
 
18344
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18345
      hardcode_libdir_separator_GCJ=:
 
18346
      hardcode_direct_GCJ=yes
 
18347
 
 
18348
      # hardcode_minus_L: Not really in the search PATH,
 
18349
      # but as the default location of the library.
 
18350
      hardcode_minus_L_GCJ=yes
 
18351
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18352
      ;;
 
18353
 
 
18354
    hpux10*)
 
18355
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18356
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18357
      else
 
18358
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18359
      fi
 
18360
      if test "$with_gnu_ld" = no; then
 
18361
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18362
        hardcode_libdir_separator_GCJ=:
 
18363
 
 
18364
        hardcode_direct_GCJ=yes
 
18365
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18366
 
 
18367
        # hardcode_minus_L: Not really in the search PATH,
 
18368
        # but as the default location of the library.
 
18369
        hardcode_minus_L_GCJ=yes
 
18370
      fi
 
18371
      ;;
 
18372
 
 
18373
    hpux11*)
 
18374
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18375
        case $host_cpu in
 
18376
        hppa*64*)
 
18377
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18378
          ;;
 
18379
        ia64*)
 
18380
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18381
          ;;
 
18382
        *)
 
18383
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18384
          ;;
 
18385
        esac
 
18386
      else
 
18387
        case $host_cpu in
 
18388
        hppa*64*)
 
18389
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18390
          ;;
 
18391
        ia64*)
 
18392
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18393
          ;;
 
18394
        *)
 
18395
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18396
          ;;
 
18397
        esac
 
18398
      fi
 
18399
      if test "$with_gnu_ld" = no; then
 
18400
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18401
        hardcode_libdir_separator_GCJ=:
 
18402
 
 
18403
        case $host_cpu in
 
18404
        hppa*64*|ia64*)
 
18405
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18406
          hardcode_direct_GCJ=no
 
18407
          hardcode_shlibpath_var_GCJ=no
 
18408
          ;;
 
18409
        *)
 
18410
          hardcode_direct_GCJ=yes
 
18411
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18412
 
 
18413
          # hardcode_minus_L: Not really in the search PATH,
 
18414
          # but as the default location of the library.
 
18415
          hardcode_minus_L_GCJ=yes
 
18416
          ;;
 
18417
        esac
 
18418
      fi
 
18419
      ;;
 
18420
 
 
18421
    irix5* | irix6* | nonstopux*)
 
18422
      if test "$GCC" = yes; then
 
18423
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18424
      else
 
18425
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18426
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18427
      fi
 
18428
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18429
      hardcode_libdir_separator_GCJ=:
 
18430
      link_all_deplibs_GCJ=yes
 
18431
      ;;
 
18432
 
 
18433
    netbsd* | netbsdelf*-gnu)
 
18434
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18435
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18436
      else
 
18437
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18438
      fi
 
18439
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18440
      hardcode_direct_GCJ=yes
 
18441
      hardcode_shlibpath_var_GCJ=no
 
18442
      ;;
 
18443
 
 
18444
    newsos6)
 
18445
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18446
      hardcode_direct_GCJ=yes
 
18447
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18448
      hardcode_libdir_separator_GCJ=:
 
18449
      hardcode_shlibpath_var_GCJ=no
 
18450
      ;;
 
18451
 
 
18452
    openbsd*)
 
18453
      if test -f /usr/libexec/ld.so; then
 
18454
        hardcode_direct_GCJ=yes
 
18455
        hardcode_shlibpath_var_GCJ=no
 
18456
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18457
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18458
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18459
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18460
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18461
        else
 
18462
          case $host_os in
 
18463
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18464
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18465
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18466
             ;;
 
18467
           *)
 
18468
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18469
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18470
             ;;
 
18471
          esac
 
18472
        fi
 
18473
      else
 
18474
        ld_shlibs_GCJ=no
 
18475
      fi
 
18476
      ;;
 
18477
 
 
18478
    os2*)
 
18479
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18480
      hardcode_minus_L_GCJ=yes
 
18481
      allow_undefined_flag_GCJ=unsupported
 
18482
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
18483
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18484
      ;;
 
18485
 
 
18486
    osf3*)
 
18487
      if test "$GCC" = yes; then
 
18488
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18489
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18490
      else
 
18491
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18492
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18493
      fi
 
18494
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18495
      hardcode_libdir_separator_GCJ=:
 
18496
      ;;
 
18497
 
 
18498
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18499
      if test "$GCC" = yes; then
 
18500
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18501
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18502
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18503
      else
 
18504
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18505
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18506
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18507
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
18508
 
 
18509
        # Both c and cxx compiler support -rpath directly
 
18510
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18511
      fi
 
18512
      hardcode_libdir_separator_GCJ=:
 
18513
      ;;
 
18514
 
 
18515
    solaris*)
 
18516
      no_undefined_flag_GCJ=' -z text'
 
18517
      if test "$GCC" = yes; then
 
18518
        wlarc='${wl}'
 
18519
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18520
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18521
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18522
      else
 
18523
        wlarc=''
 
18524
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18525
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18526
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18527
      fi
 
18528
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18529
      hardcode_shlibpath_var_GCJ=no
 
18530
      case $host_os in
 
18531
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18532
      *)
 
18533
        # The compiler driver will combine and reorder linker options,
 
18534
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18535
        # but is careful enough not to reorder.
 
18536
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18537
        if test "$GCC" = yes; then
 
18538
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18539
        else
 
18540
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18541
        fi
 
18542
        ;;
 
18543
      esac
 
18544
      link_all_deplibs_GCJ=yes
 
18545
      ;;
 
18546
 
 
18547
    sunos4*)
 
18548
      if test "x$host_vendor" = xsequent; then
 
18549
        # Use $CC to link under sequent, because it throws in some extra .o
 
18550
        # files that make .init and .fini sections work.
 
18551
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18552
      else
 
18553
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18554
      fi
 
18555
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18556
      hardcode_direct_GCJ=yes
 
18557
      hardcode_minus_L_GCJ=yes
 
18558
      hardcode_shlibpath_var_GCJ=no
 
18559
      ;;
 
18560
 
 
18561
    sysv4)
 
18562
      case $host_vendor in
 
18563
        sni)
 
18564
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18565
          hardcode_direct_GCJ=yes # is this really true???
 
18566
        ;;
 
18567
        siemens)
 
18568
          ## LD is ld it makes a PLAMLIB
 
18569
          ## CC just makes a GrossModule.
 
18570
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18571
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18572
          hardcode_direct_GCJ=no
 
18573
        ;;
 
18574
        motorola)
 
18575
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18576
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18577
        ;;
 
18578
      esac
 
18579
      runpath_var='LD_RUN_PATH'
 
18580
      hardcode_shlibpath_var_GCJ=no
 
18581
      ;;
 
18582
 
 
18583
    sysv4.3*)
 
18584
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18585
      hardcode_shlibpath_var_GCJ=no
 
18586
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18587
      ;;
 
18588
 
 
18589
    sysv4*MP*)
 
18590
      if test -d /usr/nec; then
 
18591
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18592
        hardcode_shlibpath_var_GCJ=no
 
18593
        runpath_var=LD_RUN_PATH
 
18594
        hardcode_runpath_var=yes
 
18595
        ld_shlibs_GCJ=yes
 
18596
      fi
 
18597
      ;;
 
18598
 
 
18599
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18600
      no_undefined_flag_GCJ='${wl}-z,text'
 
18601
      archive_cmds_need_lc_GCJ=no
 
18602
      hardcode_shlibpath_var_GCJ=no
 
18603
      runpath_var='LD_RUN_PATH'
 
18604
 
 
18605
      if test "$GCC" = yes; then
 
18606
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18607
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18608
      else
 
18609
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18610
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18611
      fi
 
18612
      ;;
 
18613
 
 
18614
    sysv5* | sco3.2v5* | sco5v6*)
 
18615
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18616
      # link with -lc, and that would cause any symbols used from libc to
 
18617
      # always be unresolved, which means just about no library would
 
18618
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18619
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18620
      # as -z defs.
 
18621
      no_undefined_flag_GCJ='${wl}-z,text'
 
18622
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18623
      archive_cmds_need_lc_GCJ=no
 
18624
      hardcode_shlibpath_var_GCJ=no
 
18625
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18626
      hardcode_libdir_separator_GCJ=':'
 
18627
      link_all_deplibs_GCJ=yes
 
18628
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18629
      runpath_var='LD_RUN_PATH'
 
18630
 
 
18631
      if test "$GCC" = yes; then
 
18632
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18633
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18634
      else
 
18635
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18636
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18637
      fi
 
18638
      ;;
 
18639
 
 
18640
    uts4*)
 
18641
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18642
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18643
      hardcode_shlibpath_var_GCJ=no
 
18644
      ;;
 
18645
 
 
18646
    *)
 
18647
      ld_shlibs_GCJ=no
 
18648
      ;;
 
18649
    esac
 
18650
  fi
 
18651
 
 
18652
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18653
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18654
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18655
 
 
18656
#
 
18657
# Do we need to explicitly link libc?
 
18658
#
 
18659
case "x$archive_cmds_need_lc_GCJ" in
 
18660
x|xyes)
 
18661
  # Assume -lc should be added
 
18662
  archive_cmds_need_lc_GCJ=yes
 
18663
 
 
18664
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18665
    case $archive_cmds_GCJ in
 
18666
    *'~'*)
 
18667
      # FIXME: we may have to deal with multi-command sequences.
 
18668
      ;;
 
18669
    '$CC '*)
 
18670
      # Test whether the compiler implicitly links with -lc since on some
 
18671
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18672
      # to ld, don't add -lc before -lgcc.
 
18673
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18674
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18675
      $rm conftest*
 
18676
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18677
 
 
18678
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18679
  (eval $ac_compile) 2>&5
 
18680
  ac_status=$?
 
18681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18682
  (exit $ac_status); } 2>conftest.err; then
 
18683
        soname=conftest
 
18684
        lib=conftest
 
18685
        libobjs=conftest.$ac_objext
 
18686
        deplibs=
 
18687
        wl=$lt_prog_compiler_wl_GCJ
 
18688
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18689
        compiler_flags=-v
 
18690
        linker_flags=-v
 
18691
        verstring=
 
18692
        output_objdir=.
 
18693
        libname=conftest
 
18694
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18695
        allow_undefined_flag_GCJ=
 
18696
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18697
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18698
  ac_status=$?
 
18699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18700
  (exit $ac_status); }
 
18701
        then
 
18702
          archive_cmds_need_lc_GCJ=no
 
18703
        else
 
18704
          archive_cmds_need_lc_GCJ=yes
 
18705
        fi
 
18706
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18707
      else
 
18708
        cat conftest.err 1>&5
 
18709
      fi
 
18710
      $rm conftest*
 
18711
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18712
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18713
      ;;
 
18714
    esac
 
18715
  fi
 
18716
  ;;
 
18717
esac
 
18718
 
 
18719
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18720
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18721
library_names_spec=
 
18722
libname_spec='lib$name'
 
18723
soname_spec=
 
18724
shrext_cmds=".so"
 
18725
postinstall_cmds=
 
18726
postuninstall_cmds=
 
18727
finish_cmds=
 
18728
finish_eval=
 
18729
shlibpath_var=
 
18730
shlibpath_overrides_runpath=unknown
 
18731
version_type=none
 
18732
dynamic_linker="$host_os ld.so"
 
18733
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18734
 
 
18735
need_lib_prefix=unknown
 
18736
hardcode_into_libs=no
 
18737
 
 
18738
# when you set need_version to no, make sure it does not cause -set_version
 
18739
# flags to be left without arguments
 
18740
need_version=unknown
 
18741
 
 
18742
case $host_os in
 
18743
aix3*)
 
18744
  version_type=linux
 
18745
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18746
  shlibpath_var=LIBPATH
 
18747
 
 
18748
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18749
  soname_spec='${libname}${release}${shared_ext}$major'
 
18750
  ;;
 
18751
 
 
18752
aix[4-9]*)
 
18753
  version_type=linux
 
18754
  need_lib_prefix=no
 
18755
  need_version=no
 
18756
  hardcode_into_libs=yes
 
18757
  if test "$host_cpu" = ia64; then
 
18758
    # AIX 5 supports IA64
 
18759
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18760
    shlibpath_var=LD_LIBRARY_PATH
 
18761
  else
 
18762
    # With GCC up to 2.95.x, collect2 would create an import file
 
18763
    # for dependence libraries.  The import file would start with
 
18764
    # the line `#! .'.  This would cause the generated library to
 
18765
    # depend on `.', always an invalid library.  This was fixed in
 
18766
    # development snapshots of GCC prior to 3.0.
 
18767
    case $host_os in
 
18768
      aix4 | aix4.[01] | aix4.[01].*)
 
18769
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18770
           echo ' yes '
 
18771
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18772
        :
 
18773
      else
 
18774
        can_build_shared=no
 
18775
      fi
 
18776
      ;;
 
18777
    esac
 
18778
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18779
    # soname into executable. Probably we can add versioning support to
 
18780
    # collect2, so additional links can be useful in future.
 
18781
    if test "$aix_use_runtimelinking" = yes; then
 
18782
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18783
      # instead of lib<name>.a to let people know that these are not
 
18784
      # typical AIX shared libraries.
 
18785
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18786
    else
 
18787
      # We preserve .a as extension for shared libraries through AIX4.2
 
18788
      # and later when we are not doing run time linking.
 
18789
      library_names_spec='${libname}${release}.a $libname.a'
 
18790
      soname_spec='${libname}${release}${shared_ext}$major'
 
18791
    fi
 
18792
    shlibpath_var=LIBPATH
 
18793
  fi
 
18794
  ;;
 
18795
 
 
18796
amigaos*)
 
18797
  library_names_spec='$libname.ixlibrary $libname.a'
 
18798
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18799
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
18800
  ;;
 
18801
 
 
18802
beos*)
 
18803
  library_names_spec='${libname}${shared_ext}'
 
18804
  dynamic_linker="$host_os ld.so"
 
18805
  shlibpath_var=LIBRARY_PATH
 
18806
  ;;
 
18807
 
 
18808
bsdi[45]*)
 
18809
  version_type=linux
 
18810
  need_version=no
 
18811
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18812
  soname_spec='${libname}${release}${shared_ext}$major'
 
18813
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18814
  shlibpath_var=LD_LIBRARY_PATH
 
18815
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18816
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18817
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18818
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18819
  # libtool to hard-code these into programs
 
18820
  ;;
 
18821
 
 
18822
cygwin* | mingw* | pw32*)
 
18823
  version_type=windows
 
18824
  shrext_cmds=".dll"
 
18825
  need_version=no
 
18826
  need_lib_prefix=no
 
18827
 
 
18828
  case $GCC,$host_os in
 
18829
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18830
    library_names_spec='$libname.dll.a'
 
18831
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18832
    postinstall_cmds='base_file=`basename \${file}`~
 
18833
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18834
      dldir=$destdir/`dirname \$dlpath`~
 
18835
      test -d \$dldir || mkdir -p \$dldir~
 
18836
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18837
      chmod a+x \$dldir/$dlname'
 
18838
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18839
      dlpath=$dir/\$dldll~
 
18840
       $rm \$dlpath'
 
18841
    shlibpath_overrides_runpath=yes
 
18842
 
 
18843
    case $host_os in
 
18844
    cygwin*)
 
18845
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18846
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18847
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18848
      ;;
 
18849
    mingw*)
 
18850
      # MinGW DLLs use traditional 'lib' prefix
 
18851
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18852
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18853
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18854
        # It is most probably a Windows format PATH printed by
 
18855
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18856
        # path with ; separators, and with drive letters. We can handle the
 
18857
        # drive letters (cygwin fileutils understands them), so leave them,
 
18858
        # especially as we might pass files found there to a mingw objdump,
 
18859
        # which wouldn't understand a cygwinified path. Ahh.
 
18860
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18861
      else
 
18862
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18863
      fi
 
18864
      ;;
 
18865
    pw32*)
 
18866
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18867
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18868
      ;;
 
18869
    esac
 
18870
    ;;
 
18871
 
 
18872
  *)
 
18873
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18874
    ;;
 
18875
  esac
 
18876
  dynamic_linker='Win32 ld.exe'
 
18877
  # FIXME: first we should search . and the directory the executable is in
 
18878
  shlibpath_var=PATH
 
18879
  ;;
 
18880
 
 
18881
darwin* | rhapsody*)
 
18882
  dynamic_linker="$host_os dyld"
 
18883
  version_type=darwin
 
18884
  need_lib_prefix=no
 
18885
  need_version=no
 
18886
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18887
  soname_spec='${libname}${release}${major}$shared_ext'
 
18888
  shlibpath_overrides_runpath=yes
 
18889
  shlibpath_var=DYLD_LIBRARY_PATH
 
18890
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18891
 
 
18892
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18893
  ;;
 
18894
 
 
18895
dgux*)
 
18896
  version_type=linux
 
18897
  need_lib_prefix=no
 
18898
  need_version=no
 
18899
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18900
  soname_spec='${libname}${release}${shared_ext}$major'
 
18901
  shlibpath_var=LD_LIBRARY_PATH
 
18902
  ;;
 
18903
 
 
18904
freebsd1*)
 
18905
  dynamic_linker=no
 
18906
  ;;
 
18907
 
 
18908
freebsd* | dragonfly*)
 
18909
  # DragonFly does not have aout.  When/if they implement a new
 
18910
  # versioning mechanism, adjust this.
 
18911
  if test -x /usr/bin/objformat; then
 
18912
    objformat=`/usr/bin/objformat`
 
18913
  else
 
18914
    case $host_os in
 
18915
    freebsd[123]*) objformat=aout ;;
 
18916
    *) objformat=elf ;;
 
18917
    esac
 
18918
  fi
 
18919
  version_type=freebsd-$objformat
 
18920
  case $version_type in
 
18921
    freebsd-elf*)
 
18922
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18923
      need_version=no
 
18924
      need_lib_prefix=no
 
18925
      ;;
 
18926
    freebsd-*)
 
18927
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18928
      need_version=yes
 
18929
      ;;
 
18930
  esac
 
18931
  shlibpath_var=LD_LIBRARY_PATH
 
18932
  case $host_os in
 
18933
  freebsd2*)
 
18934
    shlibpath_overrides_runpath=yes
 
18935
    ;;
 
18936
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18937
    shlibpath_overrides_runpath=yes
 
18938
    hardcode_into_libs=yes
 
18939
    ;;
 
18940
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18941
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18942
    shlibpath_overrides_runpath=no
 
18943
    hardcode_into_libs=yes
 
18944
    ;;
 
18945
  *) # from 4.6 on, and DragonFly
 
18946
    shlibpath_overrides_runpath=yes
 
18947
    hardcode_into_libs=yes
 
18948
    ;;
 
18949
  esac
 
18950
  ;;
 
18951
 
 
18952
gnu*)
 
18953
  version_type=linux
 
18954
  need_lib_prefix=no
 
18955
  need_version=no
 
18956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18957
  soname_spec='${libname}${release}${shared_ext}$major'
 
18958
  shlibpath_var=LD_LIBRARY_PATH
 
18959
  hardcode_into_libs=yes
 
18960
  ;;
 
18961
 
 
18962
hpux9* | hpux10* | hpux11*)
 
18963
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18964
  # link against other versions.
 
18965
  version_type=sunos
 
18966
  need_lib_prefix=no
 
18967
  need_version=no
 
18968
  case $host_cpu in
 
18969
  ia64*)
 
18970
    shrext_cmds='.so'
 
18971
    hardcode_into_libs=yes
 
18972
    dynamic_linker="$host_os dld.so"
 
18973
    shlibpath_var=LD_LIBRARY_PATH
 
18974
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18975
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18976
    soname_spec='${libname}${release}${shared_ext}$major'
 
18977
    if test "X$HPUX_IA64_MODE" = X32; then
 
18978
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18979
    else
 
18980
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18981
    fi
 
18982
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18983
    ;;
 
18984
   hppa*64*)
 
18985
     shrext_cmds='.sl'
 
18986
     hardcode_into_libs=yes
 
18987
     dynamic_linker="$host_os dld.sl"
 
18988
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18989
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18990
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18991
     soname_spec='${libname}${release}${shared_ext}$major'
 
18992
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18993
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18994
     ;;
 
18995
   *)
 
18996
    shrext_cmds='.sl'
 
18997
    dynamic_linker="$host_os dld.sl"
 
18998
    shlibpath_var=SHLIB_PATH
 
18999
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19000
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19001
    soname_spec='${libname}${release}${shared_ext}$major'
 
19002
    ;;
 
19003
  esac
 
19004
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19005
  postinstall_cmds='chmod 555 $lib'
 
19006
  ;;
 
19007
 
 
19008
interix[3-9]*)
 
19009
  version_type=linux
 
19010
  need_lib_prefix=no
 
19011
  need_version=no
 
19012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19013
  soname_spec='${libname}${release}${shared_ext}$major'
 
19014
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
19015
  shlibpath_var=LD_LIBRARY_PATH
 
19016
  shlibpath_overrides_runpath=no
 
19017
  hardcode_into_libs=yes
 
19018
  ;;
 
19019
 
 
19020
irix5* | irix6* | nonstopux*)
 
19021
  case $host_os in
 
19022
    nonstopux*) version_type=nonstopux ;;
 
19023
    *)
 
19024
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19025
                version_type=linux
 
19026
        else
 
19027
                version_type=irix
 
19028
        fi ;;
 
19029
  esac
 
19030
  need_lib_prefix=no
 
19031
  need_version=no
 
19032
  soname_spec='${libname}${release}${shared_ext}$major'
 
19033
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19034
  case $host_os in
 
19035
  irix5* | nonstopux*)
 
19036
    libsuff= shlibsuff=
 
19037
    ;;
 
19038
  *)
 
19039
    case $LD in # libtool.m4 will add one of these switches to LD
 
19040
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19041
      libsuff= shlibsuff= libmagic=32-bit;;
 
19042
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19043
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19044
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19045
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19046
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19047
    esac
 
19048
    ;;
 
19049
  esac
 
19050
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19051
  shlibpath_overrides_runpath=no
 
19052
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19053
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19054
  hardcode_into_libs=yes
 
19055
  ;;
 
19056
 
 
19057
# No shared lib support for Linux oldld, aout, or coff.
 
19058
linux*oldld* | linux*aout* | linux*coff*)
 
19059
  dynamic_linker=no
 
19060
  ;;
 
19061
 
 
19062
# This must be Linux ELF.
 
19063
linux* | k*bsd*-gnu)
 
19064
  version_type=linux
 
19065
  need_lib_prefix=no
 
19066
  need_version=no
 
19067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19068
  soname_spec='${libname}${release}${shared_ext}$major'
 
19069
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19070
  shlibpath_var=LD_LIBRARY_PATH
 
19071
  shlibpath_overrides_runpath=no
 
19072
  # This implies no fast_install, which is unacceptable.
 
19073
  # Some rework will be needed to allow for fast_install
 
19074
  # before this can be enabled.
 
19075
  hardcode_into_libs=yes
 
19076
 
 
19077
  # Append ld.so.conf contents to the search path
 
19078
  if test -f /etc/ld.so.conf; then
 
19079
    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' ' '`
 
19080
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
19081
  fi
 
19082
 
 
19083
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19084
  # powerpc, because MkLinux only supported shared libraries with the
 
19085
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19086
  # most powerpc-linux boxes support dynamic linking these days and
 
19087
  # people can always --disable-shared, the test was removed, and we
 
19088
  # assume the GNU/Linux dynamic linker is in use.
 
19089
  dynamic_linker='GNU/Linux ld.so'
 
19090
  ;;
 
19091
 
 
19092
netbsdelf*-gnu)
 
19093
  version_type=linux
 
19094
  need_lib_prefix=no
 
19095
  need_version=no
 
19096
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19097
  soname_spec='${libname}${release}${shared_ext}$major'
 
19098
  shlibpath_var=LD_LIBRARY_PATH
 
19099
  shlibpath_overrides_runpath=no
 
19100
  hardcode_into_libs=yes
 
19101
  dynamic_linker='NetBSD ld.elf_so'
 
19102
  ;;
 
19103
 
 
19104
netbsd*)
 
19105
  version_type=sunos
 
19106
  need_lib_prefix=no
 
19107
  need_version=no
 
19108
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19109
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19110
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19111
    dynamic_linker='NetBSD (a.out) ld.so'
 
19112
  else
 
19113
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19114
    soname_spec='${libname}${release}${shared_ext}$major'
 
19115
    dynamic_linker='NetBSD ld.elf_so'
 
19116
  fi
 
19117
  shlibpath_var=LD_LIBRARY_PATH
 
19118
  shlibpath_overrides_runpath=yes
 
19119
  hardcode_into_libs=yes
 
19120
  ;;
 
19121
 
 
19122
newsos6)
 
19123
  version_type=linux
 
19124
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19125
  shlibpath_var=LD_LIBRARY_PATH
 
19126
  shlibpath_overrides_runpath=yes
 
19127
  ;;
 
19128
 
 
19129
nto-qnx*)
 
19130
  version_type=linux
 
19131
  need_lib_prefix=no
 
19132
  need_version=no
 
19133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19134
  soname_spec='${libname}${release}${shared_ext}$major'
 
19135
  shlibpath_var=LD_LIBRARY_PATH
 
19136
  shlibpath_overrides_runpath=yes
 
19137
  ;;
 
19138
 
 
19139
openbsd*)
 
19140
  version_type=sunos
 
19141
  sys_lib_dlsearch_path_spec="/usr/lib"
 
19142
  need_lib_prefix=no
 
19143
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19144
  case $host_os in
 
19145
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19146
    *)                         need_version=no  ;;
 
19147
  esac
 
19148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19149
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19150
  shlibpath_var=LD_LIBRARY_PATH
 
19151
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19152
    case $host_os in
 
19153
      openbsd2.[89] | openbsd2.[89].*)
 
19154
        shlibpath_overrides_runpath=no
 
19155
        ;;
 
19156
      *)
 
19157
        shlibpath_overrides_runpath=yes
 
19158
        ;;
 
19159
      esac
 
19160
  else
 
19161
    shlibpath_overrides_runpath=yes
 
19162
  fi
 
19163
  ;;
 
19164
 
 
19165
os2*)
 
19166
  libname_spec='$name'
 
19167
  shrext_cmds=".dll"
 
19168
  need_lib_prefix=no
 
19169
  library_names_spec='$libname${shared_ext} $libname.a'
 
19170
  dynamic_linker='OS/2 ld.exe'
 
19171
  shlibpath_var=LIBPATH
 
19172
  ;;
 
19173
 
 
19174
osf3* | osf4* | osf5*)
 
19175
  version_type=osf
 
19176
  need_lib_prefix=no
 
19177
  need_version=no
 
19178
  soname_spec='${libname}${release}${shared_ext}$major'
 
19179
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19180
  shlibpath_var=LD_LIBRARY_PATH
 
19181
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19182
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19183
  ;;
 
19184
 
 
19185
rdos*)
 
19186
  dynamic_linker=no
 
19187
  ;;
 
19188
 
 
19189
solaris*)
 
19190
  version_type=linux
 
19191
  need_lib_prefix=no
 
19192
  need_version=no
 
19193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19194
  soname_spec='${libname}${release}${shared_ext}$major'
 
19195
  shlibpath_var=LD_LIBRARY_PATH
 
19196
  shlibpath_overrides_runpath=yes
 
19197
  hardcode_into_libs=yes
 
19198
  # ldd complains unless libraries are executable
 
19199
  postinstall_cmds='chmod +x $lib'
 
19200
  ;;
 
19201
 
 
19202
sunos4*)
 
19203
  version_type=sunos
 
19204
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19205
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19206
  shlibpath_var=LD_LIBRARY_PATH
 
19207
  shlibpath_overrides_runpath=yes
 
19208
  if test "$with_gnu_ld" = yes; then
 
19209
    need_lib_prefix=no
 
19210
  fi
 
19211
  need_version=yes
 
19212
  ;;
 
19213
 
 
19214
sysv4 | sysv4.3*)
 
19215
  version_type=linux
 
19216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19217
  soname_spec='${libname}${release}${shared_ext}$major'
 
19218
  shlibpath_var=LD_LIBRARY_PATH
 
19219
  case $host_vendor in
 
19220
    sni)
 
19221
      shlibpath_overrides_runpath=no
 
19222
      need_lib_prefix=no
 
19223
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19224
      runpath_var=LD_RUN_PATH
 
19225
      ;;
 
19226
    siemens)
 
19227
      need_lib_prefix=no
 
19228
      ;;
 
19229
    motorola)
 
19230
      need_lib_prefix=no
 
19231
      need_version=no
 
19232
      shlibpath_overrides_runpath=no
 
19233
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19234
      ;;
 
19235
  esac
 
19236
  ;;
 
19237
 
 
19238
sysv4*MP*)
 
19239
  if test -d /usr/nec ;then
 
19240
    version_type=linux
 
19241
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19242
    soname_spec='$libname${shared_ext}.$major'
 
19243
    shlibpath_var=LD_LIBRARY_PATH
 
19244
  fi
 
19245
  ;;
 
19246
 
 
19247
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19248
  version_type=freebsd-elf
 
19249
  need_lib_prefix=no
 
19250
  need_version=no
 
19251
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19252
  soname_spec='${libname}${release}${shared_ext}$major'
 
19253
  shlibpath_var=LD_LIBRARY_PATH
 
19254
  hardcode_into_libs=yes
 
19255
  if test "$with_gnu_ld" = yes; then
 
19256
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19257
    shlibpath_overrides_runpath=no
 
19258
  else
 
19259
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19260
    shlibpath_overrides_runpath=yes
 
19261
    case $host_os in
 
19262
      sco3.2v5*)
 
19263
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19264
        ;;
 
19265
    esac
 
19266
  fi
 
19267
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19268
  ;;
 
19269
 
 
19270
uts4*)
 
19271
  version_type=linux
 
19272
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19273
  soname_spec='${libname}${release}${shared_ext}$major'
 
19274
  shlibpath_var=LD_LIBRARY_PATH
 
19275
  ;;
 
19276
 
 
19277
*)
 
19278
  dynamic_linker=no
 
19279
  ;;
 
19280
esac
 
19281
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19282
echo "${ECHO_T}$dynamic_linker" >&6; }
 
19283
test "$dynamic_linker" = no && can_build_shared=no
 
19284
 
 
19285
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19287
else
 
19288
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19289
fi
 
19290
 
 
19291
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19292
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19294
else
 
19295
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19296
fi
 
19297
 
 
19298
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19299
 
 
19300
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19301
if test "$GCC" = yes; then
 
19302
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19303
fi
 
19304
 
 
19305
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19306
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
19307
hardcode_action_GCJ=
 
19308
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19309
   test -n "$runpath_var_GCJ" || \
 
19310
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19311
 
 
19312
  # We can hardcode non-existant directories.
 
19313
  if test "$hardcode_direct_GCJ" != no &&
 
19314
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19315
     # have to relink, otherwise we might link with an installed library
 
19316
     # when we should be linking with a yet-to-be-installed one
 
19317
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19318
     test "$hardcode_minus_L_GCJ" != no; then
 
19319
    # Linking always hardcodes the temporary library directory.
 
19320
    hardcode_action_GCJ=relink
 
19321
  else
 
19322
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19323
    hardcode_action_GCJ=immediate
 
19324
  fi
 
19325
else
 
19326
  # We cannot hardcode anything, or else we can only hardcode existing
 
19327
  # directories.
 
19328
  hardcode_action_GCJ=unsupported
 
19329
fi
 
19330
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19331
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
19332
 
 
19333
if test "$hardcode_action_GCJ" = relink; then
 
19334
  # Fast installation is not supported
 
19335
  enable_fast_install=no
 
19336
elif test "$shlibpath_overrides_runpath" = yes ||
 
19337
     test "$enable_shared" = no; then
 
19338
  # Fast installation is not necessary
 
19339
  enable_fast_install=needless
 
19340
fi
 
19341
 
 
19342
 
 
19343
# The else clause should only fire when bootstrapping the
 
19344
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19345
# with your package, and you will get complaints that there are
 
19346
# no rules to generate ltmain.sh.
 
19347
if test -f "$ltmain"; then
 
19348
  # See if we are running on zsh, and set the options which allow our commands through
 
19349
  # without removal of \ escapes.
 
19350
  if test -n "${ZSH_VERSION+set}" ; then
 
19351
    setopt NO_GLOB_SUBST
 
19352
  fi
 
19353
  # Now quote all the things that may contain metacharacters while being
 
19354
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19355
  # variables and quote the copies for generation of the libtool script.
 
19356
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19357
    SED SHELL STRIP \
 
19358
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19359
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19360
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19361
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19362
    lt_cv_sys_global_symbol_to_c_name_address \
 
19363
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19364
    old_postinstall_cmds old_postuninstall_cmds \
 
19365
    compiler_GCJ \
 
19366
    CC_GCJ \
 
19367
    LD_GCJ \
 
19368
    lt_prog_compiler_wl_GCJ \
 
19369
    lt_prog_compiler_pic_GCJ \
 
19370
    lt_prog_compiler_static_GCJ \
 
19371
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19372
    export_dynamic_flag_spec_GCJ \
 
19373
    thread_safe_flag_spec_GCJ \
 
19374
    whole_archive_flag_spec_GCJ \
 
19375
    enable_shared_with_static_runtimes_GCJ \
 
19376
    old_archive_cmds_GCJ \
 
19377
    old_archive_from_new_cmds_GCJ \
 
19378
    predep_objects_GCJ \
 
19379
    postdep_objects_GCJ \
 
19380
    predeps_GCJ \
 
19381
    postdeps_GCJ \
 
19382
    compiler_lib_search_path_GCJ \
 
19383
    compiler_lib_search_dirs_GCJ \
 
19384
    archive_cmds_GCJ \
 
19385
    archive_expsym_cmds_GCJ \
 
19386
    postinstall_cmds_GCJ \
 
19387
    postuninstall_cmds_GCJ \
 
19388
    old_archive_from_expsyms_cmds_GCJ \
 
19389
    allow_undefined_flag_GCJ \
 
19390
    no_undefined_flag_GCJ \
 
19391
    export_symbols_cmds_GCJ \
 
19392
    hardcode_libdir_flag_spec_GCJ \
 
19393
    hardcode_libdir_flag_spec_ld_GCJ \
 
19394
    hardcode_libdir_separator_GCJ \
 
19395
    hardcode_automatic_GCJ \
 
19396
    module_cmds_GCJ \
 
19397
    module_expsym_cmds_GCJ \
 
19398
    lt_cv_prog_compiler_c_o_GCJ \
 
19399
    fix_srcfile_path_GCJ \
 
19400
    exclude_expsyms_GCJ \
 
19401
    include_expsyms_GCJ; do
 
19402
 
 
19403
    case $var in
 
19404
    old_archive_cmds_GCJ | \
 
19405
    old_archive_from_new_cmds_GCJ | \
 
19406
    archive_cmds_GCJ | \
 
19407
    archive_expsym_cmds_GCJ | \
 
19408
    module_cmds_GCJ | \
 
19409
    module_expsym_cmds_GCJ | \
 
19410
    old_archive_from_expsyms_cmds_GCJ | \
 
19411
    export_symbols_cmds_GCJ | \
 
19412
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19413
    postinstall_cmds | postuninstall_cmds | \
 
19414
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19415
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19416
      # Double-quote double-evaled strings.
 
19417
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19418
      ;;
 
19419
    *)
 
19420
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19421
      ;;
 
19422
    esac
 
19423
  done
 
19424
 
 
19425
  case $lt_echo in
 
19426
  *'\$0 --fallback-echo"')
 
19427
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19428
    ;;
 
19429
  esac
 
19430
 
 
19431
cfgfile="$ofile"
 
19432
 
 
19433
  cat <<__EOF__ >> "$cfgfile"
 
19434
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19435
 
 
19436
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19437
 
 
19438
# Shell to use when invoking shell scripts.
 
19439
SHELL=$lt_SHELL
 
19440
 
 
19441
# Whether or not to build shared libraries.
 
19442
build_libtool_libs=$enable_shared
 
19443
 
 
19444
# Whether or not to build static libraries.
 
19445
build_old_libs=$enable_static
 
19446
 
 
19447
# Whether or not to add -lc for building shared libraries.
 
19448
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19449
 
 
19450
# Whether or not to disallow shared libs when runtime libs are static
 
19451
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19452
 
 
19453
# Whether or not to optimize for fast installation.
 
19454
fast_install=$enable_fast_install
 
19455
 
 
19456
# The host system.
 
19457
host_alias=$host_alias
 
19458
host=$host
 
19459
host_os=$host_os
 
19460
 
 
19461
# The build system.
 
19462
build_alias=$build_alias
 
19463
build=$build
 
19464
build_os=$build_os
 
19465
 
 
19466
# An echo program that does not interpret backslashes.
 
19467
echo=$lt_echo
 
19468
 
 
19469
# The archiver.
 
19470
AR=$lt_AR
 
19471
AR_FLAGS=$lt_AR_FLAGS
 
19472
 
 
19473
# A C compiler.
 
19474
LTCC=$lt_LTCC
 
19475
 
 
19476
# LTCC compiler flags.
 
19477
LTCFLAGS=$lt_LTCFLAGS
 
19478
 
 
19479
# A language-specific compiler.
 
19480
CC=$lt_compiler_GCJ
 
19481
 
 
19482
# Is the compiler the GNU C compiler?
 
19483
with_gcc=$GCC_GCJ
 
19484
 
 
19485
# An ERE matcher.
 
19486
EGREP=$lt_EGREP
 
19487
 
 
19488
# The linker used to build libraries.
 
19489
LD=$lt_LD_GCJ
 
19490
 
 
19491
# Whether we need hard or soft links.
 
19492
LN_S=$lt_LN_S
 
19493
 
 
19494
# A BSD-compatible nm program.
 
19495
NM=$lt_NM
 
19496
 
 
19497
# A symbol stripping program
 
19498
STRIP=$lt_STRIP
 
19499
 
 
19500
# Used to examine libraries when file_magic_cmd begins "file"
 
19501
MAGIC_CMD=$MAGIC_CMD
 
19502
 
 
19503
# Used on cygwin: DLL creation program.
 
19504
DLLTOOL="$DLLTOOL"
 
19505
 
 
19506
# Used on cygwin: object dumper.
 
19507
OBJDUMP="$OBJDUMP"
 
19508
 
 
19509
# Used on cygwin: assembler.
 
19510
AS="$AS"
 
19511
 
 
19512
# The name of the directory that contains temporary libtool files.
 
19513
objdir=$objdir
 
19514
 
 
19515
# How to create reloadable object files.
 
19516
reload_flag=$lt_reload_flag
 
19517
reload_cmds=$lt_reload_cmds
 
19518
 
 
19519
# How to pass a linker flag through the compiler.
 
19520
wl=$lt_lt_prog_compiler_wl_GCJ
 
19521
 
 
19522
# Object file suffix (normally "o").
 
19523
objext="$ac_objext"
 
19524
 
 
19525
# Old archive suffix (normally "a").
 
19526
libext="$libext"
 
19527
 
 
19528
# Shared library suffix (normally ".so").
 
19529
shrext_cmds='$shrext_cmds'
 
19530
 
 
19531
# Executable file suffix (normally "").
 
19532
exeext="$exeext"
 
19533
 
 
19534
# Additional compiler flags for building library objects.
 
19535
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19536
pic_mode=$pic_mode
 
19537
 
 
19538
# What is the maximum length of a command?
 
19539
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19540
 
 
19541
# Does compiler simultaneously support -c and -o options?
 
19542
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19543
 
 
19544
# Must we lock files when doing compilation?
 
19545
need_locks=$lt_need_locks
 
19546
 
 
19547
# Do we need the lib prefix for modules?
 
19548
need_lib_prefix=$need_lib_prefix
 
19549
 
 
19550
# Do we need a version for libraries?
 
19551
need_version=$need_version
 
19552
 
 
19553
# Whether dlopen is supported.
 
19554
dlopen_support=$enable_dlopen
 
19555
 
 
19556
# Whether dlopen of programs is supported.
 
19557
dlopen_self=$enable_dlopen_self
 
19558
 
 
19559
# Whether dlopen of statically linked programs is supported.
 
19560
dlopen_self_static=$enable_dlopen_self_static
 
19561
 
 
19562
# Compiler flag to prevent dynamic linking.
 
19563
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19564
 
 
19565
# Compiler flag to turn off builtin functions.
 
19566
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19567
 
 
19568
# Compiler flag to allow reflexive dlopens.
 
19569
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19570
 
 
19571
# Compiler flag to generate shared objects directly from archives.
 
19572
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19573
 
 
19574
# Compiler flag to generate thread-safe objects.
 
19575
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19576
 
 
19577
# Library versioning type.
 
19578
version_type=$version_type
 
19579
 
 
19580
# Format of library name prefix.
 
19581
libname_spec=$lt_libname_spec
 
19582
 
 
19583
# List of archive names.  First name is the real one, the rest are links.
 
19584
# The last name is the one that the linker finds with -lNAME.
 
19585
library_names_spec=$lt_library_names_spec
 
19586
 
 
19587
# The coded name of the library, if different from the real name.
 
19588
soname_spec=$lt_soname_spec
 
19589
 
 
19590
# Commands used to build and install an old-style archive.
 
19591
RANLIB=$lt_RANLIB
 
19592
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19593
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19594
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19595
 
 
19596
# Create an old-style archive from a shared archive.
 
19597
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19598
 
 
19599
# Create a temporary old-style archive to link instead of a shared archive.
 
19600
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19601
 
 
19602
# Commands used to build and install a shared archive.
 
19603
archive_cmds=$lt_archive_cmds_GCJ
 
19604
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19605
postinstall_cmds=$lt_postinstall_cmds
 
19606
postuninstall_cmds=$lt_postuninstall_cmds
 
19607
 
 
19608
# Commands used to build a loadable module (assumed same as above if empty)
 
19609
module_cmds=$lt_module_cmds_GCJ
 
19610
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19611
 
 
19612
# Commands to strip libraries.
 
19613
old_striplib=$lt_old_striplib
 
19614
striplib=$lt_striplib
 
19615
 
 
19616
# Dependencies to place before the objects being linked to create a
 
19617
# shared library.
 
19618
predep_objects=$lt_predep_objects_GCJ
 
19619
 
 
19620
# Dependencies to place after the objects being linked to create a
 
19621
# shared library.
 
19622
postdep_objects=$lt_postdep_objects_GCJ
 
19623
 
 
19624
# Dependencies to place before the objects being linked to create a
 
19625
# shared library.
 
19626
predeps=$lt_predeps_GCJ
 
19627
 
 
19628
# Dependencies to place after the objects being linked to create a
 
19629
# shared library.
 
19630
postdeps=$lt_postdeps_GCJ
 
19631
 
 
19632
# The directories searched by this compiler when creating a shared
 
19633
# library
 
19634
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19635
 
 
19636
# The library search path used internally by the compiler when linking
 
19637
# a shared library.
 
19638
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19639
 
 
19640
# Method to check whether dependent libraries are shared objects.
 
19641
deplibs_check_method=$lt_deplibs_check_method
 
19642
 
 
19643
# Command to use when deplibs_check_method == file_magic.
 
19644
file_magic_cmd=$lt_file_magic_cmd
 
19645
 
 
19646
# Flag that allows shared libraries with undefined symbols to be built.
 
19647
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19648
 
 
19649
# Flag that forces no undefined symbols.
 
19650
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19651
 
 
19652
# Commands used to finish a libtool library installation in a directory.
 
19653
finish_cmds=$lt_finish_cmds
 
19654
 
 
19655
# Same as above, but a single script fragment to be evaled but not shown.
 
19656
finish_eval=$lt_finish_eval
 
19657
 
 
19658
# Take the output of nm and produce a listing of raw symbols and C names.
 
19659
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19660
 
 
19661
# Transform the output of nm in a proper C declaration
 
19662
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19663
 
 
19664
# Transform the output of nm in a C name address pair
 
19665
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19666
 
 
19667
# This is the shared library runtime path variable.
 
19668
runpath_var=$runpath_var
 
19669
 
 
19670
# This is the shared library path variable.
 
19671
shlibpath_var=$shlibpath_var
 
19672
 
 
19673
# Is shlibpath searched before the hard-coded library search path?
 
19674
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19675
 
 
19676
# How to hardcode a shared library path into an executable.
 
19677
hardcode_action=$hardcode_action_GCJ
 
19678
 
 
19679
# Whether we should hardcode library paths into libraries.
 
19680
hardcode_into_libs=$hardcode_into_libs
 
19681
 
 
19682
# Flag to hardcode \$libdir into a binary during linking.
 
19683
# This must work even if \$libdir does not exist.
 
19684
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19685
 
 
19686
# If ld is used when linking, flag to hardcode \$libdir into
 
19687
# a binary during linking. This must work even if \$libdir does
 
19688
# not exist.
 
19689
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19690
 
 
19691
# Whether we need a single -rpath flag with a separated argument.
 
19692
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19693
 
 
19694
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19695
# resulting binary.
 
19696
hardcode_direct=$hardcode_direct_GCJ
 
19697
 
 
19698
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19699
# resulting binary.
 
19700
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19701
 
 
19702
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19703
# the resulting binary.
 
19704
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19705
 
 
19706
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19707
# and all subsequent libraries and executables linked against it.
 
19708
hardcode_automatic=$hardcode_automatic_GCJ
 
19709
 
 
19710
# Variables whose values should be saved in libtool wrapper scripts and
 
19711
# restored at relink time.
 
19712
variables_saved_for_relink="$variables_saved_for_relink"
 
19713
 
 
19714
# Whether libtool must link a program against all its dependency libraries.
 
19715
link_all_deplibs=$link_all_deplibs_GCJ
 
19716
 
 
19717
# Compile-time system search path for libraries
 
19718
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19719
 
 
19720
# Run-time system search path for libraries
 
19721
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19722
 
 
19723
# Fix the shell variable \$srcfile for the compiler.
 
19724
fix_srcfile_path=$lt_fix_srcfile_path
 
19725
 
 
19726
# Set to yes if exported symbols are required.
 
19727
always_export_symbols=$always_export_symbols_GCJ
 
19728
 
 
19729
# The commands to list exported symbols.
 
19730
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19731
 
 
19732
# The commands to extract the exported symbol list from a shared archive.
 
19733
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19734
 
 
19735
# Symbols that should not be listed in the preloaded symbols.
 
19736
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19737
 
 
19738
# Symbols that must always be exported.
 
19739
include_expsyms=$lt_include_expsyms_GCJ
 
19740
 
 
19741
# ### END LIBTOOL TAG CONFIG: $tagname
 
19742
 
 
19743
__EOF__
 
19744
 
 
19745
 
 
19746
else
 
19747
  # If there is no Makefile yet, we rely on a make rule to execute
 
19748
  # `config.status --recheck' to rerun these tests and create the
 
19749
  # libtool script then.
 
19750
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19751
  if test -f "$ltmain_in"; then
 
19752
    test -f Makefile && make "$ltmain"
 
19753
  fi
 
19754
fi
 
19755
 
 
19756
 
 
19757
ac_ext=c
 
19758
ac_cpp='$CPP $CPPFLAGS'
 
19759
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19760
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19761
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19762
 
 
19763
CC="$lt_save_CC"
 
19764
 
 
19765
        else
 
19766
          tagname=""
 
19767
        fi
 
19768
        ;;
 
19769
 
 
19770
      RC)
 
19771
 
 
19772
 
 
19773
# Source file extension for RC test sources.
 
19774
ac_ext=rc
 
19775
 
 
19776
# Object file extension for compiled RC test sources.
 
19777
objext=o
 
19778
objext_RC=$objext
 
19779
 
 
19780
# Code to be used in simple compile tests
 
19781
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19782
 
 
19783
# Code to be used in simple link tests
 
19784
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19785
 
 
19786
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19787
 
 
19788
# If no C compiler was specified, use CC.
 
19789
LTCC=${LTCC-"$CC"}
 
19790
 
 
19791
# If no C compiler flags were specified, use CFLAGS.
 
19792
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19793
 
 
19794
# Allow CC to be a program name with arguments.
 
19795
compiler=$CC
 
19796
 
 
19797
 
 
19798
# save warnings/boilerplate of simple test code
 
19799
ac_outfile=conftest.$ac_objext
 
19800
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19801
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19802
_lt_compiler_boilerplate=`cat conftest.err`
 
19803
$rm conftest*
 
19804
 
 
19805
ac_outfile=conftest.$ac_objext
 
19806
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19807
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19808
_lt_linker_boilerplate=`cat conftest.err`
 
19809
$rm -r conftest*
 
19810
 
 
19811
 
 
19812
# Allow CC to be a program name with arguments.
 
19813
lt_save_CC="$CC"
 
19814
CC=${RC-"windres"}
 
19815
compiler=$CC
 
19816
compiler_RC=$CC
 
19817
for cc_temp in $compiler""; do
 
19818
  case $cc_temp in
 
19819
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19820
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19821
    \-*) ;;
 
19822
    *) break;;
 
19823
  esac
 
19824
done
 
19825
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19826
 
 
19827
lt_cv_prog_compiler_c_o_RC=yes
 
19828
 
 
19829
# The else clause should only fire when bootstrapping the
 
19830
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19831
# with your package, and you will get complaints that there are
 
19832
# no rules to generate ltmain.sh.
 
19833
if test -f "$ltmain"; then
 
19834
  # See if we are running on zsh, and set the options which allow our commands through
 
19835
  # without removal of \ escapes.
 
19836
  if test -n "${ZSH_VERSION+set}" ; then
 
19837
    setopt NO_GLOB_SUBST
 
19838
  fi
 
19839
  # Now quote all the things that may contain metacharacters while being
 
19840
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19841
  # variables and quote the copies for generation of the libtool script.
 
19842
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19843
    SED SHELL STRIP \
 
19844
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19845
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19846
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19847
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19848
    lt_cv_sys_global_symbol_to_c_name_address \
 
19849
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19850
    old_postinstall_cmds old_postuninstall_cmds \
 
19851
    compiler_RC \
 
19852
    CC_RC \
 
19853
    LD_RC \
 
19854
    lt_prog_compiler_wl_RC \
 
19855
    lt_prog_compiler_pic_RC \
 
19856
    lt_prog_compiler_static_RC \
 
19857
    lt_prog_compiler_no_builtin_flag_RC \
 
19858
    export_dynamic_flag_spec_RC \
 
19859
    thread_safe_flag_spec_RC \
 
19860
    whole_archive_flag_spec_RC \
 
19861
    enable_shared_with_static_runtimes_RC \
 
19862
    old_archive_cmds_RC \
 
19863
    old_archive_from_new_cmds_RC \
 
19864
    predep_objects_RC \
 
19865
    postdep_objects_RC \
 
19866
    predeps_RC \
 
19867
    postdeps_RC \
 
19868
    compiler_lib_search_path_RC \
 
19869
    compiler_lib_search_dirs_RC \
 
19870
    archive_cmds_RC \
 
19871
    archive_expsym_cmds_RC \
 
19872
    postinstall_cmds_RC \
 
19873
    postuninstall_cmds_RC \
 
19874
    old_archive_from_expsyms_cmds_RC \
 
19875
    allow_undefined_flag_RC \
 
19876
    no_undefined_flag_RC \
 
19877
    export_symbols_cmds_RC \
 
19878
    hardcode_libdir_flag_spec_RC \
 
19879
    hardcode_libdir_flag_spec_ld_RC \
 
19880
    hardcode_libdir_separator_RC \
 
19881
    hardcode_automatic_RC \
 
19882
    module_cmds_RC \
 
19883
    module_expsym_cmds_RC \
 
19884
    lt_cv_prog_compiler_c_o_RC \
 
19885
    fix_srcfile_path_RC \
 
19886
    exclude_expsyms_RC \
 
19887
    include_expsyms_RC; do
 
19888
 
 
19889
    case $var in
 
19890
    old_archive_cmds_RC | \
 
19891
    old_archive_from_new_cmds_RC | \
 
19892
    archive_cmds_RC | \
 
19893
    archive_expsym_cmds_RC | \
 
19894
    module_cmds_RC | \
 
19895
    module_expsym_cmds_RC | \
 
19896
    old_archive_from_expsyms_cmds_RC | \
 
19897
    export_symbols_cmds_RC | \
 
19898
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19899
    postinstall_cmds | postuninstall_cmds | \
 
19900
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19901
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19902
      # Double-quote double-evaled strings.
 
19903
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19904
      ;;
 
19905
    *)
 
19906
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19907
      ;;
 
19908
    esac
 
19909
  done
 
19910
 
 
19911
  case $lt_echo in
 
19912
  *'\$0 --fallback-echo"')
 
19913
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19914
    ;;
 
19915
  esac
 
19916
 
 
19917
cfgfile="$ofile"
 
19918
 
 
19919
  cat <<__EOF__ >> "$cfgfile"
 
19920
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19921
 
 
19922
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19923
 
 
19924
# Shell to use when invoking shell scripts.
 
19925
SHELL=$lt_SHELL
 
19926
 
 
19927
# Whether or not to build shared libraries.
 
19928
build_libtool_libs=$enable_shared
 
19929
 
 
19930
# Whether or not to build static libraries.
 
19931
build_old_libs=$enable_static
 
19932
 
 
19933
# Whether or not to add -lc for building shared libraries.
 
19934
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19935
 
 
19936
# Whether or not to disallow shared libs when runtime libs are static
 
19937
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19938
 
 
19939
# Whether or not to optimize for fast installation.
 
19940
fast_install=$enable_fast_install
 
19941
 
 
19942
# The host system.
 
19943
host_alias=$host_alias
 
19944
host=$host
 
19945
host_os=$host_os
 
19946
 
 
19947
# The build system.
 
19948
build_alias=$build_alias
 
19949
build=$build
 
19950
build_os=$build_os
 
19951
 
 
19952
# An echo program that does not interpret backslashes.
 
19953
echo=$lt_echo
 
19954
 
 
19955
# The archiver.
 
19956
AR=$lt_AR
 
19957
AR_FLAGS=$lt_AR_FLAGS
 
19958
 
 
19959
# A C compiler.
 
19960
LTCC=$lt_LTCC
 
19961
 
 
19962
# LTCC compiler flags.
 
19963
LTCFLAGS=$lt_LTCFLAGS
 
19964
 
 
19965
# A language-specific compiler.
 
19966
CC=$lt_compiler_RC
 
19967
 
 
19968
# Is the compiler the GNU C compiler?
 
19969
with_gcc=$GCC_RC
 
19970
 
 
19971
# An ERE matcher.
 
19972
EGREP=$lt_EGREP
 
19973
 
 
19974
# The linker used to build libraries.
 
19975
LD=$lt_LD_RC
 
19976
 
 
19977
# Whether we need hard or soft links.
 
19978
LN_S=$lt_LN_S
 
19979
 
 
19980
# A BSD-compatible nm program.
 
19981
NM=$lt_NM
 
19982
 
 
19983
# A symbol stripping program
 
19984
STRIP=$lt_STRIP
 
19985
 
 
19986
# Used to examine libraries when file_magic_cmd begins "file"
 
19987
MAGIC_CMD=$MAGIC_CMD
 
19988
 
 
19989
# Used on cygwin: DLL creation program.
 
19990
DLLTOOL="$DLLTOOL"
 
19991
 
 
19992
# Used on cygwin: object dumper.
 
19993
OBJDUMP="$OBJDUMP"
 
19994
 
 
19995
# Used on cygwin: assembler.
 
19996
AS="$AS"
 
19997
 
 
19998
# The name of the directory that contains temporary libtool files.
 
19999
objdir=$objdir
 
20000
 
 
20001
# How to create reloadable object files.
 
20002
reload_flag=$lt_reload_flag
 
20003
reload_cmds=$lt_reload_cmds
 
20004
 
 
20005
# How to pass a linker flag through the compiler.
 
20006
wl=$lt_lt_prog_compiler_wl_RC
 
20007
 
 
20008
# Object file suffix (normally "o").
 
20009
objext="$ac_objext"
 
20010
 
 
20011
# Old archive suffix (normally "a").
 
20012
libext="$libext"
 
20013
 
 
20014
# Shared library suffix (normally ".so").
 
20015
shrext_cmds='$shrext_cmds'
 
20016
 
 
20017
# Executable file suffix (normally "").
 
20018
exeext="$exeext"
 
20019
 
 
20020
# Additional compiler flags for building library objects.
 
20021
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20022
pic_mode=$pic_mode
 
20023
 
 
20024
# What is the maximum length of a command?
 
20025
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20026
 
 
20027
# Does compiler simultaneously support -c and -o options?
 
20028
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20029
 
 
20030
# Must we lock files when doing compilation?
 
20031
need_locks=$lt_need_locks
 
20032
 
 
20033
# Do we need the lib prefix for modules?
 
20034
need_lib_prefix=$need_lib_prefix
 
20035
 
 
20036
# Do we need a version for libraries?
 
20037
need_version=$need_version
 
20038
 
 
20039
# Whether dlopen is supported.
 
20040
dlopen_support=$enable_dlopen
 
20041
 
 
20042
# Whether dlopen of programs is supported.
 
20043
dlopen_self=$enable_dlopen_self
 
20044
 
 
20045
# Whether dlopen of statically linked programs is supported.
 
20046
dlopen_self_static=$enable_dlopen_self_static
 
20047
 
 
20048
# Compiler flag to prevent dynamic linking.
 
20049
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20050
 
 
20051
# Compiler flag to turn off builtin functions.
 
20052
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20053
 
 
20054
# Compiler flag to allow reflexive dlopens.
 
20055
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20056
 
 
20057
# Compiler flag to generate shared objects directly from archives.
 
20058
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20059
 
 
20060
# Compiler flag to generate thread-safe objects.
 
20061
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20062
 
 
20063
# Library versioning type.
 
20064
version_type=$version_type
 
20065
 
 
20066
# Format of library name prefix.
 
20067
libname_spec=$lt_libname_spec
 
20068
 
 
20069
# List of archive names.  First name is the real one, the rest are links.
 
20070
# The last name is the one that the linker finds with -lNAME.
 
20071
library_names_spec=$lt_library_names_spec
 
20072
 
 
20073
# The coded name of the library, if different from the real name.
 
20074
soname_spec=$lt_soname_spec
 
20075
 
 
20076
# Commands used to build and install an old-style archive.
 
20077
RANLIB=$lt_RANLIB
 
20078
old_archive_cmds=$lt_old_archive_cmds_RC
 
20079
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20080
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20081
 
 
20082
# Create an old-style archive from a shared archive.
 
20083
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20084
 
 
20085
# Create a temporary old-style archive to link instead of a shared archive.
 
20086
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20087
 
 
20088
# Commands used to build and install a shared archive.
 
20089
archive_cmds=$lt_archive_cmds_RC
 
20090
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20091
postinstall_cmds=$lt_postinstall_cmds
 
20092
postuninstall_cmds=$lt_postuninstall_cmds
 
20093
 
 
20094
# Commands used to build a loadable module (assumed same as above if empty)
 
20095
module_cmds=$lt_module_cmds_RC
 
20096
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20097
 
 
20098
# Commands to strip libraries.
 
20099
old_striplib=$lt_old_striplib
 
20100
striplib=$lt_striplib
 
20101
 
 
20102
# Dependencies to place before the objects being linked to create a
 
20103
# shared library.
 
20104
predep_objects=$lt_predep_objects_RC
 
20105
 
 
20106
# Dependencies to place after the objects being linked to create a
 
20107
# shared library.
 
20108
postdep_objects=$lt_postdep_objects_RC
 
20109
 
 
20110
# Dependencies to place before the objects being linked to create a
 
20111
# shared library.
 
20112
predeps=$lt_predeps_RC
 
20113
 
 
20114
# Dependencies to place after the objects being linked to create a
 
20115
# shared library.
 
20116
postdeps=$lt_postdeps_RC
 
20117
 
 
20118
# The directories searched by this compiler when creating a shared
 
20119
# library
 
20120
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
20121
 
 
20122
# The library search path used internally by the compiler when linking
 
20123
# a shared library.
 
20124
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20125
 
 
20126
# Method to check whether dependent libraries are shared objects.
 
20127
deplibs_check_method=$lt_deplibs_check_method
 
20128
 
 
20129
# Command to use when deplibs_check_method == file_magic.
 
20130
file_magic_cmd=$lt_file_magic_cmd
 
20131
 
 
20132
# Flag that allows shared libraries with undefined symbols to be built.
 
20133
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20134
 
 
20135
# Flag that forces no undefined symbols.
 
20136
no_undefined_flag=$lt_no_undefined_flag_RC
 
20137
 
 
20138
# Commands used to finish a libtool library installation in a directory.
 
20139
finish_cmds=$lt_finish_cmds
 
20140
 
 
20141
# Same as above, but a single script fragment to be evaled but not shown.
 
20142
finish_eval=$lt_finish_eval
 
20143
 
 
20144
# Take the output of nm and produce a listing of raw symbols and C names.
 
20145
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20146
 
 
20147
# Transform the output of nm in a proper C declaration
 
20148
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20149
 
 
20150
# Transform the output of nm in a C name address pair
 
20151
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20152
 
 
20153
# This is the shared library runtime path variable.
 
20154
runpath_var=$runpath_var
 
20155
 
 
20156
# This is the shared library path variable.
 
20157
shlibpath_var=$shlibpath_var
 
20158
 
 
20159
# Is shlibpath searched before the hard-coded library search path?
 
20160
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20161
 
 
20162
# How to hardcode a shared library path into an executable.
 
20163
hardcode_action=$hardcode_action_RC
 
20164
 
 
20165
# Whether we should hardcode library paths into libraries.
 
20166
hardcode_into_libs=$hardcode_into_libs
 
20167
 
 
20168
# Flag to hardcode \$libdir into a binary during linking.
 
20169
# This must work even if \$libdir does not exist.
 
20170
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20171
 
 
20172
# If ld is used when linking, flag to hardcode \$libdir into
 
20173
# a binary during linking. This must work even if \$libdir does
 
20174
# not exist.
 
20175
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20176
 
 
20177
# Whether we need a single -rpath flag with a separated argument.
 
20178
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20179
 
 
20180
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20181
# resulting binary.
 
20182
hardcode_direct=$hardcode_direct_RC
 
20183
 
 
20184
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20185
# resulting binary.
 
20186
hardcode_minus_L=$hardcode_minus_L_RC
 
20187
 
 
20188
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20189
# the resulting binary.
 
20190
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20191
 
 
20192
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20193
# and all subsequent libraries and executables linked against it.
 
20194
hardcode_automatic=$hardcode_automatic_RC
 
20195
 
 
20196
# Variables whose values should be saved in libtool wrapper scripts and
 
20197
# restored at relink time.
 
20198
variables_saved_for_relink="$variables_saved_for_relink"
 
20199
 
 
20200
# Whether libtool must link a program against all its dependency libraries.
 
20201
link_all_deplibs=$link_all_deplibs_RC
 
20202
 
 
20203
# Compile-time system search path for libraries
 
20204
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20205
 
 
20206
# Run-time system search path for libraries
 
20207
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20208
 
 
20209
# Fix the shell variable \$srcfile for the compiler.
 
20210
fix_srcfile_path=$lt_fix_srcfile_path
 
20211
 
 
20212
# Set to yes if exported symbols are required.
 
20213
always_export_symbols=$always_export_symbols_RC
 
20214
 
 
20215
# The commands to list exported symbols.
 
20216
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20217
 
 
20218
# The commands to extract the exported symbol list from a shared archive.
 
20219
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20220
 
 
20221
# Symbols that should not be listed in the preloaded symbols.
 
20222
exclude_expsyms=$lt_exclude_expsyms_RC
 
20223
 
 
20224
# Symbols that must always be exported.
 
20225
include_expsyms=$lt_include_expsyms_RC
 
20226
 
 
20227
# ### END LIBTOOL TAG CONFIG: $tagname
 
20228
 
 
20229
__EOF__
 
20230
 
 
20231
 
 
20232
else
 
20233
  # If there is no Makefile yet, we rely on a make rule to execute
 
20234
  # `config.status --recheck' to rerun these tests and create the
 
20235
  # libtool script then.
 
20236
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20237
  if test -f "$ltmain_in"; then
 
20238
    test -f Makefile && make "$ltmain"
 
20239
  fi
 
20240
fi
 
20241
 
 
20242
 
 
20243
ac_ext=c
 
20244
ac_cpp='$CPP $CPPFLAGS'
 
20245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20248
 
 
20249
CC="$lt_save_CC"
 
20250
 
 
20251
        ;;
 
20252
 
 
20253
      *)
 
20254
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20255
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20256
   { (exit 1); exit 1; }; }
 
20257
        ;;
 
20258
      esac
 
20259
 
 
20260
      # Append the new tag name to the list of available tags.
 
20261
      if test -n "$tagname" ; then
 
20262
      available_tags="$available_tags $tagname"
 
20263
    fi
 
20264
    fi
 
20265
  done
 
20266
  IFS="$lt_save_ifs"
 
20267
 
 
20268
  # Now substitute the updated list of available tags.
 
20269
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20270
    mv "${ofile}T" "$ofile"
 
20271
    chmod +x "$ofile"
 
20272
  else
 
20273
    rm -f "${ofile}T"
 
20274
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20275
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20276
   { (exit 1); exit 1; }; }
 
20277
  fi
 
20278
fi
 
20279
 
 
20280
 
 
20281
 
 
20282
# This can be used to rebuild libtool when needed
 
20283
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20284
 
 
20285
# Always use our own libtool.
 
20286
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20287
 
 
20288
# Prevent multiple expansion
 
20289
 
 
20290
 
 
20291
 
 
20292
 
 
20293
 
 
20294
 
 
20295
 
 
20296
 
 
20297
 
 
20298
 
 
20299
 
 
20300
 
 
20301
 
 
20302
 
 
20303
 
 
20304
 
 
20305
 
 
20306
 
 
20307
 
 
20308
 
 
20309
 
 
20310
# Checks for libraries.
 
20311
 
 
20312
 
 
20313
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
20314
        if test -n "$ac_tool_prefix"; then
 
20315
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
20316
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
20317
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20318
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20319
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
20320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20321
else
 
20322
  case $PKG_CONFIG in
 
20323
  [\\/]* | ?:[\\/]*)
 
20324
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
20325
  ;;
 
20326
  *)
 
20327
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20328
for as_dir in $PATH
 
20329
do
 
20330
  IFS=$as_save_IFS
 
20331
  test -z "$as_dir" && as_dir=.
 
20332
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20333
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20334
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20335
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20336
    break 2
 
20337
  fi
 
20338
done
 
20339
done
 
20340
IFS=$as_save_IFS
 
20341
 
 
20342
  ;;
 
20343
esac
 
20344
fi
 
20345
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
20346
if test -n "$PKG_CONFIG"; then
 
20347
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
20348
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
20349
else
 
20350
  { echo "$as_me:$LINENO: result: no" >&5
 
20351
echo "${ECHO_T}no" >&6; }
 
20352
fi
 
20353
 
 
20354
 
 
20355
fi
 
20356
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
20357
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
20358
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
20359
set dummy pkg-config; ac_word=$2
 
20360
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20361
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20362
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
20363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20364
else
 
20365
  case $ac_pt_PKG_CONFIG in
 
20366
  [\\/]* | ?:[\\/]*)
 
20367
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
20368
  ;;
 
20369
  *)
 
20370
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20371
for as_dir in $PATH
 
20372
do
 
20373
  IFS=$as_save_IFS
 
20374
  test -z "$as_dir" && as_dir=.
 
20375
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20376
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20377
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20378
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20379
    break 2
 
20380
  fi
 
20381
done
 
20382
done
 
20383
IFS=$as_save_IFS
 
20384
 
 
20385
  ;;
 
20386
esac
 
20387
fi
 
20388
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
20389
if test -n "$ac_pt_PKG_CONFIG"; then
 
20390
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
20391
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
20392
else
 
20393
  { echo "$as_me:$LINENO: result: no" >&5
 
20394
echo "${ECHO_T}no" >&6; }
 
20395
fi
 
20396
 
 
20397
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
20398
    PKG_CONFIG=""
 
20399
  else
 
20400
    case $cross_compiling:$ac_tool_warned in
 
20401
yes:)
 
20402
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
20403
whose name does not start with the host triplet.  If you think this
 
20404
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
20405
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
20406
whose name does not start with the host triplet.  If you think this
 
20407
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
20408
ac_tool_warned=yes ;;
 
20409
esac
 
20410
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
20411
  fi
 
20412
else
 
20413
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
20414
fi
 
20415
 
 
20416
fi
 
20417
if test -n "$PKG_CONFIG"; then
 
20418
        _pkg_min_version=0.9.0
 
20419
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
20420
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
20421
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
20422
                { echo "$as_me:$LINENO: result: yes" >&5
 
20423
echo "${ECHO_T}yes" >&6; }
 
20424
        else
 
20425
                { echo "$as_me:$LINENO: result: no" >&5
 
20426
echo "${ECHO_T}no" >&6; }
 
20427
                PKG_CONFIG=""
 
20428
        fi
 
20429
 
 
20430
fi
 
20431
 
 
20432
pkg_failed=no
 
20433
{ echo "$as_me:$LINENO: checking for DEPS" >&5
 
20434
echo $ECHO_N "checking for DEPS... $ECHO_C" >&6; }
 
20435
 
 
20436
if test -n "$PKG_CONFIG"; then
 
20437
    if test -n "$DEPS_CFLAGS"; then
 
20438
        pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
 
20439
    else
 
20440
        if test -n "$PKG_CONFIG" && \
 
20441
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.2 glib-2.0 >= 2.2\"") >&5
 
20442
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2") 2>&5
 
20443
  ac_status=$?
 
20444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20445
  (exit $ac_status); }; then
 
20446
  pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2" 2>/dev/null`
 
20447
else
 
20448
  pkg_failed=yes
 
20449
fi
 
20450
    fi
 
20451
else
 
20452
        pkg_failed=untried
 
20453
fi
 
20454
if test -n "$PKG_CONFIG"; then
 
20455
    if test -n "$DEPS_LIBS"; then
 
20456
        pkg_cv_DEPS_LIBS="$DEPS_LIBS"
 
20457
    else
 
20458
        if test -n "$PKG_CONFIG" && \
 
20459
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.2 glib-2.0 >= 2.2\"") >&5
 
20460
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2") 2>&5
 
20461
  ac_status=$?
 
20462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20463
  (exit $ac_status); }; then
 
20464
  pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2" 2>/dev/null`
 
20465
else
 
20466
  pkg_failed=yes
 
20467
fi
 
20468
    fi
 
20469
else
 
20470
        pkg_failed=untried
 
20471
fi
 
20472
 
 
20473
 
 
20474
 
 
20475
if test $pkg_failed = yes; then
 
20476
 
 
20477
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20478
        _pkg_short_errors_supported=yes
 
20479
else
 
20480
        _pkg_short_errors_supported=no
 
20481
fi
 
20482
        if test $_pkg_short_errors_supported = yes; then
 
20483
                DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2"`
 
20484
        else
 
20485
                DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2"`
 
20486
        fi
 
20487
        # Put the nasty error message in config.log where it belongs
 
20488
        echo "$DEPS_PKG_ERRORS" >&5
 
20489
 
 
20490
        { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.2 glib-2.0 >= 2.2) were not met:
 
20491
 
 
20492
$DEPS_PKG_ERRORS
 
20493
 
 
20494
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20495
installed software in a non-standard prefix.
 
20496
 
 
20497
Alternatively, you may set the environment variables DEPS_CFLAGS
 
20498
and DEPS_LIBS to avoid the need to call pkg-config.
 
20499
See the pkg-config man page for more details.
 
20500
" >&5
 
20501
echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.2 glib-2.0 >= 2.2) were not met:
 
20502
 
 
20503
$DEPS_PKG_ERRORS
 
20504
 
 
20505
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20506
installed software in a non-standard prefix.
 
20507
 
 
20508
Alternatively, you may set the environment variables DEPS_CFLAGS
 
20509
and DEPS_LIBS to avoid the need to call pkg-config.
 
20510
See the pkg-config man page for more details.
 
20511
" >&2;}
 
20512
   { (exit 1); exit 1; }; }
 
20513
elif test $pkg_failed = untried; then
 
20514
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
20515
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20516
path to pkg-config.
 
20517
 
 
20518
Alternatively, you may set the environment variables DEPS_CFLAGS
 
20519
and DEPS_LIBS to avoid the need to call pkg-config.
 
20520
See the pkg-config man page for more details.
 
20521
 
 
20522
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
20523
See \`config.log' for more details." >&5
 
20524
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
20525
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20526
path to pkg-config.
 
20527
 
 
20528
Alternatively, you may set the environment variables DEPS_CFLAGS
 
20529
and DEPS_LIBS to avoid the need to call pkg-config.
 
20530
See the pkg-config man page for more details.
 
20531
 
 
20532
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
20533
See \`config.log' for more details." >&2;}
 
20534
   { (exit 1); exit 1; }; }
 
20535
else
 
20536
        DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
 
20537
        DEPS_LIBS=$pkg_cv_DEPS_LIBS
 
20538
        { echo "$as_me:$LINENO: result: yes" >&5
 
20539
echo "${ECHO_T}yes" >&6; }
 
20540
        :
 
20541
fi
 
20542
 
 
20543
# Checks for header files.
 
20544
 
 
20545
# Checks for typedefs, structures, and compiler characteristics.
 
20546
 
 
20547
# Checks for library functions.
 
20548
 
 
20549
ac_config_files="$ac_config_files Makefile libobgtk/Makefile"
 
20550
 
 
20551
cat >confcache <<\_ACEOF
 
20552
# This file is a shell script that caches the results of configure
 
20553
# tests run on this system so they can be shared between configure
 
20554
# scripts and configure runs, see configure's option --config-cache.
 
20555
# It is not useful on other systems.  If it contains results you don't
 
20556
# want to keep, you may remove or edit it.
 
20557
#
 
20558
# config.status only pays attention to the cache file if you give it
 
20559
# the --recheck option to rerun configure.
 
20560
#
 
20561
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20562
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20563
# following values.
 
20564
 
 
20565
_ACEOF
 
20566
 
 
20567
# The following way of writing the cache mishandles newlines in values,
 
20568
# but we know of no workaround that is simple, portable, and efficient.
 
20569
# So, we kill variables containing newlines.
 
20570
# Ultrix sh set writes to stderr and can't be redirected directly,
 
20571
# and sets the high bit in the cache file unless we assign to the vars.
 
20572
(
 
20573
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
20574
    eval ac_val=\$$ac_var
 
20575
    case $ac_val in #(
 
20576
    *${as_nl}*)
 
20577
      case $ac_var in #(
 
20578
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
20579
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
20580
      esac
 
20581
      case $ac_var in #(
 
20582
      _ | IFS | as_nl) ;; #(
 
20583
      *) $as_unset $ac_var ;;
 
20584
      esac ;;
 
20585
    esac
 
20586
  done
 
20587
 
 
20588
  (set) 2>&1 |
 
20589
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
20590
    *${as_nl}ac_space=\ *)
 
20591
      # `set' does not quote correctly, so add quotes (double-quote
 
20592
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20593
      sed -n \
 
20594
        "s/'/'\\\\''/g;
 
20595
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20596
      ;; #(
 
20597
    *)
 
20598
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20599
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
20600
      ;;
 
20601
    esac |
 
20602
    sort
 
20603
) |
 
20604
  sed '
 
20605
     /^ac_cv_env_/b end
 
20606
     t clear
 
20607
     :clear
 
20608
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20609
     t end
 
20610
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20611
     :end' >>confcache
 
20612
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
20613
  if test -w "$cache_file"; then
 
20614
    test "x$cache_file" != "x/dev/null" &&
 
20615
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
20616
echo "$as_me: updating cache $cache_file" >&6;}
 
20617
    cat confcache >$cache_file
 
20618
  else
 
20619
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
20620
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
20621
  fi
 
20622
fi
 
20623
rm -f confcache
 
20624
 
 
20625
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
20626
# Let make expand exec_prefix.
 
20627
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
20628
 
 
20629
DEFS=-DHAVE_CONFIG_H
 
20630
 
 
20631
ac_libobjs=
 
20632
ac_ltlibobjs=
 
20633
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20634
  # 1. Remove the extension, and $U if already installed.
 
20635
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
20636
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
20637
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
20638
  #    will be set to the directory where LIBOBJS objects are built.
 
20639
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
20640
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
20641
done
 
20642
LIBOBJS=$ac_libobjs
 
20643
 
 
20644
LTLIBOBJS=$ac_ltlibobjs
 
20645
 
 
20646
 
 
20647
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
20648
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
20649
Usually this means the macro was only invoked conditionally." >&5
 
20650
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
20651
Usually this means the macro was only invoked conditionally." >&2;}
 
20652
   { (exit 1); exit 1; }; }
 
20653
fi
 
20654
if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 
20655
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 
20656
Usually this means the macro was only invoked conditionally." >&5
 
20657
echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 
20658
Usually this means the macro was only invoked conditionally." >&2;}
 
20659
   { (exit 1); exit 1; }; }
 
20660
fi
 
20661
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20662
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20663
Usually this means the macro was only invoked conditionally." >&5
 
20664
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20665
Usually this means the macro was only invoked conditionally." >&2;}
 
20666
   { (exit 1); exit 1; }; }
 
20667
fi
 
20668
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20669
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20670
Usually this means the macro was only invoked conditionally." >&5
 
20671
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20672
Usually this means the macro was only invoked conditionally." >&2;}
 
20673
   { (exit 1); exit 1; }; }
 
20674
fi
 
20675
 
 
20676
: ${CONFIG_STATUS=./config.status}
 
20677
ac_clean_files_save=$ac_clean_files
 
20678
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20679
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20680
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20681
cat >$CONFIG_STATUS <<_ACEOF
 
20682
#! $SHELL
 
20683
# Generated by $as_me.
 
20684
# Run this file to recreate the current configuration.
 
20685
# Compiler output produced by configure, useful for debugging
 
20686
# configure, is in config.log if it exists.
 
20687
 
 
20688
debug=false
 
20689
ac_cs_recheck=false
 
20690
ac_cs_silent=false
 
20691
SHELL=\${CONFIG_SHELL-$SHELL}
 
20692
_ACEOF
 
20693
 
 
20694
cat >>$CONFIG_STATUS <<\_ACEOF
 
20695
## --------------------- ##
 
20696
## M4sh Initialization.  ##
 
20697
## --------------------- ##
 
20698
 
 
20699
# Be more Bourne compatible
 
20700
DUALCASE=1; export DUALCASE # for MKS sh
 
20701
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20702
  emulate sh
 
20703
  NULLCMD=:
 
20704
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20705
  # is contrary to our usage.  Disable this feature.
 
20706
  alias -g '${1+"$@"}'='"$@"'
 
20707
  setopt NO_GLOB_SUBST
 
20708
else
 
20709
  case `(set -o) 2>/dev/null` in
 
20710
  *posix*) set -o posix ;;
 
20711
esac
 
20712
 
 
20713
fi
 
20714
 
 
20715
 
 
20716
 
 
20717
 
 
20718
# PATH needs CR
 
20719
# Avoid depending upon Character Ranges.
 
20720
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20721
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20722
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20723
as_cr_digits='0123456789'
 
20724
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20725
 
 
20726
# The user is always right.
 
20727
if test "${PATH_SEPARATOR+set}" != set; then
 
20728
  echo "#! /bin/sh" >conf$$.sh
 
20729
  echo  "exit 0"   >>conf$$.sh
 
20730
  chmod +x conf$$.sh
 
20731
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20732
    PATH_SEPARATOR=';'
 
20733
  else
 
20734
    PATH_SEPARATOR=:
 
20735
  fi
 
20736
  rm -f conf$$.sh
 
20737
fi
 
20738
 
 
20739
# Support unset when possible.
 
20740
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20741
  as_unset=unset
 
20742
else
 
20743
  as_unset=false
 
20744
fi
 
20745
 
 
20746
 
 
20747
# IFS
 
20748
# We need space, tab and new line, in precisely that order.  Quoting is
 
20749
# there to prevent editors from complaining about space-tab.
 
20750
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
20751
# splitting by setting IFS to empty value.)
 
20752
as_nl='
 
20753
'
 
20754
IFS=" ""        $as_nl"
 
20755
 
 
20756
# Find who we are.  Look in the path if we contain no directory separator.
 
20757
case $0 in
 
20758
  *[\\/]* ) as_myself=$0 ;;
 
20759
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20760
for as_dir in $PATH
 
20761
do
 
20762
  IFS=$as_save_IFS
 
20763
  test -z "$as_dir" && as_dir=.
 
20764
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20765
done
 
20766
IFS=$as_save_IFS
 
20767
 
 
20768
     ;;
 
20769
esac
 
20770
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
20771
# in which case we are not to be found in the path.
 
20772
if test "x$as_myself" = x; then
 
20773
  as_myself=$0
 
20774
fi
 
20775
if test ! -f "$as_myself"; then
 
20776
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
20777
  { (exit 1); exit 1; }
 
20778
fi
 
20779
 
 
20780
# Work around bugs in pre-3.0 UWIN ksh.
 
20781
for as_var in ENV MAIL MAILPATH
 
20782
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
20783
done
 
20784
PS1='$ '
 
20785
PS2='> '
 
20786
PS4='+ '
 
20787
 
 
20788
# NLS nuisances.
 
20789
for as_var in \
 
20790
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20791
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20792
  LC_TELEPHONE LC_TIME
 
20793
do
 
20794
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20795
    eval $as_var=C; export $as_var
 
20796
  else
 
20797
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
20798
  fi
 
20799
done
 
20800
 
 
20801
# Required to use basename.
 
20802
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
20803
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
20804
  as_expr=expr
 
20805
else
 
20806
  as_expr=false
 
20807
fi
 
20808
 
 
20809
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
20810
  as_basename=basename
 
20811
else
 
20812
  as_basename=false
 
20813
fi
 
20814
 
 
20815
 
 
20816
# Name of the executable.
 
20817
as_me=`$as_basename -- "$0" ||
 
20818
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20819
         X"$0" : 'X\(//\)$' \| \
 
20820
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
20821
echo X/"$0" |
 
20822
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
20823
            s//\1/
 
20824
            q
 
20825
          }
 
20826
          /^X\/\(\/\/\)$/{
 
20827
            s//\1/
 
20828
            q
 
20829
          }
 
20830
          /^X\/\(\/\).*/{
 
20831
            s//\1/
 
20832
            q
 
20833
          }
 
20834
          s/.*/./; q'`
 
20835
 
 
20836
# CDPATH.
 
20837
$as_unset CDPATH
 
20838
 
 
20839
 
 
20840
 
 
20841
  as_lineno_1=$LINENO
 
20842
  as_lineno_2=$LINENO
 
20843
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20844
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
20845
 
 
20846
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20847
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20848
  # line-number line after each line using $LINENO; the second 'sed'
 
20849
  # does the real work.  The second script uses 'N' to pair each
 
20850
  # line-number line with the line containing $LINENO, and appends
 
20851
  # trailing '-' during substitution so that $LINENO is not a special
 
20852
  # case at line end.
 
20853
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20854
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
20855
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
20856
  sed -n '
 
20857
    p
 
20858
    /[$]LINENO/=
 
20859
  ' <$as_myself |
 
20860
    sed '
 
20861
      s/[$]LINENO.*/&-/
 
20862
      t lineno
 
20863
      b
 
20864
      :lineno
 
20865
      N
 
20866
      :loop
 
20867
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
20868
      t loop
 
20869
      s/-\n.*//
 
20870
    ' >$as_me.lineno &&
 
20871
  chmod +x "$as_me.lineno" ||
 
20872
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
20873
   { (exit 1); exit 1; }; }
 
20874
 
 
20875
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20876
  # (the dirname of $[0] is not the place where we might find the
 
20877
  # original and so on.  Autoconf is especially sensitive to this).
 
20878
  . "./$as_me.lineno"
 
20879
  # Exit status is that of the last command.
 
20880
  exit
 
20881
}
 
20882
 
 
20883
 
 
20884
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
20885
  as_dirname=dirname
 
20886
else
 
20887
  as_dirname=false
 
20888
fi
 
20889
 
 
20890
ECHO_C= ECHO_N= ECHO_T=
 
20891
case `echo -n x` in
 
20892
-n*)
 
20893
  case `echo 'x\c'` in
 
20894
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
20895
  *)   ECHO_C='\c';;
 
20896
  esac;;
 
20897
*)
 
20898
  ECHO_N='-n';;
 
20899
esac
 
20900
 
 
20901
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
20902
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
20903
  as_expr=expr
 
20904
else
 
20905
  as_expr=false
 
20906
fi
 
20907
 
 
20908
rm -f conf$$ conf$$.exe conf$$.file
 
20909
if test -d conf$$.dir; then
 
20910
  rm -f conf$$.dir/conf$$.file
 
20911
else
 
20912
  rm -f conf$$.dir
 
20913
  mkdir conf$$.dir
 
20914
fi
 
20915
echo >conf$$.file
 
20916
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20917
  as_ln_s='ln -s'
 
20918
  # ... but there are two gotchas:
 
20919
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
20920
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
20921
  # In both cases, we have to default to `cp -p'.
 
20922
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
20923
    as_ln_s='cp -p'
 
20924
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20925
  as_ln_s=ln
 
20926
else
 
20927
  as_ln_s='cp -p'
 
20928
fi
 
20929
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
20930
rmdir conf$$.dir 2>/dev/null
 
20931
 
 
20932
if mkdir -p . 2>/dev/null; then
 
20933
  as_mkdir_p=:
 
20934
else
 
20935
  test -d ./-p && rmdir ./-p
 
20936
  as_mkdir_p=false
 
20937
fi
 
20938
 
 
20939
if test -x / >/dev/null 2>&1; then
 
20940
  as_test_x='test -x'
 
20941
else
 
20942
  if ls -dL / >/dev/null 2>&1; then
 
20943
    as_ls_L_option=L
 
20944
  else
 
20945
    as_ls_L_option=
 
20946
  fi
 
20947
  as_test_x='
 
20948
    eval sh -c '\''
 
20949
      if test -d "$1"; then
 
20950
        test -d "$1/.";
 
20951
      else
 
20952
        case $1 in
 
20953
        -*)set "./$1";;
 
20954
        esac;
 
20955
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
20956
        ???[sx]*):;;*)false;;esac;fi
 
20957
    '\'' sh
 
20958
  '
 
20959
fi
 
20960
as_executable_p=$as_test_x
 
20961
 
 
20962
# Sed expression to map a string onto a valid CPP name.
 
20963
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20964
 
 
20965
# Sed expression to map a string onto a valid variable name.
 
20966
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20967
 
 
20968
 
 
20969
exec 6>&1
 
20970
 
 
20971
# Save the log message, to keep $[0] and so on meaningful, and to
 
20972
# report actual input values of CONFIG_FILES etc. instead of their
 
20973
# values after options handling.
 
20974
ac_log="
 
20975
This file was extended by PACKAGE $as_me VERSION, which was
 
20976
generated by GNU Autoconf 2.61.  Invocation command line was
 
20977
 
 
20978
  CONFIG_FILES    = $CONFIG_FILES
 
20979
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20980
  CONFIG_LINKS    = $CONFIG_LINKS
 
20981
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20982
  $ $0 $@
 
20983
 
 
20984
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
20985
"
 
20986
 
 
20987
_ACEOF
 
20988
 
 
20989
cat >>$CONFIG_STATUS <<_ACEOF
 
20990
# Files that config.status was made for.
 
20991
config_files="$ac_config_files"
 
20992
config_headers="$ac_config_headers"
 
20993
config_commands="$ac_config_commands"
 
20994
 
 
20995
_ACEOF
 
20996
 
 
20997
cat >>$CONFIG_STATUS <<\_ACEOF
 
20998
ac_cs_usage="\
 
20999
\`$as_me' instantiates files from templates according to the
 
21000
current configuration.
 
21001
 
 
21002
Usage: $0 [OPTIONS] [FILE]...
 
21003
 
 
21004
  -h, --help       print this help, then exit
 
21005
  -V, --version    print version number and configuration settings, then exit
 
21006
  -q, --quiet      do not print progress messages
 
21007
  -d, --debug      don't remove temporary files
 
21008
      --recheck    update $as_me by reconfiguring in the same conditions
 
21009
  --file=FILE[:TEMPLATE]
 
21010
                   instantiate the configuration file FILE
 
21011
  --header=FILE[:TEMPLATE]
 
21012
                   instantiate the configuration header FILE
 
21013
 
 
21014
Configuration files:
 
21015
$config_files
 
21016
 
 
21017
Configuration headers:
 
21018
$config_headers
 
21019
 
 
21020
Configuration commands:
 
21021
$config_commands
 
21022
 
 
21023
Report bugs to <bug-autoconf@gnu.org>."
 
21024
 
 
21025
_ACEOF
 
21026
cat >>$CONFIG_STATUS <<_ACEOF
 
21027
ac_cs_version="\\
 
21028
PACKAGE config.status VERSION
 
21029
configured by $0, generated by GNU Autoconf 2.61,
 
21030
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
21031
 
 
21032
Copyright (C) 2006 Free Software Foundation, Inc.
 
21033
This config.status script is free software; the Free Software Foundation
 
21034
gives unlimited permission to copy, distribute and modify it."
 
21035
 
 
21036
ac_pwd='$ac_pwd'
 
21037
srcdir='$srcdir'
 
21038
INSTALL='$INSTALL'
 
21039
_ACEOF
 
21040
 
 
21041
cat >>$CONFIG_STATUS <<\_ACEOF
 
21042
# If no file are specified by the user, then we need to provide default
 
21043
# value.  By we need to know if files were specified by the user.
 
21044
ac_need_defaults=:
 
21045
while test $# != 0
 
21046
do
 
21047
  case $1 in
 
21048
  --*=*)
 
21049
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
21050
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
21051
    ac_shift=:
 
21052
    ;;
 
21053
  *)
 
21054
    ac_option=$1
 
21055
    ac_optarg=$2
 
21056
    ac_shift=shift
 
21057
    ;;
 
21058
  esac
 
21059
 
 
21060
  case $ac_option in
 
21061
  # Handling of the options.
 
21062
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
21063
    ac_cs_recheck=: ;;
 
21064
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
21065
    echo "$ac_cs_version"; exit ;;
 
21066
  --debug | --debu | --deb | --de | --d | -d )
 
21067
    debug=: ;;
 
21068
  --file | --fil | --fi | --f )
 
21069
    $ac_shift
 
21070
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
21071
    ac_need_defaults=false;;
 
21072
  --header | --heade | --head | --hea )
 
21073
    $ac_shift
 
21074
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
21075
    ac_need_defaults=false;;
 
21076
  --he | --h)
 
21077
    # Conflict between --help and --header
 
21078
    { echo "$as_me: error: ambiguous option: $1
 
21079
Try \`$0 --help' for more information." >&2
 
21080
   { (exit 1); exit 1; }; };;
 
21081
  --help | --hel | -h )
 
21082
    echo "$ac_cs_usage"; exit ;;
 
21083
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21084
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21085
    ac_cs_silent=: ;;
 
21086
 
 
21087
  # This is an error.
 
21088
  -*) { echo "$as_me: error: unrecognized option: $1
 
21089
Try \`$0 --help' for more information." >&2
 
21090
   { (exit 1); exit 1; }; } ;;
 
21091
 
 
21092
  *) ac_config_targets="$ac_config_targets $1"
 
21093
     ac_need_defaults=false ;;
 
21094
 
 
21095
  esac
 
21096
  shift
 
21097
done
 
21098
 
 
21099
ac_configure_extra_args=
 
21100
 
 
21101
if $ac_cs_silent; then
 
21102
  exec 6>/dev/null
 
21103
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21104
fi
 
21105
 
 
21106
_ACEOF
 
21107
cat >>$CONFIG_STATUS <<_ACEOF
 
21108
if \$ac_cs_recheck; then
 
21109
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21110
  CONFIG_SHELL=$SHELL
 
21111
  export CONFIG_SHELL
 
21112
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21113
fi
 
21114
 
 
21115
_ACEOF
 
21116
cat >>$CONFIG_STATUS <<\_ACEOF
 
21117
exec 5>>config.log
 
21118
{
 
21119
  echo
 
21120
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
21121
## Running $as_me. ##
 
21122
_ASBOX
 
21123
  echo "$ac_log"
 
21124
} >&5
 
21125
 
 
21126
_ACEOF
 
21127
cat >>$CONFIG_STATUS <<_ACEOF
 
21128
#
 
21129
# INIT-COMMANDS
 
21130
#
 
21131
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
21132
 
 
21133
_ACEOF
 
21134
 
 
21135
cat >>$CONFIG_STATUS <<\_ACEOF
 
21136
 
 
21137
# Handling of arguments.
 
21138
for ac_config_target in $ac_config_targets
 
21139
do
 
21140
  case $ac_config_target in
 
21141
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21142
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21143
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21144
    "libobgtk/Makefile") CONFIG_FILES="$CONFIG_FILES libobgtk/Makefile" ;;
 
21145
 
 
21146
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21147
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21148
   { (exit 1); exit 1; }; };;
 
21149
  esac
 
21150
done
 
21151
 
 
21152
 
 
21153
# If the user did not use the arguments to specify the items to instantiate,
 
21154
# then the envvar interface is used.  Set only those that are not.
 
21155
# We use the long form for the default assignment because of an extremely
 
21156
# bizarre bug on SunOS 4.1.3.
 
21157
if $ac_need_defaults; then
 
21158
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21159
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21160
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21161
fi
 
21162
 
 
21163
# Have a temporary directory for convenience.  Make it in the build tree
 
21164
# simply because there is no reason against having it here, and in addition,
 
21165
# creating and moving files from /tmp can sometimes cause problems.
 
21166
# Hook for its removal unless debugging.
 
21167
# Note that there is a small window in which the directory will not be cleaned:
 
21168
# after its creation but before its name has been assigned to `$tmp'.
 
21169
$debug ||
 
21170
{
 
21171
  tmp=
 
21172
  trap 'exit_status=$?
 
21173
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
21174
' 0
 
21175
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21176
}
 
21177
# Create a (secure) tmp directory for tmp files.
 
21178
 
 
21179
{
 
21180
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
21181
  test -n "$tmp" && test -d "$tmp"
 
21182
}  ||
 
21183
{
 
21184
  tmp=./conf$$-$RANDOM
 
21185
  (umask 077 && mkdir "$tmp")
 
21186
} ||
 
21187
{
 
21188
   echo "$me: cannot create a temporary directory in ." >&2
 
21189
   { (exit 1); exit 1; }
 
21190
}
 
21191
 
 
21192
#
 
21193
# Set up the sed scripts for CONFIG_FILES section.
 
21194
#
 
21195
 
 
21196
# No need to generate the scripts if there are no CONFIG_FILES.
 
21197
# This happens for instance when ./config.status config.h
 
21198
if test -n "$CONFIG_FILES"; then
 
21199
 
 
21200
_ACEOF
 
21201
 
 
21202
 
 
21203
 
 
21204
ac_delim='%!_!# '
 
21205
for ac_last_try in false false false false false :; do
 
21206
  cat >conf$$subs.sed <<_ACEOF
 
21207
SHELL!$SHELL$ac_delim
 
21208
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
21209
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
21210
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
21211
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
21212
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
21213
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
21214
exec_prefix!$exec_prefix$ac_delim
 
21215
prefix!$prefix$ac_delim
 
21216
program_transform_name!$program_transform_name$ac_delim
 
21217
bindir!$bindir$ac_delim
 
21218
sbindir!$sbindir$ac_delim
 
21219
libexecdir!$libexecdir$ac_delim
 
21220
datarootdir!$datarootdir$ac_delim
 
21221
datadir!$datadir$ac_delim
 
21222
sysconfdir!$sysconfdir$ac_delim
 
21223
sharedstatedir!$sharedstatedir$ac_delim
 
21224
localstatedir!$localstatedir$ac_delim
 
21225
includedir!$includedir$ac_delim
 
21226
oldincludedir!$oldincludedir$ac_delim
 
21227
docdir!$docdir$ac_delim
 
21228
infodir!$infodir$ac_delim
 
21229
htmldir!$htmldir$ac_delim
 
21230
dvidir!$dvidir$ac_delim
 
21231
pdfdir!$pdfdir$ac_delim
 
21232
psdir!$psdir$ac_delim
 
21233
libdir!$libdir$ac_delim
 
21234
localedir!$localedir$ac_delim
 
21235
mandir!$mandir$ac_delim
 
21236
DEFS!$DEFS$ac_delim
 
21237
ECHO_C!$ECHO_C$ac_delim
 
21238
ECHO_N!$ECHO_N$ac_delim
 
21239
ECHO_T!$ECHO_T$ac_delim
 
21240
LIBS!$LIBS$ac_delim
 
21241
build_alias!$build_alias$ac_delim
 
21242
host_alias!$host_alias$ac_delim
 
21243
target_alias!$target_alias$ac_delim
 
21244
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
21245
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
21246
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
21247
CYGPATH_W!$CYGPATH_W$ac_delim
 
21248
PACKAGE!$PACKAGE$ac_delim
 
21249
VERSION!$VERSION$ac_delim
 
21250
ACLOCAL!$ACLOCAL$ac_delim
 
21251
AUTOCONF!$AUTOCONF$ac_delim
 
21252
AUTOMAKE!$AUTOMAKE$ac_delim
 
21253
AUTOHEADER!$AUTOHEADER$ac_delim
 
21254
MAKEINFO!$MAKEINFO$ac_delim
 
21255
install_sh!$install_sh$ac_delim
 
21256
STRIP!$STRIP$ac_delim
 
21257
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
21258
mkdir_p!$mkdir_p$ac_delim
 
21259
AWK!$AWK$ac_delim
 
21260
SET_MAKE!$SET_MAKE$ac_delim
 
21261
am__leading_dot!$am__leading_dot$ac_delim
 
21262
AMTAR!$AMTAR$ac_delim
 
21263
am__tar!$am__tar$ac_delim
 
21264
am__untar!$am__untar$ac_delim
 
21265
DEPDIR!$DEPDIR$ac_delim
 
21266
am__include!$am__include$ac_delim
 
21267
am__quote!$am__quote$ac_delim
 
21268
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
21269
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
21270
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
21271
OBJCDEPMODE!$OBJCDEPMODE$ac_delim
 
21272
am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
 
21273
am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
 
21274
OBJC!$OBJC$ac_delim
 
21275
OBJCFLAGS!$OBJCFLAGS$ac_delim
 
21276
LDFLAGS!$LDFLAGS$ac_delim
 
21277
CPPFLAGS!$CPPFLAGS$ac_delim
 
21278
ac_ct_OBJC!$ac_ct_OBJC$ac_delim
 
21279
EXEEXT!$EXEEXT$ac_delim
 
21280
OBJEXT!$OBJEXT$ac_delim
 
21281
build!$build$ac_delim
 
21282
build_cpu!$build_cpu$ac_delim
 
21283
build_vendor!$build_vendor$ac_delim
 
21284
build_os!$build_os$ac_delim
 
21285
host!$host$ac_delim
 
21286
host_cpu!$host_cpu$ac_delim
 
21287
host_vendor!$host_vendor$ac_delim
 
21288
host_os!$host_os$ac_delim
 
21289
CC!$CC$ac_delim
 
21290
CFLAGS!$CFLAGS$ac_delim
 
21291
ac_ct_CC!$ac_ct_CC$ac_delim
 
21292
CCDEPMODE!$CCDEPMODE$ac_delim
 
21293
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
21294
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
21295
SED!$SED$ac_delim
 
21296
GREP!$GREP$ac_delim
 
21297
EGREP!$EGREP$ac_delim
 
21298
LN_S!$LN_S$ac_delim
 
21299
ECHO!$ECHO$ac_delim
 
21300
AR!$AR$ac_delim
 
21301
RANLIB!$RANLIB$ac_delim
 
21302
DSYMUTIL!$DSYMUTIL$ac_delim
 
21303
NMEDIT!$NMEDIT$ac_delim
 
21304
_ACEOF
 
21305
 
 
21306
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
21307
    break
 
21308
  elif $ac_last_try; then
 
21309
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21310
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21311
   { (exit 1); exit 1; }; }
 
21312
  else
 
21313
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21314
  fi
 
21315
done
 
21316
 
 
21317
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21318
if test -n "$ac_eof"; then
 
21319
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21320
  ac_eof=`expr $ac_eof + 1`
 
21321
fi
 
21322
 
 
21323
cat >>$CONFIG_STATUS <<_ACEOF
 
21324
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
21325
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21326
_ACEOF
 
21327
sed '
 
21328
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21329
s/^/s,@/; s/!/@,|#_!!_#|/
 
21330
:n
 
21331
t n
 
21332
s/'"$ac_delim"'$/,g/; t
 
21333
s/$/\\/; p
 
21334
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21335
' >>$CONFIG_STATUS <conf$$subs.sed
 
21336
rm -f conf$$subs.sed
 
21337
cat >>$CONFIG_STATUS <<_ACEOF
 
21338
CEOF$ac_eof
 
21339
_ACEOF
 
21340
 
 
21341
 
 
21342
ac_delim='%!_!# '
 
21343
for ac_last_try in false false false false false :; do
 
21344
  cat >conf$$subs.sed <<_ACEOF
 
21345
CPP!$CPP$ac_delim
 
21346
CXX!$CXX$ac_delim
 
21347
CXXFLAGS!$CXXFLAGS$ac_delim
 
21348
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
21349
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
21350
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
21351
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
21352
CXXCPP!$CXXCPP$ac_delim
 
21353
F77!$F77$ac_delim
 
21354
FFLAGS!$FFLAGS$ac_delim
 
21355
ac_ct_F77!$ac_ct_F77$ac_delim
 
21356
LIBTOOL!$LIBTOOL$ac_delim
 
21357
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
21358
DEPS_CFLAGS!$DEPS_CFLAGS$ac_delim
 
21359
DEPS_LIBS!$DEPS_LIBS$ac_delim
 
21360
LIBOBJS!$LIBOBJS$ac_delim
 
21361
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
21362
_ACEOF
 
21363
 
 
21364
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
 
21365
    break
 
21366
  elif $ac_last_try; then
 
21367
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21368
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21369
   { (exit 1); exit 1; }; }
 
21370
  else
 
21371
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21372
  fi
 
21373
done
 
21374
 
 
21375
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21376
if test -n "$ac_eof"; then
 
21377
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21378
  ac_eof=`expr $ac_eof + 1`
 
21379
fi
 
21380
 
 
21381
cat >>$CONFIG_STATUS <<_ACEOF
 
21382
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
21383
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
21384
_ACEOF
 
21385
sed '
 
21386
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21387
s/^/s,@/; s/!/@,|#_!!_#|/
 
21388
:n
 
21389
t n
 
21390
s/'"$ac_delim"'$/,g/; t
 
21391
s/$/\\/; p
 
21392
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21393
' >>$CONFIG_STATUS <conf$$subs.sed
 
21394
rm -f conf$$subs.sed
 
21395
cat >>$CONFIG_STATUS <<_ACEOF
 
21396
:end
 
21397
s/|#_!!_#|//g
 
21398
CEOF$ac_eof
 
21399
_ACEOF
 
21400
 
 
21401
 
 
21402
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21403
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21404
# trailing colons and then remove the whole line if VPATH becomes empty
 
21405
# (actually we leave an empty line to preserve line numbers).
 
21406
if test "x$srcdir" = x.; then
 
21407
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21408
s/:*\$(srcdir):*/:/
 
21409
s/:*\${srcdir}:*/:/
 
21410
s/:*@srcdir@:*/:/
 
21411
s/^\([^=]*=[     ]*\):*/\1/
 
21412
s/:*$//
 
21413
s/^[^=]*=[       ]*$//
 
21414
}'
 
21415
fi
 
21416
 
 
21417
cat >>$CONFIG_STATUS <<\_ACEOF
 
21418
fi # test -n "$CONFIG_FILES"
 
21419
 
 
21420
 
 
21421
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
21422
do
 
21423
  case $ac_tag in
 
21424
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
21425
  esac
 
21426
  case $ac_mode$ac_tag in
 
21427
  :[FHL]*:*);;
 
21428
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
21429
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
21430
   { (exit 1); exit 1; }; };;
 
21431
  :[FH]-) ac_tag=-:-;;
 
21432
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
21433
  esac
 
21434
  ac_save_IFS=$IFS
 
21435
  IFS=:
 
21436
  set x $ac_tag
 
21437
  IFS=$ac_save_IFS
 
21438
  shift
 
21439
  ac_file=$1
 
21440
  shift
 
21441
 
 
21442
  case $ac_mode in
 
21443
  :L) ac_source=$1;;
 
21444
  :[FH])
 
21445
    ac_file_inputs=
 
21446
    for ac_f
 
21447
    do
 
21448
      case $ac_f in
 
21449
      -) ac_f="$tmp/stdin";;
 
21450
      *) # Look for the file first in the build tree, then in the source tree
 
21451
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
21452
         # because $ac_f cannot contain `:'.
 
21453
         test -f "$ac_f" ||
 
21454
           case $ac_f in
 
21455
           [\\/$]*) false;;
 
21456
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
21457
           esac ||
 
21458
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
21459
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
21460
   { (exit 1); exit 1; }; };;
 
21461
      esac
 
21462
      ac_file_inputs="$ac_file_inputs $ac_f"
 
21463
    done
 
21464
 
 
21465
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21466
    # use $as_me), people would be surprised to read:
 
21467
    #    /* config.h.  Generated by config.status.  */
 
21468
    configure_input="Generated from "`IFS=:
 
21469
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
21470
    if test x"$ac_file" != x-; then
 
21471
      configure_input="$ac_file.  $configure_input"
 
21472
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21473
echo "$as_me: creating $ac_file" >&6;}
 
21474
    fi
 
21475
 
 
21476
    case $ac_tag in
 
21477
    *:-:* | *:-) cat >"$tmp/stdin";;
 
21478
    esac
 
21479
    ;;
 
21480
  esac
 
21481
 
 
21482
  ac_dir=`$as_dirname -- "$ac_file" ||
 
21483
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21484
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21485
         X"$ac_file" : 'X\(//\)$' \| \
 
21486
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
21487
echo X"$ac_file" |
 
21488
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21489
            s//\1/
 
21490
            q
 
21491
          }
 
21492
          /^X\(\/\/\)[^/].*/{
 
21493
            s//\1/
 
21494
            q
 
21495
          }
 
21496
          /^X\(\/\/\)$/{
 
21497
            s//\1/
 
21498
            q
 
21499
          }
 
21500
          /^X\(\/\).*/{
 
21501
            s//\1/
 
21502
            q
 
21503
          }
 
21504
          s/.*/./; q'`
 
21505
  { as_dir="$ac_dir"
 
21506
  case $as_dir in #(
 
21507
  -*) as_dir=./$as_dir;;
 
21508
  esac
 
21509
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
21510
    as_dirs=
 
21511
    while :; do
 
21512
      case $as_dir in #(
 
21513
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
21514
      *) as_qdir=$as_dir;;
 
21515
      esac
 
21516
      as_dirs="'$as_qdir' $as_dirs"
 
21517
      as_dir=`$as_dirname -- "$as_dir" ||
 
21518
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21519
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21520
         X"$as_dir" : 'X\(//\)$' \| \
 
21521
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
21522
echo X"$as_dir" |
 
21523
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21524
            s//\1/
 
21525
            q
 
21526
          }
 
21527
          /^X\(\/\/\)[^/].*/{
 
21528
            s//\1/
 
21529
            q
 
21530
          }
 
21531
          /^X\(\/\/\)$/{
 
21532
            s//\1/
 
21533
            q
 
21534
          }
 
21535
          /^X\(\/\).*/{
 
21536
            s//\1/
 
21537
            q
 
21538
          }
 
21539
          s/.*/./; q'`
 
21540
      test -d "$as_dir" && break
 
21541
    done
 
21542
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
21543
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
21544
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
21545
   { (exit 1); exit 1; }; }; }
 
21546
  ac_builddir=.
 
21547
 
 
21548
case "$ac_dir" in
 
21549
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21550
*)
 
21551
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21552
  # A ".." for each directory in $ac_dir_suffix.
 
21553
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
21554
  case $ac_top_builddir_sub in
 
21555
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21556
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
21557
  esac ;;
 
21558
esac
 
21559
ac_abs_top_builddir=$ac_pwd
 
21560
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
21561
# for backward compatibility:
 
21562
ac_top_builddir=$ac_top_build_prefix
 
21563
 
 
21564
case $srcdir in
 
21565
  .)  # We are building in place.
 
21566
    ac_srcdir=.
 
21567
    ac_top_srcdir=$ac_top_builddir_sub
 
21568
    ac_abs_top_srcdir=$ac_pwd ;;
 
21569
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
21570
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21571
    ac_top_srcdir=$srcdir
 
21572
    ac_abs_top_srcdir=$srcdir ;;
 
21573
  *) # Relative name.
 
21574
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
21575
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
21576
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
21577
esac
 
21578
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
21579
 
 
21580
 
 
21581
  case $ac_mode in
 
21582
  :F)
 
21583
  #
 
21584
  # CONFIG_FILE
 
21585
  #
 
21586
 
 
21587
  case $INSTALL in
 
21588
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21589
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
21590
  esac
 
21591
_ACEOF
 
21592
 
 
21593
cat >>$CONFIG_STATUS <<\_ACEOF
 
21594
# If the template does not know about datarootdir, expand it.
 
21595
# FIXME: This hack should be removed a few years after 2.60.
 
21596
ac_datarootdir_hack=; ac_datarootdir_seen=
 
21597
 
 
21598
case `sed -n '/datarootdir/ {
 
21599
  p
 
21600
  q
 
21601
}
 
21602
/@datadir@/p
 
21603
/@docdir@/p
 
21604
/@infodir@/p
 
21605
/@localedir@/p
 
21606
/@mandir@/p
 
21607
' $ac_file_inputs` in
 
21608
*datarootdir*) ac_datarootdir_seen=yes;;
 
21609
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
21610
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
21611
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
21612
_ACEOF
 
21613
cat >>$CONFIG_STATUS <<_ACEOF
 
21614
  ac_datarootdir_hack='
 
21615
  s&@datadir@&$datadir&g
 
21616
  s&@docdir@&$docdir&g
 
21617
  s&@infodir@&$infodir&g
 
21618
  s&@localedir@&$localedir&g
 
21619
  s&@mandir@&$mandir&g
 
21620
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
21621
esac
 
21622
_ACEOF
 
21623
 
 
21624
# Neutralize VPATH when `$srcdir' = `.'.
 
21625
# Shell code in configure.ac might set extrasub.
 
21626
# FIXME: do we really want to maintain this feature?
 
21627
cat >>$CONFIG_STATUS <<_ACEOF
 
21628
  sed "$ac_vpsub
 
21629
$extrasub
 
21630
_ACEOF
 
21631
cat >>$CONFIG_STATUS <<\_ACEOF
 
21632
:t
 
21633
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21634
s&@configure_input@&$configure_input&;t t
 
21635
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
21636
s&@srcdir@&$ac_srcdir&;t t
 
21637
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
21638
s&@top_srcdir@&$ac_top_srcdir&;t t
 
21639
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
21640
s&@builddir@&$ac_builddir&;t t
 
21641
s&@abs_builddir@&$ac_abs_builddir&;t t
 
21642
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
21643
s&@INSTALL@&$ac_INSTALL&;t t
 
21644
$ac_datarootdir_hack
 
21645
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
21646
 
 
21647
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
21648
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
21649
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
21650
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21651
which seems to be undefined.  Please make sure it is defined." >&5
 
21652
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21653
which seems to be undefined.  Please make sure it is defined." >&2;}
 
21654
 
 
21655
  rm -f "$tmp/stdin"
 
21656
  case $ac_file in
 
21657
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
21658
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
21659
  esac
 
21660
 ;;
 
21661
  :H)
 
21662
  #
 
21663
  # CONFIG_HEADER
 
21664
  #
 
21665
_ACEOF
 
21666
 
 
21667
# Transform confdefs.h into a sed script `conftest.defines', that
 
21668
# substitutes the proper values into config.h.in to produce config.h.
 
21669
rm -f conftest.defines conftest.tail
 
21670
# First, append a space to every undef/define line, to ease matching.
 
21671
echo 's/$/ /' >conftest.defines
 
21672
# Then, protect against being on the right side of a sed subst, or in
 
21673
# an unquoted here document, in config.status.  If some macros were
 
21674
# called several times there might be several #defines for the same
 
21675
# symbol, which is useless.  But do not sort them, since the last
 
21676
# AC_DEFINE must be honored.
 
21677
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
21678
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
21679
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
21680
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
21681
# just an empty string.
 
21682
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
21683
ac_dB='\\)[      (].*,\\1define\\2'
 
21684
ac_dC=' '
 
21685
ac_dD=' ,'
 
21686
 
 
21687
uniq confdefs.h |
 
21688
  sed -n '
 
21689
        t rset
 
21690
        :rset
 
21691
        s/^[     ]*#[    ]*define[       ][      ]*//
 
21692
        t ok
 
21693
        d
 
21694
        :ok
 
21695
        s/[\\&,]/\\&/g
 
21696
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
21697
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
21698
  ' >>conftest.defines
 
21699
 
 
21700
# Remove the space that was appended to ease matching.
 
21701
# Then replace #undef with comments.  This is necessary, for
 
21702
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
21703
# on some systems where configure will not decide to define it.
 
21704
# (The regexp can be short, since the line contains either #define or #undef.)
 
21705
echo 's/ $//
 
21706
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
21707
 
 
21708
# Break up conftest.defines:
 
21709
ac_max_sed_lines=50
 
21710
 
 
21711
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
21712
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
21713
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
21714
# et cetera.
 
21715
ac_in='$ac_file_inputs'
 
21716
ac_out='"$tmp/out1"'
 
21717
ac_nxt='"$tmp/out2"'
 
21718
 
 
21719
while :
 
21720
do
 
21721
  # Write a here document:
 
21722
    cat >>$CONFIG_STATUS <<_ACEOF
 
21723
    # First, check the format of the line:
 
21724
    cat >"\$tmp/defines.sed" <<\\CEOF
 
21725
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
21726
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
21727
b
 
21728
:def
 
21729
_ACEOF
 
21730
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
21731
  echo 'CEOF
 
21732
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
21733
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
21734
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
21735
  grep . conftest.tail >/dev/null || break
 
21736
  rm -f conftest.defines
 
21737
  mv conftest.tail conftest.defines
 
21738
done
 
21739
rm -f conftest.defines conftest.tail
 
21740
 
 
21741
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
21742
cat >>$CONFIG_STATUS <<\_ACEOF
 
21743
  if test x"$ac_file" != x-; then
 
21744
    echo "/* $configure_input  */" >"$tmp/config.h"
 
21745
    cat "$ac_result" >>"$tmp/config.h"
 
21746
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
21747
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21748
echo "$as_me: $ac_file is unchanged" >&6;}
 
21749
    else
 
21750
      rm -f $ac_file
 
21751
      mv "$tmp/config.h" $ac_file
 
21752
    fi
 
21753
  else
 
21754
    echo "/* $configure_input  */"
 
21755
    cat "$ac_result"
 
21756
  fi
 
21757
  rm -f "$tmp/out12"
 
21758
# Compute $ac_file's index in $config_headers.
 
21759
_am_stamp_count=1
 
21760
for _am_header in $config_headers :; do
 
21761
  case $_am_header in
 
21762
    $ac_file | $ac_file:* )
 
21763
      break ;;
 
21764
    * )
 
21765
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21766
  esac
 
21767
done
 
21768
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
21769
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21770
         X$ac_file : 'X\(//\)[^/]' \| \
 
21771
         X$ac_file : 'X\(//\)$' \| \
 
21772
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
21773
echo X$ac_file |
 
21774
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21775
            s//\1/
 
21776
            q
 
21777
          }
 
21778
          /^X\(\/\/\)[^/].*/{
 
21779
            s//\1/
 
21780
            q
 
21781
          }
 
21782
          /^X\(\/\/\)$/{
 
21783
            s//\1/
 
21784
            q
 
21785
          }
 
21786
          /^X\(\/\).*/{
 
21787
            s//\1/
 
21788
            q
 
21789
          }
 
21790
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21791
 ;;
 
21792
 
 
21793
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
21794
echo "$as_me: executing $ac_file commands" >&6;}
 
21795
 ;;
 
21796
  esac
 
21797
 
 
21798
 
 
21799
  case $ac_file$ac_mode in
 
21800
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21801
  # Strip MF so we end up with the name of the file.
 
21802
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21803
  # Check whether this is an Automake generated Makefile or not.
 
21804
  # We used to match only the files named `Makefile.in', but
 
21805
  # some people rename them; so instead we look at the file content.
 
21806
  # Grep'ing the first line is not enough: some people post-process
 
21807
  # each Makefile.in and add a new line on top of each file to say so.
 
21808
  # So let's grep whole file.
 
21809
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
21810
    dirpart=`$as_dirname -- "$mf" ||
 
21811
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21812
         X"$mf" : 'X\(//\)[^/]' \| \
 
21813
         X"$mf" : 'X\(//\)$' \| \
 
21814
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
21815
echo X"$mf" |
 
21816
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21817
            s//\1/
 
21818
            q
 
21819
          }
 
21820
          /^X\(\/\/\)[^/].*/{
 
21821
            s//\1/
 
21822
            q
 
21823
          }
 
21824
          /^X\(\/\/\)$/{
 
21825
            s//\1/
 
21826
            q
 
21827
          }
 
21828
          /^X\(\/\).*/{
 
21829
            s//\1/
 
21830
            q
 
21831
          }
 
21832
          s/.*/./; q'`
 
21833
  else
 
21834
    continue
 
21835
  fi
 
21836
  # Extract the definition of DEPDIR, am__include, and am__quote
 
21837
  # from the Makefile without running `make'.
 
21838
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21839
  test -z "$DEPDIR" && continue
 
21840
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
21841
  test -z "am__include" && continue
 
21842
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
21843
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21844
  U=`sed -n 's/^U = //p' < "$mf"`
 
21845
  # Find all dependency output files, they are included files with
 
21846
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
21847
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
21848
  # expansion.
 
21849
  for file in `sed -n "
 
21850
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21851
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21852
    # Make sure the directory exists.
 
21853
    test -f "$dirpart/$file" && continue
 
21854
    fdir=`$as_dirname -- "$file" ||
 
21855
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21856
         X"$file" : 'X\(//\)[^/]' \| \
 
21857
         X"$file" : 'X\(//\)$' \| \
 
21858
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
21859
echo X"$file" |
 
21860
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21861
            s//\1/
 
21862
            q
 
21863
          }
 
21864
          /^X\(\/\/\)[^/].*/{
 
21865
            s//\1/
 
21866
            q
 
21867
          }
 
21868
          /^X\(\/\/\)$/{
 
21869
            s//\1/
 
21870
            q
 
21871
          }
 
21872
          /^X\(\/\).*/{
 
21873
            s//\1/
 
21874
            q
 
21875
          }
 
21876
          s/.*/./; q'`
 
21877
    { as_dir=$dirpart/$fdir
 
21878
  case $as_dir in #(
 
21879
  -*) as_dir=./$as_dir;;
 
21880
  esac
 
21881
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
21882
    as_dirs=
 
21883
    while :; do
 
21884
      case $as_dir in #(
 
21885
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
21886
      *) as_qdir=$as_dir;;
 
21887
      esac
 
21888
      as_dirs="'$as_qdir' $as_dirs"
 
21889
      as_dir=`$as_dirname -- "$as_dir" ||
 
21890
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21891
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21892
         X"$as_dir" : 'X\(//\)$' \| \
 
21893
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
21894
echo X"$as_dir" |
 
21895
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21896
            s//\1/
 
21897
            q
 
21898
          }
 
21899
          /^X\(\/\/\)[^/].*/{
 
21900
            s//\1/
 
21901
            q
 
21902
          }
 
21903
          /^X\(\/\/\)$/{
 
21904
            s//\1/
 
21905
            q
 
21906
          }
 
21907
          /^X\(\/\).*/{
 
21908
            s//\1/
 
21909
            q
 
21910
          }
 
21911
          s/.*/./; q'`
 
21912
      test -d "$as_dir" && break
 
21913
    done
 
21914
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
21915
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
21916
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
21917
   { (exit 1); exit 1; }; }; }
 
21918
    # echo "creating $dirpart/$file"
 
21919
    echo '# dummy' > "$dirpart/$file"
 
21920
  done
 
21921
done
 
21922
 ;;
 
21923
 
 
21924
  esac
 
21925
done # for ac_tag
 
21926
 
 
21927
 
 
21928
{ (exit 0); exit 0; }
 
21929
_ACEOF
 
21930
chmod +x $CONFIG_STATUS
 
21931
ac_clean_files=$ac_clean_files_save
 
21932
 
 
21933
 
 
21934
# configure is writing to config.log, and then calls config.status.
 
21935
# config.status does its own redirection, appending to config.log.
 
21936
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21937
# by configure, so config.status won't be able to write to it; its
 
21938
# output is simply discarded.  So we exec the FD to /dev/null,
 
21939
# effectively closing config.log, so it can be properly (re)opened and
 
21940
# appended to by config.status.  When coming back to configure, we
 
21941
# need to make the FD available again.
 
21942
if test "$no_create" != yes; then
 
21943
  ac_cs_success=:
 
21944
  ac_config_status_args=
 
21945
  test "$silent" = yes &&
 
21946
    ac_config_status_args="$ac_config_status_args --quiet"
 
21947
  exec 5>/dev/null
 
21948
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21949
  exec 5>>config.log
 
21950
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21951
  # would make configure fail if this is the last instruction.
 
21952
  $ac_cs_success || { (exit 1); exit 1; }
 
21953
fi
 
21954